From 7df3d729530dc587fa29f2f55282599519fff09c Mon Sep 17 00:00:00 2001
From: lars
- * View Abusive Experience Report data, and get a list of sites that have a
+ * Views Abusive Experience Report data, and gets a list of sites that have a
* significant number of abusive experiences.
@@ -49,6 +49,7 @@ class Google_Service_AbusiveExperienceReport extends Google_Service
parent::__construct($client);
$this->rootUrl = 'https://abusiveexperiencereport.googleapis.com/';
$this->servicePath = '';
+ $this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'abusiveexperiencereport';
diff --git a/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php b/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
index fa6aaedc..62d42e88 100644
--- a/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
+++ b/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
@@ -46,6 +46,7 @@ class Google_Service_Acceleratedmobilepageurl extends Google_Service
parent::__construct($client);
$this->rootUrl = 'https://acceleratedmobilepageurl.googleapis.com/';
$this->servicePath = '';
+ $this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'acceleratedmobilepageurl';
diff --git a/vendor/google/apiclient-services/src/Google/Service/AccessContextManager.php b/vendor/google/apiclient-services/src/Google/Service/AccessContextManager.php
new file mode 100644
index 00000000..52977810
--- /dev/null
+++ b/vendor/google/apiclient-services/src/Google/Service/AccessContextManager.php
@@ -0,0 +1,295 @@
+
+ * An API for setting attribute based access control to requests to GCP
+ * services.
+ * For more information about this service, see the API
+ * Documentation
+ *
- * Accesses the latest features for managing Ad Exchange accounts, Real-Time
- * Bidding configurations and auction metrics, and Marketplace programmatic
+ * Accesses the latest features for managing Authorized Buyers accounts, Real-
+ * Time Bidding configurations and auction metrics, and Marketplace programmatic
* deals.
* For more information about this service, see the API
- * Documentation
+ * Documentation
*
- * View Ad Experience Report data, and get a list of sites that have a
+ * Views Ad Experience Report data, and gets a list of sites that have a
* significant number of annoying ads.
@@ -48,6 +48,7 @@ class Google_Service_AdExperienceReport extends Google_Service
parent::__construct($client);
$this->rootUrl = 'https://adexperiencereport.googleapis.com/';
$this->servicePath = '';
+ $this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'adexperiencereport';
diff --git a/vendor/google/apiclient-services/src/Google/Service/AdSense.php b/vendor/google/apiclient-services/src/Google/Service/AdSense.php
index a11557ce..4a5cfa0b 100644
--- a/vendor/google/apiclient-services/src/Google/Service/AdSense.php
+++ b/vendor/google/apiclient-services/src/Google/Service/AdSense.php
@@ -73,6 +73,7 @@ class Google_Service_AdSense extends Google_Service
parent::__construct($client);
$this->rootUrl = 'https://www.googleapis.com/';
$this->servicePath = 'adsense/v1.4/';
+ $this->batchPath = 'batch/adsense/v1.4';
$this->version = 'v1.4';
$this->serviceName = 'adsense';
@@ -119,7 +120,22 @@ class Google_Service_AdSense extends Google_Service
'adclients',
array(
'methods' => array(
- 'list' => array(
+ 'getAdCode' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adcode',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
'path' => 'accounts/{accountId}/adclients',
'httpMethod' => 'GET',
'parameters' => array(
diff --git a/vendor/google/apiclient-services/src/Google/Service/AdSense/AdCode.php b/vendor/google/apiclient-services/src/Google/Service/AdSense/AdCode.php
index 19bab14f..f096bd63 100644
--- a/vendor/google/apiclient-services/src/Google/Service/AdSense/AdCode.php
+++ b/vendor/google/apiclient-services/src/Google/Service/AdSense/AdCode.php
@@ -18,6 +18,8 @@
class Google_Service_AdSense_AdCode extends Google_Model
{
public $adCode;
+ public $ampBody;
+ public $ampHead;
public $kind;
public function setAdCode($adCode)
@@ -28,6 +30,22 @@ class Google_Service_AdSense_AdCode extends Google_Model
{
return $this->adCode;
}
+ public function setAmpBody($ampBody)
+ {
+ $this->ampBody = $ampBody;
+ }
+ public function getAmpBody()
+ {
+ return $this->ampBody;
+ }
+ public function setAmpHead($ampHead)
+ {
+ $this->ampHead = $ampHead;
+ }
+ public function getAmpHead()
+ {
+ return $this->ampHead;
+ }
public function setKind($kind)
{
$this->kind = $kind;
diff --git a/vendor/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php b/vendor/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php
index d244a0da..457b16ee 100644
--- a/vendor/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php
+++ b/vendor/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php
@@ -25,6 +25,20 @@
*/
class Google_Service_AdSense_Resource_AccountsAdclients extends Google_Service_Resource
{
+ /**
+ * Get Auto ad code for a given ad client. (adclients.getAdCode)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client to get the code for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_AdCode
+ */
+ public function getAdCode($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
+ }
/**
* List all ad clients in the specified account.
* (adclients.listAccountsAdclients)
diff --git a/vendor/google/apiclient-services/src/Google/Service/AdSenseHost.php b/vendor/google/apiclient-services/src/Google/Service/AdSenseHost.php
index cc387cd7..4f2cfb1e 100644
--- a/vendor/google/apiclient-services/src/Google/Service/AdSenseHost.php
+++ b/vendor/google/apiclient-services/src/Google/Service/AdSenseHost.php
@@ -55,6 +55,7 @@ class Google_Service_AdSenseHost extends Google_Service
parent::__construct($client);
$this->rootUrl = 'https://www.googleapis.com/';
$this->servicePath = 'adsensehost/v4.1/';
+ $this->batchPath = 'batch/adsensehost/v4.1';
$this->version = 'v4.1';
$this->serviceName = 'adsensehost';
diff --git a/vendor/google/apiclient-services/src/Google/Service/AlertCenter.php b/vendor/google/apiclient-services/src/Google/Service/AlertCenter.php
new file mode 100644
index 00000000..1294f0d6
--- /dev/null
+++ b/vendor/google/apiclient-services/src/Google/Service/AlertCenter.php
@@ -0,0 +1,199 @@
+
+ * Manages alerts on issues affecting your domain.
+ * For more information about this service, see the API
+ * Documentation
+ *
- * Lets Android application developers access their Google Play accounts.
* For more information about this service, see the API @@ -35,8 +35,8 @@ class Google_Service_AndroidPublisher extends Google_Service "https://www.googleapis.com/auth/androidpublisher"; public $edits; - public $edits_apklistings; public $edits_apks; + public $edits_bundles; public $edits_deobfuscationfiles; public $edits_details; public $edits_expansionfiles; @@ -45,6 +45,7 @@ class Google_Service_AndroidPublisher extends Google_Service public $edits_testers; public $edits_tracks; public $inappproducts; + public $orders; public $purchases_products; public $purchases_subscriptions; public $purchases_voidedpurchases; @@ -59,8 +60,9 @@ class Google_Service_AndroidPublisher extends Google_Service { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'androidpublisher/v2/applications/'; - $this->version = 'v2'; + $this->servicePath = 'androidpublisher/v3/applications/'; + $this->batchPath = 'batch/androidpublisher/v3'; + $this->version = 'v3'; $this->serviceName = 'androidpublisher'; $this->edits = new Google_Service_AndroidPublisher_Resource_Edits( @@ -143,156 +145,6 @@ class Google_Service_AndroidPublisher extends Google_Service ) ) ); - $this->edits_apklistings = new Google_Service_AndroidPublisher_Resource_EditsApklistings( - $this, - $this->serviceName, - 'apklistings', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteall' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings', - 'httpMethod' => 'GET', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'packageName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'editId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'apkVersionCode' => array( - 'location' => 'path', - 'type' => 'integer', - 'required' => true, - ), - 'language' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->edits_apks = new Google_Service_AndroidPublisher_Resource_EditsApks( $this, $this->serviceName, @@ -348,6 +200,50 @@ class Google_Service_AndroidPublisher extends Google_Service ) ) ); + $this->edits_bundles = new Google_Service_AndroidPublisher_Resource_EditsBundles( + $this, + $this->serviceName, + 'bundles', + array( + 'methods' => array( + 'list' => array( + 'path' => '{packageName}/edits/{editId}/bundles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => '{packageName}/edits/{editId}/bundles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ackBundleInstallationWarning' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->edits_deobfuscationfiles = new Google_Service_AndroidPublisher_Resource_EditsDeobfuscationfiles( $this, $this->serviceName, @@ -1052,6 +948,35 @@ class Google_Service_AndroidPublisher extends Google_Service ) ) ); + $this->orders = new Google_Service_AndroidPublisher_Resource_Orders( + $this, + $this->serviceName, + 'orders', + array( + 'methods' => array( + 'refund' => array( + 'path' => '{packageName}/orders/{orderId}:refund', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'revoke' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->purchases_products = new Google_Service_AndroidPublisher_Resource_PurchasesProducts( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Bundle.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Bundle.php new file mode 100644 index 00000000..315c037a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Bundle.php @@ -0,0 +1,48 @@ +sha1 = $sha1; + } + public function getSha1() + { + return $this->sha1; + } + public function setSha256($sha256) + { + $this->sha256 = $sha256; + } + public function getSha256() + { + return $this->sha256; + } + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/BundlesListResponse.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/BundlesListResponse.php new file mode 100644 index 00000000..2dcf74cc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/BundlesListResponse.php @@ -0,0 +1,47 @@ +bundles = $bundles; + } + /** + * @return Google_Service_AndroidPublisher_Bundle + */ + public function getBundles() + { + return $this->bundles; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php index 5cf6f51d..0ae61f0d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php @@ -20,6 +20,7 @@ class Google_Service_AndroidPublisher_InAppProduct extends Google_Model public $defaultLanguage; protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price'; protected $defaultPriceDataType = ''; + public $gracePeriod; protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing'; protected $listingsDataType = 'map'; public $packageName; @@ -55,6 +56,14 @@ class Google_Service_AndroidPublisher_InAppProduct extends Google_Model { return $this->defaultPrice; } + public function setGracePeriod($gracePeriod) + { + $this->gracePeriod = $gracePeriod; + } + public function getGracePeriod() + { + return $this->gracePeriod; + } /** * @param Google_Service_AndroidPublisher_InAppProductListing */ diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/LocalizedText.php similarity index 75% rename from vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php rename to vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/LocalizedText.php index 9498450d..dc2bae6c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/LocalizedText.php @@ -15,10 +15,10 @@ * the License. */ -class Google_Service_AndroidPublisher_ApkListing extends Google_Model +class Google_Service_AndroidPublisher_LocalizedText extends Google_Model { public $language; - public $recentChanges; + public $text; public function setLanguage($language) { @@ -28,12 +28,12 @@ class Google_Service_AndroidPublisher_ApkListing extends Google_Model { return $this->language; } - public function setRecentChanges($recentChanges) + public function setText($text) { - $this->recentChanges = $recentChanges; + $this->text = $text; } - public function getRecentChanges() + public function getText() { - return $this->recentChanges; + return $this->text; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php deleted file mode 100644 index 9e6bbb62..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php +++ /dev/null @@ -1,148 +0,0 @@ - - * $androidpublisherService = new Google_Service_AndroidPublisher(...); - * $apklistings = $androidpublisherService->apklistings; - * - */ -class Google_Service_AndroidPublisher_Resource_EditsApklistings extends Google_Service_Resource -{ - /** - * Deletes the APK-specific localized listing for a specified APK and language - * code. (apklistings.delete) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param array $optParams Optional parameters. - */ - public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Deletes all the APK-specific localized listings for a specified APK. - * (apklistings.deleteall) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param array $optParams Optional parameters. - */ - public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('deleteall', array($params)); - } - /** - * Fetches the APK-specific localized listing for a specified APK and language - * code. (apklistings.get) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - /** - * Lists all the APK-specific localized listings for a specified APK. - * (apklistings.listEditsApklistings) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListingsListResponse - */ - public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse"); - } - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. This method supports patch semantics. (apklistings.patch) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param Google_Service_AndroidPublisher_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } - /** - * Updates or creates the APK-specific localized listing for a specified APK and - * language code. (apklistings.update) - * - * @param string $packageName Unique identifier for the Android app that is - * being updated; for example, "com.spiffygame". - * @param string $editId Unique identifier for this edit. - * @param int $apkVersionCode The APK version code whose APK-specific listings - * should be read or modified. - * @param string $language The language code (a BCP-47 language tag) of the APK- - * specific localized listing to read or modify. For example, to select Austrian - * German, pass "de-AT". - * @param Google_Service_AndroidPublisher_ApkListing $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_AndroidPublisher_ApkListing - */ - public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array()) - { - $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsBundles.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsBundles.php new file mode 100644 index 00000000..6db7f6e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsBundles.php @@ -0,0 +1,66 @@ + + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $bundles = $androidpublisherService->bundles; + * + */ +class Google_Service_AndroidPublisher_Resource_EditsBundles extends Google_Service_Resource +{ + /** + * (bundles.listEditsBundles) + * + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_BundlesListResponse + */ + public function listEditsBundles($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_BundlesListResponse"); + } + /** + * Uploads a new Android App Bundle to this edit. If you are using the Google + * API client libraries, please increase the timeout of the http request before + * calling this endpoint (a timeout of 2 minutes is recommended). See: + * https://developers.google.com/api-client-library/java/google-api-java- + * client/errors for an example in java. (bundles.upload) + * + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param array $optParams Optional parameters. + * + * @opt_param bool ackBundleInstallationWarning Must be set to true if the + * bundle installation may trigger a warning on user devices (for example, if + * installation size may be over a threshold, typically 100 MB). + * @return Google_Service_AndroidPublisher_Bundle + */ + public function upload($packageName, $editId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Bundle"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php index 5dff2bbb..b2237bf5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php @@ -32,8 +32,7 @@ class Google_Service_AndroidPublisher_Resource_EditsTracks extends Google_Servic * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". * @param string $editId Unique identifier for this edit. - * @param string $track The track to read or modify. Acceptable values are: - * "alpha", "beta", "production", "rollout" or "internal". + * @param string $track The track to read or modify. * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track */ @@ -67,8 +66,7 @@ class Google_Service_AndroidPublisher_Resource_EditsTracks extends Google_Servic * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". * @param string $editId Unique identifier for this edit. - * @param string $track The track to read or modify. Acceptable values are: - * "alpha", "beta", "production", "rollout" or "internal". + * @param string $track The track to read or modify. * @param Google_Service_AndroidPublisher_Track $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track @@ -87,8 +85,7 @@ class Google_Service_AndroidPublisher_Resource_EditsTracks extends Google_Servic * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". * @param string $editId Unique identifier for this edit. - * @param string $track The track to read or modify. Acceptable values are: - * "alpha", "beta", "production", "rollout" or "internal". + * @param string $track The track to read or modify. * @param Google_Service_AndroidPublisher_Track $postBody * @param array $optParams Optional parameters. * @return Google_Service_AndroidPublisher_Track diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Orders.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Orders.php new file mode 100644 index 00000000..e08a7e98 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Orders.php @@ -0,0 +1,49 @@ + + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $orders = $androidpublisherService->orders; + * + */ +class Google_Service_AndroidPublisher_Resource_Orders extends Google_Service_Resource +{ + /** + * Refund a user's subscription or in-app purchase order. (orders.refund) + * + * @param string $packageName The package name of the application for which this + * subscription or in-app item was purchased (for example, 'com.some.thing'). + * @param string $orderId The order ID provided to the user when the + * subscription or in-app order was purchased. + * @param array $optParams Optional parameters. + * + * @opt_param bool revoke Whether to revoke the purchased item. If set to true, + * access to the subscription or in-app item will be terminated immediately. If + * the item is a recurring subscription, all future payments will also be + * terminated. Consumed in-app items need to be handled by developer's app. + * (optional) + */ + public function refund($packageName, $orderId, $optParams = array()) + { + $params = array('packageName' => $packageName, 'orderId' => $orderId); + $params = array_merge($params, $optParams); + return $this->call('refund', array($params)); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionCancelSurveyResult.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionCancelSurveyResult.php new file mode 100644 index 00000000..3e9c11e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionCancelSurveyResult.php @@ -0,0 +1,39 @@ +cancelSurveyReason = $cancelSurveyReason; + } + public function getCancelSurveyReason() + { + return $this->cancelSurveyReason; + } + public function setUserInputCancelReason($userInputCancelReason) + { + $this->userInputCancelReason = $userInputCancelReason; + } + public function getUserInputCancelReason() + { + return $this->userInputCancelReason; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPriceChange.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPriceChange.php new file mode 100644 index 00000000..90965d6b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPriceChange.php @@ -0,0 +1,46 @@ +newPrice = $newPrice; + } + /** + * @return Google_Service_AndroidPublisher_Price + */ + public function getNewPrice() + { + return $this->newPrice; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php index 3dee2c4f..0086ddbb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php @@ -18,7 +18,10 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { public $autoRenewing; + public $autoResumeTimeMillis; public $cancelReason; + protected $cancelSurveyResultType = 'Google_Service_AndroidPublisher_SubscriptionCancelSurveyResult'; + protected $cancelSurveyResultDataType = ''; public $countryCode; public $developerPayload; public $emailAddress; @@ -30,6 +33,8 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model public $orderId; public $paymentState; public $priceAmountMicros; + protected $priceChangeType = 'Google_Service_AndroidPublisher_SubscriptionPriceChange'; + protected $priceChangeDataType = ''; public $priceCurrencyCode; public $profileId; public $profileName; @@ -45,6 +50,14 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { return $this->autoRenewing; } + public function setAutoResumeTimeMillis($autoResumeTimeMillis) + { + $this->autoResumeTimeMillis = $autoResumeTimeMillis; + } + public function getAutoResumeTimeMillis() + { + return $this->autoResumeTimeMillis; + } public function setCancelReason($cancelReason) { $this->cancelReason = $cancelReason; @@ -53,6 +66,20 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { return $this->cancelReason; } + /** + * @param Google_Service_AndroidPublisher_SubscriptionCancelSurveyResult + */ + public function setCancelSurveyResult(Google_Service_AndroidPublisher_SubscriptionCancelSurveyResult $cancelSurveyResult) + { + $this->cancelSurveyResult = $cancelSurveyResult; + } + /** + * @return Google_Service_AndroidPublisher_SubscriptionCancelSurveyResult + */ + public function getCancelSurveyResult() + { + return $this->cancelSurveyResult; + } public function setCountryCode($countryCode) { $this->countryCode = $countryCode; @@ -141,6 +168,20 @@ class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model { return $this->priceAmountMicros; } + /** + * @param Google_Service_AndroidPublisher_SubscriptionPriceChange + */ + public function setPriceChange(Google_Service_AndroidPublisher_SubscriptionPriceChange $priceChange) + { + $this->priceChange = $priceChange; + } + /** + * @return Google_Service_AndroidPublisher_SubscriptionPriceChange + */ + public function getPriceChange() + { + return $this->priceChange; + } public function setPriceCurrencyCode($priceCurrencyCode) { $this->priceCurrencyCode = $priceCurrencyCode; diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php index bd9c5a42..6b70a139 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php @@ -17,11 +17,25 @@ class Google_Service_AndroidPublisher_Track extends Google_Collection { - protected $collection_key = 'versionCodes'; + protected $collection_key = 'releases'; + protected $releasesType = 'Google_Service_AndroidPublisher_TrackRelease'; + protected $releasesDataType = 'array'; public $track; - public $userFraction; - public $versionCodes; + /** + * @param Google_Service_AndroidPublisher_TrackRelease + */ + public function setReleases($releases) + { + $this->releases = $releases; + } + /** + * @return Google_Service_AndroidPublisher_TrackRelease + */ + public function getReleases() + { + return $this->releases; + } public function setTrack($track) { $this->track = $track; @@ -30,20 +44,4 @@ class Google_Service_AndroidPublisher_Track extends Google_Collection { return $this->track; } - public function setUserFraction($userFraction) - { - $this->userFraction = $userFraction; - } - public function getUserFraction() - { - return $this->userFraction; - } - public function setVersionCodes($versionCodes) - { - $this->versionCodes = $versionCodes; - } - public function getVersionCodes() - { - return $this->versionCodes; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/TrackRelease.php b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/TrackRelease.php new file mode 100644 index 00000000..23a94ebd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/AndroidPublisher/TrackRelease.php @@ -0,0 +1,74 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_AndroidPublisher_LocalizedText + */ + public function setReleaseNotes($releaseNotes) + { + $this->releaseNotes = $releaseNotes; + } + /** + * @return Google_Service_AndroidPublisher_LocalizedText + */ + public function getReleaseNotes() + { + return $this->releaseNotes; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUserFraction($userFraction) + { + $this->userFraction = $userFraction; + } + public function getUserFraction() + { + return $this->userFraction; + } + public function setVersionCodes($versionCodes) + { + $this->versionCodes = $versionCodes; + } + public function getVersionCodes() + { + return $this->versionCodes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AppState.php b/vendor/google/apiclient-services/src/Google/Service/AppState.php index b1d792fb..eeb425c0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AppState.php +++ b/vendor/google/apiclient-services/src/Google/Service/AppState.php @@ -46,6 +46,7 @@ class Google_Service_AppState extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appstate/v1/'; + $this->batchPath = 'batch/appstate/v1'; $this->version = 'v1'; $this->serviceName = 'appstate'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine.php b/vendor/google/apiclient-services/src/Google/Service/Appengine.php index 4b50fab1..24bfe4db 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine.php @@ -19,8 +19,7 @@ * Service definition for Appengine (v1). * *
- * The App Engine Admin API enables developers to provision and manage their App - * Engine applications.
+ * Provisions and manages developers' App Engine applications. * ** For more information about this service, see the API @@ -62,6 +61,7 @@ class Google_Service_Appengine extends Google_Service parent::__construct($client); $this->rootUrl = 'https://appengine.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'appengine'; @@ -172,10 +172,6 @@ class Google_Service_Appengine extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -184,6 +180,10 @@ class Google_Service_Appengine extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}', @@ -505,6 +505,10 @@ class Google_Service_Appengine extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -513,10 +517,6 @@ class Google_Service_Appengine extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -567,14 +567,14 @@ class Google_Service_Appengine extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/apps/{appsId}/services/{servicesId}', diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/AuthorizedCertificate.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/AuthorizedCertificate.php index 28a55790..25343ec3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/AuthorizedCertificate.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/AuthorizedCertificate.php @@ -25,6 +25,8 @@ class Google_Service_Appengine_AuthorizedCertificate extends Google_Collection public $domainNames; public $expireTime; public $id; + protected $managedCertificateType = 'Google_Service_Appengine_ManagedCertificate'; + protected $managedCertificateDataType = ''; public $name; public $visibleDomainMappings; @@ -82,6 +84,20 @@ class Google_Service_Appengine_AuthorizedCertificate extends Google_Collection { return $this->id; } + /** + * @param Google_Service_Appengine_ManagedCertificate + */ + public function setManagedCertificate(Google_Service_Appengine_ManagedCertificate $managedCertificate) + { + $this->managedCertificate = $managedCertificate; + } + /** + * @return Google_Service_Appengine_ManagedCertificate + */ + public function getManagedCertificate() + { + return $this->managedCertificate; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php index ff3636c9..42f1294b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php @@ -18,7 +18,9 @@ class Google_Service_Appengine_EndpointsApiService extends Google_Model { public $configId; + public $disableTraceSampling; public $name; + public $rolloutStrategy; public function setConfigId($configId) { @@ -28,6 +30,14 @@ class Google_Service_Appengine_EndpointsApiService extends Google_Model { return $this->configId; } + public function setDisableTraceSampling($disableTraceSampling) + { + $this->disableTraceSampling = $disableTraceSampling; + } + public function getDisableTraceSampling() + { + return $this->disableTraceSampling; + } public function setName($name) { $this->name = $name; @@ -36,4 +46,12 @@ class Google_Service_Appengine_EndpointsApiService extends Google_Model { return $this->name; } + public function setRolloutStrategy($rolloutStrategy) + { + $this->rolloutStrategy = $rolloutStrategy; + } + public function getRolloutStrategy() + { + return $this->rolloutStrategy; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Entrypoint.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Entrypoint.php new file mode 100644 index 00000000..2f2947da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Entrypoint.php @@ -0,0 +1,30 @@ +shell = $shell; + } + public function getShell() + { + return $this->shell; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/ManagedCertificate.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/ManagedCertificate.php new file mode 100644 index 00000000..aa9f823f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/ManagedCertificate.php @@ -0,0 +1,39 @@ +lastRenewalTime = $lastRenewalTime; + } + public function getLastRenewalTime() + { + return $this->lastRenewalTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Network.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Network.php index 44aaf374..5c168659 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Network.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Network.php @@ -21,6 +21,7 @@ class Google_Service_Appengine_Network extends Google_Collection public $forwardedPorts; public $instanceTag; public $name; + public $sessionAffinity; public $subnetworkName; public function setForwardedPorts($forwardedPorts) @@ -47,6 +48,14 @@ class Google_Service_Appengine_Network extends Google_Collection { return $this->name; } + public function setSessionAffinity($sessionAffinity) + { + $this->sessionAffinity = $sessionAffinity; + } + public function getSessionAffinity() + { + return $this->sessionAffinity; + } public function setSubnetworkName($subnetworkName) { $this->subnetworkName = $subnetworkName; diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsAuthorizedCertificates.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsAuthorizedCertificates.php index 41bca622..5becb9da 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsAuthorizedCertificates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsAuthorizedCertificates.php @@ -83,11 +83,11 @@ class Google_Service_Appengine_Resource_AppsAuthorizedCertificates extends Googl * resource. Example: apps/myapp. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Continuation token for fetching the next page of - * results. * @opt_param int pageSize Maximum results to return per page. * @opt_param string view Controls the set of fields returned in the LIST * response. + * @opt_param string pageToken Continuation token for fetching the next page of + * results. * @return Google_Service_Appengine_ListAuthorizedCertificatesResponse */ public function listAppsAuthorizedCertificates($appsId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php index 9bad0f31..25f19a4b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php @@ -56,9 +56,9 @@ class Google_Service_Appengine_Resource_AppsOperations extends Google_Service_Re * resource. * @param array $optParams Optional parameters. * + * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. - * @opt_param string filter The standard list filter. * @return Google_Service_Appengine_ListOperationsResponse */ public function listAppsOperations($appsId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php index 139df86f..b115a86c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php @@ -62,9 +62,9 @@ class Google_Service_Appengine_Resource_AppsServices extends Google_Service_Reso * resource. Example: apps/myapp. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum results to return per page. * @opt_param string pageToken Continuation token for fetching the next page of * results. - * @opt_param int pageSize Maximum results to return per page. * @return Google_Service_Appengine_ListServicesResponse */ public function listAppsServices($appsId, $optParams = array()) @@ -87,11 +87,11 @@ class Google_Service_Appengine_Resource_AppsServices extends Google_Service_Reso * immediately. For gradual traffic migration, the target versions must be * located within instances that are configured for both warmup requests * (https://cloud.google.com/appengine/docs/admin- - * api/reference/rest/v1/apps.services.versions#inboundservicetype) and + * api/reference/rest/v1/apps.services.versions#InboundServiceType) and * automatic scaling (https://cloud.google.com/appengine/docs/admin- - * api/reference/rest/v1/apps.services.versions#automaticscaling). You must + * api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must * specify the shardBy (https://cloud.google.com/appengine/docs/admin- - * api/reference/rest/v1/apps.services#shardby) field in the Service resource. + * api/reference/rest/v1/apps.services#ShardBy) field in the Service resource. * Gradual traffic migration is not supported in the App Engine flexible * environment. For examples, see Migrating and Splitting Traffic * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting- diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php index 71de3841..360185b5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php @@ -102,37 +102,43 @@ class Google_Service_Appengine_Resource_AppsServicesVersions extends Google_Serv /** * Updates the specified Version resource. You can specify the following fields * depending on the App Engine environment and type of scaling that the version - * resource uses: serving_status (https://cloud.google.com/appengine/docs/admin- - * api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): - * For Version resources that use basic scaling, manual scaling, or run in the - * App Engine flexible environment. instance_class - * (https://cloud.google.com/appengine/docs/admin- - * api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): - * For Version resources that run in the App Engine standard environment. - * automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs + * resource uses:Standard environment instance_class + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser + * vices.versions#Version.FIELDS.instance_class)automatic scaling in the + * standard environment: automatic_scaling.min_idle_instances + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser + * vices.versions#Version.FIELDS.automatic_scaling) + * automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs * /admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_ - * scaling): For Version resources that use automatic scaling and run in the - * App Engine standard environment. automatic_scaling.max_idle_instances + * scaling) automaticScaling.standard_scheduler_settings.max_instances + * (https://cloud.google.com/appengine/docs/admin- + * api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + * automaticScaling.standard_scheduler_settings.min_instances + * (https://cloud.google.com/appengine/docs/admin- + * api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + * automaticScaling.standard_scheduler_settings.target_cpu_utilization + * (https://cloud.google.com/appengine/docs/admin- + * api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + * automaticScaling.standard_scheduler_settings.target_throughput_utilization + * (https://cloud.google.com/appengine/docs/admin- + * api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic + * scaling or manual scaling in the standard environment: serving_status * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser - * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that - * use automatic scaling and run in the App Engine standard environment. - * automatic_scaling.min_total_instances + * vices.versions#Version.FIELDS.serving_status)Flexible environment + * serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/r + * est/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling + * in the flexible environment: automatic_scaling.min_total_instances * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser - * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that - * use automatic scaling and run in the App Engine flexible environment. + * vices.versions#Version.FIELDS.automatic_scaling) * automatic_scaling.max_total_instances * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser - * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that - * use automatic scaling and run in the App Engine flexible environment. + * vices.versions#Version.FIELDS.automatic_scaling) * automatic_scaling.cool_down_period_sec * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser - * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that - * use automatic scaling and run in the App Engine flexible environment. + * vices.versions#Version.FIELDS.automatic_scaling) * automatic_scaling.cpu_utilization.target_utilization * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser - * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that - * use automatic scaling and run in the App Engine flexible environment. - * (versions.patch) + * vices.versions#Version.FIELDS.automatic_scaling) (versions.patch) * * @param string $appsId Part of `name`. Name of the resource to update. * Example: apps/myapp/services/default/versions/1. diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/SslSettings.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/SslSettings.php index cca8446e..cd510690 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/SslSettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/SslSettings.php @@ -18,6 +18,8 @@ class Google_Service_Appengine_SslSettings extends Google_Model { public $certificateId; + public $pendingManagedCertificateId; + public $sslManagementType; public function setCertificateId($certificateId) { @@ -27,4 +29,20 @@ class Google_Service_Appengine_SslSettings extends Google_Model { return $this->certificateId; } + public function setPendingManagedCertificateId($pendingManagedCertificateId) + { + $this->pendingManagedCertificateId = $pendingManagedCertificateId; + } + public function getPendingManagedCertificateId() + { + return $this->pendingManagedCertificateId; + } + public function setSslManagementType($sslManagementType) + { + $this->sslManagementType = $sslManagementType; + } + public function getSslManagementType() + { + return $this->sslManagementType; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/Version.php b/vendor/google/apiclient-services/src/Google/Service/Appengine/Version.php index dc24898e..254346a2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/Version.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appengine/Version.php @@ -33,6 +33,8 @@ class Google_Service_Appengine_Version extends Google_Collection public $diskUsageBytes; protected $endpointsApiServiceType = 'Google_Service_Appengine_EndpointsApiService'; protected $endpointsApiServiceDataType = ''; + protected $entrypointType = 'Google_Service_Appengine_Entrypoint'; + protected $entrypointDataType = ''; public $env; public $envVariables; protected $errorHandlersType = 'Google_Service_Appengine_ErrorHandler'; @@ -61,6 +63,7 @@ class Google_Service_Appengine_Version extends Google_Collection public $runtime; public $runtimeApiVersion; public $runtimeChannel; + public $runtimeMainExecutablePath; public $servingStatus; public $threadsafe; public $versionUrl; @@ -177,6 +180,20 @@ class Google_Service_Appengine_Version extends Google_Collection { return $this->endpointsApiService; } + /** + * @param Google_Service_Appengine_Entrypoint + */ + public function setEntrypoint(Google_Service_Appengine_Entrypoint $entrypoint) + { + $this->entrypoint = $entrypoint; + } + /** + * @return Google_Service_Appengine_Entrypoint + */ + public function getEntrypoint() + { + return $this->entrypoint; + } public function setEnv($env) { $this->env = $env; @@ -383,6 +400,14 @@ class Google_Service_Appengine_Version extends Google_Collection { return $this->runtimeChannel; } + public function setRuntimeMainExecutablePath($runtimeMainExecutablePath) + { + $this->runtimeMainExecutablePath = $runtimeMainExecutablePath; + } + public function getRuntimeMainExecutablePath() + { + return $this->runtimeMainExecutablePath; + } public function setServingStatus($servingStatus) { $this->servingStatus = $servingStatus; diff --git a/vendor/google/apiclient-services/src/Google/Service/Appsactivity.php b/vendor/google/apiclient-services/src/Google/Service/Appsactivity.php index 43eccfb7..f027101d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appsactivity.php +++ b/vendor/google/apiclient-services/src/Google/Service/Appsactivity.php @@ -46,6 +46,7 @@ class Google_Service_Appsactivity extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appsactivity/v1/'; + $this->batchPath = 'batch/appsactivity/v1'; $this->version = 'v1'; $this->serviceName = 'appsactivity'; diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php index 5102e6ae..74d65ea0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php @@ -19,8 +19,8 @@ * Service definition for BigQueryDataTransfer (v1). * *
- * Transfers data from partner SaaS applications to Google BigQuery on a - * scheduled, managed basis.
+ * Schedule queries or transfer external data from SaaS applications to Google + * BigQuery on a regular basis. * ** For more information about this service, see the API @@ -61,6 +61,7 @@ class Google_Service_BigQueryDataTransfer extends Google_Service parent::__construct($client); $this->rootUrl = 'https://bigquerydatatransfer.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'bigquerydatatransfer'; @@ -137,6 +138,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -145,10 +150,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -217,6 +218,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'versionInfo' => array( + 'location' => 'query', + 'type' => 'string', + ), 'authorizationCode' => array( 'location' => 'query', 'type' => 'string', @@ -251,6 +256,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -260,10 +269,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -278,6 +283,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'versionInfo' => array( + 'location' => 'query', + 'type' => 'string', + ), 'authorizationCode' => array( 'location' => 'query', 'type' => 'string', @@ -332,6 +341,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'states' => array( 'location' => 'query', 'type' => 'string', @@ -345,10 +358,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -402,6 +411,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'versionInfo' => array( + 'location' => 'query', + 'type' => 'string', + ), 'authorizationCode' => array( 'location' => 'query', 'type' => 'string', @@ -436,11 +449,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), - 'dataSourceIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -449,6 +457,11 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'dataSourceIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -459,7 +472,7 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), - 'updateMask' => array( + 'versionInfo' => array( 'location' => 'query', 'type' => 'string', ), @@ -467,6 +480,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'scheduleRuns' => array( 'path' => 'v1/{+parent}:scheduleRuns', @@ -517,6 +534,14 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'runAttempt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'states' => array( 'location' => 'query', 'type' => 'string', @@ -526,14 +551,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'runAttempt' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -554,10 +571,6 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -567,6 +580,10 @@ class Google_Service_BigQueryDataTransfer extends Google_Service 'type' => 'string', 'repeated' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocations.php index 85b03e82..16be6ea2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocations.php @@ -46,9 +46,9 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsLocations extends Goo * applicable. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. - * @opt_param string pageToken The standard list page token. * @return Google_Service_BigQueryDataTransfer_ListLocationsResponse */ public function listProjectsLocations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigs.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigs.php index 6a120495..a6ba3f53 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigs.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigs.php @@ -36,6 +36,12 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConf * @param Google_Service_BigQueryDataTransfer_TransferConfig $postBody * @param array $optParams Optional parameters. * + * @opt_param string versionInfo Optional version info. If users want to find a + * very recent access token, that is, immediately after approving access, users + * have to set the version_info claim in the token request. To obtain the + * version_info, users must use the “none+gsession†response type. which be + * return a version_info back in the authorization response which be be put in a + * JWT claim in the token request. * @opt_param string authorizationCode Optional OAuth2 authorization code to use * with this transfer configuration. This is required if new credentials are * needed, as indicated by `CheckValidCreds`. In order to obtain @@ -96,14 +102,14 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConf * be returned: `projects/{project_id}`. * @param array $optParams Optional parameters. * - * @opt_param int pageSize Page size. The default page size is the maximum value - * of 1000 results. - * @opt_param string dataSourceIds When specified, only configurations of - * requested data sources are returned. * @opt_param string pageToken Pagination token, which can be used to request a * specific page of `ListTransfersRequest` list results. For multiple-page * results, `ListTransfersResponse` outputs a `next_page` token, which can be * used as the `page_token` value to request the next page of list results. + * @opt_param int pageSize Page size. The default page size is the maximum value + * of 1000 results. + * @opt_param string dataSourceIds When specified, only configurations of + * requested data sources are returned. * @return Google_Service_BigQueryDataTransfer_ListTransferConfigsResponse */ public function listProjectsLocationsTransferConfigs($parent, $optParams = array()) @@ -117,14 +123,23 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConf * are not updated. (transferConfigs.patch) * * @param string $name The resource name of the transfer config. Transfer config - * names have the form `projects/{project_id}/transferConfigs/{config_id}`. - * Where `config_id` is usually a uuid, even though it is not guaranteed or - * required. The name is ignored when creating a transfer config. + * names have the form of + * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The + * name is automatically generated based on the config_id specified in + * CreateTransferConfigRequest along with project_id and region. If config_id is + * not provided, usually a uuid, even though it is not guaranteed or required, + * will be generated for config_id. * @param Google_Service_BigQueryDataTransfer_TransferConfig $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required list of fields to be updated in this * request. + * @opt_param string versionInfo Optional version info. If users want to find a + * very recent access token, that is, immediately after approving access, users + * have to set the version_info claim in the token request. To obtain the + * version_info, users must use the “none+gsession†response type. which be + * return a version_info back in the authorization response which be be put in a + * JWT claim in the token request. * @opt_param string authorizationCode Optional OAuth2 authorization code to use * with this transfer configuration. If it is provided, the transfer * configuration will be associated with the authorizing user. In order to diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigsRuns.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigsRuns.php index 8af929d8..bf4725df 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigsRuns.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsLocationsTransferConfigsRuns.php @@ -64,15 +64,15 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConf * `projects/{project_id}/transferConfigs/{config_id}`. * @param array $optParams Optional parameters. * + * @opt_param string pageToken Pagination token, which can be used to request a + * specific page of `ListTransferRunsRequest` list results. For multiple-page + * results, `ListTransferRunsResponse` outputs a `next_page` token, which can be + * used as the `page_token` value to request the next page of list results. * @opt_param string states When specified, only transfer runs with requested * states are returned. * @opt_param int pageSize Page size. The default page size is the maximum value * of 1000 results. * @opt_param string runAttempt Indicates how run attempts are to be pulled. - * @opt_param string pageToken Pagination token, which can be used to request a - * specific page of `ListTransferRunsRequest` list results. For multiple-page - * results, `ListTransferRunsResponse` outputs a `next_page` token, which can be - * used as the `page_token` value to request the next page of list results. * @return Google_Service_BigQueryDataTransfer_ListTransferRunsResponse */ public function listProjectsLocationsTransferConfigsRuns($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigs.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigs.php index fe4da2d2..60426c7d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigs.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigs.php @@ -36,6 +36,12 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs exten * @param Google_Service_BigQueryDataTransfer_TransferConfig $postBody * @param array $optParams Optional parameters. * + * @opt_param string versionInfo Optional version info. If users want to find a + * very recent access token, that is, immediately after approving access, users + * have to set the version_info claim in the token request. To obtain the + * version_info, users must use the “none+gsession†response type. which be + * return a version_info back in the authorization response which be be put in a + * JWT claim in the token request. * @opt_param string authorizationCode Optional OAuth2 authorization code to use * with this transfer configuration. This is required if new credentials are * needed, as indicated by `CheckValidCreds`. In order to obtain @@ -96,14 +102,14 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs exten * be returned: `projects/{project_id}`. * @param array $optParams Optional parameters. * - * @opt_param string dataSourceIds When specified, only configurations of - * requested data sources are returned. * @opt_param string pageToken Pagination token, which can be used to request a * specific page of `ListTransfersRequest` list results. For multiple-page * results, `ListTransfersResponse` outputs a `next_page` token, which can be * used as the `page_token` value to request the next page of list results. * @opt_param int pageSize Page size. The default page size is the maximum value * of 1000 results. + * @opt_param string dataSourceIds When specified, only configurations of + * requested data sources are returned. * @return Google_Service_BigQueryDataTransfer_ListTransferConfigsResponse */ public function listProjectsTransferConfigs($parent, $optParams = array()) @@ -117,14 +123,21 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs exten * are not updated. (transferConfigs.patch) * * @param string $name The resource name of the transfer config. Transfer config - * names have the form `projects/{project_id}/transferConfigs/{config_id}`. - * Where `config_id` is usually a uuid, even though it is not guaranteed or - * required. The name is ignored when creating a transfer config. + * names have the form of + * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The + * name is automatically generated based on the config_id specified in + * CreateTransferConfigRequest along with project_id and region. If config_id is + * not provided, usually a uuid, even though it is not guaranteed or required, + * will be generated for config_id. * @param Google_Service_BigQueryDataTransfer_TransferConfig $postBody * @param array $optParams Optional parameters. * - * @opt_param string updateMask Required list of fields to be updated in this - * request. + * @opt_param string versionInfo Optional version info. If users want to find a + * very recent access token, that is, immediately after approving access, users + * have to set the version_info claim in the token request. To obtain the + * version_info, users must use the “none+gsession†response type. which be + * return a version_info back in the authorization response which be be put in a + * JWT claim in the token request. * @opt_param string authorizationCode Optional OAuth2 authorization code to use * with this transfer configuration. If it is provided, the transfer * configuration will be associated with the authorizing user. In order to @@ -140,6 +153,8 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigs exten * authorization code should be returned in the title bar of the browser, with * the page text prompting the user to copy the code and paste it in the * application. + * @opt_param string updateMask Required list of fields to be updated in this + * request. * @return Google_Service_BigQueryDataTransfer_TransferConfig */ public function patch($name, Google_Service_BigQueryDataTransfer_TransferConfig $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRuns.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRuns.php index 2deda6cf..3f0fef15 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRuns.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRuns.php @@ -64,15 +64,15 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRuns e * `projects/{project_id}/transferConfigs/{config_id}`. * @param array $optParams Optional parameters. * - * @opt_param string states When specified, only transfer runs with requested - * states are returned. - * @opt_param int pageSize Page size. The default page size is the maximum value - * of 1000 results. * @opt_param string runAttempt Indicates how run attempts are to be pulled. * @opt_param string pageToken Pagination token, which can be used to request a * specific page of `ListTransferRunsRequest` list results. For multiple-page * results, `ListTransferRunsResponse` outputs a `next_page` token, which can be * used as the `page_token` value to request the next page of list results. + * @opt_param string states When specified, only transfer runs with requested + * states are returned. + * @opt_param int pageSize Page size. The default page size is the maximum value + * of 1000 results. * @return Google_Service_BigQueryDataTransfer_ListTransferRunsResponse */ public function listProjectsTransferConfigsRuns($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRunsTransferLogs.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRunsTransferLogs.php index 5a42bc74..fe19bb25 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRunsTransferLogs.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/Resource/ProjectsTransferConfigsRunsTransferLogs.php @@ -33,14 +33,14 @@ class Google_Service_BigQueryDataTransfer_Resource_ProjectsTransferConfigsRunsTr * `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Pagination token, which can be used to request a - * specific page of `ListTransferLogsRequest` list results. For multiple-page - * results, `ListTransferLogsResponse` outputs a `next_page` token, which can be - * used as the `page_token` value to request the next page of list results. * @opt_param int pageSize Page size. The default page size is the maximum value * of 1000 results. * @opt_param string messageTypes Message types to return. If not populated - * INFO, WARNING and ERROR messages are returned. + * @opt_param string pageToken Pagination token, which can be used to request a + * specific page of `ListTransferLogsRequest` list results. For multiple-page + * results, `ListTransferLogsResponse` outputs a `next_page` token, which can be + * used as the `page_token` value to request the next page of list results. * @return Google_Service_BigQueryDataTransfer_ListTransferLogsResponse */ public function listProjectsTransferConfigsRunsTransferLogs($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/ScheduleOptions.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/ScheduleOptions.php new file mode 100644 index 00000000..3c655782 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/ScheduleOptions.php @@ -0,0 +1,48 @@ +disableAutoScheduling = $disableAutoScheduling; + } + public function getDisableAutoScheduling() + { + return $this->disableAutoScheduling; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/TransferConfig.php b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/TransferConfig.php index cd3a9d0a..917126da 100644 --- a/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/TransferConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigQueryDataTransfer/TransferConfig.php @@ -27,6 +27,8 @@ class Google_Service_BigQueryDataTransfer_TransferConfig extends Google_Model public $nextRunTime; public $params; public $schedule; + protected $scheduleOptionsType = 'Google_Service_BigQueryDataTransfer_ScheduleOptions'; + protected $scheduleOptionsDataType = ''; public $state; public $updateTime; public $userId; @@ -111,6 +113,20 @@ class Google_Service_BigQueryDataTransfer_TransferConfig extends Google_Model { return $this->schedule; } + /** + * @param Google_Service_BigQueryDataTransfer_ScheduleOptions + */ + public function setScheduleOptions(Google_Service_BigQueryDataTransfer_ScheduleOptions $scheduleOptions) + { + $this->scheduleOptions = $scheduleOptions; + } + /** + * @return Google_Service_BigQueryDataTransfer_ScheduleOptions + */ + public function getScheduleOptions() + { + return $this->scheduleOptions; + } public function setState($state) { $this->state = $state; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery.php index e86220e9..86ce2c1e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery.php @@ -68,6 +68,7 @@ class Google_Service_Bigquery extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'bigquery/v2/'; + $this->batchPath = 'batch/bigquery/v2'; $this->version = 'v2'; $this->serviceName = 'bigquery'; @@ -299,6 +300,10 @@ class Google_Service_Bigquery extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'parentJobId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/BigQueryModelTraining.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/BigQueryModelTraining.php new file mode 100644 index 00000000..8a0b8bf7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/BigQueryModelTraining.php @@ -0,0 +1,39 @@ +currentIteration = $currentIteration; + } + public function getCurrentIteration() + { + return $this->currentIteration; + } + public function setExpectedTotalIterations($expectedTotalIterations) + { + $this->expectedTotalIterations = $expectedTotalIterations; + } + public function getExpectedTotalIterations() + { + return $this->expectedTotalIterations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php index ab1043cb..b6690317 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php @@ -23,6 +23,7 @@ class Google_Service_Bigquery_Dataset extends Google_Collection public $creationTime; protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; protected $datasetReferenceDataType = ''; + public $defaultPartitionExpirationMs; public $defaultTableExpirationMs; public $description; public $etag; @@ -70,6 +71,14 @@ class Google_Service_Bigquery_Dataset extends Google_Collection { return $this->datasetReference; } + public function setDefaultPartitionExpirationMs($defaultPartitionExpirationMs) + { + $this->defaultPartitionExpirationMs = $defaultPartitionExpirationMs; + } + public function getDefaultPartitionExpirationMs() + { + return $this->defaultPartitionExpirationMs; + } public function setDefaultTableExpirationMs($defaultTableExpirationMs) { $this->defaultTableExpirationMs = $defaultTableExpirationMs; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php index 126b55e8..7b3e428b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php @@ -19,6 +19,7 @@ class Google_Service_Bigquery_DatasetAccess extends Google_Model { public $domain; public $groupByEmail; + public $iamMember; public $role; public $specialGroup; public $userByEmail; @@ -41,6 +42,14 @@ class Google_Service_Bigquery_DatasetAccess extends Google_Model { return $this->groupByEmail; } + public function setIamMember($iamMember) + { + $this->iamMember = $iamMember; + } + public function getIamMember() + { + return $this->iamMember; + } public function setRole($role) { $this->role = $role; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/DestinationTableProperties.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/DestinationTableProperties.php index d768d206..aafc0ece 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/DestinationTableProperties.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/DestinationTableProperties.php @@ -19,6 +19,7 @@ class Google_Service_Bigquery_DestinationTableProperties extends Google_Model { public $description; public $friendlyName; + public $labels; public function setDescription($description) { @@ -36,4 +37,12 @@ class Google_Service_Bigquery_DestinationTableProperties extends Google_Model { return $this->friendlyName; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php index 72a27f6c..aed7262b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php @@ -26,6 +26,7 @@ class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collectio protected $csvOptionsDataType = ''; protected $googleSheetsOptionsType = 'Google_Service_Bigquery_GoogleSheetsOptions'; protected $googleSheetsOptionsDataType = ''; + public $hivePartitioningMode; public $ignoreUnknownValues; public $maxBadRecords; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; @@ -91,6 +92,14 @@ class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collectio { return $this->googleSheetsOptions; } + public function setHivePartitioningMode($hivePartitioningMode) + { + $this->hivePartitioningMode = $hivePartitioningMode; + } + public function getHivePartitioningMode() + { + return $this->hivePartitioningMode; + } public function setIgnoreUnknownValues($ignoreUnknownValues) { $this->ignoreUnknownValues = $ignoreUnknownValues; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/IterationResult.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/IterationResult.php new file mode 100644 index 00000000..3260e8a2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/IterationResult.php @@ -0,0 +1,66 @@ +durationMs = $durationMs; + } + public function getDurationMs() + { + return $this->durationMs; + } + public function setEvalLoss($evalLoss) + { + $this->evalLoss = $evalLoss; + } + public function getEvalLoss() + { + return $this->evalLoss; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setLearnRate($learnRate) + { + $this->learnRate = $learnRate; + } + public function getLearnRate() + { + return $this->learnRate; + } + public function setTrainingLoss($trainingLoss) + { + $this->trainingLoss = $trainingLoss; + } + public function getTrainingLoss() + { + return $this->trainingLoss; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php index 365660c0..3d625b3e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php @@ -23,6 +23,7 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract'; protected $extractDataType = ''; public $jobTimeoutMs; + public $jobType; public $labels; protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad'; protected $loadDataType = ''; @@ -73,6 +74,14 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model { return $this->jobTimeoutMs; } + public function setJobType($jobType) + { + $this->jobType = $jobType; + } + public function getJobType() + { + return $this->jobType; + } public function setLabels($labels) { $this->labels = $labels; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php index c95dfa16..6d4c3878 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php @@ -32,11 +32,14 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection protected $destinationTablePropertiesDataType = ''; public $encoding; public $fieldDelimiter; + public $hivePartitioningMode; public $ignoreUnknownValues; public $maxBadRecords; public $nullMarker; public $projectionFields; public $quote; + protected $rangePartitioningType = 'Google_Service_Bigquery_RangePartitioning'; + protected $rangePartitioningDataType = ''; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; public $schemaInline; @@ -47,6 +50,7 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection public $sourceUris; protected $timePartitioningType = 'Google_Service_Bigquery_TimePartitioning'; protected $timePartitioningDataType = ''; + public $useAvroLogicalTypes; public $writeDisposition; public function setAllowJaggedRows($allowJaggedRows) @@ -153,6 +157,14 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { return $this->fieldDelimiter; } + public function setHivePartitioningMode($hivePartitioningMode) + { + $this->hivePartitioningMode = $hivePartitioningMode; + } + public function getHivePartitioningMode() + { + return $this->hivePartitioningMode; + } public function setIgnoreUnknownValues($ignoreUnknownValues) { $this->ignoreUnknownValues = $ignoreUnknownValues; @@ -193,6 +205,20 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { return $this->quote; } + /** + * @param Google_Service_Bigquery_RangePartitioning + */ + public function setRangePartitioning(Google_Service_Bigquery_RangePartitioning $rangePartitioning) + { + $this->rangePartitioning = $rangePartitioning; + } + /** + * @return Google_Service_Bigquery_RangePartitioning + */ + public function getRangePartitioning() + { + return $this->rangePartitioning; + } /** * @param Google_Service_Bigquery_TableSchema */ @@ -269,6 +295,14 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { return $this->timePartitioning; } + public function setUseAvroLogicalTypes($useAvroLogicalTypes) + { + $this->useAvroLogicalTypes = $useAvroLogicalTypes; + } + public function getUseAvroLogicalTypes() + { + return $this->useAvroLogicalTypes; + } public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php index 3cc2bc0b..9d26ac8f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php @@ -37,6 +37,8 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection public $query; protected $queryParametersType = 'Google_Service_Bigquery_QueryParameter'; protected $queryParametersDataType = 'array'; + protected $rangePartitioningType = 'Google_Service_Bigquery_RangePartitioning'; + protected $rangePartitioningDataType = ''; public $schemaUpdateOptions; protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; protected $tableDefinitionsDataType = 'map'; @@ -190,6 +192,20 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection { return $this->queryParameters; } + /** + * @param Google_Service_Bigquery_RangePartitioning + */ + public function setRangePartitioning(Google_Service_Bigquery_RangePartitioning $rangePartitioning) + { + $this->rangePartitioning = $rangePartitioning; + } + /** + * @return Google_Service_Bigquery_RangePartitioning + */ + public function getRangePartitioning() + { + return $this->rangePartitioning; + } public function setSchemaUpdateOptions($schemaUpdateOptions) { $this->schemaUpdateOptions = $schemaUpdateOptions; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php index 5ecf2603..a39624ab 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php @@ -15,8 +15,9 @@ * the License. */ -class Google_Service_Bigquery_JobStatistics extends Google_Model +class Google_Service_Bigquery_JobStatistics extends Google_Collection { + protected $collection_key = 'reservationUsage'; public $completionRatio; public $creationTime; public $endTime; @@ -24,10 +25,16 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model protected $extractDataType = ''; protected $loadType = 'Google_Service_Bigquery_JobStatistics3'; protected $loadDataType = ''; + public $numChildJobs; + public $parentJobId; protected $queryType = 'Google_Service_Bigquery_JobStatistics2'; protected $queryDataType = ''; + public $quotaDeferments; + protected $reservationUsageType = 'Google_Service_Bigquery_JobStatisticsReservationUsage'; + protected $reservationUsageDataType = 'array'; public $startTime; public $totalBytesProcessed; + public $totalSlotMs; public function setCompletionRatio($completionRatio) { @@ -81,6 +88,22 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model { return $this->load; } + public function setNumChildJobs($numChildJobs) + { + $this->numChildJobs = $numChildJobs; + } + public function getNumChildJobs() + { + return $this->numChildJobs; + } + public function setParentJobId($parentJobId) + { + $this->parentJobId = $parentJobId; + } + public function getParentJobId() + { + return $this->parentJobId; + } /** * @param Google_Service_Bigquery_JobStatistics2 */ @@ -95,6 +118,28 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model { return $this->query; } + public function setQuotaDeferments($quotaDeferments) + { + $this->quotaDeferments = $quotaDeferments; + } + public function getQuotaDeferments() + { + return $this->quotaDeferments; + } + /** + * @param Google_Service_Bigquery_JobStatisticsReservationUsage + */ + public function setReservationUsage($reservationUsage) + { + $this->reservationUsage = $reservationUsage; + } + /** + * @return Google_Service_Bigquery_JobStatisticsReservationUsage + */ + public function getReservationUsage() + { + return $this->reservationUsage; + } public function setStartTime($startTime) { $this->startTime = $startTime; @@ -111,4 +156,12 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model { return $this->totalBytesProcessed; } + public function setTotalSlotMs($totalSlotMs) + { + $this->totalSlotMs = $totalSlotMs; + } + public function getTotalSlotMs() + { + return $this->totalSlotMs; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php index a3caf833..d7bd1bd2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php @@ -24,11 +24,17 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Collection protected $ddlTargetTableType = 'Google_Service_Bigquery_TableReference'; protected $ddlTargetTableDataType = ''; public $estimatedBytesProcessed; + protected $modelTrainingType = 'Google_Service_Bigquery_BigQueryModelTraining'; + protected $modelTrainingDataType = ''; + public $modelTrainingCurrentIteration; + public $modelTrainingExpectedTotalIteration; public $numDmlAffectedRows; protected $queryPlanType = 'Google_Service_Bigquery_ExplainQueryStage'; protected $queryPlanDataType = 'array'; protected $referencedTablesType = 'Google_Service_Bigquery_TableReference'; protected $referencedTablesDataType = 'array'; + protected $reservationUsageType = 'Google_Service_Bigquery_JobStatistics2ReservationUsage'; + protected $reservationUsageDataType = 'array'; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; public $statementType; @@ -36,6 +42,7 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Collection protected $timelineDataType = 'array'; public $totalBytesBilled; public $totalBytesProcessed; + public $totalBytesProcessedAccuracy; public $totalPartitionsProcessed; public $totalSlotMs; protected $undeclaredQueryParametersType = 'Google_Service_Bigquery_QueryParameter'; @@ -87,6 +94,36 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Collection { return $this->estimatedBytesProcessed; } + /** + * @param Google_Service_Bigquery_BigQueryModelTraining + */ + public function setModelTraining(Google_Service_Bigquery_BigQueryModelTraining $modelTraining) + { + $this->modelTraining = $modelTraining; + } + /** + * @return Google_Service_Bigquery_BigQueryModelTraining + */ + public function getModelTraining() + { + return $this->modelTraining; + } + public function setModelTrainingCurrentIteration($modelTrainingCurrentIteration) + { + $this->modelTrainingCurrentIteration = $modelTrainingCurrentIteration; + } + public function getModelTrainingCurrentIteration() + { + return $this->modelTrainingCurrentIteration; + } + public function setModelTrainingExpectedTotalIteration($modelTrainingExpectedTotalIteration) + { + $this->modelTrainingExpectedTotalIteration = $modelTrainingExpectedTotalIteration; + } + public function getModelTrainingExpectedTotalIteration() + { + return $this->modelTrainingExpectedTotalIteration; + } public function setNumDmlAffectedRows($numDmlAffectedRows) { $this->numDmlAffectedRows = $numDmlAffectedRows; @@ -123,6 +160,20 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Collection { return $this->referencedTables; } + /** + * @param Google_Service_Bigquery_JobStatistics2ReservationUsage + */ + public function setReservationUsage($reservationUsage) + { + $this->reservationUsage = $reservationUsage; + } + /** + * @return Google_Service_Bigquery_JobStatistics2ReservationUsage + */ + public function getReservationUsage() + { + return $this->reservationUsage; + } /** * @param Google_Service_Bigquery_TableSchema */ @@ -175,6 +226,14 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Collection { return $this->totalBytesProcessed; } + public function setTotalBytesProcessedAccuracy($totalBytesProcessedAccuracy) + { + $this->totalBytesProcessedAccuracy = $totalBytesProcessedAccuracy; + } + public function getTotalBytesProcessedAccuracy() + { + return $this->totalBytesProcessedAccuracy; + } public function setTotalPartitionsProcessed($totalPartitionsProcessed) { $this->totalPartitionsProcessed = $totalPartitionsProcessed; diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2ReservationUsage.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2ReservationUsage.php new file mode 100644 index 00000000..7f380550 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2ReservationUsage.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setSlotMs($slotMs) + { + $this->slotMs = $slotMs; + } + public function getSlotMs() + { + return $this->slotMs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php index 2af22580..af62737c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php @@ -19,6 +19,7 @@ class Google_Service_Bigquery_JobStatistics4 extends Google_Collection { protected $collection_key = 'destinationUriFileCounts'; public $destinationUriFileCounts; + public $inputBytes; public function setDestinationUriFileCounts($destinationUriFileCounts) { @@ -28,4 +29,12 @@ class Google_Service_Bigquery_JobStatistics4 extends Google_Collection { return $this->destinationUriFileCounts; } + public function setInputBytes($inputBytes) + { + $this->inputBytes = $inputBytes; + } + public function getInputBytes() + { + return $this->inputBytes; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatisticsReservationUsage.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatisticsReservationUsage.php new file mode 100644 index 00000000..c6cb8661 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/JobStatisticsReservationUsage.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setSlotMs($slotMs) + { + $this->slotMs = $slotMs; + } + public function getSlotMs() + { + return $this->slotMs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/MaterializedViewDefinition.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/MaterializedViewDefinition.php new file mode 100644 index 00000000..e27d0708 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/MaterializedViewDefinition.php @@ -0,0 +1,39 @@ +lastRefreshTime = $lastRefreshTime; + } + public function getLastRefreshTime() + { + return $this->lastRefreshTime; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinition.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinition.php new file mode 100644 index 00000000..5080e7c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinition.php @@ -0,0 +1,54 @@ +modelOptions = $modelOptions; + } + /** + * @return Google_Service_Bigquery_ModelDefinitionModelOptions + */ + public function getModelOptions() + { + return $this->modelOptions; + } + /** + * @param Google_Service_Bigquery_TrainingRun + */ + public function setTrainingRuns($trainingRuns) + { + $this->trainingRuns = $trainingRuns; + } + /** + * @return Google_Service_Bigquery_TrainingRun + */ + public function getTrainingRuns() + { + return $this->trainingRuns; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinitionModelOptions.php similarity index 51% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php rename to vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinitionModelOptions.php index a1d82cf9..beb408ca 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/ModelDefinitionModelOptions.php @@ -15,34 +15,35 @@ * the License. */ -class Google_Service_ShoppingContent_ProductAspect extends Google_Model +class Google_Service_Bigquery_ModelDefinitionModelOptions extends Google_Collection { - public $aspectName; - public $destinationName; - public $intention; + protected $collection_key = 'labels'; + public $labels; + public $lossType; + public $modelType; - public function setAspectName($aspectName) + public function setLabels($labels) { - $this->aspectName = $aspectName; + $this->labels = $labels; } - public function getAspectName() + public function getLabels() { - return $this->aspectName; + return $this->labels; } - public function setDestinationName($destinationName) + public function setLossType($lossType) { - $this->destinationName = $destinationName; + $this->lossType = $lossType; } - public function getDestinationName() + public function getLossType() { - return $this->destinationName; + return $this->lossType; } - public function setIntention($intention) + public function setModelType($modelType) { - $this->intention = $intention; + $this->modelType = $modelType; } - public function getIntention() + public function getModelType() { - return $this->intention; + return $this->modelType; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsConfig.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioning.php similarity index 57% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsConfig.php rename to vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioning.php index ee5fc956..99944817 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioning.php @@ -15,23 +15,32 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsConfig extends Google_Model +class Google_Service_Bigquery_RangePartitioning extends Google_Model { - protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; - protected $fieldDataType = ''; + public $field; + protected $rangeType = 'Google_Service_Bigquery_RangePartitioningRange'; + protected $rangeDataType = ''; - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function setField(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $field) + public function setField($field) { $this->field = $field; } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ public function getField() { return $this->field; } + /** + * @param Google_Service_Bigquery_RangePartitioningRange + */ + public function setRange(Google_Service_Bigquery_RangePartitioningRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Bigquery_RangePartitioningRange + */ + public function getRange() + { + return $this->range; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioningRange.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioningRange.php new file mode 100644 index 00000000..5097df52 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/RangePartitioningRange.php @@ -0,0 +1,48 @@ +end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setInterval($interval) + { + $this->interval = $interval; + } + public function getInterval() + { + return $this->interval; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php index 0771c23e..a4583ab9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php @@ -34,8 +34,9 @@ class Google_Service_Bigquery_Resource_Jobs extends Google_Service_Resource * @param string $jobId [Required] Job ID of the job to cancel * @param array $optParams Optional parameters. * - * @opt_param string location [Experimental] The geographic location of the job. - * Required except for US and EU. + * @opt_param string location The geographic location of the job. Required + * except for US and EU. See details at + * https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * @return Google_Service_Bigquery_JobCancelResponse */ public function cancel($projectId, $jobId, $optParams = array()) @@ -53,8 +54,9 @@ class Google_Service_Bigquery_Resource_Jobs extends Google_Service_Resource * @param string $jobId [Required] Job ID of the requested job * @param array $optParams Optional parameters. * - * @opt_param string location [Experimental] The geographic location of the job. - * Required except for US and EU. + * @opt_param string location The geographic location of the job. Required + * except for US and EU. See details at + * https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * @return Google_Service_Bigquery_Job */ public function get($projectId, $jobId, $optParams = array()) @@ -70,8 +72,9 @@ class Google_Service_Bigquery_Resource_Jobs extends Google_Service_Resource * @param string $jobId [Required] Job ID of the query job * @param array $optParams Optional parameters. * - * @opt_param string location [Experimental] The geographic location where the - * job should run. Required except for US and EU. + * @opt_param string location The geographic location where the job should run. + * Required except for US and EU. See details at + * https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * @opt_param string maxResults Maximum number of results to read * @opt_param string pageToken Page token, returned by a previous call, to * request the next page of results @@ -125,6 +128,8 @@ class Google_Service_Bigquery_Resource_Jobs extends Google_Service_Resource * this timestamp are returned * @opt_param string pageToken Page token, returned by a previous call, to * request the next page of results + * @opt_param string parentJobId If set, retrieves only jobs whose parent is + * this job. Otherwise, retrieves only jobs which have no parent. * @opt_param string projection Restrict information returned to a set of * selected fields * @opt_param string stateFilter Filter for job state diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Table.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Table.php index ca561288..23a86882 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/Table.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/Table.php @@ -33,9 +33,17 @@ class Google_Service_Bigquery_Table extends Google_Model public $labels; public $lastModifiedTime; public $location; + protected $materializedViewType = 'Google_Service_Bigquery_MaterializedViewDefinition'; + protected $materializedViewDataType = ''; + protected $modelType = 'Google_Service_Bigquery_ModelDefinition'; + protected $modelDataType = ''; public $numBytes; public $numLongTermBytes; + public $numPhysicalBytes; public $numRows; + protected $rangePartitioningType = 'Google_Service_Bigquery_RangePartitioning'; + protected $rangePartitioningDataType = ''; + public $requirePartitionFilter; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; public $selfLink; @@ -171,6 +179,34 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->location; } + /** + * @param Google_Service_Bigquery_MaterializedViewDefinition + */ + public function setMaterializedView(Google_Service_Bigquery_MaterializedViewDefinition $materializedView) + { + $this->materializedView = $materializedView; + } + /** + * @return Google_Service_Bigquery_MaterializedViewDefinition + */ + public function getMaterializedView() + { + return $this->materializedView; + } + /** + * @param Google_Service_Bigquery_ModelDefinition + */ + public function setModel(Google_Service_Bigquery_ModelDefinition $model) + { + $this->model = $model; + } + /** + * @return Google_Service_Bigquery_ModelDefinition + */ + public function getModel() + { + return $this->model; + } public function setNumBytes($numBytes) { $this->numBytes = $numBytes; @@ -187,6 +223,14 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->numLongTermBytes; } + public function setNumPhysicalBytes($numPhysicalBytes) + { + $this->numPhysicalBytes = $numPhysicalBytes; + } + public function getNumPhysicalBytes() + { + return $this->numPhysicalBytes; + } public function setNumRows($numRows) { $this->numRows = $numRows; @@ -195,6 +239,28 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->numRows; } + /** + * @param Google_Service_Bigquery_RangePartitioning + */ + public function setRangePartitioning(Google_Service_Bigquery_RangePartitioning $rangePartitioning) + { + $this->rangePartitioning = $rangePartitioning; + } + /** + * @return Google_Service_Bigquery_RangePartitioning + */ + public function getRangePartitioning() + { + return $this->rangePartitioning; + } + public function setRequirePartitionFilter($requirePartitionFilter) + { + $this->requirePartitionFilter = $requirePartitionFilter; + } + public function getRequirePartitionFilter() + { + return $this->requirePartitionFilter; + } /** * @param Google_Service_Bigquery_TableSchema */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php index 11fdc30b..1017ed3a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php @@ -18,6 +18,8 @@ class Google_Service_Bigquery_TableFieldSchema extends Google_Collection { protected $collection_key = 'fields'; + protected $categoriesType = 'Google_Service_Bigquery_TableFieldSchemaCategories'; + protected $categoriesDataType = ''; public $description; protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema'; protected $fieldsDataType = 'array'; @@ -25,6 +27,20 @@ class Google_Service_Bigquery_TableFieldSchema extends Google_Collection public $name; public $type; + /** + * @param Google_Service_Bigquery_TableFieldSchemaCategories + */ + public function setCategories(Google_Service_Bigquery_TableFieldSchemaCategories $categories) + { + $this->categories = $categories; + } + /** + * @return Google_Service_Bigquery_TableFieldSchemaCategories + */ + public function getCategories() + { + return $this->categories; + } public function setDescription($description) { $this->description = $description; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1WordList.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchemaCategories.php similarity index 72% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1WordList.php rename to vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchemaCategories.php index b88e7910..82521061 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1WordList.php +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchemaCategories.php @@ -15,17 +15,17 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1WordList extends Google_Collection +class Google_Service_Bigquery_TableFieldSchemaCategories extends Google_Collection { - protected $collection_key = 'words'; - public $words; + protected $collection_key = 'names'; + public $names; - public function setWords($words) + public function setNames($names) { - $this->words = $words; + $this->names = $names; } - public function getWords() + public function getNames() { - return $this->words; + return $this->names; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRun.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRun.php new file mode 100644 index 00000000..ffac483c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRun.php @@ -0,0 +1,72 @@ +iterationResults = $iterationResults; + } + /** + * @return Google_Service_Bigquery_IterationResult + */ + public function getIterationResults() + { + return $this->iterationResults; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + /** + * @param Google_Service_Bigquery_TrainingRunTrainingOptions + */ + public function setTrainingOptions(Google_Service_Bigquery_TrainingRunTrainingOptions $trainingOptions) + { + $this->trainingOptions = $trainingOptions; + } + /** + * @return Google_Service_Bigquery_TrainingRunTrainingOptions + */ + public function getTrainingOptions() + { + return $this->trainingOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRunTrainingOptions.php b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRunTrainingOptions.php new file mode 100644 index 00000000..5aa02379 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Bigquery/TrainingRunTrainingOptions.php @@ -0,0 +1,102 @@ +earlyStop = $earlyStop; + } + public function getEarlyStop() + { + return $this->earlyStop; + } + public function setL1Reg($l1Reg) + { + $this->l1Reg = $l1Reg; + } + public function getL1Reg() + { + return $this->l1Reg; + } + public function setL2Reg($l2Reg) + { + $this->l2Reg = $l2Reg; + } + public function getL2Reg() + { + return $this->l2Reg; + } + public function setLearnRate($learnRate) + { + $this->learnRate = $learnRate; + } + public function getLearnRate() + { + return $this->learnRate; + } + public function setLearnRateStrategy($learnRateStrategy) + { + $this->learnRateStrategy = $learnRateStrategy; + } + public function getLearnRateStrategy() + { + return $this->learnRateStrategy; + } + public function setLineSearchInitLearnRate($lineSearchInitLearnRate) + { + $this->lineSearchInitLearnRate = $lineSearchInitLearnRate; + } + public function getLineSearchInitLearnRate() + { + return $this->lineSearchInitLearnRate; + } + public function setMaxIteration($maxIteration) + { + $this->maxIteration = $maxIteration; + } + public function getMaxIteration() + { + return $this->maxIteration; + } + public function setMinRelProgress($minRelProgress) + { + $this->minRelProgress = $minRelProgress; + } + public function getMinRelProgress() + { + return $this->minRelProgress; + } + public function setWarmStart($warmStart) + { + $this->warmStart = $warmStart; + } + public function getWarmStart() + { + return $this->warmStart; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin.php new file mode 100644 index 00000000..8e4153f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin.php @@ -0,0 +1,525 @@ + +
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_BigtableAdmin extends Google_Service +{ + /** Administer your Cloud Bigtable tables and clusters. */ + const BIGTABLE_ADMIN = + "https://www.googleapis.com/auth/bigtable.admin"; + /** Administer your Cloud Bigtable clusters. */ + const BIGTABLE_ADMIN_CLUSTER = + "https://www.googleapis.com/auth/bigtable.admin.cluster"; + /** Administer your Cloud Bigtable clusters. */ + const BIGTABLE_ADMIN_INSTANCE = + "https://www.googleapis.com/auth/bigtable.admin.instance"; + /** Administer your Cloud Bigtable tables. */ + const BIGTABLE_ADMIN_TABLE = + "https://www.googleapis.com/auth/bigtable.admin.table"; + /** Administer your Cloud Bigtable tables and clusters. */ + const CLOUD_BIGTABLE_ADMIN = + "https://www.googleapis.com/auth/cloud-bigtable.admin"; + /** Administer your Cloud Bigtable clusters. */ + const CLOUD_BIGTABLE_ADMIN_CLUSTER = + "https://www.googleapis.com/auth/cloud-bigtable.admin.cluster"; + /** Administer your Cloud Bigtable tables. */ + const CLOUD_BIGTABLE_ADMIN_TABLE = + "https://www.googleapis.com/auth/cloud-bigtable.admin.table"; + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; + + public $operations; + public $operations_projects_operations; + public $projects_instances; + public $projects_instances_appProfiles; + public $projects_instances_clusters; + public $projects_instances_tables; + + /** + * Constructs the internal representation of the BigtableAdmin service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://bigtableadmin.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v2'; + $this->serviceName = 'bigtableadmin'; + + $this->operations = new Google_Service_BigtableAdmin_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v2/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations_projects_operations = new Google_Service_BigtableAdmin_Resource_OperationsProjectsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_instances = new Google_Service_BigtableAdmin_Resource_ProjectsInstances( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v2/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'partialUpdateInstance' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v2/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v2/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_instances_appProfiles = new Google_Service_BigtableAdmin_Resource_ProjectsInstancesAppProfiles( + $this, + $this->serviceName, + 'appProfiles', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/appProfiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'appProfileId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ignoreWarnings' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreWarnings' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/appProfiles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreWarnings' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_instances_clusters = new Google_Service_BigtableAdmin_Resource_ProjectsInstancesClusters( + $this, + $this->serviceName, + 'clusters', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/clusters', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/clusters', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_instances_tables = new Google_Service_BigtableAdmin_Resource_ProjectsInstancesTables( + $this, + $this->serviceName, + 'tables', + array( + 'methods' => array( + 'checkConsistency' => array( + 'path' => 'v2/{+name}:checkConsistency', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v2/{+parent}/tables', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'dropRowRange' => array( + 'path' => 'v2/{+name}:dropRowRange', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generateConsistencyToken' => array( + 'path' => 'v2/{+name}:generateConsistencyToken', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/tables', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'modifyColumnFamilies' => array( + 'path' => 'v2/{+name}:modifyColumnFamilies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AppProfile.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AppProfile.php new file mode 100644 index 00000000..a0171d32 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AppProfile.php @@ -0,0 +1,80 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_BigtableAdmin_MultiClusterRoutingUseAny + */ + public function setMultiClusterRoutingUseAny(Google_Service_BigtableAdmin_MultiClusterRoutingUseAny $multiClusterRoutingUseAny) + { + $this->multiClusterRoutingUseAny = $multiClusterRoutingUseAny; + } + /** + * @return Google_Service_BigtableAdmin_MultiClusterRoutingUseAny + */ + public function getMultiClusterRoutingUseAny() + { + return $this->multiClusterRoutingUseAny; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_BigtableAdmin_SingleClusterRouting + */ + public function setSingleClusterRouting(Google_Service_BigtableAdmin_SingleClusterRouting $singleClusterRouting) + { + $this->singleClusterRouting = $singleClusterRouting; + } + /** + * @return Google_Service_BigtableAdmin_SingleClusterRouting + */ + public function getSingleClusterRouting() + { + return $this->singleClusterRouting; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditConfig.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditConfig.php new file mode 100644 index 00000000..42660f58 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditConfig.php @@ -0,0 +1,47 @@ +auditLogConfigs = $auditLogConfigs; + } + /** + * @return Google_Service_BigtableAdmin_AuditLogConfig + */ + public function getAuditLogConfigs() + { + return $this->auditLogConfigs; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditLogConfig.php new file mode 100644 index 00000000..fc12ae90 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/AuditLogConfig.php @@ -0,0 +1,40 @@ +exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setLogType($logType) + { + $this->logType = $logType; + } + public function getLogType() + { + return $this->logType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/BigtableadminEmpty.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/BigtableadminEmpty.php new file mode 100644 index 00000000..442fe136 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/BigtableadminEmpty.php @@ -0,0 +1,20 @@ +condition = $condition; + } + /** + * @return Google_Service_BigtableAdmin_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyRequest.php new file mode 100644 index 00000000..5383aad6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyRequest.php @@ -0,0 +1,30 @@ +consistencyToken = $consistencyToken; + } + public function getConsistencyToken() + { + return $this->consistencyToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyResponse.php new file mode 100644 index 00000000..b7dfdc34 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CheckConsistencyResponse.php @@ -0,0 +1,30 @@ +consistent = $consistent; + } + public function getConsistent() + { + return $this->consistent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Cluster.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Cluster.php new file mode 100644 index 00000000..536f7f1a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Cluster.php @@ -0,0 +1,66 @@ +defaultStorageType = $defaultStorageType; + } + public function getDefaultStorageType() + { + return $this->defaultStorageType; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setServeNodes($serveNodes) + { + $this->serveNodes = $serveNodes; + } + public function getServeNodes() + { + return $this->serveNodes; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ClusterState.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ClusterState.php new file mode 100644 index 00000000..c85474d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ClusterState.php @@ -0,0 +1,30 @@ +replicationState = $replicationState; + } + public function getReplicationState() + { + return $this->replicationState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ColumnFamily.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ColumnFamily.php new file mode 100644 index 00000000..cbb6a55a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ColumnFamily.php @@ -0,0 +1,37 @@ +gcRule = $gcRule; + } + /** + * @return Google_Service_BigtableAdmin_GcRule + */ + public function getGcRule() + { + return $this->gcRule; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterMetadata.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterMetadata.php new file mode 100644 index 00000000..ce5b1afd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterMetadata.php @@ -0,0 +1,71 @@ +finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + /** + * @param Google_Service_BigtableAdmin_CreateClusterRequest + */ + public function setOriginalRequest(Google_Service_BigtableAdmin_CreateClusterRequest $originalRequest) + { + $this->originalRequest = $originalRequest; + } + /** + * @return Google_Service_BigtableAdmin_CreateClusterRequest + */ + public function getOriginalRequest() + { + return $this->originalRequest; + } + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + } + public function getRequestTime() + { + return $this->requestTime; + } + /** + * @param Google_Service_BigtableAdmin_TableProgress + */ + public function setTables($tables) + { + $this->tables = $tables; + } + /** + * @return Google_Service_BigtableAdmin_TableProgress + */ + public function getTables() + { + return $this->tables; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterRequest.php new file mode 100644 index 00000000..5e44e7d7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateClusterRequest.php @@ -0,0 +1,55 @@ +cluster = $cluster; + } + /** + * @return Google_Service_BigtableAdmin_Cluster + */ + public function getCluster() + { + return $this->cluster; + } + public function setClusterId($clusterId) + { + $this->clusterId = $clusterId; + } + public function getClusterId() + { + return $this->clusterId; + } + public function setParent($parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceMetadata.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceMetadata.php new file mode 100644 index 00000000..caf8823a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceMetadata.php @@ -0,0 +1,55 @@ +finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + /** + * @param Google_Service_BigtableAdmin_CreateInstanceRequest + */ + public function setOriginalRequest(Google_Service_BigtableAdmin_CreateInstanceRequest $originalRequest) + { + $this->originalRequest = $originalRequest; + } + /** + * @return Google_Service_BigtableAdmin_CreateInstanceRequest + */ + public function getOriginalRequest() + { + return $this->originalRequest; + } + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + } + public function getRequestTime() + { + return $this->requestTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceRequest.php new file mode 100644 index 00000000..98aabb4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateInstanceRequest.php @@ -0,0 +1,71 @@ +clusters = $clusters; + } + /** + * @return Google_Service_BigtableAdmin_Cluster + */ + public function getClusters() + { + return $this->clusters; + } + /** + * @param Google_Service_BigtableAdmin_Instance + */ + public function setInstance(Google_Service_BigtableAdmin_Instance $instance) + { + $this->instance = $instance; + } + /** + * @return Google_Service_BigtableAdmin_Instance + */ + public function getInstance() + { + return $this->instance; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setParent($parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateTableRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateTableRequest.php new file mode 100644 index 00000000..980f440e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/CreateTableRequest.php @@ -0,0 +1,63 @@ +initialSplits = $initialSplits; + } + /** + * @return Google_Service_BigtableAdmin_Split + */ + public function getInitialSplits() + { + return $this->initialSplits; + } + /** + * @param Google_Service_BigtableAdmin_Table + */ + public function setTable(Google_Service_BigtableAdmin_Table $table) + { + $this->table = $table; + } + /** + * @return Google_Service_BigtableAdmin_Table + */ + public function getTable() + { + return $this->table; + } + public function setTableId($tableId) + { + $this->tableId = $tableId; + } + public function getTableId() + { + return $this->tableId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/DropRowRangeRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/DropRowRangeRequest.php new file mode 100644 index 00000000..87b8b5e5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/DropRowRangeRequest.php @@ -0,0 +1,39 @@ +deleteAllDataFromTable = $deleteAllDataFromTable; + } + public function getDeleteAllDataFromTable() + { + return $this->deleteAllDataFromTable; + } + public function setRowKeyPrefix($rowKeyPrefix) + { + $this->rowKeyPrefix = $rowKeyPrefix; + } + public function getRowKeyPrefix() + { + return $this->rowKeyPrefix; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Expr.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Expr.php new file mode 100644 index 00000000..994a25f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GcRule.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GcRule.php new file mode 100644 index 00000000..21b76859 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GcRule.php @@ -0,0 +1,71 @@ +intersection = $intersection; + } + /** + * @return Google_Service_BigtableAdmin_Intersection + */ + public function getIntersection() + { + return $this->intersection; + } + public function setMaxAge($maxAge) + { + $this->maxAge = $maxAge; + } + public function getMaxAge() + { + return $this->maxAge; + } + public function setMaxNumVersions($maxNumVersions) + { + $this->maxNumVersions = $maxNumVersions; + } + public function getMaxNumVersions() + { + return $this->maxNumVersions; + } + /** + * @param Google_Service_BigtableAdmin_Union + */ + public function setUnion(Google_Service_BigtableAdmin_Union $union) + { + $this->union = $union; + } + /** + * @return Google_Service_BigtableAdmin_Union + */ + public function getUnion() + { + return $this->union; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GenerateConsistencyTokenRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GenerateConsistencyTokenRequest.php new file mode 100644 index 00000000..8310914a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GenerateConsistencyTokenRequest.php @@ -0,0 +1,20 @@ +consistencyToken = $consistencyToken; + } + public function getConsistencyToken() + { + return $this->consistencyToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GetIamPolicyRequest.php new file mode 100644 index 00000000..86500e98 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/GetIamPolicyRequest.php @@ -0,0 +1,20 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Intersection.php similarity index 58% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php rename to vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Intersection.php index 083286c8..7e1c94a8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Intersection.php @@ -15,24 +15,24 @@ * the License. */ -class Google_Service_Replicapool_OperationError extends Google_Collection +class Google_Service_BigtableAdmin_Intersection extends Google_Collection { - protected $collection_key = 'errors'; - protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors'; - protected $errorsDataType = 'array'; + protected $collection_key = 'rules'; + protected $rulesType = 'Google_Service_BigtableAdmin_GcRule'; + protected $rulesDataType = 'array'; /** - * @param Google_Service_Replicapool_OperationErrorErrors + * @param Google_Service_BigtableAdmin_GcRule */ - public function setErrors($errors) + public function setRules($rules) { - $this->errors = $errors; + $this->rules = $rules; } /** - * @return Google_Service_Replicapool_OperationErrorErrors + * @return Google_Service_BigtableAdmin_GcRule */ - public function getErrors() + public function getRules() { - return $this->errors; + return $this->rules; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListAppProfilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListAppProfilesResponse.php new file mode 100644 index 00000000..7d9508c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListAppProfilesResponse.php @@ -0,0 +1,56 @@ +appProfiles = $appProfiles; + } + /** + * @return Google_Service_BigtableAdmin_AppProfile + */ + public function getAppProfiles() + { + return $this->appProfiles; + } + public function setFailedLocations($failedLocations) + { + $this->failedLocations = $failedLocations; + } + public function getFailedLocations() + { + return $this->failedLocations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListClustersResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListClustersResponse.php new file mode 100644 index 00000000..034e6bf7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListClustersResponse.php @@ -0,0 +1,56 @@ +clusters = $clusters; + } + /** + * @return Google_Service_BigtableAdmin_Cluster + */ + public function getClusters() + { + return $this->clusters; + } + public function setFailedLocations($failedLocations) + { + $this->failedLocations = $failedLocations; + } + public function getFailedLocations() + { + return $this->failedLocations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListInstancesResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListInstancesResponse.php new file mode 100644 index 00000000..13947af5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListInstancesResponse.php @@ -0,0 +1,56 @@ +failedLocations = $failedLocations; + } + public function getFailedLocations() + { + return $this->failedLocations; + } + /** + * @param Google_Service_BigtableAdmin_Instance + */ + public function setInstances($instances) + { + $this->instances = $instances; + } + /** + * @return Google_Service_BigtableAdmin_Instance + */ + public function getInstances() + { + return $this->instances; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListOperationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListOperationsResponse.php new file mode 100644 index 00000000..ded2ab25 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListOperationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_BigtableAdmin_Operation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_BigtableAdmin_Operation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListTablesResponse.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListTablesResponse.php new file mode 100644 index 00000000..1aad5dac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ListTablesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_BigtableAdmin_Table + */ + public function setTables($tables) + { + $this->tables = $tables; + } + /** + * @return Google_Service_BigtableAdmin_Table + */ + public function getTables() + { + return $this->tables; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Modification.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Modification.php new file mode 100644 index 00000000..e41e31b3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Modification.php @@ -0,0 +1,71 @@ +create = $create; + } + /** + * @return Google_Service_BigtableAdmin_ColumnFamily + */ + public function getCreate() + { + return $this->create; + } + public function setDrop($drop) + { + $this->drop = $drop; + } + public function getDrop() + { + return $this->drop; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_BigtableAdmin_ColumnFamily + */ + public function setUpdate(Google_Service_BigtableAdmin_ColumnFamily $update) + { + $this->update = $update; + } + /** + * @return Google_Service_BigtableAdmin_ColumnFamily + */ + public function getUpdate() + { + return $this->update; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ModifyColumnFamiliesRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ModifyColumnFamiliesRequest.php new file mode 100644 index 00000000..b2f989fe --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/ModifyColumnFamiliesRequest.php @@ -0,0 +1,38 @@ +modifications = $modifications; + } + /** + * @return Google_Service_BigtableAdmin_Modification + */ + public function getModifications() + { + return $this->modifications; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/MultiClusterRoutingUseAny.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/MultiClusterRoutingUseAny.php new file mode 100644 index 00000000..8be9464e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/MultiClusterRoutingUseAny.php @@ -0,0 +1,20 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_BigtableAdmin_Status + */ + public function setError(Google_Service_BigtableAdmin_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_BigtableAdmin_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/PartialUpdateInstanceRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/PartialUpdateInstanceRequest.php new file mode 100644 index 00000000..08efe7fc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/PartialUpdateInstanceRequest.php @@ -0,0 +1,46 @@ +instance = $instance; + } + /** + * @return Google_Service_BigtableAdmin_Instance + */ + public function getInstance() + { + return $this->instance; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Policy.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Policy.php new file mode 100644 index 00000000..0472d162 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Policy.php @@ -0,0 +1,72 @@ +auditConfigs = $auditConfigs; + } + /** + * @return Google_Service_BigtableAdmin_AuditConfig + */ + public function getAuditConfigs() + { + return $this->auditConfigs; + } + /** + * @param Google_Service_BigtableAdmin_Binding + */ + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + /** + * @return Google_Service_BigtableAdmin_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Operations.php new file mode 100644 index 00000000..34eae9d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Operations.php @@ -0,0 +1,80 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $operations = $bigtableadminService->operations; + * + */ +class Google_Service_BigtableAdmin_Resource_Operations extends Google_Service_Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function cancel($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BigtableAdmin_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjects.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjects.php new file mode 100644 index 00000000..ec53117b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjects.php @@ -0,0 +1,28 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $projects = $bigtableadminService->projects; + * + */ +class Google_Service_BigtableAdmin_Resource_OperationsProjects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjectsOperations.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjectsOperations.php new file mode 100644 index 00000000..ec9edbad --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/OperationsProjectsOperations.php @@ -0,0 +1,55 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $operations = $bigtableadminService->operations; + * + */ +class Google_Service_BigtableAdmin_Resource_OperationsProjectsOperations extends Google_Service_Resource +{ + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listOperationsProjectsOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_BigtableAdmin_ListOperationsResponse + */ + public function listOperationsProjectsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BigtableAdmin_ListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Projects.php new file mode 100644 index 00000000..5292c7b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $projects = $bigtableadminService->projects; + * + */ +class Google_Service_BigtableAdmin_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstances.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstances.php new file mode 100644 index 00000000..d7aaba46 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstances.php @@ -0,0 +1,177 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $instances = $bigtableadminService->instances; + * + */ +class Google_Service_BigtableAdmin_Resource_ProjectsInstances extends Google_Service_Resource +{ + /** + * Create an instance within a project. (instances.create) + * + * @param string $parent The unique name of the project in which to create the + * new instance. Values are of the form `projects/`. + * @param Google_Service_BigtableAdmin_CreateInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Operation + */ + public function create($parent, Google_Service_BigtableAdmin_CreateInstanceRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_BigtableAdmin_Operation"); + } + /** + * Delete an instance from a project. (instances.delete) + * + * @param string $name The unique name of the instance to be deleted. Values are + * of the form `projects//instances/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Gets information about an instance. (instances.get) + * + * @param string $name The unique name of the requested instance. Values are of + * the form `projects//instances/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Instance + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BigtableAdmin_Instance"); + } + /** + * Gets the access control policy for an instance resource. Returns an empty + * policy if an instance exists but does not have a policy set. + * (instances.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_BigtableAdmin_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Policy + */ + public function getIamPolicy($resource, Google_Service_BigtableAdmin_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_BigtableAdmin_Policy"); + } + /** + * Lists information about instances in a project. + * (instances.listProjectsInstances) + * + * @param string $parent The unique name of the project for which a list of + * instances is requested. Values are of the form `projects/`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken DEPRECATED: This field is unused and ignored. + * @return Google_Service_BigtableAdmin_ListInstancesResponse + */ + public function listProjectsInstances($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BigtableAdmin_ListInstancesResponse"); + } + /** + * Partially updates an instance within a project. This method can modify all + * fields of an Instance and is the preferred way to update an Instance. + * (instances.partialUpdateInstance) + * + * @param string $name (`OutputOnly`) The unique name of the instance. Values + * are of the form `projects//instances/a-z+[a-z0-9]`. + * @param Google_Service_BigtableAdmin_Instance $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The subset of Instance fields which should be + * replaced. Must be explicitly set. + * @return Google_Service_BigtableAdmin_Operation + */ + public function partialUpdateInstance($name, Google_Service_BigtableAdmin_Instance $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('partialUpdateInstance', array($params), "Google_Service_BigtableAdmin_Operation"); + } + /** + * Sets the access control policy on an instance resource. Replaces any existing + * policy. (instances.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_BigtableAdmin_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Policy + */ + public function setIamPolicy($resource, Google_Service_BigtableAdmin_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_BigtableAdmin_Policy"); + } + /** + * Returns permissions that the caller has on the specified instance resource. + * (instances.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_BigtableAdmin_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_BigtableAdmin_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_BigtableAdmin_TestIamPermissionsResponse"); + } + /** + * Updates an instance within a project. This method updates only the display + * name and type for an Instance. To update other Instance properties, such as + * labels, use PartialUpdateInstance. (instances.update) + * + * @param string $name (`OutputOnly`) The unique name of the instance. Values + * are of the form `projects//instances/a-z+[a-z0-9]`. + * @param Google_Service_BigtableAdmin_Instance $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Instance + */ + public function update($name, Google_Service_BigtableAdmin_Instance $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_BigtableAdmin_Instance"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesAppProfiles.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesAppProfiles.php new file mode 100644 index 00000000..2788740f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesAppProfiles.php @@ -0,0 +1,122 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $appProfiles = $bigtableadminService->appProfiles; + * + */ +class Google_Service_BigtableAdmin_Resource_ProjectsInstancesAppProfiles extends Google_Service_Resource +{ + /** + * Creates an app profile within an instance. (appProfiles.create) + * + * @param string $parent The unique name of the instance in which to create the + * new app profile. Values are of the form `projects//instances/`. + * @param Google_Service_BigtableAdmin_AppProfile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string appProfileId The ID to be used when referring to the new + * app profile within its instance, e.g., just `myprofile` rather than + * `projects/myproject/instances/myinstance/appProfiles/myprofile`. + * @opt_param bool ignoreWarnings If true, ignore safety checks when creating + * the app profile. + * @return Google_Service_BigtableAdmin_AppProfile + */ + public function create($parent, Google_Service_BigtableAdmin_AppProfile $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_BigtableAdmin_AppProfile"); + } + /** + * Deletes an app profile from an instance. (appProfiles.delete) + * + * @param string $name The unique name of the app profile to be deleted. Values + * are of the form `projects//instances//appProfiles/`. + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreWarnings If true, ignore safety checks when deleting + * the app profile. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Gets information about an app profile. (appProfiles.get) + * + * @param string $name The unique name of the requested app profile. Values are + * of the form `projects//instances//appProfiles/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_AppProfile + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BigtableAdmin_AppProfile"); + } + /** + * Lists information about app profiles in an instance. + * (appProfiles.listProjectsInstancesAppProfiles) + * + * @param string $parent The unique name of the instance for which a list of app + * profiles is requested. Values are of the form `projects//instances/`. Use ` = + * '-'` to list AppProfiles for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The value of `next_page_token` returned by a + * previous call. + * @opt_param int pageSize Maximum number of results per page. CURRENTLY + * UNIMPLEMENTED AND IGNORED. + * @return Google_Service_BigtableAdmin_ListAppProfilesResponse + */ + public function listProjectsInstancesAppProfiles($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BigtableAdmin_ListAppProfilesResponse"); + } + /** + * Updates an app profile within an instance. (appProfiles.patch) + * + * @param string $name (`OutputOnly`) The unique name of the app profile. Values + * are of the form `projects//instances//appProfiles/_a-zA-Z0-9*`. + * @param Google_Service_BigtableAdmin_AppProfile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreWarnings If true, ignore safety checks when updating + * the app profile. + * @opt_param string updateMask The subset of app profile fields which should be + * replaced. If unset, all fields will be replaced. + * @return Google_Service_BigtableAdmin_Operation + */ + public function patch($name, Google_Service_BigtableAdmin_AppProfile $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_BigtableAdmin_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesClusters.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesClusters.php new file mode 100644 index 00000000..47e4ae41 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesClusters.php @@ -0,0 +1,109 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $clusters = $bigtableadminService->clusters; + * + */ +class Google_Service_BigtableAdmin_Resource_ProjectsInstancesClusters extends Google_Service_Resource +{ + /** + * Creates a cluster within an instance. (clusters.create) + * + * @param string $parent The unique name of the instance in which to create the + * new cluster. Values are of the form `projects//instances/`. + * @param Google_Service_BigtableAdmin_Cluster $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string clusterId The ID to be used when referring to the new + * cluster within its instance, e.g., just `mycluster` rather than + * `projects/myproject/instances/myinstance/clusters/mycluster`. + * @return Google_Service_BigtableAdmin_Operation + */ + public function create($parent, Google_Service_BigtableAdmin_Cluster $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_BigtableAdmin_Operation"); + } + /** + * Deletes a cluster from an instance. (clusters.delete) + * + * @param string $name The unique name of the cluster to be deleted. Values are + * of the form `projects//instances//clusters/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Gets information about a cluster. (clusters.get) + * + * @param string $name The unique name of the requested cluster. Values are of + * the form `projects//instances//clusters/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Cluster + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BigtableAdmin_Cluster"); + } + /** + * Lists information about clusters in an instance. + * (clusters.listProjectsInstancesClusters) + * + * @param string $parent The unique name of the instance for which a list of + * clusters is requested. Values are of the form `projects//instances/`. Use ` = + * '-'` to list Clusters for all Instances in a project, e.g., + * `projects/myproject/instances/-`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken DEPRECATED: This field is unused and ignored. + * @return Google_Service_BigtableAdmin_ListClustersResponse + */ + public function listProjectsInstancesClusters($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BigtableAdmin_ListClustersResponse"); + } + /** + * Updates a cluster within an instance. (clusters.update) + * + * @param string $name (`OutputOnly`) The unique name of the cluster. Values are + * of the form `projects//instances//clusters/a-z*`. + * @param Google_Service_BigtableAdmin_Cluster $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Operation + */ + public function update($name, Google_Service_BigtableAdmin_Cluster $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_BigtableAdmin_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesTables.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesTables.php new file mode 100644 index 00000000..ebf1f86b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Resource/ProjectsInstancesTables.php @@ -0,0 +1,169 @@ + + * $bigtableadminService = new Google_Service_BigtableAdmin(...); + * $tables = $bigtableadminService->tables; + * + */ +class Google_Service_BigtableAdmin_Resource_ProjectsInstancesTables extends Google_Service_Resource +{ + /** + * Checks replication consistency based on a consistency token, that is, if + * replication has caught up based on the conditions specified in the token and + * the check request. (tables.checkConsistency) + * + * @param string $name The unique name of the Table for which to check + * replication consistency. Values are of the form + * `projects//instances//tables/`. + * @param Google_Service_BigtableAdmin_CheckConsistencyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_CheckConsistencyResponse + */ + public function checkConsistency($name, Google_Service_BigtableAdmin_CheckConsistencyRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('checkConsistency', array($params), "Google_Service_BigtableAdmin_CheckConsistencyResponse"); + } + /** + * Creates a new table in the specified instance. The table can be created with + * a full set of initial column families, specified in the request. + * (tables.create) + * + * @param string $parent The unique name of the instance in which to create the + * table. Values are of the form `projects//instances/`. + * @param Google_Service_BigtableAdmin_CreateTableRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Table + */ + public function create($parent, Google_Service_BigtableAdmin_CreateTableRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_BigtableAdmin_Table"); + } + /** + * Permanently deletes a specified table and all of its data. (tables.delete) + * + * @param string $name The unique name of the table to be deleted. Values are of + * the form `projects//instances//tables/`. + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Permanently drop/delete a row range from a specified table. The request can + * specify whether to delete all rows in a table, or only those that match a + * particular prefix. (tables.dropRowRange) + * + * @param string $name The unique name of the table on which to drop a range of + * rows. Values are of the form `projects//instances//tables/`. + * @param Google_Service_BigtableAdmin_DropRowRangeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_BigtableadminEmpty + */ + public function dropRowRange($name, Google_Service_BigtableAdmin_DropRowRangeRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('dropRowRange', array($params), "Google_Service_BigtableAdmin_BigtableadminEmpty"); + } + /** + * Generates a consistency token for a Table, which can be used in + * CheckConsistency to check whether mutations to the table that finished before + * this call started have been replicated. The tokens will be available for 90 + * days. (tables.generateConsistencyToken) + * + * @param string $name The unique name of the Table for which to create a + * consistency token. Values are of the form `projects//instances//tables/`. + * @param Google_Service_BigtableAdmin_GenerateConsistencyTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_GenerateConsistencyTokenResponse + */ + public function generateConsistencyToken($name, Google_Service_BigtableAdmin_GenerateConsistencyTokenRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generateConsistencyToken', array($params), "Google_Service_BigtableAdmin_GenerateConsistencyTokenResponse"); + } + /** + * Gets metadata information about the specified table. (tables.get) + * + * @param string $name The unique name of the requested table. Values are of the + * form `projects//instances//tables/`. + * @param array $optParams Optional parameters. + * + * @opt_param string view The view to be applied to the returned table's fields. + * Defaults to `SCHEMA_VIEW` if unspecified. + * @return Google_Service_BigtableAdmin_Table + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BigtableAdmin_Table"); + } + /** + * Lists all tables served from a specified instance. + * (tables.listProjectsInstancesTables) + * + * @param string $parent The unique name of the instance for which tables should + * be listed. Values are of the form `projects//instances/`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The value of `next_page_token` returned by a + * previous call. + * @opt_param int pageSize Maximum number of results per page. CURRENTLY + * UNIMPLEMENTED AND IGNORED. + * @opt_param string view The view to be applied to the returned tables' fields. + * Defaults to `NAME_ONLY` if unspecified; no others are currently supported. + * @return Google_Service_BigtableAdmin_ListTablesResponse + */ + public function listProjectsInstancesTables($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BigtableAdmin_ListTablesResponse"); + } + /** + * Performs a series of column family modifications on the specified table. + * Either all or none of the modifications will occur before this method + * returns, but data requests received prior to that point may see a table where + * only some modifications have taken effect. (tables.modifyColumnFamilies) + * + * @param string $name The unique name of the table whose families should be + * modified. Values are of the form `projects//instances//tables/`. + * @param Google_Service_BigtableAdmin_ModifyColumnFamiliesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BigtableAdmin_Table + */ + public function modifyColumnFamilies($name, Google_Service_BigtableAdmin_ModifyColumnFamiliesRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyColumnFamilies', array($params), "Google_Service_BigtableAdmin_Table"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SetIamPolicyRequest.php new file mode 100644 index 00000000..70d57c50 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SetIamPolicyRequest.php @@ -0,0 +1,46 @@ +policy = $policy; + } + /** + * @return Google_Service_BigtableAdmin_Policy + */ + public function getPolicy() + { + return $this->policy; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SingleClusterRouting.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SingleClusterRouting.php new file mode 100644 index 00000000..a0d4af1e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/SingleClusterRouting.php @@ -0,0 +1,39 @@ +allowTransactionalWrites = $allowTransactionalWrites; + } + public function getAllowTransactionalWrites() + { + return $this->allowTransactionalWrites; + } + public function setClusterId($clusterId) + { + $this->clusterId = $clusterId; + } + public function getClusterId() + { + return $this->clusterId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Split.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Split.php new file mode 100644 index 00000000..e6b78ac4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Split.php @@ -0,0 +1,30 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Status.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Status.php new file mode 100644 index 00000000..fed6c8d3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Table.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Table.php new file mode 100644 index 00000000..182ea5e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Table.php @@ -0,0 +1,71 @@ +clusterStates = $clusterStates; + } + /** + * @return Google_Service_BigtableAdmin_ClusterState + */ + public function getClusterStates() + { + return $this->clusterStates; + } + /** + * @param Google_Service_BigtableAdmin_ColumnFamily + */ + public function setColumnFamilies($columnFamilies) + { + $this->columnFamilies = $columnFamilies; + } + /** + * @return Google_Service_BigtableAdmin_ColumnFamily + */ + public function getColumnFamilies() + { + return $this->columnFamilies; + } + public function setGranularity($granularity) + { + $this->granularity = $granularity; + } + public function getGranularity() + { + return $this->granularity; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TableProgress.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TableProgress.php new file mode 100644 index 00000000..787e74be --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TableProgress.php @@ -0,0 +1,48 @@ +estimatedCopiedBytes = $estimatedCopiedBytes; + } + public function getEstimatedCopiedBytes() + { + return $this->estimatedCopiedBytes; + } + public function setEstimatedSizeBytes($estimatedSizeBytes) + { + $this->estimatedSizeBytes = $estimatedSizeBytes; + } + public function getEstimatedSizeBytes() + { + return $this->estimatedSizeBytes; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthorizationRule.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsRequest.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthorizationRule.php rename to vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsRequest.php index e437c8cc..a0da67d8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthorizationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsRequest.php @@ -15,10 +15,10 @@ * the License. */ -class Google_Service_ServiceUsage_AuthorizationRule extends Google_Model +class Google_Service_BigtableAdmin_TestIamPermissionsRequest extends Google_Collection { + protected $collection_key = 'permissions'; public $permissions; - public $selector; public function setPermissions($permissions) { @@ -28,12 +28,4 @@ class Google_Service_ServiceUsage_AuthorizationRule extends Google_Model { return $this->permissions; } - public function setSelector($selector) - { - $this->selector = $selector; - } - public function getSelector() - { - return $this->selector; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthorizationRule.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsResponse.php similarity index 75% rename from vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthorizationRule.php rename to vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsResponse.php index b222cd76..a25fd781 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthorizationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/TestIamPermissionsResponse.php @@ -15,10 +15,10 @@ * the License. */ -class Google_Service_ServiceConsumerManagement_AuthorizationRule extends Google_Model +class Google_Service_BigtableAdmin_TestIamPermissionsResponse extends Google_Collection { + protected $collection_key = 'permissions'; public $permissions; - public $selector; public function setPermissions($permissions) { @@ -28,12 +28,4 @@ class Google_Service_ServiceConsumerManagement_AuthorizationRule extends Google_ { return $this->permissions; } - public function setSelector($selector) - { - $this->selector = $selector; - } - public function getSelector() - { - return $this->selector; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Union.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Union.php new file mode 100644 index 00000000..09fa07df --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/Union.php @@ -0,0 +1,38 @@ +rules = $rules; + } + /** + * @return Google_Service_BigtableAdmin_GcRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateAppProfileMetadata.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateAppProfileMetadata.php new file mode 100644 index 00000000..2d5fdbc9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateAppProfileMetadata.php @@ -0,0 +1,20 @@ +finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + /** + * @param Google_Service_BigtableAdmin_Cluster + */ + public function setOriginalRequest(Google_Service_BigtableAdmin_Cluster $originalRequest) + { + $this->originalRequest = $originalRequest; + } + /** + * @return Google_Service_BigtableAdmin_Cluster + */ + public function getOriginalRequest() + { + return $this->originalRequest; + } + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + } + public function getRequestTime() + { + return $this->requestTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateInstanceMetadata.php b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateInstanceMetadata.php new file mode 100644 index 00000000..f68b61a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BigtableAdmin/UpdateInstanceMetadata.php @@ -0,0 +1,55 @@ +finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + /** + * @param Google_Service_BigtableAdmin_PartialUpdateInstanceRequest + */ + public function setOriginalRequest(Google_Service_BigtableAdmin_PartialUpdateInstanceRequest $originalRequest) + { + $this->originalRequest = $originalRequest; + } + /** + * @return Google_Service_BigtableAdmin_PartialUpdateInstanceRequest + */ + public function getOriginalRequest() + { + return $this->originalRequest; + } + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + } + public function getRequestTime() + { + return $this->requestTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization.php new file mode 100644 index 00000000..bf6946f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization.php @@ -0,0 +1,229 @@ + + * The management interface for Binary Authorization, a system providing policy + * control for images deployed to Kubernetes Engine clusters. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_BinaryAuthorization extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects; + public $projects_attestors; + public $projects_policy; + + /** + * Constructs the internal representation of the BinaryAuthorization service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://binaryauthorization.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1beta1'; + $this->serviceName = 'binaryauthorization'; + + $this->projects = new Google_Service_BinaryAuthorization_Resource_Projects( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'getPolicy' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updatePolicy' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_attestors = new Google_Service_BinaryAuthorization_Resource_ProjectsAttestors( + $this, + $this->serviceName, + 'attestors', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/{+parent}/attestors', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'attestorId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1beta1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+parent}/attestors', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1beta1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1beta1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_policy = new Google_Service_BinaryAuthorization_Resource_ProjectsPolicy( + $this, + $this->serviceName, + 'policy', + array( + 'methods' => array( + 'getIamPolicy' => array( + 'path' => 'v1beta1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1beta1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1beta1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionRule.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionRule.php new file mode 100644 index 00000000..61e85b3b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionRule.php @@ -0,0 +1,49 @@ +enforcementMode = $enforcementMode; + } + public function getEnforcementMode() + { + return $this->enforcementMode; + } + public function setEvaluationMode($evaluationMode) + { + $this->evaluationMode = $evaluationMode; + } + public function getEvaluationMode() + { + return $this->evaluationMode; + } + public function setRequireAttestationsBy($requireAttestationsBy) + { + $this->requireAttestationsBy = $requireAttestationsBy; + } + public function getRequireAttestationsBy() + { + return $this->requireAttestationsBy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionWhitelistPattern.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionWhitelistPattern.php new file mode 100644 index 00000000..431dc0ac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AdmissionWhitelistPattern.php @@ -0,0 +1,30 @@ +namePattern = $namePattern; + } + public function getNamePattern() + { + return $this->namePattern; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Attestor.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Attestor.php new file mode 100644 index 00000000..c5eff755 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Attestor.php @@ -0,0 +1,64 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * @param Google_Service_BinaryAuthorization_UserOwnedDrydockNote + */ + public function setUserOwnedDrydockNote(Google_Service_BinaryAuthorization_UserOwnedDrydockNote $userOwnedDrydockNote) + { + $this->userOwnedDrydockNote = $userOwnedDrydockNote; + } + /** + * @return Google_Service_BinaryAuthorization_UserOwnedDrydockNote + */ + public function getUserOwnedDrydockNote() + { + return $this->userOwnedDrydockNote; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AttestorPublicKey.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AttestorPublicKey.php new file mode 100644 index 00000000..4a7709ba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/AttestorPublicKey.php @@ -0,0 +1,48 @@ +asciiArmoredPgpPublicKey = $asciiArmoredPgpPublicKey; + } + public function getAsciiArmoredPgpPublicKey() + { + return $this->asciiArmoredPgpPublicKey; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/BinaryauthorizationEmpty.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/BinaryauthorizationEmpty.php new file mode 100644 index 00000000..84d321e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/BinaryauthorizationEmpty.php @@ -0,0 +1,20 @@ +condition = $condition; + } + /** + * @return Google_Service_BinaryAuthorization_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Expr.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Expr.php new file mode 100644 index 00000000..4d71d1d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/IamPolicy.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/IamPolicy.php new file mode 100644 index 00000000..2228cff9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/IamPolicy.php @@ -0,0 +1,56 @@ +bindings = $bindings; + } + /** + * @return Google_Service_BinaryAuthorization_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/ListAttestorsResponse.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/ListAttestorsResponse.php new file mode 100644 index 00000000..54a5a23d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/ListAttestorsResponse.php @@ -0,0 +1,47 @@ +attestors = $attestors; + } + /** + * @return Google_Service_BinaryAuthorization_Attestor + */ + public function getAttestors() + { + return $this->attestors; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Policy.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Policy.php new file mode 100644 index 00000000..c641098c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Policy.php @@ -0,0 +1,97 @@ +admissionWhitelistPatterns = $admissionWhitelistPatterns; + } + /** + * @return Google_Service_BinaryAuthorization_AdmissionWhitelistPattern + */ + public function getAdmissionWhitelistPatterns() + { + return $this->admissionWhitelistPatterns; + } + /** + * @param Google_Service_BinaryAuthorization_AdmissionRule + */ + public function setClusterAdmissionRules($clusterAdmissionRules) + { + $this->clusterAdmissionRules = $clusterAdmissionRules; + } + /** + * @return Google_Service_BinaryAuthorization_AdmissionRule + */ + public function getClusterAdmissionRules() + { + return $this->clusterAdmissionRules; + } + /** + * @param Google_Service_BinaryAuthorization_AdmissionRule + */ + public function setDefaultAdmissionRule(Google_Service_BinaryAuthorization_AdmissionRule $defaultAdmissionRule) + { + $this->defaultAdmissionRule = $defaultAdmissionRule; + } + /** + * @return Google_Service_BinaryAuthorization_AdmissionRule + */ + public function getDefaultAdmissionRule() + { + return $this->defaultAdmissionRule; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/Projects.php new file mode 100644 index 00000000..55d011ec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/Projects.php @@ -0,0 +1,62 @@ + + * $binaryauthorizationService = new Google_Service_BinaryAuthorization(...); + * $projects = $binaryauthorizationService->projects; + * + */ +class Google_Service_BinaryAuthorization_Resource_Projects extends Google_Service_Resource +{ + /** + * Gets the policy for this project. Returns a default policy if the project + * does not have one. (projects.getPolicy) + * + * @param string $name Required. The resource name of the policy to retrieve, in + * the format `projects/policy`. + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_Policy + */ + public function getPolicy($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getPolicy', array($params), "Google_Service_BinaryAuthorization_Policy"); + } + /** + * Creates or updates a project's policy, and returns a copy of the new policy. + * A policy is always updated as a whole, to avoid race conditions with + * concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if + * the project does not exist, INVALID_ARGUMENT if the request is malformed. + * (projects.updatePolicy) + * + * @param string $name Output only. The resource name, in the format + * `projects/policy`. There is at most one policy per project. + * @param Google_Service_BinaryAuthorization_Policy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_Policy + */ + public function updatePolicy($name, Google_Service_BinaryAuthorization_Policy $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatePolicy', array($params), "Google_Service_BinaryAuthorization_Policy"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsAttestors.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsAttestors.php new file mode 100644 index 00000000..64dda116 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsAttestors.php @@ -0,0 +1,170 @@ + + * $binaryauthorizationService = new Google_Service_BinaryAuthorization(...); + * $attestors = $binaryauthorizationService->attestors; + * + */ +class Google_Service_BinaryAuthorization_Resource_ProjectsAttestors extends Google_Service_Resource +{ + /** + * Creates an attestor, and returns a copy of the new attestor. Returns + * NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is + * malformed, ALREADY_EXISTS if the attestor already exists. (attestors.create) + * + * @param string $parent Required. The parent of this attestor. + * @param Google_Service_BinaryAuthorization_Attestor $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string attestorId Required. The attestors ID. + * @return Google_Service_BinaryAuthorization_Attestor + */ + public function create($parent, Google_Service_BinaryAuthorization_Attestor $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_BinaryAuthorization_Attestor"); + } + /** + * Deletes an attestor. Returns NOT_FOUND if the attestor does not exist. + * (attestors.delete) + * + * @param string $name Required. The name of the attestors to delete, in the + * format `projects/attestors`. + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_BinaryauthorizationEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_BinaryAuthorization_BinaryauthorizationEmpty"); + } + /** + * Gets an attestor. Returns NOT_FOUND if the attestor does not exist. + * (attestors.get) + * + * @param string $name Required. The name of the attestor to retrieve, in the + * format `projects/attestors`. + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_Attestor + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_BinaryAuthorization_Attestor"); + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (attestors.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_IamPolicy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_BinaryAuthorization_IamPolicy"); + } + /** + * Lists attestors. Returns INVALID_ARGUMENT if the project does not exist. + * (attestors.listProjectsAttestors) + * + * @param string $parent Required. The resource name of the project associated + * with the attestors, in the format `projects`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListAttestorsResponse.next_page_token returned from the previous call to the + * `ListAttestors` method. + * @opt_param int pageSize Requested page size. The server may return fewer + * results than requested. If unspecified, the server will pick an appropriate + * default. + * @return Google_Service_BinaryAuthorization_ListAttestorsResponse + */ + public function listProjectsAttestors($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_BinaryAuthorization_ListAttestorsResponse"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (attestors.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_BinaryAuthorization_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_IamPolicy + */ + public function setIamPolicy($resource, Google_Service_BinaryAuthorization_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_BinaryAuthorization_IamPolicy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error. + * + * Note: This operation is designed to be used for building permission-aware UIs + * and command-line tools, not for authorization checking. This operation may + * "fail open" without warning. (attestors.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_BinaryAuthorization_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_BinaryAuthorization_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_BinaryAuthorization_TestIamPermissionsResponse"); + } + /** + * Updates an attestor. Returns NOT_FOUND if the attestor does not exist. + * (attestors.update) + * + * @param string $name Required. The resource name, in the format: + * `projects/attestors`. This field may not be updated. + * @param Google_Service_BinaryAuthorization_Attestor $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_Attestor + */ + public function update($name, Google_Service_BinaryAuthorization_Attestor $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_BinaryAuthorization_Attestor"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsPolicy.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsPolicy.php new file mode 100644 index 00000000..28d1bc38 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/Resource/ProjectsPolicy.php @@ -0,0 +1,83 @@ + + * $binaryauthorizationService = new Google_Service_BinaryAuthorization(...); + * $policy = $binaryauthorizationService->policy; + * + */ +class Google_Service_BinaryAuthorization_Resource_ProjectsPolicy extends Google_Service_Resource +{ + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (policy.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_IamPolicy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_BinaryAuthorization_IamPolicy"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (policy.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_BinaryAuthorization_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_IamPolicy + */ + public function setIamPolicy($resource, Google_Service_BinaryAuthorization_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_BinaryAuthorization_IamPolicy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error. + * + * Note: This operation is designed to be used for building permission-aware UIs + * and command-line tools, not for authorization checking. This operation may + * "fail open" without warning. (policy.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_BinaryAuthorization_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_BinaryAuthorization_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_BinaryAuthorization_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_BinaryAuthorization_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/SetIamPolicyRequest.php new file mode 100644 index 00000000..5b6a2ee4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/SetIamPolicyRequest.php @@ -0,0 +1,37 @@ +policy = $policy; + } + /** + * @return Google_Service_BinaryAuthorization_IamPolicy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsRequest.php new file mode 100644 index 00000000..7c6aba51 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsResponse.php new file mode 100644 index 00000000..cc24621f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/UserOwnedDrydockNote.php b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/UserOwnedDrydockNote.php new file mode 100644 index 00000000..84eb24b7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/BinaryAuthorization/UserOwnedDrydockNote.php @@ -0,0 +1,56 @@ +delegationServiceAccountEmail = $delegationServiceAccountEmail; + } + public function getDelegationServiceAccountEmail() + { + return $this->delegationServiceAccountEmail; + } + public function setNoteReference($noteReference) + { + $this->noteReference = $noteReference; + } + public function getNoteReference() + { + return $this->noteReference; + } + /** + * @param Google_Service_BinaryAuthorization_AttestorPublicKey + */ + public function setPublicKeys($publicKeys) + { + $this->publicKeys = $publicKeys; + } + /** + * @return Google_Service_BinaryAuthorization_AttestorPublicKey + */ + public function getPublicKeys() + { + return $this->publicKeys; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Blogger.php b/vendor/google/apiclient-services/src/Google/Service/Blogger.php index a2a12b11..1fb8ffbd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Blogger.php +++ b/vendor/google/apiclient-services/src/Google/Service/Blogger.php @@ -56,6 +56,7 @@ class Google_Service_Blogger extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'blogger/v3/'; + $this->batchPath = 'batch/blogger/v3'; $this->version = 'v3'; $this->serviceName = 'blogger'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Books.php b/vendor/google/apiclient-services/src/Google/Service/Books.php index 0a24752d..48536dcc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Books.php +++ b/vendor/google/apiclient-services/src/Google/Service/Books.php @@ -69,6 +69,7 @@ class Google_Service_Books extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'books/v1/'; + $this->batchPath = 'batch/books/v1'; $this->version = 'v1'; $this->serviceName = 'books'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Books/Notification.php b/vendor/google/apiclient-services/src/Google/Service/Books/Notification.php index 2a2ac879..ec409702 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Books/Notification.php +++ b/vendor/google/apiclient-services/src/Google/Service/Books/Notification.php @@ -22,6 +22,7 @@ class Google_Service_Books_Notification extends Google_Collection "docId" => "doc_id", "docType" => "doc_type", "dontShowNotification" => "dont_show_notification", + "isDocumentMature" => "is_document_mature", "notificationType" => "notification_type", "pcampaignId" => "pcampaign_id", "showNotificationSettingsAction" => "show_notification_settings_action", @@ -32,6 +33,7 @@ class Google_Service_Books_Notification extends Google_Collection public $docType; public $dontShowNotification; public $iconUrl; + public $isDocumentMature; public $kind; public $notificationGroup; public $notificationType; @@ -39,6 +41,7 @@ class Google_Service_Books_Notification extends Google_Collection public $reason; public $showNotificationSettingsAction; public $targetUrl; + public $timeToExpireMs; public $title; public function setBody($body) @@ -89,6 +92,14 @@ class Google_Service_Books_Notification extends Google_Collection { return $this->iconUrl; } + public function setIsDocumentMature($isDocumentMature) + { + $this->isDocumentMature = $isDocumentMature; + } + public function getIsDocumentMature() + { + return $this->isDocumentMature; + } public function setKind($kind) { $this->kind = $kind; @@ -145,6 +156,14 @@ class Google_Service_Books_Notification extends Google_Collection { return $this->targetUrl; } + public function setTimeToExpireMs($timeToExpireMs) + { + $this->timeToExpireMs = $timeToExpireMs; + } + public function getTimeToExpireMs() + { + return $this->timeToExpireMs; + } public function setTitle($title) { $this->title = $title; diff --git a/vendor/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php b/vendor/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php index 0d92ffb3..c889e678 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php @@ -23,6 +23,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $averageRating; public $canonicalVolumeLink; public $categories; + public $comicsContent; public $contentVersion; public $description; protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions'; @@ -91,6 +92,14 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { return $this->categories; } + public function setComicsContent($comicsContent) + { + $this->comicsContent = $comicsContent; + } + public function getComicsContent() + { + return $this->comicsContent; + } public function setContentVersion($contentVersion) { $this->contentVersion = $contentVersion; diff --git a/vendor/google/apiclient-services/src/Google/Service/Calendar.php b/vendor/google/apiclient-services/src/Google/Service/Calendar.php index 7761a068..125c3fbc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Calendar.php +++ b/vendor/google/apiclient-services/src/Google/Service/Calendar.php @@ -30,12 +30,21 @@ */ class Google_Service_Calendar extends Google_Service { - /** Manage your calendars. */ + /** See, edit, share, and permanently delete all the calendars you can access using Google Calendar. */ const CALENDAR = "https://www.googleapis.com/auth/calendar"; + /** View and edit events on all your calendars. */ + const CALENDAR_EVENTS = + "https://www.googleapis.com/auth/calendar.events"; + /** View events on all your calendars. */ + const CALENDAR_EVENTS_READONLY = + "https://www.googleapis.com/auth/calendar.events.readonly"; /** View your calendars. */ const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly"; + /** View your Calendar settings. */ + const CALENDAR_SETTINGS_READONLY = + "https://www.googleapis.com/auth/calendar.settings.readonly"; public $acl; public $calendarList; @@ -56,6 +65,7 @@ class Google_Service_Calendar extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'calendar/v3/'; + $this->batchPath = 'batch/calendar/v3'; $this->version = 'v3'; $this->serviceName = 'calendar'; @@ -444,6 +454,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => 'calendars/{calendarId}/events/{eventId}', @@ -511,6 +525,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), 'supportsAttachments' => array( 'location' => 'query', 'type' => 'boolean', @@ -670,6 +688,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'calendars/{calendarId}/events/{eventId}', @@ -701,6 +723,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), 'supportsAttachments' => array( 'location' => 'query', 'type' => 'boolean', @@ -724,6 +750,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'calendars/{calendarId}/events/{eventId}', @@ -755,6 +785,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'sendUpdates' => array( + 'location' => 'query', + 'type' => 'string', + ), 'supportsAttachments' => array( 'location' => 'query', 'type' => 'boolean', diff --git a/vendor/google/apiclient-services/src/Google/Service/Calendar/EntryPoint.php b/vendor/google/apiclient-services/src/Google/Service/Calendar/EntryPoint.php index 434d2007..de50f24e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Calendar/EntryPoint.php +++ b/vendor/google/apiclient-services/src/Google/Service/Calendar/EntryPoint.php @@ -15,15 +15,18 @@ * the License. */ -class Google_Service_Calendar_EntryPoint extends Google_Model +class Google_Service_Calendar_EntryPoint extends Google_Collection { + protected $collection_key = 'entryPointFeatures'; public $accessCode; + public $entryPointFeatures; public $entryPointType; public $label; public $meetingCode; public $passcode; public $password; public $pin; + public $regionCode; public $uri; public function setAccessCode($accessCode) @@ -34,6 +37,14 @@ class Google_Service_Calendar_EntryPoint extends Google_Model { return $this->accessCode; } + public function setEntryPointFeatures($entryPointFeatures) + { + $this->entryPointFeatures = $entryPointFeatures; + } + public function getEntryPointFeatures() + { + return $this->entryPointFeatures; + } public function setEntryPointType($entryPointType) { $this->entryPointType = $entryPointType; @@ -82,6 +93,14 @@ class Google_Service_Calendar_EntryPoint extends Google_Model { return $this->pin; } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } public function setUri($uri) { $this->uri = $uri; diff --git a/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php b/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php index d7dfcde9..4b0fafcb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php +++ b/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php @@ -26,7 +26,7 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resource { /** - * Deletes an entry on the user's calendar list. (calendarList.delete) + * Removes a calendar from the user's calendar list. (calendarList.delete) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of @@ -40,7 +40,7 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resou return $this->call('delete', array($params)); } /** - * Returns an entry on the user's calendar list. (calendarList.get) + * Returns a calendar from the user's calendar list. (calendarList.get) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of @@ -55,7 +55,8 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resou return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry"); } /** - * Adds an entry to the user's calendar list. (calendarList.insert) + * Inserts an existing calendar into the user's calendar list. + * (calendarList.insert) * * @param Google_Service_Calendar_CalendarListEntry $postBody * @param array $optParams Optional parameters. @@ -73,7 +74,8 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resou return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry"); } /** - * Returns entries on the user's calendar list. (calendarList.listCalendarList) + * Returns the calendars on the user's calendar list. + * (calendarList.listCalendarList) * * @param array $optParams Optional parameters. * @@ -109,8 +111,8 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resou return $this->call('list', array($params), "Google_Service_Calendar_CalendarList"); } /** - * Updates an entry on the user's calendar list. This method supports patch - * semantics. (calendarList.patch) + * Updates an existing calendar on the user's calendar list. This method + * supports patch semantics. (calendarList.patch) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of @@ -131,7 +133,8 @@ class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resou return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry"); } /** - * Updates an entry on the user's calendar list. (calendarList.update) + * Updates an existing calendar on the user's calendar list. + * (calendarList.update) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of diff --git a/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php b/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php index 61d816d6..d8b5235b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php +++ b/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php @@ -34,8 +34,13 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * @param string $eventId Event identifier. * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications Whether to send notifications about the - * deletion of the event. Optional. The default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the deletion of the event. Note that some + * emails might still be sent even if you set the value to false. The default is + * false. + * @opt_param string sendUpdates Guests who should receive notifications about + * the deletion of the event. */ public function delete($calendarId, $eventId, $optParams = array()) { @@ -113,8 +118,14 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. - * @opt_param bool sendNotifications Whether to send notifications about the - * creation of the new event. Optional. The default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the creation of the new event. Note that + * some emails might still be sent even if you set the value to false. The + * default is false. + * @opt_param string sendUpdates Whether to send notifications about the + * creation of the new event. Note that some emails might still be sent. The + * default is false. * @opt_param bool supportsAttachments Whether API client performing operation * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event @@ -270,8 +281,13 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * the event is to be moved to. * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications Whether to send notifications about the - * change of the event's organizer. Optional. The default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the change of the event's organizer. Note + * that some emails might still be sent even if you set the value to false. The + * default is false. + * @opt_param string sendUpdates Guests who should receive notifications about + * the change of the event's organizer. * @return Google_Service_Calendar_Event */ public function move($calendarId, $eventId, $destination, $optParams = array()) @@ -304,9 +320,13 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. - * @opt_param bool sendNotifications Whether to send notifications about the - * event update (e.g. attendee's responses, title changes, etc.). Optional. The - * default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the event update (for example, + * description changes, etc.). Note that some emails might still be sent even if + * you set the value to false. The default is false. + * @opt_param string sendUpdates Guests who should receive notifications about + * the event update (for example, title changes, etc.). * @opt_param bool supportsAttachments Whether API client performing operation * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event @@ -326,8 +346,13 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * @param string $text The text describing the event to be created. * @param array $optParams Optional parameters. * - * @opt_param bool sendNotifications Whether to send notifications about the - * creation of the event. Optional. The default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the creation of the event. Note that some + * emails might still be sent even if you set the value to false. The default is + * false. + * @opt_param string sendUpdates Guests who should receive notifications about + * the creation of the new event. * @return Google_Service_Calendar_Event */ public function quickAdd($calendarId, $text, $optParams = array()) @@ -360,9 +385,13 @@ class Google_Service_Calendar_Resource_Events extends Google_Service_Resource * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. - * @opt_param bool sendNotifications Whether to send notifications about the - * event update (e.g. attendee's responses, title changes, etc.). Optional. The - * default is False. + * @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead. + * + * Whether to send notifications about the event update (for example, + * description changes, etc.). Note that some emails might still be sent even if + * you set the value to false. The default is false. + * @opt_param string sendUpdates Guests who should receive notifications about + * the event update (for example, title changes, etc.). * @opt_param bool supportsAttachments Whether API client performing operation * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo.php index b953696c..6a28cbbf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo.php @@ -47,6 +47,7 @@ class Google_Service_CivicInfo extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'civicinfo/v2/'; + $this->batchPath = 'batch/civicinfo/v2'; $this->version = 'v2'; $this->serviceName = 'civicinfo'; diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php index f039343d..ec5dd65c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php @@ -19,6 +19,7 @@ class Google_Service_CivicInfo_Contest extends Google_Collection { protected $collection_key = 'sources'; public $ballotPlacement; + public $ballotTitle; protected $candidatesType = 'Google_Service_CivicInfo_Candidate'; protected $candidatesDataType = 'array'; protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict'; @@ -54,6 +55,14 @@ class Google_Service_CivicInfo_Contest extends Google_Collection { return $this->ballotPlacement; } + public function setBallotTitle($ballotTitle) + { + $this->ballotTitle = $ballotTitle; + } + public function getBallotTitle() + { + return $this->ballotTitle; + } /** * @param Google_Service_CivicInfo_Candidate */ diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/FieldMetadataProto.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/FieldMetadataProto.php new file mode 100644 index 00000000..f0dd0285 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/FieldMetadataProto.php @@ -0,0 +1,37 @@ +internal = $internal; + } + /** + * @return Google_Service_CivicInfo_InternalFieldMetadataProto + */ + public function getInternal() + { + return $this->internal; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalFieldMetadataProto.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalFieldMetadataProto.php new file mode 100644 index 00000000..43d32fcc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalFieldMetadataProto.php @@ -0,0 +1,46 @@ +isAuto = $isAuto; + } + public function getIsAuto() + { + return $this->isAuto; + } + /** + * @param Google_Service_CivicInfo_InternalSourceSummaryProto + */ + public function setSourceSummary(Google_Service_CivicInfo_InternalSourceSummaryProto $sourceSummary) + { + $this->sourceSummary = $sourceSummary; + } + /** + * @return Google_Service_CivicInfo_InternalSourceSummaryProto + */ + public function getSourceSummary() + { + return $this->sourceSummary; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/CustomAuthRequirements.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalSourceSummaryProto.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/CustomAuthRequirements.php rename to vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalSourceSummaryProto.php index 0667ba19..450a60f0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/CustomAuthRequirements.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/InternalSourceSummaryProto.php @@ -15,10 +15,19 @@ * the License. */ -class Google_Service_ServiceConsumerManagement_CustomAuthRequirements extends Google_Model +class Google_Service_CivicInfo_InternalSourceSummaryProto extends Google_Model { + public $dataset; public $provider; + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } public function setProvider($provider) { $this->provider = $provider; diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfo.php new file mode 100644 index 00000000..d3678bd6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfo.php @@ -0,0 +1,172 @@ +dataSourcePublishMsec = $dataSourcePublishMsec; + } + public function getDataSourcePublishMsec() + { + return $this->dataSourcePublishMsec; + } + public function setExpId($expId) + { + $this->expId = $expId; + } + public function getExpId() + { + return $this->expId; + } + /** + * @param Google_Service_CivicInfo_LivegraphBacktraceRecordInfoExpInfo + */ + public function setExpInfo(Google_Service_CivicInfo_LivegraphBacktraceRecordInfoExpInfo $expInfo) + { + $this->expInfo = $expInfo; + } + /** + * @return Google_Service_CivicInfo_LivegraphBacktraceRecordInfoExpInfo + */ + public function getExpInfo() + { + return $this->expInfo; + } + public function setIsRecon($isRecon) + { + $this->isRecon = $isRecon; + } + public function getIsRecon() + { + return $this->isRecon; + } + public function setIsWlmThrottled($isWlmThrottled) + { + $this->isWlmThrottled = $isWlmThrottled; + } + public function getIsWlmThrottled() + { + return $this->isWlmThrottled; + } + public function setNumberOfTriples($numberOfTriples) + { + $this->numberOfTriples = $numberOfTriples; + } + public function getNumberOfTriples() + { + return $this->numberOfTriples; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } + public function setProcess($process) + { + $this->process = $process; + } + public function getProcess() + { + return $this->process; + } + public function setProxyReceiveMsec($proxyReceiveMsec) + { + $this->proxyReceiveMsec = $proxyReceiveMsec; + } + public function getProxyReceiveMsec() + { + return $this->proxyReceiveMsec; + } + public function setProxySentMsec($proxySentMsec) + { + $this->proxySentMsec = $proxySentMsec; + } + public function getProxySentMsec() + { + return $this->proxySentMsec; + } + public function setRecordId($recordId) + { + $this->recordId = $recordId; + } + public function getRecordId() + { + return $this->recordId; + } + public function setShouldMonitorLatency($shouldMonitorLatency) + { + $this->shouldMonitorLatency = $shouldMonitorLatency; + } + public function getShouldMonitorLatency() + { + return $this->shouldMonitorLatency; + } + public function setSubscriberReceiveMsec($subscriberReceiveMsec) + { + $this->subscriberReceiveMsec = $subscriberReceiveMsec; + } + public function getSubscriberReceiveMsec() + { + return $this->subscriberReceiveMsec; + } + public function setTopicBuildFinishMsec($topicBuildFinishMsec) + { + $this->topicBuildFinishMsec = $topicBuildFinishMsec; + } + public function getTopicBuildFinishMsec() + { + return $this->topicBuildFinishMsec; + } + public function setTopicBuildStartMsec($topicBuildStartMsec) + { + $this->topicBuildStartMsec = $topicBuildStartMsec; + } + public function getTopicBuildStartMsec() + { + return $this->topicBuildStartMsec; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfoExpInfo.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfoExpInfo.php new file mode 100644 index 00000000..77c2a29f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/LivegraphBacktraceRecordInfoExpInfo.php @@ -0,0 +1,31 @@ +deletedIns = $deletedIns; + } + public function getDeletedIns() + { + return $this->deletedIns; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/MessageSet.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/MessageSet.php new file mode 100644 index 00000000..7f986aa5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/MessageSet.php @@ -0,0 +1,37 @@ +recordMessageSetExt = $recordMessageSetExt; + } + /** + * @return Google_Service_CivicInfo_LivegraphBacktraceRecordInfo + */ + public function getRecordMessageSetExt() + { + return $this->recordMessageSetExt; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PointProto.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PointProto.php new file mode 100644 index 00000000..c1bcd9f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PointProto.php @@ -0,0 +1,71 @@ +latE7 = $latE7; + } + public function getLatE7() + { + return $this->latE7; + } + public function setLngE7($lngE7) + { + $this->lngE7 = $lngE7; + } + public function getLngE7() + { + return $this->lngE7; + } + /** + * @param Google_Service_CivicInfo_FieldMetadataProto + */ + public function setMetadata(Google_Service_CivicInfo_FieldMetadataProto $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CivicInfo_FieldMetadataProto + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param Google_Service_CivicInfo_MessageSet + */ + public function setTemporaryData(Google_Service_CivicInfo_MessageSet $temporaryData) + { + $this->temporaryData = $temporaryData; + } + /** + * @return Google_Service_CivicInfo_MessageSet + */ + public function getTemporaryData() + { + return $this->temporaryData; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php index 1404a8bc..b4f4930f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php @@ -22,6 +22,8 @@ class Google_Service_CivicInfo_PollingLocation extends Google_Collection protected $addressDataType = ''; public $endDate; public $id; + public $latitude; + public $longitude; public $name; public $notes; public $pollingHours; @@ -60,6 +62,22 @@ class Google_Service_CivicInfo_PollingLocation extends Google_Collection { return $this->id; } + public function setLatitude($latitude) + { + $this->latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php index 2d3369db..5457d489 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php @@ -23,14 +23,7 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection public $countryName; public $countryNameCode; public $dependentLocalityName; - public $dependentThoroughfareLeadingType; public $dependentThoroughfareName; - public $dependentThoroughfarePostDirection; - public $dependentThoroughfarePreDirection; - public $dependentThoroughfareTrailingType; - public $dependentThoroughfaresConnector; - public $dependentThoroughfaresIndicator; - public $dependentThoroughfaresType; public $firmName; public $isDisputed; public $languageCode; @@ -43,12 +36,8 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection public $sortingCode; public $subAdministrativeAreaName; public $subPremiseName; - public $thoroughfareLeadingType; public $thoroughfareName; public $thoroughfareNumber; - public $thoroughfarePostDirection; - public $thoroughfarePreDirection; - public $thoroughfareTrailingType; public function setAddressLines($addressLines) { @@ -90,14 +79,6 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection { return $this->dependentLocalityName; } - public function setDependentThoroughfareLeadingType($dependentThoroughfareLeadingType) - { - $this->dependentThoroughfareLeadingType = $dependentThoroughfareLeadingType; - } - public function getDependentThoroughfareLeadingType() - { - return $this->dependentThoroughfareLeadingType; - } public function setDependentThoroughfareName($dependentThoroughfareName) { $this->dependentThoroughfareName = $dependentThoroughfareName; @@ -106,54 +87,6 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection { return $this->dependentThoroughfareName; } - public function setDependentThoroughfarePostDirection($dependentThoroughfarePostDirection) - { - $this->dependentThoroughfarePostDirection = $dependentThoroughfarePostDirection; - } - public function getDependentThoroughfarePostDirection() - { - return $this->dependentThoroughfarePostDirection; - } - public function setDependentThoroughfarePreDirection($dependentThoroughfarePreDirection) - { - $this->dependentThoroughfarePreDirection = $dependentThoroughfarePreDirection; - } - public function getDependentThoroughfarePreDirection() - { - return $this->dependentThoroughfarePreDirection; - } - public function setDependentThoroughfareTrailingType($dependentThoroughfareTrailingType) - { - $this->dependentThoroughfareTrailingType = $dependentThoroughfareTrailingType; - } - public function getDependentThoroughfareTrailingType() - { - return $this->dependentThoroughfareTrailingType; - } - public function setDependentThoroughfaresConnector($dependentThoroughfaresConnector) - { - $this->dependentThoroughfaresConnector = $dependentThoroughfaresConnector; - } - public function getDependentThoroughfaresConnector() - { - return $this->dependentThoroughfaresConnector; - } - public function setDependentThoroughfaresIndicator($dependentThoroughfaresIndicator) - { - $this->dependentThoroughfaresIndicator = $dependentThoroughfaresIndicator; - } - public function getDependentThoroughfaresIndicator() - { - return $this->dependentThoroughfaresIndicator; - } - public function setDependentThoroughfaresType($dependentThoroughfaresType) - { - $this->dependentThoroughfaresType = $dependentThoroughfaresType; - } - public function getDependentThoroughfaresType() - { - return $this->dependentThoroughfaresType; - } public function setFirmName($firmName) { $this->firmName = $firmName; @@ -250,14 +183,6 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection { return $this->subPremiseName; } - public function setThoroughfareLeadingType($thoroughfareLeadingType) - { - $this->thoroughfareLeadingType = $thoroughfareLeadingType; - } - public function getThoroughfareLeadingType() - { - return $this->thoroughfareLeadingType; - } public function setThoroughfareName($thoroughfareName) { $this->thoroughfareName = $thoroughfareName; @@ -274,28 +199,4 @@ class Google_Service_CivicInfo_PostalAddress extends Google_Collection { return $this->thoroughfareNumber; } - public function setThoroughfarePostDirection($thoroughfarePostDirection) - { - $this->thoroughfarePostDirection = $thoroughfarePostDirection; - } - public function getThoroughfarePostDirection() - { - return $this->thoroughfarePostDirection; - } - public function setThoroughfarePreDirection($thoroughfarePreDirection) - { - $this->thoroughfarePreDirection = $thoroughfarePreDirection; - } - public function getThoroughfarePreDirection() - { - return $this->thoroughfarePreDirection; - } - public function setThoroughfareTrailingType($thoroughfareTrailingType) - { - $this->thoroughfareTrailingType = $thoroughfareTrailingType; - } - public function getThoroughfareTrailingType() - { - return $this->thoroughfareTrailingType; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Provenance.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Provenance.php new file mode 100644 index 00000000..6c123b7a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Provenance.php @@ -0,0 +1,118 @@ +collidedSegmentSource = $collidedSegmentSource; + } + /** + * @return Google_Service_CivicInfo_StreetSegmentList + */ + public function getCollidedSegmentSource() + { + return $this->collidedSegmentSource; + } + public function setCtclContestUuid($ctclContestUuid) + { + $this->ctclContestUuid = $ctclContestUuid; + } + public function getCtclContestUuid() + { + return $this->ctclContestUuid; + } + public function setCtclOfficeUuid($ctclOfficeUuid) + { + $this->ctclOfficeUuid = $ctclOfficeUuid; + } + public function getCtclOfficeUuid() + { + return $this->ctclOfficeUuid; + } + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setPrecinctId($precinctId) + { + $this->precinctId = $precinctId; + } + public function getPrecinctId() + { + return $this->precinctId; + } + public function setPrecinctSplitId($precinctSplitId) + { + $this->precinctSplitId = $precinctSplitId; + } + public function getPrecinctSplitId() + { + return $this->precinctSplitId; + } + public function setTsStreetSegmentId($tsStreetSegmentId) + { + $this->tsStreetSegmentId = $tsStreetSegmentId; + } + public function getTsStreetSegmentId() + { + return $this->tsStreetSegmentId; + } + public function setVip5PrecinctId($vip5PrecinctId) + { + $this->vip5PrecinctId = $vip5PrecinctId; + } + public function getVip5PrecinctId() + { + return $this->vip5PrecinctId; + } + public function setVip5StreetSegmentId($vip5StreetSegmentId) + { + $this->vip5StreetSegmentId = $vip5StreetSegmentId; + } + public function getVip5StreetSegmentId() + { + return $this->vip5StreetSegmentId; + } + public function setVipStreetSegmentId($vipStreetSegmentId) + { + $this->vipStreetSegmentId = $vipStreetSegmentId; + } + public function getVipStreetSegmentId() + { + return $this->vipStreetSegmentId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php index 034a0cc1..11bff3cb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php @@ -46,7 +46,10 @@ class Google_Service_CivicInfo_Resource_Elections extends Google_Service_Resourc * * @opt_param string electionId The unique ID of the election to look up. A list * of election IDs can be obtained at - * https://www.googleapis.com/civicinfo/{version}/elections + * https://www.googleapis.com/civicinfo/{version}/electionsIf no election ID is + * specified in the query and there is more than one election with data for the + * given voter, the additional elections are provided in the otherElections + * response field. * @opt_param bool officialOnly If set to true, only data from official state * sources will be returned. * @opt_param bool returnAllAvailableData If set to true, the query will return diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegment.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegment.php new file mode 100644 index 00000000..0e25c89a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegment.php @@ -0,0 +1,441 @@ +administrationRegionIds = $administrationRegionIds; + } + public function getAdministrationRegionIds() + { + return $this->administrationRegionIds; + } + public function setBeforeGeocodeId($beforeGeocodeId) + { + $this->beforeGeocodeId = $beforeGeocodeId; + } + public function getBeforeGeocodeId() + { + return $this->beforeGeocodeId; + } + public function setCatalistUniquePrecinctCode($catalistUniquePrecinctCode) + { + $this->catalistUniquePrecinctCode = $catalistUniquePrecinctCode; + } + public function getCatalistUniquePrecinctCode() + { + return $this->catalistUniquePrecinctCode; + } + public function setCity($city) + { + $this->city = $city; + } + public function getCity() + { + return $this->city; + } + public function setCityCouncilDistrict($cityCouncilDistrict) + { + $this->cityCouncilDistrict = $cityCouncilDistrict; + } + public function getCityCouncilDistrict() + { + return $this->cityCouncilDistrict; + } + public function setCongressionalDistrict($congressionalDistrict) + { + $this->congressionalDistrict = $congressionalDistrict; + } + public function getCongressionalDistrict() + { + return $this->congressionalDistrict; + } + public function setContestIds($contestIds) + { + $this->contestIds = $contestIds; + } + public function getContestIds() + { + return $this->contestIds; + } + public function setCountyCouncilDistrict($countyCouncilDistrict) + { + $this->countyCouncilDistrict = $countyCouncilDistrict; + } + public function getCountyCouncilDistrict() + { + return $this->countyCouncilDistrict; + } + public function setCountyFips($countyFips) + { + $this->countyFips = $countyFips; + } + public function getCountyFips() + { + return $this->countyFips; + } + public function setDatasetId($datasetId) + { + $this->datasetId = $datasetId; + } + public function getDatasetId() + { + return $this->datasetId; + } + public function setEarlyVoteSiteByIds($earlyVoteSiteByIds) + { + $this->earlyVoteSiteByIds = $earlyVoteSiteByIds; + } + public function getEarlyVoteSiteByIds() + { + return $this->earlyVoteSiteByIds; + } + public function setEndHouseNumber($endHouseNumber) + { + $this->endHouseNumber = $endHouseNumber; + } + public function getEndHouseNumber() + { + return $this->endHouseNumber; + } + /** + * @param Google_Service_CivicInfo_PointProto + */ + public function setGeocodedPoint(Google_Service_CivicInfo_PointProto $geocodedPoint) + { + $this->geocodedPoint = $geocodedPoint; + } + /** + * @return Google_Service_CivicInfo_PointProto + */ + public function getGeocodedPoint() + { + return $this->geocodedPoint; + } + public function setGeographicDivisionOcdIds($geographicDivisionOcdIds) + { + $this->geographicDivisionOcdIds = $geographicDivisionOcdIds; + } + public function getGeographicDivisionOcdIds() + { + return $this->geographicDivisionOcdIds; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setJudicialDistrict($judicialDistrict) + { + $this->judicialDistrict = $judicialDistrict; + } + public function getJudicialDistrict() + { + return $this->judicialDistrict; + } + public function setMailOnly($mailOnly) + { + $this->mailOnly = $mailOnly; + } + public function getMailOnly() + { + return $this->mailOnly; + } + public function setMunicipalDistrict($municipalDistrict) + { + $this->municipalDistrict = $municipalDistrict; + } + public function getMunicipalDistrict() + { + return $this->municipalDistrict; + } + public function setNcoaAddress($ncoaAddress) + { + $this->ncoaAddress = $ncoaAddress; + } + public function getNcoaAddress() + { + return $this->ncoaAddress; + } + public function setOddOrEvens($oddOrEvens) + { + $this->oddOrEvens = $oddOrEvens; + } + public function getOddOrEvens() + { + return $this->oddOrEvens; + } + public function setOriginalId($originalId) + { + $this->originalId = $originalId; + } + public function getOriginalId() + { + return $this->originalId; + } + public function setPollinglocationByIds($pollinglocationByIds) + { + $this->pollinglocationByIds = $pollinglocationByIds; + } + public function getPollinglocationByIds() + { + return $this->pollinglocationByIds; + } + public function setPrecinctName($precinctName) + { + $this->precinctName = $precinctName; + } + public function getPrecinctName() + { + return $this->precinctName; + } + public function setPrecinctOcdId($precinctOcdId) + { + $this->precinctOcdId = $precinctOcdId; + } + public function getPrecinctOcdId() + { + return $this->precinctOcdId; + } + /** + * @param Google_Service_CivicInfo_Provenance + */ + public function setProvenances($provenances) + { + $this->provenances = $provenances; + } + /** + * @return Google_Service_CivicInfo_Provenance + */ + public function getProvenances() + { + return $this->provenances; + } + public function setPublished($published) + { + $this->published = $published; + } + public function getPublished() + { + return $this->published; + } + public function setSchoolDistrict($schoolDistrict) + { + $this->schoolDistrict = $schoolDistrict; + } + public function getSchoolDistrict() + { + return $this->schoolDistrict; + } + public function setStartHouseNumber($startHouseNumber) + { + $this->startHouseNumber = $startHouseNumber; + } + public function getStartHouseNumber() + { + return $this->startHouseNumber; + } + public function setStartLatE7($startLatE7) + { + $this->startLatE7 = $startLatE7; + } + public function getStartLatE7() + { + return $this->startLatE7; + } + public function setStartLngE7($startLngE7) + { + $this->startLngE7 = $startLngE7; + } + public function getStartLngE7() + { + return $this->startLngE7; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStateHouseDistrict($stateHouseDistrict) + { + $this->stateHouseDistrict = $stateHouseDistrict; + } + public function getStateHouseDistrict() + { + return $this->stateHouseDistrict; + } + public function setStateSenateDistrict($stateSenateDistrict) + { + $this->stateSenateDistrict = $stateSenateDistrict; + } + public function getStateSenateDistrict() + { + return $this->stateSenateDistrict; + } + public function setStreetName($streetName) + { + $this->streetName = $streetName; + } + public function getStreetName() + { + return $this->streetName; + } + public function setSubAdministrativeAreaName($subAdministrativeAreaName) + { + $this->subAdministrativeAreaName = $subAdministrativeAreaName; + } + public function getSubAdministrativeAreaName() + { + return $this->subAdministrativeAreaName; + } + public function setSurrogateId($surrogateId) + { + $this->surrogateId = $surrogateId; + } + public function getSurrogateId() + { + return $this->surrogateId; + } + public function setTargetsmartUniquePrecinctCode($targetsmartUniquePrecinctCode) + { + $this->targetsmartUniquePrecinctCode = $targetsmartUniquePrecinctCode; + } + public function getTargetsmartUniquePrecinctCode() + { + return $this->targetsmartUniquePrecinctCode; + } + public function setTownshipDistrict($townshipDistrict) + { + $this->townshipDistrict = $townshipDistrict; + } + public function getTownshipDistrict() + { + return $this->townshipDistrict; + } + public function setUnitNumber($unitNumber) + { + $this->unitNumber = $unitNumber; + } + public function getUnitNumber() + { + return $this->unitNumber; + } + public function setUnitType($unitType) + { + $this->unitType = $unitType; + } + public function getUnitType() + { + return $this->unitType; + } + public function setVanPrecinctCode($vanPrecinctCode) + { + $this->vanPrecinctCode = $vanPrecinctCode; + } + public function getVanPrecinctCode() + { + return $this->vanPrecinctCode; + } + public function setVoterGeographicDivisionOcdIds($voterGeographicDivisionOcdIds) + { + $this->voterGeographicDivisionOcdIds = $voterGeographicDivisionOcdIds; + } + public function getVoterGeographicDivisionOcdIds() + { + return $this->voterGeographicDivisionOcdIds; + } + public function setWardDistrict($wardDistrict) + { + $this->wardDistrict = $wardDistrict; + } + public function getWardDistrict() + { + return $this->wardDistrict; + } + public function setWildcard($wildcard) + { + $this->wildcard = $wildcard; + } + public function getWildcard() + { + return $this->wildcard; + } + public function setZip($zip) + { + $this->zip = $zip; + } + public function getZip() + { + return $this->zip; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegmentList.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegmentList.php new file mode 100644 index 00000000..c5c64fd6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/StreetSegmentList.php @@ -0,0 +1,38 @@ +segments = $segments; + } + /** + * @return Google_Service_CivicInfo_StreetSegment + */ + public function getSegments() + { + return $this->segments; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php index 10b14900..e34e6725 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php @@ -35,6 +35,8 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation'; protected $pollingLocationsDataType = 'array'; public $precinctId; + protected $segmentsType = 'Google_Service_CivicInfo_StreetSegment'; + protected $segmentsDataType = 'array'; protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion'; protected $stateDataType = 'array'; @@ -160,6 +162,20 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection { return $this->precinctId; } + /** + * @param Google_Service_CivicInfo_StreetSegment + */ + public function setSegments($segments) + { + $this->segments = $segments; + } + /** + * @return Google_Service_CivicInfo_StreetSegment + */ + public function getSegments() + { + return $this->segments; + } /** * @param Google_Service_CivicInfo_AdministrationRegion */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom.php b/vendor/google/apiclient-services/src/Google/Service/Classroom.php index d1f32ea4..8eafdff5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom.php @@ -108,6 +108,7 @@ class Google_Service_Classroom extends Google_Service parent::__construct($client); $this->rootUrl = 'https://classroom.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'classroom'; @@ -235,14 +236,14 @@ class Google_Service_Classroom extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -303,6 +304,14 @@ class Google_Service_Classroom extends Google_Service 'type' => 'string', 'required' => true, ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -312,14 +321,6 @@ class Google_Service_Classroom extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'modifyAssignees' => array( 'path' => 'v1/courses/{courseId}/announcements/{id}:modifyAssignees', @@ -824,14 +825,6 @@ class Google_Service_Classroom extends Google_Service 'path' => 'v1/invitations', 'httpMethod' => 'GET', 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'courseId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'userId' => array( 'location' => 'query', 'type' => 'string', @@ -840,6 +833,14 @@ class Google_Service_Classroom extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'courseId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -929,6 +930,10 @@ class Google_Service_Classroom extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'invitedEmailAddress' => array( 'location' => 'query', 'type' => 'string', @@ -942,10 +947,6 @@ class Google_Service_Classroom extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', @@ -1015,6 +1016,10 @@ class Google_Service_Classroom extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'invitedEmailAddress' => array( 'location' => 'query', 'type' => 'string', @@ -1023,10 +1028,6 @@ class Google_Service_Classroom extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/CourseWorkChangesInfo.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/CourseWorkChangesInfo.php new file mode 100644 index 00000000..742703da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/CourseWorkChangesInfo.php @@ -0,0 +1,30 @@ +courseId = $courseId; + } + public function getCourseId() + { + return $this->courseId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Feed.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Feed.php index 01349d21..dea7441b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Feed.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Feed.php @@ -19,6 +19,8 @@ class Google_Service_Classroom_Feed extends Google_Model { protected $courseRosterChangesInfoType = 'Google_Service_Classroom_CourseRosterChangesInfo'; protected $courseRosterChangesInfoDataType = ''; + protected $courseWorkChangesInfoType = 'Google_Service_Classroom_CourseWorkChangesInfo'; + protected $courseWorkChangesInfoDataType = ''; public $feedType; /** @@ -35,6 +37,20 @@ class Google_Service_Classroom_Feed extends Google_Model { return $this->courseRosterChangesInfo; } + /** + * @param Google_Service_Classroom_CourseWorkChangesInfo + */ + public function setCourseWorkChangesInfo(Google_Service_Classroom_CourseWorkChangesInfo $courseWorkChangesInfo) + { + $this->courseWorkChangesInfo = $courseWorkChangesInfo; + } + /** + * @return Google_Service_Classroom_CourseWorkChangesInfo + */ + public function getCourseWorkChangesInfo() + { + return $this->courseWorkChangesInfo; + } public function setFeedType($feedType) { $this->feedType = $feedType; diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php index 7d6e6f9c..e1aea95f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php @@ -87,15 +87,15 @@ class Google_Service_Classroom_Resource_CoursesAliases extends Google_Service_Re * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. - * - * The server may return fewer than the specified number of results. * @opt_param string pageToken nextPageToken value returned from a previous list * call, indicating that the subsequent page of results should be returned. * * The list request must be otherwise identical to the one that resulted in this * token. + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. + * + * The server may return fewer than the specified number of results. * @return Google_Service_Classroom_ListCourseAliasesResponse */ public function listCoursesAliases($courseId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAnnouncements.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAnnouncements.php index d30f436a..57c7fdd2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAnnouncements.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAnnouncements.php @@ -116,13 +116,6 @@ class Google_Service_Classroom_Resource_CoursesAnnouncements extends Google_Serv * either the Classroom-assigned identifier or an alias. * @param array $optParams Optional parameters. * - * @opt_param int pageSize Maximum number of items to return. Zero or - * unspecified indicates that the server may assign a maximum. - * - * The server may return fewer than the specified number of results. - * @opt_param string announcementStates Restriction on the `state` of - * announcements returned. If this argument is left unspecified, the default - * value is `PUBLISHED`. * @opt_param string orderBy Optional sort ordering for results. A comma- * separated list of fields with an optional sort direction keyword. Supported * field is `updateTime`. Supported direction keywords are `asc` and `desc`. If @@ -133,6 +126,13 @@ class Google_Service_Classroom_Resource_CoursesAnnouncements extends Google_Serv * * The list request must be otherwise identical to the one that resulted in this * token. + * @opt_param int pageSize Maximum number of items to return. Zero or + * unspecified indicates that the server may assign a maximum. + * + * The server may return fewer than the specified number of results. + * @opt_param string announcementStates Restriction on the `state` of + * announcements returned. If this argument is left unspecified, the default + * value is `PUBLISHED`. * @return Google_Service_Classroom_ListAnnouncementsResponse */ public function listCoursesAnnouncements($courseId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php index 20f7d0c4..b5370f57 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php @@ -176,7 +176,7 @@ class Google_Service_Classroom_Resource_CoursesCourseWorkStudentSubmissions exte * Reclaims a student submission on behalf of the student that owns it. * * Reclaiming a student submission transfers ownership of attached Drive files - * to the student and update the submission state. + * to the student and updates the submission state. * * Only the student that owns the requested student submission may call this * method, and only for a student submission that has been turned in. diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php index c998b5b1..c329f1dc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php @@ -123,12 +123,6 @@ class Google_Service_Classroom_Resource_Invitations extends Google_Service_Resou * * @param array $optParams Optional parameters. * - * @opt_param int pageSize Maximum number of items to return. Zero means no - * maximum. - * - * The server may return fewer than the specified number of results. - * @opt_param string courseId Restricts returned invitations to those for a - * course with the specified identifier. * @opt_param string userId Restricts returned invitations to those for a * specific user. The identifier can be one of the following: * @@ -139,6 +133,12 @@ class Google_Service_Classroom_Resource_Invitations extends Google_Service_Resou * * The list request must be otherwise identical to the one that resulted in this * token. + * @opt_param int pageSize Maximum number of items to return. Zero means no + * maximum. + * + * The server may return fewer than the specified number of results. + * @opt_param string courseId Restricts returned invitations to those for a + * course with the specified identifier. * @return Google_Service_Classroom_ListInvitationsResponse */ public function listInvitations($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Registrations.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Registrations.php index 10cc7db1..7ab3d993 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Registrations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/Registrations.php @@ -27,7 +27,7 @@ class Google_Service_Classroom_Resource_Registrations extends Google_Service_Res { /** * Creates a `Registration`, causing Classroom to start sending notifications - * from the provided `feed` to the provided `destination`. + * from the provided `feed` to the destination provided in `cloudPubSubTopic`. * * Returns the created `Registration`. Currently, this will be the same as the * argument, but with server-assigned fields such as `expiry_time` and `id` @@ -36,23 +36,23 @@ class Google_Service_Classroom_Resource_Registrations extends Google_Service_Res * Note that any value specified for the `expiry_time` or `id` fields will be * ignored. * - * While Classroom may validate the `destination` and return errors on a best - * effort basis, it is the caller's responsibility to ensure that it exists and - * that Classroom has permission to publish to it. + * While Classroom may validate the `cloudPubSubTopic` and return errors on a + * best effort basis, it is the caller's responsibility to ensure that it exists + * and that Classroom has permission to publish to it. * * This method may return the following error codes: * * * `PERMISSION_DENIED` if: * the authenticated user does not have * permission to receive notifications from the requested field; or * - * the credential provided does not include the appropriate scope for the + * the credential provided does not include the appropriate scope for the * requested feed. * another access error is encountered. * - * `INVALID_ARGUMENT` if: * no `destination` is specified, or the specified - * `destination` is not valid; or * no `feed` is specified, or the - * specified `feed` is not valid. * `NOT_FOUND` if: * the specified `feed` - * cannot be located, or the requesting user does not have permission to - * determine whether or not it exists; or * the specified `destination` - * cannot be located, or Classroom has not been granted permission to - * publish to it. (registrations.create) + * `INVALID_ARGUMENT` if: * no `cloudPubsubTopic` is specified, or the + * specified `cloudPubsubTopic` is not valid; or * no `feed` is + * specified, or the specified `feed` is not valid. * `NOT_FOUND` if: * the + * specified `feed` cannot be located, or the requesting user does not + * have permission to determine whether or not it exists; or * the specified + * `cloudPubsubTopic` cannot be located, or Classroom has not been granted + * permission to publish to it. (registrations.create) * * @param Google_Service_Classroom_Registration $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php index 6bb455b5..7c3d103c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php @@ -121,6 +121,11 @@ class Google_Service_Classroom_Resource_UserProfilesGuardianInvitations extends * requesting user is permitted to view guardian invitations. * @param array $optParams Optional parameters. * + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. + * + * The list request must be otherwise identical to the one that resulted in this + * token. * @opt_param string invitedEmailAddress If specified, only results with the * specified `invited_email_address` will be returned. * @opt_param string states If specified, only results with the specified @@ -130,11 +135,6 @@ class Google_Service_Classroom_Resource_UserProfilesGuardianInvitations extends * unspecified indicates that the server may assign a maximum. * * The server may return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. - * - * The list request must be otherwise identical to the one that resulted in this - * token. * @return Google_Service_Classroom_ListGuardianInvitationsResponse */ public function listUserProfilesGuardianInvitations($studentId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php index 73342a01..1090712a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php +++ b/vendor/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php @@ -120,6 +120,11 @@ class Google_Service_Classroom_Resource_UserProfilesGuardians extends Google_Ser * requesting user has access to view. * @param array $optParams Optional parameters. * + * @opt_param string pageToken nextPageToken value returned from a previous list + * call, indicating that the subsequent page of results should be returned. + * + * The list request must be otherwise identical to the one that resulted in this + * token. * @opt_param string invitedEmailAddress Filter results by the email address * that the original invitation was sent to, resulting in this guardian link. * This filter can only be used by domain administrators. @@ -127,11 +132,6 @@ class Google_Service_Classroom_Resource_UserProfilesGuardians extends Google_Ser * unspecified indicates that the server may assign a maximum. * * The server may return fewer than the specified number of results. - * @opt_param string pageToken nextPageToken value returned from a previous list - * call, indicating that the subsequent page of results should be returned. - * - * The list request must be otherwise identical to the one that resulted in this - * token. * @return Google_Service_Classroom_ListGuardiansResponse */ public function listUserProfilesGuardians($studentId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset.php new file mode 100644 index 00000000..e86bb8ff --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset.php @@ -0,0 +1,233 @@ + + * The cloud asset API manages the history and inventory of cloud resources. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudAsset extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $folders; + public $folders_operations; + public $organizations; + public $organizations_operations; + public $projects; + public $projects_operations; + + /** + * Constructs the internal representation of the CloudAsset service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudasset.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1beta1'; + $this->serviceName = 'cloudasset'; + + $this->folders = new Google_Service_CloudAsset_Resource_Folders( + $this, + $this->serviceName, + 'folders', + array( + 'methods' => array( + 'exportAssets' => array( + 'path' => 'v1beta1/{+parent}:exportAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->folders_operations = new Google_Service_CloudAsset_Resource_FoldersOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->organizations = new Google_Service_CloudAsset_Resource_Organizations( + $this, + $this->serviceName, + 'organizations', + array( + 'methods' => array( + 'batchGetAssetsHistory' => array( + 'path' => 'v1beta1/{+parent}:batchGetAssetsHistory', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'contentType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'readTimeWindow.endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'readTimeWindow.startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'assetNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'exportAssets' => array( + 'path' => 'v1beta1/{+parent}:exportAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->organizations_operations = new Google_Service_CloudAsset_Resource_OrganizationsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_CloudAsset_Resource_Projects( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'batchGetAssetsHistory' => array( + 'path' => 'v1beta1/{+parent}:batchGetAssetsHistory', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'assetNames' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'contentType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'readTimeWindow.endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'readTimeWindow.startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'exportAssets' => array( + 'path' => 'v1beta1/{+parent}:exportAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_operations = new Google_Service_CloudAsset_Resource_ProjectsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Asset.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Asset.php new file mode 100644 index 00000000..0618c479 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Asset.php @@ -0,0 +1,71 @@ +assetType = $assetType; + } + public function getAssetType() + { + return $this->assetType; + } + /** + * @param Google_Service_CloudAsset_Policy + */ + public function setIamPolicy(Google_Service_CloudAsset_Policy $iamPolicy) + { + $this->iamPolicy = $iamPolicy; + } + /** + * @return Google_Service_CloudAsset_Policy + */ + public function getIamPolicy() + { + return $this->iamPolicy; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudAsset_CloudassetResource + */ + public function setResource(Google_Service_CloudAsset_CloudassetResource $resource) + { + $this->resource = $resource; + } + /** + * @return Google_Service_CloudAsset_CloudassetResource + */ + public function getResource() + { + return $this->resource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditConfig.php new file mode 100644 index 00000000..ee515f4b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditConfig.php @@ -0,0 +1,47 @@ +auditLogConfigs = $auditLogConfigs; + } + /** + * @return Google_Service_CloudAsset_AuditLogConfig + */ + public function getAuditLogConfigs() + { + return $this->auditLogConfigs; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditLogConfig.php new file mode 100644 index 00000000..01ec5308 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/AuditLogConfig.php @@ -0,0 +1,40 @@ +exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setLogType($logType) + { + $this->logType = $logType; + } + public function getLogType() + { + return $this->logType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListPublishersResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/BatchGetAssetsHistoryResponse.php similarity index 58% rename from vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListPublishersResponse.php rename to vendor/google/apiclient-services/src/Google/Service/CloudAsset/BatchGetAssetsHistoryResponse.php index d7bd24d6..2d48ea90 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListPublishersResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/BatchGetAssetsHistoryResponse.php @@ -15,24 +15,24 @@ * the License. */ -class Google_Service_AdExchangeBuyerII_ListPublishersResponse extends Google_Collection +class Google_Service_CloudAsset_BatchGetAssetsHistoryResponse extends Google_Collection { - protected $collection_key = 'publisher'; - protected $publisherType = 'Google_Service_AdExchangeBuyerII_Publisher'; - protected $publisherDataType = 'array'; + protected $collection_key = 'assets'; + protected $assetsType = 'Google_Service_CloudAsset_TemporalAsset'; + protected $assetsDataType = 'array'; /** - * @param Google_Service_AdExchangeBuyerII_Publisher + * @param Google_Service_CloudAsset_TemporalAsset */ - public function setPublisher($publisher) + public function setAssets($assets) { - $this->publisher = $publisher; + $this->assets = $assets; } /** - * @return Google_Service_AdExchangeBuyerII_Publisher + * @return Google_Service_CloudAsset_TemporalAsset */ - public function getPublisher() + public function getAssets() { - return $this->publisher; + return $this->assets; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Binding.php new file mode 100644 index 00000000..3cde78bf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_CloudAsset_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/CloudassetResource.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/CloudassetResource.php new file mode 100644 index 00000000..202ebc15 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/CloudassetResource.php @@ -0,0 +1,75 @@ +data = $data; + } + public function getData() + { + return $this->data; + } + public function setDiscoveryDocumentUri($discoveryDocumentUri) + { + $this->discoveryDocumentUri = $discoveryDocumentUri; + } + public function getDiscoveryDocumentUri() + { + return $this->discoveryDocumentUri; + } + public function setDiscoveryName($discoveryName) + { + $this->discoveryName = $discoveryName; + } + public function getDiscoveryName() + { + return $this->discoveryName; + } + public function setParent($parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } + public function setResourceUrl($resourceUrl) + { + $this->resourceUrl = $resourceUrl; + } + public function getResourceUrl() + { + return $this->resourceUrl; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/ExportAssetsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/ExportAssetsRequest.php new file mode 100644 index 00000000..d702bac6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/ExportAssetsRequest.php @@ -0,0 +1,65 @@ +assetTypes = $assetTypes; + } + public function getAssetTypes() + { + return $this->assetTypes; + } + public function setContentType($contentType) + { + $this->contentType = $contentType; + } + public function getContentType() + { + return $this->contentType; + } + /** + * @param Google_Service_CloudAsset_OutputConfig + */ + public function setOutputConfig(Google_Service_CloudAsset_OutputConfig $outputConfig) + { + $this->outputConfig = $outputConfig; + } + /** + * @return Google_Service_CloudAsset_OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } + public function setReadTime($readTime) + { + $this->readTime = $readTime; + } + public function getReadTime() + { + return $this->readTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Expr.php new file mode 100644 index 00000000..995c3703 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/GcsDestination.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/GcsDestination.php new file mode 100644 index 00000000..2937681d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/GcsDestination.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Operation.php new file mode 100644 index 00000000..a6c19403 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudAsset_Status + */ + public function setError(Google_Service_CloudAsset_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudAsset_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/OutputConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/OutputConfig.php new file mode 100644 index 00000000..da313954 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/OutputConfig.php @@ -0,0 +1,37 @@ +gcsDestination = $gcsDestination; + } + /** + * @return Google_Service_CloudAsset_GcsDestination + */ + public function getGcsDestination() + { + return $this->gcsDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Policy.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Policy.php new file mode 100644 index 00000000..fa4c35b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Policy.php @@ -0,0 +1,72 @@ +auditConfigs = $auditConfigs; + } + /** + * @return Google_Service_CloudAsset_AuditConfig + */ + public function getAuditConfigs() + { + return $this->auditConfigs; + } + /** + * @param Google_Service_CloudAsset_Binding + */ + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + /** + * @return Google_Service_CloudAsset_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Folders.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Folders.php new file mode 100644 index 00000000..9fe1723f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Folders.php @@ -0,0 +1,48 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $folders = $cloudassetService->folders; + * + */ +class Google_Service_CloudAsset_Resource_Folders extends Google_Service_Resource +{ + /** + * Exports assets with time and resource types to a given Cloud Storage + * location. The output format is newline-delimited JSON. This API implements + * the google.longrunning.Operation API allowing you to keep track of the + * export. (folders.exportAssets) + * + * @param string $parent Required. The relative name of the root asset. This can + * only be an organization number (such as "organizations/123"), a project ID + * (such as "projects/my-project-id"), a project number (such as + * "projects/12345"), or a folder number (such as "folders/123"). + * @param Google_Service_CloudAsset_ExportAssetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function exportAssets($parent, Google_Service_CloudAsset_ExportAssetsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('exportAssets', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/FoldersOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/FoldersOperations.php new file mode 100644 index 00000000..52f01d38 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/FoldersOperations.php @@ -0,0 +1,43 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $operations = $cloudassetService->operations; + * + */ +class Google_Service_CloudAsset_Resource_FoldersOperations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Organizations.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Organizations.php new file mode 100644 index 00000000..2b019179 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Organizations.php @@ -0,0 +1,82 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $organizations = $cloudassetService->organizations; + * + */ +class Google_Service_CloudAsset_Resource_Organizations extends Google_Service_Resource +{ + /** + * Batch gets the update history of assets that overlap a time window. For + * RESOURCE content, this API outputs history with asset in both non-delete or + * deleted status. For IAM_POLICY content, this API outputs history when the + * asset and its attached IAM POLICY both exist. This can create gaps in the + * output history. If a specified asset does not exist, this API returns an + * INVALID_ARGUMENT error. (organizations.batchGetAssetsHistory) + * + * @param string $parent Required. The relative name of the root asset. It can + * only be an organization number (such as "organizations/123"), a project ID + * (such as "projects/my-project-id")", or a project number (such as + * "projects/12345"). + * @param array $optParams Optional parameters. + * + * @opt_param string contentType Required. The content type. + * @opt_param string readTimeWindow.endTime End time of the time window + * (inclusive). Current timestamp if not specified. + * @opt_param string readTimeWindow.startTime Start time of the time window + * (exclusive). + * @opt_param string assetNames A list of the full names of the assets. For + * example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instan + * ces/instance1`. See [Resource Names](https://cloud.google.com/apis/design/res + * ource_names#full_resource_name) for more info. + * + * The request becomes a no-op if the asset name list is empty, and the max size + * of the asset name list is 100 in one request. + * @return Google_Service_CloudAsset_BatchGetAssetsHistoryResponse + */ + public function batchGetAssetsHistory($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('batchGetAssetsHistory', array($params), "Google_Service_CloudAsset_BatchGetAssetsHistoryResponse"); + } + /** + * Exports assets with time and resource types to a given Cloud Storage + * location. The output format is newline-delimited JSON. This API implements + * the google.longrunning.Operation API allowing you to keep track of the + * export. (organizations.exportAssets) + * + * @param string $parent Required. The relative name of the root asset. This can + * only be an organization number (such as "organizations/123"), a project ID + * (such as "projects/my-project-id"), a project number (such as + * "projects/12345"), or a folder number (such as "folders/123"). + * @param Google_Service_CloudAsset_ExportAssetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function exportAssets($parent, Google_Service_CloudAsset_ExportAssetsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('exportAssets', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/OrganizationsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/OrganizationsOperations.php new file mode 100644 index 00000000..e6f6830d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/OrganizationsOperations.php @@ -0,0 +1,43 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $operations = $cloudassetService->operations; + * + */ +class Google_Service_CloudAsset_Resource_OrganizationsOperations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Projects.php new file mode 100644 index 00000000..aca1a87e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/Projects.php @@ -0,0 +1,82 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $projects = $cloudassetService->projects; + * + */ +class Google_Service_CloudAsset_Resource_Projects extends Google_Service_Resource +{ + /** + * Batch gets the update history of assets that overlap a time window. For + * RESOURCE content, this API outputs history with asset in both non-delete or + * deleted status. For IAM_POLICY content, this API outputs history when the + * asset and its attached IAM POLICY both exist. This can create gaps in the + * output history. If a specified asset does not exist, this API returns an + * INVALID_ARGUMENT error. (projects.batchGetAssetsHistory) + * + * @param string $parent Required. The relative name of the root asset. It can + * only be an organization number (such as "organizations/123"), a project ID + * (such as "projects/my-project-id")", or a project number (such as + * "projects/12345"). + * @param array $optParams Optional parameters. + * + * @opt_param string assetNames A list of the full names of the assets. For + * example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instan + * ces/instance1`. See [Resource Names](https://cloud.google.com/apis/design/res + * ource_names#full_resource_name) for more info. + * + * The request becomes a no-op if the asset name list is empty, and the max size + * of the asset name list is 100 in one request. + * @opt_param string contentType Required. The content type. + * @opt_param string readTimeWindow.endTime End time of the time window + * (inclusive). Current timestamp if not specified. + * @opt_param string readTimeWindow.startTime Start time of the time window + * (exclusive). + * @return Google_Service_CloudAsset_BatchGetAssetsHistoryResponse + */ + public function batchGetAssetsHistory($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('batchGetAssetsHistory', array($params), "Google_Service_CloudAsset_BatchGetAssetsHistoryResponse"); + } + /** + * Exports assets with time and resource types to a given Cloud Storage + * location. The output format is newline-delimited JSON. This API implements + * the google.longrunning.Operation API allowing you to keep track of the + * export. (projects.exportAssets) + * + * @param string $parent Required. The relative name of the root asset. This can + * only be an organization number (such as "organizations/123"), a project ID + * (such as "projects/my-project-id"), a project number (such as + * "projects/12345"), or a folder number (such as "folders/123"). + * @param Google_Service_CloudAsset_ExportAssetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function exportAssets($parent, Google_Service_CloudAsset_ExportAssetsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('exportAssets', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/ProjectsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/ProjectsOperations.php new file mode 100644 index 00000000..1cceaf19 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Resource/ProjectsOperations.php @@ -0,0 +1,43 @@ + + * $cloudassetService = new Google_Service_CloudAsset(...); + * $operations = $cloudassetService->operations; + * + */ +class Google_Service_CloudAsset_Resource_ProjectsOperations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudAsset_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudAsset_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Status.php new file mode 100644 index 00000000..a5f4b15d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TemporalAsset.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TemporalAsset.php new file mode 100644 index 00000000..27d26fff --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TemporalAsset.php @@ -0,0 +1,62 @@ +asset = $asset; + } + /** + * @return Google_Service_CloudAsset_Asset + */ + public function getAsset() + { + return $this->asset; + } + public function setDeleted($deleted) + { + $this->deleted = $deleted; + } + public function getDeleted() + { + return $this->deleted; + } + /** + * @param Google_Service_CloudAsset_TimeWindow + */ + public function setWindow(Google_Service_CloudAsset_TimeWindow $window) + { + $this->window = $window; + } + /** + * @return Google_Service_CloudAsset_TimeWindow + */ + public function getWindow() + { + return $this->window; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TimeWindow.php b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TimeWindow.php new file mode 100644 index 00000000..5c117ee4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudAsset/TimeWindow.php @@ -0,0 +1,39 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild.php index 6890f07c..03433338 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild.php @@ -19,11 +19,11 @@ * Service definition for CloudBuild (v1). * *- * Builds container images in the cloud.
+ * Creates and manages builds on Google Cloud Platform. * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -48,6 +48,7 @@ class Google_Service_CloudBuild extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudbuild.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudbuild'; @@ -86,6 +87,10 @@ class Google_Service_CloudBuild extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -94,10 +99,6 @@ class Google_Service_CloudBuild extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php index 7c3dffab..bdda98c1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php @@ -17,13 +17,19 @@ class Google_Service_CloudBuild_BuildOptions extends Google_Collection { - protected $collection_key = 'sourceProvenanceHash'; + protected $collection_key = 'volumes'; public $diskSizeGb; + public $env; public $logStreamingOption; + public $logging; public $machineType; public $requestedVerifyOption; + public $secretEnv; public $sourceProvenanceHash; public $substitutionOption; + protected $volumesType = 'Google_Service_CloudBuild_Volume'; + protected $volumesDataType = 'array'; + public $workerPool; public function setDiskSizeGb($diskSizeGb) { @@ -33,6 +39,14 @@ class Google_Service_CloudBuild_BuildOptions extends Google_Collection { return $this->diskSizeGb; } + public function setEnv($env) + { + $this->env = $env; + } + public function getEnv() + { + return $this->env; + } public function setLogStreamingOption($logStreamingOption) { $this->logStreamingOption = $logStreamingOption; @@ -41,6 +55,14 @@ class Google_Service_CloudBuild_BuildOptions extends Google_Collection { return $this->logStreamingOption; } + public function setLogging($logging) + { + $this->logging = $logging; + } + public function getLogging() + { + return $this->logging; + } public function setMachineType($machineType) { $this->machineType = $machineType; @@ -57,6 +79,14 @@ class Google_Service_CloudBuild_BuildOptions extends Google_Collection { return $this->requestedVerifyOption; } + public function setSecretEnv($secretEnv) + { + $this->secretEnv = $secretEnv; + } + public function getSecretEnv() + { + return $this->secretEnv; + } public function setSourceProvenanceHash($sourceProvenanceHash) { $this->sourceProvenanceHash = $sourceProvenanceHash; @@ -73,4 +103,26 @@ class Google_Service_CloudBuild_BuildOptions extends Google_Collection { return $this->substitutionOption; } + /** + * @param Google_Service_CloudBuild_Volume + */ + public function setVolumes($volumes) + { + $this->volumes = $volumes; + } + /** + * @return Google_Service_CloudBuild_Volume + */ + public function getVolumes() + { + return $this->volumes; + } + public function setWorkerPool($workerPool) + { + $this->workerPool = $workerPool; + } + public function getWorkerPool() + { + return $this->workerPool; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php index 14c69f8d..c298ea49 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php @@ -24,6 +24,8 @@ class Google_Service_CloudBuild_BuildStep extends Google_Collection public $env; public $id; public $name; + protected $pullTimingType = 'Google_Service_CloudBuild_TimeSpan'; + protected $pullTimingDataType = ''; public $secretEnv; public $status; public $timeout; @@ -81,6 +83,20 @@ class Google_Service_CloudBuild_BuildStep extends Google_Collection { return $this->name; } + /** + * @param Google_Service_CloudBuild_TimeSpan + */ + public function setPullTiming(Google_Service_CloudBuild_TimeSpan $pullTiming) + { + $this->pullTiming = $pullTiming; + } + /** + * @return Google_Service_CloudBuild_TimeSpan + */ + public function getPullTiming() + { + return $this->pullTiming; + } public function setSecretEnv($secretEnv) { $this->secretEnv = $secretEnv; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php index 154d8dc7..7ca5e096 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php @@ -15,8 +15,9 @@ * the License. */ -class Google_Service_CloudBuild_BuildTrigger extends Google_Model +class Google_Service_CloudBuild_BuildTrigger extends Google_Collection { + protected $collection_key = 'includedFiles'; protected $buildType = 'Google_Service_CloudBuild_Build'; protected $buildDataType = ''; public $createTime; @@ -24,6 +25,8 @@ class Google_Service_CloudBuild_BuildTrigger extends Google_Model public $disabled; public $filename; public $id; + public $ignoredFiles; + public $includedFiles; public $substitutions; protected $triggerTemplateType = 'Google_Service_CloudBuild_RepoSource'; protected $triggerTemplateDataType = ''; @@ -82,6 +85,22 @@ class Google_Service_CloudBuild_BuildTrigger extends Google_Model { return $this->id; } + public function setIgnoredFiles($ignoredFiles) + { + $this->ignoredFiles = $ignoredFiles; + } + public function getIgnoredFiles() + { + return $this->ignoredFiles; + } + public function setIncludedFiles($includedFiles) + { + $this->includedFiles = $includedFiles; + } + public function getIncludedFiles() + { + return $this->includedFiles; + } public function setSubstitutions($substitutions) { $this->substitutions = $substitutions; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php index fec4ab74..ae748b0c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php @@ -77,9 +77,9 @@ class Google_Service_CloudBuild_Resource_Operations extends Google_Service_Resou * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. - * @opt_param string pageToken The standard list page token. * @return Google_Service_CloudBuild_ListOperationsResponse */ public function listOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Results.php b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Results.php index 01cde579..14618089 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Results.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudBuild/Results.php @@ -20,6 +20,7 @@ class Google_Service_CloudBuild_Results extends Google_Collection protected $collection_key = 'images'; public $artifactManifest; public $buildStepImages; + public $buildStepOutputs; protected $imagesType = 'Google_Service_CloudBuild_BuiltImage'; protected $imagesDataType = 'array'; public $numArtifacts; @@ -40,6 +41,14 @@ class Google_Service_CloudBuild_Results extends Google_Collection { return $this->buildStepImages; } + public function setBuildStepOutputs($buildStepOutputs) + { + $this->buildStepOutputs = $buildStepOutputs; + } + public function getBuildStepOutputs() + { + return $this->buildStepOutputs; + } /** * @param Google_Service_CloudBuild_BuiltImage */ diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer.php new file mode 100644 index 00000000..b944149a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer.php @@ -0,0 +1,208 @@ + + * Manages Apache Airflow environments on Google Cloud Platform. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudComposer extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_locations_environments; + public $projects_locations_imageVersions; + public $projects_locations_operations; + + /** + * Constructs the internal representation of the CloudComposer service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://composer.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'composer'; + + $this->projects_locations_environments = new Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironments( + $this, + $this->serviceName, + 'environments', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/environments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/environments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_locations_imageVersions = new Google_Service_CloudComposer_Resource_ProjectsLocationsImageVersions( + $this, + $this->serviceName, + 'imageVersions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+parent}/imageVersions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_operations = new Google_Service_CloudComposer_Resource_ProjectsLocationsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ComposerEmpty.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ComposerEmpty.php new file mode 100644 index 00000000..299caebc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ComposerEmpty.php @@ -0,0 +1,20 @@ +config = $config; + } + /** + * @return Google_Service_CloudComposer_EnvironmentConfig + */ + public function getConfig() + { + return $this->config; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + public function setUuid($uuid) + { + $this->uuid = $uuid; + } + public function getUuid() + { + return $this->uuid; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/EnvironmentConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/EnvironmentConfig.php new file mode 100644 index 00000000..a3e9a3a7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/EnvironmentConfig.php @@ -0,0 +1,89 @@ +airflowUri = $airflowUri; + } + public function getAirflowUri() + { + return $this->airflowUri; + } + public function setDagGcsPrefix($dagGcsPrefix) + { + $this->dagGcsPrefix = $dagGcsPrefix; + } + public function getDagGcsPrefix() + { + return $this->dagGcsPrefix; + } + public function setGkeCluster($gkeCluster) + { + $this->gkeCluster = $gkeCluster; + } + public function getGkeCluster() + { + return $this->gkeCluster; + } + /** + * @param Google_Service_CloudComposer_NodeConfig + */ + public function setNodeConfig(Google_Service_CloudComposer_NodeConfig $nodeConfig) + { + $this->nodeConfig = $nodeConfig; + } + /** + * @return Google_Service_CloudComposer_NodeConfig + */ + public function getNodeConfig() + { + return $this->nodeConfig; + } + public function setNodeCount($nodeCount) + { + $this->nodeCount = $nodeCount; + } + public function getNodeCount() + { + return $this->nodeCount; + } + /** + * @param Google_Service_CloudComposer_SoftwareConfig + */ + public function setSoftwareConfig(Google_Service_CloudComposer_SoftwareConfig $softwareConfig) + { + $this->softwareConfig = $softwareConfig; + } + /** + * @return Google_Service_CloudComposer_SoftwareConfig + */ + public function getSoftwareConfig() + { + return $this->softwareConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ImageVersion.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ImageVersion.php new file mode 100644 index 00000000..ac7958da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ImageVersion.php @@ -0,0 +1,49 @@ +imageVersionId = $imageVersionId; + } + public function getImageVersionId() + { + return $this->imageVersionId; + } + public function setIsDefault($isDefault) + { + $this->isDefault = $isDefault; + } + public function getIsDefault() + { + return $this->isDefault; + } + public function setSupportedPythonVersions($supportedPythonVersions) + { + $this->supportedPythonVersions = $supportedPythonVersions; + } + public function getSupportedPythonVersions() + { + return $this->supportedPythonVersions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListEnvironmentsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListEnvironmentsResponse.php new file mode 100644 index 00000000..d48c2edc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListEnvironmentsResponse.php @@ -0,0 +1,47 @@ +environments = $environments; + } + /** + * @return Google_Service_CloudComposer_Environment + */ + public function getEnvironments() + { + return $this->environments; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListImageVersionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListImageVersionsResponse.php new file mode 100644 index 00000000..a35b64ef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListImageVersionsResponse.php @@ -0,0 +1,47 @@ +imageVersions = $imageVersions; + } + /** + * @return Google_Service_CloudComposer_ImageVersion + */ + public function getImageVersions() + { + return $this->imageVersions; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListOperationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListOperationsResponse.php new file mode 100644 index 00000000..f9057d0a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/ListOperationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudComposer_Operation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_CloudComposer_Operation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/NodeConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/NodeConfig.php new file mode 100644 index 00000000..33cfd2d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/NodeConfig.php @@ -0,0 +1,94 @@ +diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setOauthScopes($oauthScopes) + { + $this->oauthScopes = $oauthScopes; + } + public function getOauthScopes() + { + return $this->oauthScopes; + } + public function setServiceAccount($serviceAccount) + { + $this->serviceAccount = $serviceAccount; + } + public function getServiceAccount() + { + return $this->serviceAccount; + } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Operation.php new file mode 100644 index 00000000..2f775a62 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudComposer_Status + */ + public function setError(Google_Service_CloudComposer_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudComposer_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/OperationMetadata.php similarity index 59% rename from vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php rename to vendor/google/apiclient-services/src/Google/Service/CloudComposer/OperationMetadata.php index bedb6364..383debb6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/OperationMetadata.php @@ -15,15 +15,23 @@ * the License. */ -class Google_Service_Appengine_OperationMetadata extends Google_Model +class Google_Service_CloudComposer_OperationMetadata extends Google_Model { + public $createTime; public $endTime; - public $insertTime; - public $method; public $operationType; - public $target; - public $user; + public $resource; + public $resourceUuid; + public $state; + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -32,22 +40,6 @@ class Google_Service_Appengine_OperationMetadata extends Google_Model { return $this->endTime; } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } public function setOperationType($operationType) { $this->operationType = $operationType; @@ -56,20 +48,28 @@ class Google_Service_Appengine_OperationMetadata extends Google_Model { return $this->operationType; } - public function setTarget($target) + public function setResource($resource) { - $this->target = $target; + $this->resource = $resource; } - public function getTarget() + public function getResource() { - return $this->target; + return $this->resource; } - public function setUser($user) + public function setResourceUuid($resourceUuid) { - $this->user = $user; + $this->resourceUuid = $resourceUuid; } - public function getUser() + public function getResourceUuid() { - return $this->user; + return $this->resourceUuid; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/Projects.php new file mode 100644 index 00000000..69f8f628 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $composerService = new Google_Service_CloudComposer(...); + * $projects = $composerService->projects; + * + */ +class Google_Service_CloudComposer_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocations.php new file mode 100644 index 00000000..5175663f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocations.php @@ -0,0 +1,28 @@ + + * $composerService = new Google_Service_CloudComposer(...); + * $locations = $composerService->locations; + * + */ +class Google_Service_CloudComposer_Resource_ProjectsLocations extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsEnvironments.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsEnvironments.php new file mode 100644 index 00000000..731321f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsEnvironments.php @@ -0,0 +1,180 @@ + + * $composerService = new Google_Service_CloudComposer(...); + * $environments = $composerService->environments; + * + */ +class Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironments extends Google_Service_Resource +{ + /** + * Create a new environment. (environments.create) + * + * @param string $parent The parent must be of the form + * "projects/{projectId}/locations/{locationId}". + * @param Google_Service_CloudComposer_Environment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudComposer_Operation + */ + public function create($parent, Google_Service_CloudComposer_Environment $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudComposer_Operation"); + } + /** + * Delete an environment. (environments.delete) + * + * @param string $name The environment to delete, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param array $optParams Optional parameters. + * @return Google_Service_CloudComposer_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudComposer_Operation"); + } + /** + * Get an existing environment. (environments.get) + * + * @param string $name The resource name of the environment to get, in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param array $optParams Optional parameters. + * @return Google_Service_CloudComposer_Environment + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudComposer_Environment"); + } + /** + * List environments. (environments.listProjectsLocationsEnvironments) + * + * @param string $parent List environments in the given project and location, in + * the form: "projects/{projectId}/locations/{locationId}" + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize The maximum number of environments to return. + * @return Google_Service_CloudComposer_ListEnvironmentsResponse + */ + public function listProjectsLocationsEnvironments($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudComposer_ListEnvironmentsResponse"); + } + /** + * Update an environment. (environments.patch) + * + * @param string $name The relative resource name of the environment to update, + * in the form: + * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" + * @param Google_Service_CloudComposer_Environment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Required. A comma-separated list of paths, + * relative to `Environment`, of fields to update. For example, to set the + * version of scikit-learn to install in the environment to 0.19.0 and to remove + * an existing installation of numpy, the `updateMask` parameter would include + * the following two `paths` values: "config.softwareConfig.pypiPackages.scikit- + * learn" and "config.softwareConfig.pypiPackages.numpy". The included patch + * environment would specify the scikit-learn version as follows: + * + * { "config":{ "softwareConfig":{ "pypiPackages":{ + * "scikit-learn":"==0.19.0" } } } } + * + * Note that in the above example, any existing PyPI packages other than scikit- + * learn and numpy will be unaffected. + * + * Only one update type may be included in a single request's `updateMask`. For + * example, one cannot update both the PyPI packages and labels in the same + * request. However, it is possible to update multiple members of a map field + * simultaneously in the same request. For example, to set the labels "label1" + * and "label2" while clearing "label3" (assuming it already exists), one can + * provide the paths "labels.label1", "labels.label2", and "labels.label3" and + * populate the patch environment as follows: + * + * { "labels":{ "label1":"new-label1-value" "label2 + * ":"new-label2-value" } } + * + * Note that in the above example, any existing labels that are not included in + * the `updateMask` will be unaffected. + * + * It is also possible to replace an entire map field by providing the map + * field's path in the `updateMask`. The new value of the field will be that + * which is provided in the patch environment. For example, to delete all pre- + * existing user-specified PyPI packages and install botocore at version 1.7.14, + * the `updateMask` would contain the path "config.softwareConfig.pypiPackages", + * and the patch environment would be the following: + * + * { "config":{ "softwareConfig":{ "pypiPackages":{ + * "botocore":"==1.7.14" } } } } + * + * **Note:** Only the following fields can be updated: + * + * Mask Purpose config.softwareConfig.pypiPackages Replace all + * custom custom PyPI packages. If a replacement package map is not included in + * `environment`, all custom PyPI packages are cleared. It is an error to + * provide both this mask and a mask specifying an individual package. + * config.softwareConfig.pypiPackages.packagename Update the custom PyPI + * package packagename, preserving other packages. To delete the package, + * include it in `updateMask`, and omit the mapping for it in + * `environment.config.softwareConfig.pypiPackages`. It is an error to provide + * both a mask of this form and the "config.softwareConfig.pypiPackages" mask. + * labels Replace all environment labels. If a replacement labels map is not + * included in `environment`, all labels are cleared. It is an error to provide + * both this mask and a mask specifying one or more individual labels. + * labels.labelName Set the label named labelName, while preserving other + * labels. To delete the label, include it in `updateMask` and omit its mapping + * in `environment.labels`. It is an error to provide both a mask of this form + * and the "labels" mask. config.nodeCount Horizontally scale the number + * of nodes in the environment. An integer greater than or equal to 3 must be + * provided in the `config.nodeCount` field. + * config.softwareConfig.airflowConfigOverrides Replace all Apache Airflow + * config overrides. If a replacement config overrides map is not included in + * `environment`, all config overrides are cleared. It is an error to provide + * both this mask and a mask specifying one or more individual config + * overrides. config.softwareConfig.airflowConfigOverrides.section-name + * Override the Apache Airflow config property name in the section named + * section, preserving other properties. To delete the property override, + * include it in `updateMask` and omit its mapping in + * `environment.config.softwareConfig.airflowConfigOverrides`. It is an error + * to provide both a mask of this form and the + * "config.softwareConfig.airflowConfigOverrides" mask. + * config.softwareConfig.envVariables Replace all environment variables. If a + * replacement environment variable map is not included in `environment`, all + * custom environment variables are cleared. It is an error to provide both + * this mask and a mask specifying one or more individual environment + * variables. + * @return Google_Service_CloudComposer_Operation + */ + public function patch($name, Google_Service_CloudComposer_Environment $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudComposer_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsImageVersions.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsImageVersions.php new file mode 100644 index 00000000..5eed1d01 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsImageVersions.php @@ -0,0 +1,47 @@ + + * $composerService = new Google_Service_CloudComposer(...); + * $imageVersions = $composerService->imageVersions; + * + */ +class Google_Service_CloudComposer_Resource_ProjectsLocationsImageVersions extends Google_Service_Resource +{ + /** + * List ImageVersions for provided location. + * (imageVersions.listProjectsLocationsImageVersions) + * + * @param string $parent List ImageVersions in the given project and location, + * in the form: "projects/{projectId}/locations/{locationId}" + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize The maximum number of image_versions to return. + * @return Google_Service_CloudComposer_ListImageVersionsResponse + */ + public function listProjectsLocationsImageVersions($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudComposer_ListImageVersionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsOperations.php new file mode 100644 index 00000000..c578489e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Resource/ProjectsLocationsOperations.php @@ -0,0 +1,86 @@ + + * $composerService = new Google_Service_CloudComposer(...); + * $operations = $composerService->operations; + * + */ +class Google_Service_CloudComposer_Resource_ProjectsLocationsOperations extends Google_Service_Resource +{ + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudComposer_ComposerEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudComposer_ComposerEmpty"); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudComposer_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudComposer_Operation"); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listProjectsLocationsOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. + * @return Google_Service_CloudComposer_ListOperationsResponse + */ + public function listProjectsLocationsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudComposer_ListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/SoftwareConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/SoftwareConfig.php new file mode 100644 index 00000000..1da76852 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/SoftwareConfig.php @@ -0,0 +1,66 @@ +airflowConfigOverrides = $airflowConfigOverrides; + } + public function getAirflowConfigOverrides() + { + return $this->airflowConfigOverrides; + } + public function setEnvVariables($envVariables) + { + $this->envVariables = $envVariables; + } + public function getEnvVariables() + { + return $this->envVariables; + } + public function setImageVersion($imageVersion) + { + $this->imageVersion = $imageVersion; + } + public function getImageVersion() + { + return $this->imageVersion; + } + public function setPypiPackages($pypiPackages) + { + $this->pypiPackages = $pypiPackages; + } + public function getPypiPackages() + { + return $this->pypiPackages; + } + public function setPythonVersion($pythonVersion) + { + $this->pythonVersion = $pythonVersion; + } + public function getPythonVersion() + { + return $this->pythonVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Status.php new file mode 100644 index 00000000..6e251c0e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudComposer/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger.php b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger.php index 8ae603ad..2f4c67a8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger.php @@ -24,7 +24,7 @@ * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -53,6 +53,7 @@ class Google_Service_CloudDebugger extends Google_Service parent::__construct($client); $this->rootUrl = 'https://clouddebugger.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'clouddebugger'; @@ -85,14 +86,14 @@ class Google_Service_CloudDebugger extends Google_Service 'type' => 'string', 'required' => true, ), - 'successOnTimeout' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'waitToken' => array( 'location' => 'query', 'type' => 'string', ), + 'successOnTimeout' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'update' => array( 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', @@ -123,6 +124,10 @@ class Google_Service_CloudDebugger extends Google_Service 'path' => 'v2/debugger/debuggees', 'httpMethod' => 'GET', 'parameters' => array( + 'project' => array( + 'location' => 'query', + 'type' => 'string', + ), 'clientVersion' => array( 'location' => 'query', 'type' => 'string', @@ -131,10 +136,6 @@ class Google_Service_CloudDebugger extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'project' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -193,6 +194,10 @@ class Google_Service_CloudDebugger extends Google_Service 'type' => 'string', 'required' => true, ), + 'waitToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'clientVersion' => array( 'location' => 'query', 'type' => 'string', @@ -213,10 +218,6 @@ class Google_Service_CloudDebugger extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'waitToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'set' => array( 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php index f9e41ae5..4da796c9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php @@ -43,16 +43,16 @@ class Google_Service_CloudDebugger_Resource_ControllerDebuggeesBreakpoints exten * @param string $debuggeeId Identifies the debuggee. * @param array $optParams Optional parameters. * + * @opt_param string waitToken A token that, if specified, blocks the method + * call until the list of active breakpoints has changed, or a server-selected + * timeout has expired. The value should be set from the `next_wait_token` field + * in the last response. The initial value should be set to `"init"`. * @opt_param bool successOnTimeout If set to `true` (recommended), returns * `google.rpc.Code.OK` status and sets the `wait_expired` response field to * `true` when the server-selected timeout has expired. * * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status when * the server-selected timeout has expired. - * @opt_param string waitToken A token that, if specified, blocks the method - * call until the list of active breakpoints has changed, or a server-selected - * timeout has expired. The value should be set from the `next_wait_token` field - * in the last response. The initial value should be set to `"init"`. * @return Google_Service_CloudDebugger_ListActiveBreakpointsResponse */ public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php index 4a65bc8a..3a63de2b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php @@ -31,12 +31,12 @@ class Google_Service_CloudDebugger_Resource_DebuggerDebuggees extends Google_Ser * * @param array $optParams Optional parameters. * + * @opt_param string project Project number of a Google Cloud project whose + * debuggees to list. * @opt_param string clientVersion The client version making the call. Schema: * `domain/type/version` (e.g., `google.com/intellij/v1`). * @opt_param bool includeInactive When set to `true`, the result includes all * debuggees. Otherwise, the result includes only debuggees that are active. - * @opt_param string project Project number of a Google Cloud project whose - * debuggees to list. * @return Google_Service_CloudDebugger_ListDebuggeesResponse */ public function listDebuggerDebuggees($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php index 92869a22..2afde32d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php @@ -66,6 +66,11 @@ class Google_Service_CloudDebugger_Resource_DebuggerDebuggeesBreakpoints extends * @param string $debuggeeId ID of the debuggee whose breakpoints to list. * @param array $optParams Optional parameters. * + * @opt_param string waitToken A wait token that, if specified, blocks the call + * until the breakpoints list has changed, or a server selected timeout has + * expired. The value should be set from the last response. The error code + * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be + * called again with the same `wait_token`. * @opt_param string clientVersion The client version making the call. Schema: * `domain/type/version` (e.g., `google.com/intellij/v1`). * @opt_param string action.value Only breakpoints with the specified action @@ -79,11 +84,6 @@ class Google_Service_CloudDebugger_Resource_DebuggerDebuggeesBreakpoints extends * @opt_param bool stripResults This field is deprecated. The following fields * are always stripped out of the result: `stack_frames`, * `evaluated_expressions` and `variable_table`. - * @opt_param string waitToken A wait token that, if specified, blocks the call - * until the breakpoints list has changed, or a server selected timeout has - * expired. The value should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be - * called again with the same `wait_token`. * @return Google_Service_CloudDebugger_ListBreakpointsResponse */ public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php index 626ec05f..0ac20c51 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php @@ -17,9 +17,18 @@ class Google_Service_CloudDebugger_SourceLocation extends Google_Model { + public $column; public $line; public $path; + public function setColumn($column) + { + $this->column = $column; + } + public function getColumn() + { + return $this->column; + } public function setLine($line) { $this->line = $line; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore.php new file mode 100644 index 00000000..6206ad86 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore.php @@ -0,0 +1,244 @@ + + * The Cloud Filestore API is used for creating and managing cloud file servers. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudFilestore extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_locations; + public $projects_locations_instances; + public $projects_locations_operations; + + /** + * Constructs the internal representation of the CloudFilestore service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://file.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'file'; + + $this->projects_locations = new Google_Service_CloudFilestore_Resource_ProjectsLocations( + $this, + $this->serviceName, + 'locations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/locations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_locations_instances = new Google_Service_CloudFilestore_Resource_ProjectsLocationsInstances( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_locations_operations = new Google_Service_CloudFilestore_Resource_ProjectsLocationsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/CancelOperationRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/CancelOperationRequest.php new file mode 100644 index 00000000..99042cd8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/CancelOperationRequest.php @@ -0,0 +1,20 @@ +capacityGb = $capacityGb; + } + public function getCapacityGb() + { + return $this->capacityGb; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Instance.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Instance.php new file mode 100644 index 00000000..a3b18552 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Instance.php @@ -0,0 +1,126 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_CloudFilestore_FileShareConfig + */ + public function setFileShares($fileShares) + { + $this->fileShares = $fileShares; + } + /** + * @return Google_Service_CloudFilestore_FileShareConfig + */ + public function getFileShares() + { + return $this->fileShares; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudFilestore_NetworkConfig + */ + public function setNetworks($networks) + { + $this->networks = $networks; + } + /** + * @return Google_Service_CloudFilestore_NetworkConfig + */ + public function getNetworks() + { + return $this->networks; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTier($tier) + { + $this->tier = $tier; + } + public function getTier() + { + return $this->tier; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListInstancesResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListInstancesResponse.php new file mode 100644 index 00000000..35b82682 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListInstancesResponse.php @@ -0,0 +1,56 @@ +instances = $instances; + } + /** + * @return Google_Service_CloudFilestore_Instance + */ + public function getInstances() + { + return $this->instances; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + public function getUnreachable() + { + return $this->unreachable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListLocationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListLocationsResponse.php new file mode 100644 index 00000000..881a3fd9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListLocationsResponse.php @@ -0,0 +1,47 @@ +locations = $locations; + } + /** + * @return Google_Service_CloudFilestore_Location + */ + public function getLocations() + { + return $this->locations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListOperationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListOperationsResponse.php new file mode 100644 index 00000000..0e209575 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/ListOperationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudFilestore_Operation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_CloudFilestore_Operation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Location.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Location.php new file mode 100644 index 00000000..d8aa2af4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Location.php @@ -0,0 +1,66 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/NetworkConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/NetworkConfig.php new file mode 100644 index 00000000..5dea2b12 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/NetworkConfig.php @@ -0,0 +1,58 @@ +ipAddresses = $ipAddresses; + } + public function getIpAddresses() + { + return $this->ipAddresses; + } + public function setModes($modes) + { + $this->modes = $modes; + } + public function getModes() + { + return $this->modes; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setReservedIpRange($reservedIpRange) + { + $this->reservedIpRange = $reservedIpRange; + } + public function getReservedIpRange() + { + return $this->reservedIpRange; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Operation.php new file mode 100644 index 00000000..c6a299d1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudFilestore_Status + */ + public function setError(Google_Service_CloudFilestore_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudFilestore_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/OperationMetadata.php new file mode 100644 index 00000000..007dd971 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/OperationMetadata.php @@ -0,0 +1,84 @@ +apiVersion = $apiVersion; + } + public function getApiVersion() + { + return $this->apiVersion; + } + public function setCancelRequested($cancelRequested) + { + $this->cancelRequested = $cancelRequested; + } + public function getCancelRequested() + { + return $this->cancelRequested; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStatusDetail($statusDetail) + { + $this->statusDetail = $statusDetail; + } + public function getStatusDetail() + { + return $this->statusDetail; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setVerb($verb) + { + $this->verb = $verb; + } + public function getVerb() + { + return $this->verb; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/Projects.php new file mode 100644 index 00000000..93a0aad6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $fileService = new Google_Service_CloudFilestore(...); + * $projects = $fileService->projects; + * + */ +class Google_Service_CloudFilestore_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocations.php new file mode 100644 index 00000000..79717796 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocations.php @@ -0,0 +1,60 @@ + + * $fileService = new Google_Service_CloudFilestore(...); + * $locations = $fileService->locations; + * + */ +class Google_Service_CloudFilestore_Resource_ProjectsLocations extends Google_Service_Resource +{ + /** + * Gets information about a location. (locations.get) + * + * @param string $name Resource name for the location. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_Location + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudFilestore_Location"); + } + /** + * Lists information about the supported locations for this service. + * (locations.listProjectsLocations) + * + * @param string $name The resource that owns the locations collection, if + * applicable. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_CloudFilestore_ListLocationsResponse + */ + public function listProjectsLocations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudFilestore_ListLocationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsInstances.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsInstances.php new file mode 100644 index 00000000..1e8a0f7d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsInstances.php @@ -0,0 +1,119 @@ + + * $fileService = new Google_Service_CloudFilestore(...); + * $instances = $fileService->instances; + * + */ +class Google_Service_CloudFilestore_Resource_ProjectsLocationsInstances extends Google_Service_Resource +{ + /** + * Creates an instance. (instances.create) + * + * @param string $parent The instance's project and location, in the format + * projects/{project_id}/locations/{location}. In Cloud Filestore, locations map + * to GCP zones, for example **us-west1-b**. + * @param Google_Service_CloudFilestore_Instance $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string instanceId The name of the instance to create. The name + * must be unique for the specified project and location. + * @return Google_Service_CloudFilestore_Operation + */ + public function create($parent, Google_Service_CloudFilestore_Instance $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudFilestore_Operation"); + } + /** + * Deletes an instance. (instances.delete) + * + * @param string $name The instance resource name, in the format + * projects/{project_id}/locations/{location}/instances/{instance_id} + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudFilestore_Operation"); + } + /** + * Gets the details of a specific instance. (instances.get) + * + * @param string $name The instance resource name, in the format + * projects/{project_id}/locations/{location}/instances/{instance_id}. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_Instance + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudFilestore_Instance"); + } + /** + * Lists all instances in a project for either a specified location or for all + * locations. (instances.listProjectsLocationsInstances) + * + * @param string $parent The project and location for which to retrieve instance + * information, in the format projects/{project_id}/locations/{location}. In + * Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. To + * retrieve instance information for all locations, use "-" for the {location} + * value. + * @param array $optParams Optional parameters. + * + * @opt_param string filter List filter. + * @opt_param string pageToken The next_page_token value to use if there are + * additional results to retrieve for this list request. + * @opt_param string orderBy Sort results. Supported values are "name", "name + * desc" or "" (unsorted). + * @opt_param int pageSize The maximum number of items to return. + * @return Google_Service_CloudFilestore_ListInstancesResponse + */ + public function listProjectsLocationsInstances($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudFilestore_ListInstancesResponse"); + } + /** + * Updates the settings of a specific instance. (instances.patch) + * + * @param string $name Output only. The resource name of the instance, in the + * format projects/{project_id}/locations/{location_id}/instances/{instance_id}. + * @param Google_Service_CloudFilestore_Instance $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Mask of fields to update. At least one path + * must be supplied in this field. The elements of the repeated paths field may + * only include these fields: "description" + * @return Google_Service_CloudFilestore_Operation + */ + public function patch($name, Google_Service_CloudFilestore_Instance $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudFilestore_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsOperations.php new file mode 100644 index 00000000..a1a28f5d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Resource/ProjectsLocationsOperations.php @@ -0,0 +1,108 @@ + + * $fileService = new Google_Service_CloudFilestore(...); + * $operations = $fileService->operations; + * + */ +class Google_Service_CloudFilestore_Resource_ProjectsLocationsOperations extends Google_Service_Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param Google_Service_CloudFilestore_CancelOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_FileEmpty + */ + public function cancel($name, Google_Service_CloudFilestore_CancelOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_CloudFilestore_FileEmpty"); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_FileEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudFilestore_FileEmpty"); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFilestore_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudFilestore_Operation"); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listProjectsLocationsOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_CloudFilestore_ListOperationsResponse + */ + public function listProjectsLocationsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudFilestore_ListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Status.php new file mode 100644 index 00000000..4ceea2f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFilestore/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions.php index 50e9cad3..8960526b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions.php @@ -48,6 +48,7 @@ class Google_Service_CloudFunctions extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudfunctions.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudfunctions'; @@ -71,10 +72,6 @@ class Google_Service_CloudFunctions extends Google_Service 'path' => 'v1/operations', 'httpMethod' => 'GET', 'parameters' => array( - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'name' => array( 'location' => 'query', 'type' => 'string', @@ -87,6 +84,10 @@ class Google_Service_CloudFunctions extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -190,6 +191,16 @@ class Google_Service_CloudFunctions extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/{+parent}/functions', 'httpMethod' => 'GET', @@ -222,6 +233,26 @@ class Google_Service_CloudFunctions extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditConfig.php new file mode 100644 index 00000000..6715fac5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditConfig.php @@ -0,0 +1,47 @@ +auditLogConfigs = $auditLogConfigs; + } + /** + * @return Google_Service_CloudFunctions_AuditLogConfig + */ + public function getAuditLogConfigs() + { + return $this->auditLogConfigs; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditLogConfig.php new file mode 100644 index 00000000..c720fb5b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/AuditLogConfig.php @@ -0,0 +1,40 @@ +exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setLogType($logType) + { + $this->logType = $logType; + } + public function getLogType() + { + return $this->logType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Binding.php new file mode 100644 index 00000000..4f933750 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_CloudFunctions_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php index 4acb29d2..b8377d61 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php @@ -20,12 +20,16 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model public $availableMemoryMb; public $description; public $entryPoint; + public $environmentVariables; protected $eventTriggerType = 'Google_Service_CloudFunctions_EventTrigger'; protected $eventTriggerDataType = ''; protected $httpsTriggerType = 'Google_Service_CloudFunctions_HttpsTrigger'; protected $httpsTriggerDataType = ''; public $labels; + public $maxInstances; public $name; + public $network; + public $runtime; public $serviceAccountEmail; public $sourceArchiveUrl; protected $sourceRepositoryType = 'Google_Service_CloudFunctions_SourceRepository'; @@ -35,6 +39,7 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model public $timeout; public $updateTime; public $versionId; + public $vpcConnector; public function setAvailableMemoryMb($availableMemoryMb) { @@ -60,6 +65,14 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model { return $this->entryPoint; } + public function setEnvironmentVariables($environmentVariables) + { + $this->environmentVariables = $environmentVariables; + } + public function getEnvironmentVariables() + { + return $this->environmentVariables; + } /** * @param Google_Service_CloudFunctions_EventTrigger */ @@ -96,6 +109,14 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model { return $this->labels; } + public function setMaxInstances($maxInstances) + { + $this->maxInstances = $maxInstances; + } + public function getMaxInstances() + { + return $this->maxInstances; + } public function setName($name) { $this->name = $name; @@ -104,6 +125,22 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model { return $this->name; } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setRuntime($runtime) + { + $this->runtime = $runtime; + } + public function getRuntime() + { + return $this->runtime; + } public function setServiceAccountEmail($serviceAccountEmail) { $this->serviceAccountEmail = $serviceAccountEmail; @@ -174,4 +211,12 @@ class Google_Service_CloudFunctions_CloudFunction extends Google_Model { return $this->versionId; } + public function setVpcConnector($vpcConnector) + { + $this->vpcConnector = $vpcConnector; + } + public function getVpcConnector() + { + return $this->vpcConnector; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Expr.php new file mode 100644 index 00000000..dbb66362 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Policy.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Policy.php new file mode 100644 index 00000000..013e9dfe --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Policy.php @@ -0,0 +1,72 @@ +auditConfigs = $auditConfigs; + } + /** + * @return Google_Service_CloudFunctions_AuditConfig + */ + public function getAuditConfigs() + { + return $this->auditConfigs; + } + /** + * @param Google_Service_CloudFunctions_Binding + */ + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + /** + * @return Google_Service_CloudFunctions_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php index 9026ecd6..0279b680 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php @@ -54,10 +54,13 @@ class Google_Service_CloudFunctions_Resource_Operations extends Google_Service_R * * @param array $optParams Optional parameters. * - * @opt_param string filter The standard list filter. - * @opt_param string name The name of the operation's parent resource. + * @opt_param string name Must not be set. * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. + * @opt_param string filter Required. A filter for matching the requested + * operations. The supported formats of filter are: To query for specific + * function: project:*,location:*,function:* To query for all of the latest + * operations for a project: project:*,latest:true * @return Google_Service_CloudFunctions_ListOperationsResponse */ public function listOperations($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php index 86b77d22..59e031c9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php @@ -26,8 +26,11 @@ class Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions extends Google_Service_Resource { /** - * Invokes synchronously deployed function. To be used for testing, very limited - * traffic allowed. (functions.callProjectsLocationsFunctions) + * Synchronously invokes a deployed Cloud Function. To be used for testing + * purposes as very limited traffic is allowed. For more information on the + * actual limits, refer to [Rate + * Limits](https://cloud.google.com/functions/quotas#rate_limits). + * (functions.callProjectsLocationsFunctions) * * @param string $name The name of the function to be called. * @param Google_Service_CloudFunctions_CallFunctionRequest $postBody @@ -103,12 +106,19 @@ class Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions extends * restrictions: * * * Source file type should be a zip file. * Source file size should not exceed - * 100MB limit. + * 100MB limit. * No credentials should be attached - the signed URLs provide + * access to the target bucket using internal service identity; if credentials + * were attached, the identity from the credentials would be used, but that + * identity does not have permissions to upload files to the URL. * * When making a HTTP PUT request, these two headers need to be specified: * * * `content-type: application/zip` * `x-goog-content-length-range: - * 0,104857600` (functions.generateUploadUrl) + * 0,104857600` + * + * And this header SHOULD NOT be specified: + * + * * `Authorization: Bearer YOUR_TOKEN` (functions.generateUploadUrl) * * @param string $parent The project and location in which the Google Cloud * Storage signed URL should be generated, specified in the format @@ -138,6 +148,22 @@ class Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions extends $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_CloudFunctions_CloudFunction"); } + /** + * Gets the IAM access control policy for a function. Returns an empty policy if + * the function exists and does not have a policy set. (functions.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFunctions_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudFunctions_Policy"); + } /** * Returns a list of functions that belong to the requested project. * (functions.listProjectsLocationsFunctions) @@ -178,4 +204,39 @@ class Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions extends $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_CloudFunctions_Operation"); } + /** + * Sets the IAM access control policy on the specified function. Replaces any + * existing policy. (functions.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudFunctions_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFunctions_Policy + */ + public function setIamPolicy($resource, Google_Service_CloudFunctions_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudFunctions_Policy"); + } + /** + * Tests the specified permissions against the IAM access control policy for a + * function. If the function does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. (functions.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_CloudFunctions_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudFunctions_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_CloudFunctions_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudFunctions_TestIamPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/SetIamPolicyRequest.php new file mode 100644 index 00000000..2fc5e32a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/SetIamPolicyRequest.php @@ -0,0 +1,46 @@ +policy = $policy; + } + /** + * @return Google_Service_CloudFunctions_Policy + */ + public function getPolicy() + { + return $this->policy; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsRequest.php new file mode 100644 index 00000000..8c76b968 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsResponse.php new file mode 100644 index 00000000..7c4f761c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudFunctions/TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP.php new file mode 100644 index 00000000..ec67bc89 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP.php @@ -0,0 +1,94 @@ + + * Controls access to cloud applications running on Google Cloud Platform. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudIAP extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $v1; + + /** + * Constructs the internal representation of the CloudIAP service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://iap.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'iap'; + + $this->v1 = new Google_Service_CloudIAP_Resource_V1( + $this, + $this->serviceName, + 'v1', + array( + 'methods' => array( + 'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Binding.php new file mode 100644 index 00000000..f85cbf8f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_CloudIAP_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Expr.php new file mode 100644 index 00000000..7a341a2d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/GetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/GetIamPolicyRequest.php new file mode 100644 index 00000000..a123500b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/GetIamPolicyRequest.php @@ -0,0 +1,20 @@ +bindings = $bindings; + } + /** + * @return Google_Service_CloudIAP_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Resource/V1.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Resource/V1.php new file mode 100644 index 00000000..2d382ee7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/Resource/V1.php @@ -0,0 +1,85 @@ + + * $iapService = new Google_Service_CloudIAP(...); + * $v1 = $iapService->v1; + * + */ +class Google_Service_CloudIAP_Resource_V1 extends Google_Service_Resource +{ + /** + * Gets the access control policy for an Identity-Aware Proxy protected + * resource. More information about managing access via IAP can be found at: + * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + * (v1.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudIAP_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIAP_Policy + */ + public function getIamPolicy($resource, Google_Service_CloudIAP_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudIAP_Policy"); + } + /** + * Sets the access control policy for an Identity-Aware Proxy protected + * resource. Replaces any existing policy. More information about managing + * access via IAP can be found at: https://cloud.google.com/iap/docs/managing- + * access#managing_access_via_the_api (v1.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudIAP_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIAP_Policy + */ + public function setIamPolicy($resource, Google_Service_CloudIAP_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudIAP_Policy"); + } + /** + * Returns permissions that a caller has on the Identity-Aware Proxy protected + * resource. More information about managing access via IAP can be found at: + * https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + * (v1.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_CloudIAP_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIAP_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_CloudIAP_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudIAP_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/SetIamPolicyRequest.php new file mode 100644 index 00000000..94b4f2b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/SetIamPolicyRequest.php @@ -0,0 +1,37 @@ +policy = $policy; + } + /** + * @return Google_Service_CloudIAP_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsRequest.php new file mode 100644 index 00000000..095a77bc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsResponse.php new file mode 100644 index 00000000..5a7941bf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIAP/TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity.php new file mode 100644 index 00000000..1997c0ec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity.php @@ -0,0 +1,236 @@ + + * API for provisioning and managing identity resources. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudIdentity extends Google_Service +{ + + + public $groups; + public $groups_memberships; + + /** + * Constructs the internal representation of the CloudIdentity service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudidentity.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'cloudidentity'; + + $this->groups = new Google_Service_CloudIdentity_Resource_Groups( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/groups', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'lookup' => array( + 'path' => 'v1/groups:lookup', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupKey.id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'groupKey.namespace' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/groups:search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups_memberships = new Google_Service_CloudIdentity_Resource_GroupsMemberships( + $this, + $this->serviceName, + 'memberships', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/memberships', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/memberships', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'lookup' => array( + 'path' => 'v1/{+parent}/memberships:lookup', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'memberKey.id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'memberKey.namespace' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/EntityKey.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/EntityKey.php new file mode 100644 index 00000000..452507a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/EntityKey.php @@ -0,0 +1,39 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + public function setNamespace($namespace) + { + $this->namespace = $namespace; + } + public function getNamespace() + { + return $this->namespace; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Group.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Group.php new file mode 100644 index 00000000..e653e826 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Group.php @@ -0,0 +1,100 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_CloudIdentity_EntityKey + */ + public function setGroupKey(Google_Service_CloudIdentity_EntityKey $groupKey) + { + $this->groupKey = $groupKey; + } + /** + * @return Google_Service_CloudIdentity_EntityKey + */ + public function getGroupKey() + { + return $this->groupKey; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParent($parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListGroupsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListGroupsResponse.php new file mode 100644 index 00000000..b3d5cd22 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListGroupsResponse.php @@ -0,0 +1,47 @@ +groups = $groups; + } + /** + * @return Google_Service_CloudIdentity_Group + */ + public function getGroups() + { + return $this->groups; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListMembershipsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListMembershipsResponse.php new file mode 100644 index 00000000..65631894 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/ListMembershipsResponse.php @@ -0,0 +1,47 @@ +memberships = $memberships; + } + /** + * @return Google_Service_CloudIdentity_Membership + */ + public function getMemberships() + { + return $this->memberships; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KindExpression.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupGroupNameResponse.php similarity index 89% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KindExpression.php rename to vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupGroupNameResponse.php index 31965463..34651d71 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KindExpression.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupGroupNameResponse.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1KindExpression extends Google_Model +class Google_Service_CloudIdentity_LookupGroupNameResponse extends Google_Model { public $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PropertyReference.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupMembershipNameResponse.php similarity index 89% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PropertyReference.php rename to vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupMembershipNameResponse.php index 8b204531..4097bc32 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PropertyReference.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/LookupMembershipNameResponse.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1PropertyReference extends Google_Model +class Google_Service_CloudIdentity_LookupMembershipNameResponse extends Google_Model { public $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Membership.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Membership.php new file mode 100644 index 00000000..b5702c5e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Membership.php @@ -0,0 +1,81 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudIdentity_EntityKey + */ + public function setPreferredMemberKey(Google_Service_CloudIdentity_EntityKey $preferredMemberKey) + { + $this->preferredMemberKey = $preferredMemberKey; + } + /** + * @return Google_Service_CloudIdentity_EntityKey + */ + public function getPreferredMemberKey() + { + return $this->preferredMemberKey; + } + /** + * @param Google_Service_CloudIdentity_MembershipRole + */ + public function setRoles($roles) + { + $this->roles = $roles; + } + /** + * @return Google_Service_CloudIdentity_MembershipRole + */ + public function getRoles() + { + return $this->roles; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoType.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/MembershipRole.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoType.php rename to vendor/google/apiclient-services/src/Google/Service/CloudIdentity/MembershipRole.php index e1b27dc5..d9cbe2ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoType.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/MembershipRole.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType extends Google_Model +class Google_Service_CloudIdentity_MembershipRole extends Google_Model { public $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Operation.php new file mode 100644 index 00000000..f73fb1af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudIdentity_Status + */ + public function setError(Google_Service_CloudIdentity_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudIdentity_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/Groups.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/Groups.php new file mode 100644 index 00000000..236ba7f9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/Groups.php @@ -0,0 +1,160 @@ + + * $cloudidentityService = new Google_Service_CloudIdentity(...); + * $groups = $cloudidentityService->groups; + * + */ +class Google_Service_CloudIdentity_Resource_Groups extends Google_Service_Resource +{ + /** + * Creates a Group. (groups.create) + * + * @param Google_Service_CloudIdentity_Group $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Operation + */ + public function create(Google_Service_CloudIdentity_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudIdentity_Operation"); + } + /** + * Deletes a Group. (groups.delete) + * + * @param string $name [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group in + * the format: `groups/{group_id}`, where `group_id` is the unique ID assigned + * to the Group. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudIdentity_Operation"); + } + /** + * Retrieves a Group. (groups.get) + * + * @param string $name [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group in + * the format: `groups/{group_id}`, where `group_id` is the unique ID assigned + * to the Group. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Group + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudIdentity_Group"); + } + /** + * List groups within a customer or a domain. (groups.listGroups) + * + * @param array $optParams Optional parameters. + * + * @opt_param string parent `Required`. May be made Optional in the future. + * Customer ID to list all groups from. + * @opt_param string pageToken The next_page_token value returned from a + * previous list request, if any. + * @opt_param int pageSize The default page size is 200 (max 1000) for the BASIC + * view, and 50 (max 500) for the FULL view. + * @opt_param string view Group resource view to be returned. Defaults to + * [View.BASIC](). + * @return Google_Service_CloudIdentity_ListGroupsResponse + */ + public function listGroups($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudIdentity_ListGroupsResponse"); + } + /** + * Looks up [resource name](https://cloud.google.com/apis/design/resource_names) + * of a Group by its EntityKey. (groups.lookup) + * + * @param array $optParams Optional parameters. + * + * @opt_param string groupKey.id The ID of the entity within the given + * namespace. The ID must be unique within its namespace. + * @opt_param string groupKey.namespace Namespaces provide isolation for IDs, so + * an ID only needs to be unique within its namespace. + * + * Namespaces are currently only created as part of IdentitySource creation from + * Admin Console. A namespace `"identitysources/{identity_source_id}"` is + * created corresponding to every Identity Source `identity_source_id`. + * @return Google_Service_CloudIdentity_LookupGroupNameResponse + */ + public function lookup($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('lookup', array($params), "Google_Service_CloudIdentity_LookupGroupNameResponse"); + } + /** + * Updates a Group. (groups.patch) + * + * @param string $name [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group in + * the format: `groups/{group_id}`, where group_id is the unique ID assigned to + * the Group. + * + * Must be left blank while creating a Group. + * @param Google_Service_CloudIdentity_Group $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Editable fields: `display_name`, `description` + * @return Google_Service_CloudIdentity_Operation + */ + public function patch($name, Google_Service_CloudIdentity_Group $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudIdentity_Operation"); + } + /** + * Searches for Groups. (groups.search) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous search request, if any. + * @opt_param int pageSize The default page size is 200 (max 1000) for the BASIC + * view, and 50 (max 500) for the FULL view. + * @opt_param string query `Required`. Query string for performing search on + * groups. Users can search on parent and label attributes of groups. EXACT + * match ('==') is supported on parent, and CONTAINS match ('in') is supported + * on labels. + * @opt_param string view Group resource view to be returned. Defaults to + * [View.BASIC](). + * @return Google_Service_CloudIdentity_SearchGroupsResponse + */ + public function search($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_CloudIdentity_SearchGroupsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/GroupsMemberships.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/GroupsMemberships.php new file mode 100644 index 00000000..e56c2367 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Resource/GroupsMemberships.php @@ -0,0 +1,136 @@ + + * $cloudidentityService = new Google_Service_CloudIdentity(...); + * $memberships = $cloudidentityService->memberships; + * + */ +class Google_Service_CloudIdentity_Resource_GroupsMemberships extends Google_Service_Resource +{ + /** + * Creates a Membership. (memberships.create) + * + * @param string $parent [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group to + * create Membership within. Format: `groups/{group_id}`, where `group_id` is + * the unique ID assigned to the Group. + * @param Google_Service_CloudIdentity_Membership $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Operation + */ + public function create($parent, Google_Service_CloudIdentity_Membership $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudIdentity_Operation"); + } + /** + * Deletes a Membership. (memberships.delete) + * + * @param string $name [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Membership + * to be deleted. + * + * Format: `groups/{group_id}/memberships/{member_id}`, where `group_id` is the + * unique ID assigned to the Group to which Membership belongs to, and member_id + * is the unique ID assigned to the member. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudIdentity_Operation"); + } + /** + * Retrieves a Membership. (memberships.get) + * + * @param string $name [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Membership + * to be retrieved. + * + * Format: `groups/{group_id}/memberships/{member_id}`, where `group_id` is the + * unique id assigned to the Group to which Membership belongs to, and + * `member_id` is the unique ID assigned to the member. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIdentity_Membership + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudIdentity_Membership"); + } + /** + * List Memberships within a Group. (memberships.listGroupsMemberships) + * + * @param string $parent [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group to + * list Memberships within. + * + * Format: `groups/{group_id}`, where `group_id` is the unique ID assigned to + * the Group. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous list request, if any. + * @opt_param int pageSize The default page size is 200 (max 1000) for the BASIC + * view, and 50 (max 500) for the FULL view. + * @opt_param string view Membership resource view to be returned. Defaults to + * View.BASIC. + * @return Google_Service_CloudIdentity_ListMembershipsResponse + */ + public function listGroupsMemberships($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudIdentity_ListMembershipsResponse"); + } + /** + * Looks up [resource name](https://cloud.google.com/apis/design/resource_names) + * of a Membership within a Group by member's EntityKey. (memberships.lookup) + * + * @param string $parent [Resource + * name](https://cloud.google.com/apis/design/resource_names) of the Group to + * lookup Membership within. + * + * Format: `groups/{group_id}`, where `group_id` is the unique ID assigned to + * the Group. + * @param array $optParams Optional parameters. + * + * @opt_param string memberKey.id The ID of the entity within the given + * namespace. The ID must be unique within its namespace. + * @opt_param string memberKey.namespace Namespaces provide isolation for IDs, + * so an ID only needs to be unique within its namespace. + * + * Namespaces are currently only created as part of IdentitySource creation from + * Admin Console. A namespace `"identitysources/{identity_source_id}"` is + * created corresponding to every Identity Source `identity_source_id`. + * @return Google_Service_CloudIdentity_LookupMembershipNameResponse + */ + public function lookup($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('lookup', array($params), "Google_Service_CloudIdentity_LookupMembershipNameResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/SearchGroupsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/SearchGroupsResponse.php new file mode 100644 index 00000000..dd77a340 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/SearchGroupsResponse.php @@ -0,0 +1,47 @@ +groups = $groups; + } + /** + * @return Google_Service_CloudIdentity_Group + */ + public function getGroups() + { + return $this->groups; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Status.php new file mode 100644 index 00000000..bac0abc5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIdentity/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot.php index 2e21c9ce..41a7e3b3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudIot.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot.php @@ -42,6 +42,10 @@ class Google_Service_CloudIot extends Google_Service public $projects_locations_registries_devices; public $projects_locations_registries_devices_configVersions; public $projects_locations_registries_devices_states; + public $projects_locations_registries_groups; + public $projects_locations_registries_groups_devices; + public $projects_locations_registries_groups_devices_configVersions; + public $projects_locations_registries_groups_devices_states; /** * Constructs the internal representation of the CloudIot service. @@ -53,6 +57,7 @@ class Google_Service_CloudIot extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudiot.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudiot'; @@ -62,7 +67,17 @@ class Google_Service_CloudIot extends Google_Service 'registries', array( 'methods' => array( - 'create' => array( + 'bindDeviceToGateway' => array( + 'path' => 'v1/{+parent}:bindDeviceToGateway', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'v1/{+parent}/registries', 'httpMethod' => 'POST', 'parameters' => array( @@ -154,6 +169,16 @@ class Google_Service_CloudIot extends Google_Service 'required' => true, ), ), + ),'unbindDeviceFromGateway' => array( + 'path' => 'v1/{+parent}:unbindDeviceFromGateway', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -207,11 +232,11 @@ class Google_Service_CloudIot extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( + 'fieldMask' => array( 'location' => 'query', 'type' => 'string', ), - 'fieldMask' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -224,11 +249,23 @@ class Google_Service_CloudIot extends Google_Service 'type' => 'string', 'repeated' => true, ), + 'gatewayListOptions.associationsDeviceId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'deviceNumIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'gatewayListOptions.gatewayType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'gatewayListOptions.associationsGatewayId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'modifyCloudToDeviceConfig' => array( 'path' => 'v1/{+name}:modifyCloudToDeviceConfig', @@ -254,6 +291,16 @@ class Google_Service_CloudIot extends Google_Service 'type' => 'string', ), ), + ),'sendCommandToDevice' => array( + 'path' => 'v1/{+name}:sendCommandToDevice', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -306,5 +353,215 @@ class Google_Service_CloudIot extends Google_Service ) ) ); + $this->projects_locations_registries_groups = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroups( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'bindDeviceToGateway' => array( + 'path' => 'v1/{+parent}:bindDeviceToGateway', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unbindDeviceFromGateway' => array( + 'path' => 'v1/{+parent}:unbindDeviceFromGateway', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_locations_registries_groups_devices = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevices( + $this, + $this->serviceName, + 'devices', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fieldMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/devices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'deviceNumIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'gatewayListOptions.associationsDeviceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'gatewayListOptions.gatewayType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'gatewayListOptions.associationsGatewayId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fieldMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'modifyCloudToDeviceConfig' => array( + 'path' => 'v1/{+name}:modifyCloudToDeviceConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'sendCommandToDevice' => array( + 'path' => 'v1/{+name}:sendCommandToDevice', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_locations_registries_groups_devices_configVersions = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevicesConfigVersions( + $this, + $this->serviceName, + 'configVersions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+name}/configVersions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'numVersions' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_registries_groups_devices_states = new Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevicesStates( + $this, + $this->serviceName, + 'states', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+name}/states', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'numStates' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayRequest.php new file mode 100644 index 00000000..ea49bef9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayRequest.php @@ -0,0 +1,39 @@ +deviceId = $deviceId; + } + public function getDeviceId() + { + return $this->deviceId; + } + public function setGatewayId($gatewayId) + { + $this->gatewayId = $gatewayId; + } + public function getGatewayId() + { + return $this->gatewayId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayResponse.php new file mode 100644 index 00000000..9c7e5002 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/BindDeviceToGatewayResponse.php @@ -0,0 +1,20 @@ +condition = $condition; + } + /** + * @return Google_Service_CloudIot_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Device.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Device.php index 588aabf9..6e80b2a1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Device.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Device.php @@ -23,6 +23,8 @@ class Google_Service_CloudIot_Device extends Google_Collection protected $configDataType = ''; protected $credentialsType = 'Google_Service_CloudIot_DeviceCredential'; protected $credentialsDataType = 'array'; + protected $gatewayConfigType = 'Google_Service_CloudIot_GatewayConfig'; + protected $gatewayConfigDataType = ''; public $id; public $lastConfigAckTime; public $lastConfigSendTime; @@ -32,6 +34,7 @@ class Google_Service_CloudIot_Device extends Google_Collection public $lastEventTime; public $lastHeartbeatTime; public $lastStateTime; + public $logLevel; public $metadata; public $name; public $numId; @@ -74,6 +77,20 @@ class Google_Service_CloudIot_Device extends Google_Collection { return $this->credentials; } + /** + * @param Google_Service_CloudIot_GatewayConfig + */ + public function setGatewayConfig(Google_Service_CloudIot_GatewayConfig $gatewayConfig) + { + $this->gatewayConfig = $gatewayConfig; + } + /** + * @return Google_Service_CloudIot_GatewayConfig + */ + public function getGatewayConfig() + { + return $this->gatewayConfig; + } public function setId($id) { $this->id = $id; @@ -144,6 +161,14 @@ class Google_Service_CloudIot_Device extends Google_Collection { return $this->lastStateTime; } + public function setLogLevel($logLevel) + { + $this->logLevel = $logLevel; + } + public function getLogLevel() + { + return $this->logLevel; + } public function setMetadata($metadata) { $this->metadata = $metadata; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/DeviceRegistry.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/DeviceRegistry.php index a04541a6..52bb7b6f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudIot/DeviceRegistry.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/DeviceRegistry.php @@ -25,6 +25,7 @@ class Google_Service_CloudIot_DeviceRegistry extends Google_Collection protected $httpConfigType = 'Google_Service_CloudIot_HttpConfig'; protected $httpConfigDataType = ''; public $id; + public $logLevel; protected $mqttConfigType = 'Google_Service_CloudIot_MqttConfig'; protected $mqttConfigDataType = ''; public $name; @@ -81,6 +82,14 @@ class Google_Service_CloudIot_DeviceRegistry extends Google_Collection { return $this->id; } + public function setLogLevel($logLevel) + { + $this->logLevel = $logLevel; + } + public function getLogLevel() + { + return $this->logLevel; + } /** * @param Google_Service_CloudIot_MqttConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Expr.php new file mode 100644 index 00000000..4ff6aaf9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/GatewayConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/GatewayConfig.php new file mode 100644 index 00000000..a4a79cda --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/GatewayConfig.php @@ -0,0 +1,57 @@ +gatewayAuthMethod = $gatewayAuthMethod; + } + public function getGatewayAuthMethod() + { + return $this->gatewayAuthMethod; + } + public function setGatewayType($gatewayType) + { + $this->gatewayType = $gatewayType; + } + public function getGatewayType() + { + return $this->gatewayType; + } + public function setLastAccessedGatewayId($lastAccessedGatewayId) + { + $this->lastAccessedGatewayId = $lastAccessedGatewayId; + } + public function getLastAccessedGatewayId() + { + return $this->lastAccessedGatewayId; + } + public function setLastAccessedGatewayTime($lastAccessedGatewayTime) + { + $this->lastAccessedGatewayTime = $lastAccessedGatewayTime; + } + public function getLastAccessedGatewayTime() + { + return $this->lastAccessedGatewayTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistries.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistries.php index a576d364..1b0c6804 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistries.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistries.php @@ -25,6 +25,21 @@ */ class Google_Service_CloudIot_Resource_ProjectsLocationsRegistries extends Google_Service_Resource { + /** + * Associates the device with the gateway. (registries.bindDeviceToGateway) + * + * @param string $parent The name of the registry. For example, `projects + * /example-project/locations/us-central1/registries/my-registry`. + * @param Google_Service_CloudIot_BindDeviceToGatewayRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_BindDeviceToGatewayResponse + */ + public function bindDeviceToGateway($parent, Google_Service_CloudIot_BindDeviceToGatewayRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('bindDeviceToGateway', array($params), "Google_Service_CloudIot_BindDeviceToGatewayResponse"); + } /** * Creates a device registry that contains devices. (registries.create) * @@ -95,12 +110,12 @@ class Google_Service_CloudIot_Resource_ProjectsLocationsRegistries extends Googl * * @opt_param string pageToken The value returned by the last * `ListDeviceRegistriesResponse`; indicates that this is a continuation of a - * prior `ListDeviceRegistries` call, and that the system should return the next - * page of data. + * prior `ListDeviceRegistries` call and the system should return the next page + * of data. * @opt_param int pageSize The maximum number of registries to return in the * response. If this value is zero, the service will select a default size. A - * call may return fewer objects than requested, but if there is a non-empty - * `page_token`, it indicates that more entries are available. + * call may return fewer objects than requested. A non-empty `next_page_token` + * in the response indicates that more data is available. * @return Google_Service_CloudIot_ListDeviceRegistriesResponse */ public function listProjectsLocationsRegistries($parent, $optParams = array()) @@ -165,4 +180,20 @@ class Google_Service_CloudIot_Resource_ProjectsLocationsRegistries extends Googl $params = array_merge($params, $optParams); return $this->call('testIamPermissions', array($params), "Google_Service_CloudIot_TestIamPermissionsResponse"); } + /** + * Deletes the association between the device and the gateway. + * (registries.unbindDeviceFromGateway) + * + * @param string $parent The name of the registry. For example, `projects + * /example-project/locations/us-central1/registries/my-registry`. + * @param Google_Service_CloudIot_UnbindDeviceFromGatewayRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_UnbindDeviceFromGatewayResponse + */ + public function unbindDeviceFromGateway($parent, Google_Service_CloudIot_UnbindDeviceFromGatewayRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('unbindDeviceFromGateway', array($params), "Google_Service_CloudIot_UnbindDeviceFromGatewayResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesDevices.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesDevices.php index c40cc128..eae77a5f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesDevices.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesDevices.php @@ -83,21 +83,35 @@ class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevices extend * `projects/my-project/locations/us-central1/registries/my-registry`. * @param array $optParams Optional parameters. * + * @opt_param string fieldMask The fields of the `Device` resource to be + * returned in the response. The fields `id` and `num_id` are always returned, + * along with any other fields specified. * @opt_param string pageToken The value returned by the last * `ListDevicesResponse`; indicates that this is a continuation of a prior - * `ListDevices` call, and that the system should return the next page of data. - * @opt_param string fieldMask The fields of the `Device` resource to be - * returned in the response. The fields `id`, and `num_id` are always returned - * by default, along with any other fields specified. + * `ListDevices` call and the system should return the next page of data. * @opt_param int pageSize The maximum number of devices to return in the * response. If this value is zero, the service will select a default size. A - * call may return fewer objects than requested, but if there is a non-empty - * `page_token`, it indicates that more entries are available. - * @opt_param string deviceIds A list of device string identifiers. If empty, it - * will ignore this field. For example, `['device0', 'device12']`. This field - * cannot hold more than 10,000 entries. - * @opt_param string deviceNumIds A list of device numerical ids. If empty, it - * will ignore this field. This field cannot hold more than 10,000 entries. + * call may return fewer objects than requested. A non-empty `next_page_token` + * in the response indicates that more data is available. + * @opt_param string deviceIds A list of device string IDs. For example, + * `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: + * 10,000 + * @opt_param string gatewayListOptions.associationsDeviceId If set, returns + * only the gateways with which the specified device is associated. The device + * ID can be numeric (`num_id`) or the user-defined string (`id`). For example, + * if `456` is specified, returns only the gateways to which the device with + * `num_id` 456 is bound. + * @opt_param string deviceNumIds A list of device numeric IDs. If empty, this + * field is ignored. Maximum IDs: 10,000. + * @opt_param string gatewayListOptions.gatewayType If `GATEWAY` is specified, + * only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway + * devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices + * are returned. + * @opt_param string gatewayListOptions.associationsGatewayId If set, only + * devices associated with the specified gateway are returned. The gateway ID + * can be numeric (`num_id`) or the user-defined string (`id`). For example, if + * `123` is specified, only devices bound to the gateway with `num_id` 123 are + * returned. * @return Google_Service_CloudIot_ListDevicesResponse */ public function listProjectsLocationsRegistriesDevices($parent, $optParams = array()) @@ -147,4 +161,31 @@ class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevices extend $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_CloudIot_Device"); } + /** + * Sends a command to the specified device. In order for a device to be able to + * receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT + * protocol, and 2) be subscribed to the group of MQTT topics specified by + * /devices/{device-id}/commands/#. This subscription will receive commands + * at the top-level topic /devices/{device-id}/commands as well as commands + * for subfolders, like /devices/{device-id}/commands/subfolder. Note that + * subscribing to specific subfolders is not supported. If the command could not + * be delivered to the device, this method will return an error; in particular, + * if the device is not subscribed, this method will return FAILED_PRECONDITION. + * Otherwise, this method will return OK. If the subscription is QoS 1, at least + * once delivery will be guaranteed; for QoS 0, no acknowledgment will be + * expected from the device. (devices.sendCommandToDevice) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param Google_Service_CloudIot_SendCommandToDeviceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_SendCommandToDeviceResponse + */ + public function sendCommandToDevice($name, Google_Service_CloudIot_SendCommandToDeviceRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('sendCommandToDevice', array($params), "Google_Service_CloudIot_SendCommandToDeviceResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroups.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroups.php new file mode 100644 index 00000000..3380af82 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroups.php @@ -0,0 +1,111 @@ + + * $cloudiotService = new Google_Service_CloudIot(...); + * $groups = $cloudiotService->groups; + * + */ +class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroups extends Google_Service_Resource +{ + /** + * Associates the device with the gateway. (groups.bindDeviceToGateway) + * + * @param string $parent The name of the registry. For example, `projects + * /example-project/locations/us-central1/registries/my-registry`. + * @param Google_Service_CloudIot_BindDeviceToGatewayRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_BindDeviceToGatewayResponse + */ + public function bindDeviceToGateway($parent, Google_Service_CloudIot_BindDeviceToGatewayRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('bindDeviceToGateway', array($params), "Google_Service_CloudIot_BindDeviceToGatewayResponse"); + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (groups.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudIot_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_Policy + */ + public function getIamPolicy($resource, Google_Service_CloudIot_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudIot_Policy"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (groups.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudIot_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_Policy + */ + public function setIamPolicy($resource, Google_Service_CloudIot_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudIot_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error. (groups.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_CloudIot_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_CloudIot_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudIot_TestIamPermissionsResponse"); + } + /** + * Deletes the association between the device and the gateway. + * (groups.unbindDeviceFromGateway) + * + * @param string $parent The name of the registry. For example, `projects + * /example-project/locations/us-central1/registries/my-registry`. + * @param Google_Service_CloudIot_UnbindDeviceFromGatewayRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_UnbindDeviceFromGatewayResponse + */ + public function unbindDeviceFromGateway($parent, Google_Service_CloudIot_UnbindDeviceFromGatewayRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('unbindDeviceFromGateway', array($params), "Google_Service_CloudIot_UnbindDeviceFromGatewayResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevices.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevices.php new file mode 100644 index 00000000..498248c2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevices.php @@ -0,0 +1,160 @@ + + * $cloudiotService = new Google_Service_CloudIot(...); + * $devices = $cloudiotService->devices; + * + */ +class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevices extends Google_Service_Resource +{ + /** + * Gets details about a device. (devices.get) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param array $optParams Optional parameters. + * + * @opt_param string fieldMask The fields of the `Device` resource to be + * returned in the response. If the field mask is unset or empty, all fields are + * returned. + * @return Google_Service_CloudIot_Device + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudIot_Device"); + } + /** + * List devices in a device registry. + * (devices.listProjectsLocationsRegistriesGroupsDevices) + * + * @param string $parent The device registry path. Required. For example, + * `projects/my-project/locations/us-central1/registries/my-registry`. + * @param array $optParams Optional parameters. + * + * @opt_param string deviceIds A list of device string IDs. For example, + * `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs: + * 10,000 + * @opt_param string deviceNumIds A list of device numeric IDs. If empty, this + * field is ignored. Maximum IDs: 10,000. + * @opt_param string gatewayListOptions.associationsDeviceId If set, returns + * only the gateways with which the specified device is associated. The device + * ID can be numeric (`num_id`) or the user-defined string (`id`). For example, + * if `456` is specified, returns only the gateways to which the device with + * `num_id` 456 is bound. + * @opt_param string gatewayListOptions.gatewayType If `GATEWAY` is specified, + * only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway + * devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices + * are returned. + * @opt_param string gatewayListOptions.associationsGatewayId If set, only + * devices associated with the specified gateway are returned. The gateway ID + * can be numeric (`num_id`) or the user-defined string (`id`). For example, if + * `123` is specified, only devices bound to the gateway with `num_id` 123 are + * returned. + * @opt_param string pageToken The value returned by the last + * `ListDevicesResponse`; indicates that this is a continuation of a prior + * `ListDevices` call and the system should return the next page of data. + * @opt_param string fieldMask The fields of the `Device` resource to be + * returned in the response. The fields `id` and `num_id` are always returned, + * along with any other fields specified. + * @opt_param int pageSize The maximum number of devices to return in the + * response. If this value is zero, the service will select a default size. A + * call may return fewer objects than requested. A non-empty `next_page_token` + * in the response indicates that more data is available. + * @return Google_Service_CloudIot_ListDevicesResponse + */ + public function listProjectsLocationsRegistriesGroupsDevices($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudIot_ListDevicesResponse"); + } + /** + * Modifies the configuration for the device, which is eventually sent from the + * Cloud IoT Core servers. Returns the modified configuration version and its + * metadata. (devices.modifyCloudToDeviceConfig) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param Google_Service_CloudIot_ModifyCloudToDeviceConfigRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_DeviceConfig + */ + public function modifyCloudToDeviceConfig($name, Google_Service_CloudIot_ModifyCloudToDeviceConfigRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('modifyCloudToDeviceConfig', array($params), "Google_Service_CloudIot_DeviceConfig"); + } + /** + * Updates a device. (devices.patch) + * + * @param string $name The resource path name. For example, + * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + * `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. + * When `name` is populated as a response from the service, it always ends in + * the device numeric ID. + * @param Google_Service_CloudIot_Device $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Only updates the `device` fields indicated by + * this mask. The field mask must not be empty, and it must not contain fields + * that are immutable or only set by the server. Mutable top-level fields: + * `credentials`, `blocked`, and `metadata` + * @return Google_Service_CloudIot_Device + */ + public function patch($name, Google_Service_CloudIot_Device $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudIot_Device"); + } + /** + * Sends a command to the specified device. In order for a device to be able to + * receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT + * protocol, and 2) be subscribed to the group of MQTT topics specified by + * /devices/{device-id}/commands/#. This subscription will receive commands + * at the top-level topic /devices/{device-id}/commands as well as commands + * for subfolders, like /devices/{device-id}/commands/subfolder. Note that + * subscribing to specific subfolders is not supported. If the command could not + * be delivered to the device, this method will return an error; in particular, + * if the device is not subscribed, this method will return FAILED_PRECONDITION. + * Otherwise, this method will return OK. If the subscription is QoS 1, at least + * once delivery will be guaranteed; for QoS 0, no acknowledgment will be + * expected from the device. (devices.sendCommandToDevice) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param Google_Service_CloudIot_SendCommandToDeviceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudIot_SendCommandToDeviceResponse + */ + public function sendCommandToDevice($name, Google_Service_CloudIot_SendCommandToDeviceRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('sendCommandToDevice', array($params), "Google_Service_CloudIot_SendCommandToDeviceResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesConfigVersions.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesConfigVersions.php new file mode 100644 index 00000000..08d862cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesConfigVersions.php @@ -0,0 +1,50 @@ + + * $cloudiotService = new Google_Service_CloudIot(...); + * $configVersions = $cloudiotService->configVersions; + * + */ +class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevicesConfigVersions extends Google_Service_Resource +{ + /** + * Lists the last few versions of the device configuration in descending order + * (i.e.: newest first). + * (configVersions.listProjectsLocationsRegistriesGroupsDevicesConfigVersions) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param array $optParams Optional parameters. + * + * @opt_param int numVersions The number of versions to list. Versions are + * listed in decreasing order of the version number. The maximum number of + * versions retained is 10. If this value is zero, it will return all the + * versions available. + * @return Google_Service_CloudIot_ListDeviceConfigVersionsResponse + */ + public function listProjectsLocationsRegistriesGroupsDevicesConfigVersions($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudIot_ListDeviceConfigVersionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesStates.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesStates.php new file mode 100644 index 00000000..6c2c83a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/Resource/ProjectsLocationsRegistriesGroupsDevicesStates.php @@ -0,0 +1,48 @@ + + * $cloudiotService = new Google_Service_CloudIot(...); + * $states = $cloudiotService->states; + * + */ +class Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevicesStates extends Google_Service_Resource +{ + /** + * Lists the last few versions of the device state in descending order (i.e.: + * newest first). (states.listProjectsLocationsRegistriesGroupsDevicesStates) + * + * @param string $name The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param array $optParams Optional parameters. + * + * @opt_param int numStates The number of states to list. States are listed in + * descending order of update time. The maximum number of states retained is 10. + * If this value is zero, it will return all the states available. + * @return Google_Service_CloudIot_ListDeviceStatesResponse + */ + public function listProjectsLocationsRegistriesGroupsDevicesStates($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudIot_ListDeviceStatesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceRequest.php new file mode 100644 index 00000000..b2bbe5c5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceRequest.php @@ -0,0 +1,39 @@ +binaryData = $binaryData; + } + public function getBinaryData() + { + return $this->binaryData; + } + public function setSubfolder($subfolder) + { + $this->subfolder = $subfolder; + } + public function getSubfolder() + { + return $this->subfolder; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceResponse.php new file mode 100644 index 00000000..a7739f21 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/SendCommandToDeviceResponse.php @@ -0,0 +1,20 @@ +deviceId = $deviceId; + } + public function getDeviceId() + { + return $this->deviceId; + } + public function setGatewayId($gatewayId) + { + $this->gatewayId = $gatewayId; + } + public function getGatewayId() + { + return $this->gatewayId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1SurrogateType.php b/vendor/google/apiclient-services/src/Google/Service/CloudIot/UnbindDeviceFromGatewayResponse.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1SurrogateType.php rename to vendor/google/apiclient-services/src/Google/Service/CloudIot/UnbindDeviceFromGatewayResponse.php index 72214dbd..86333ccd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1SurrogateType.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudIot/UnbindDeviceFromGatewayResponse.php @@ -15,6 +15,6 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1SurrogateType extends Google_Model +class Google_Service_CloudIot_UnbindDeviceFromGatewayResponse extends Google_Model { } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS.php index 465c8e2d..44f22cfc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS.php @@ -19,8 +19,8 @@ * Service definition for CloudKMS (v1). * *- * Manages encryption for your cloud services the same way you do on-premises. - * You can generate, use, rotate, and destroy AES256 encryption keys.
+ * Manages keys and performs cryptographic operations in a central cloud + * service, for direct use by other cloud resources and applications. * ** For more information about this service, see the API @@ -34,11 +34,15 @@ class Google_Service_CloudKMS extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View and manage your keys and secrets stored in Cloud Key Management Service. */ + const CLOUDKMS = + "https://www.googleapis.com/auth/cloudkms"; public $projects_locations; public $projects_locations_keyRings; public $projects_locations_keyRings_cryptoKeys; public $projects_locations_keyRings_cryptoKeys_cryptoKeyVersions; + public $projects_locations_keyRings_importJobs; /** * Constructs the internal representation of the CloudKMS service. @@ -50,6 +54,7 @@ class Google_Service_CloudKMS extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudkms.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudkms'; @@ -78,10 +83,6 @@ class Google_Service_CloudKMS extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -90,6 +91,10 @@ class Google_Service_CloudKMS extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -144,14 +149,14 @@ class Google_Service_CloudKMS extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', @@ -246,14 +251,18 @@ class Google_Service_CloudKMS extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'versionView' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -309,7 +318,27 @@ class Google_Service_CloudKMS extends Google_Service 'cryptoKeyVersions', array( 'methods' => array( - 'create' => array( + 'asymmetricDecrypt' => array( + 'path' => 'v1/{+name}:asymmetricDecrypt', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'asymmetricSign' => array( + 'path' => 'v1/{+name}:asymmetricSign', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'v1/{+parent}/cryptoKeyVersions', 'httpMethod' => 'POST', 'parameters' => array( @@ -339,6 +368,16 @@ class Google_Service_CloudKMS extends Google_Service 'required' => true, ), ), + ),'getPublicKey' => array( + 'path' => 'v1/{+name}/publicKey', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/{+parent}/cryptoKeyVersions', 'httpMethod' => 'GET', @@ -356,6 +395,10 @@ class Google_Service_CloudKMS extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -385,5 +428,45 @@ class Google_Service_CloudKMS extends Google_Service ) ) ); + $this->projects_locations_keyRings_importJobs = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsImportJobs( + $this, + $this->serviceName, + 'importJobs', + array( + 'methods' => array( + 'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptRequest.php new file mode 100644 index 00000000..f34f256c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptRequest.php @@ -0,0 +1,30 @@ +ciphertext = $ciphertext; + } + public function getCiphertext() + { + return $this->ciphertext; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FieldId.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptResponse.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FieldId.php rename to vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptResponse.php index 4bc3720d..b319f14b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FieldId.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricDecryptResponse.php @@ -15,16 +15,16 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId extends Google_Model +class Google_Service_CloudKMS_AsymmetricDecryptResponse extends Google_Model { - public $columnName; + public $plaintext; - public function setColumnName($columnName) + public function setPlaintext($plaintext) { - $this->columnName = $columnName; + $this->plaintext = $plaintext; } - public function getColumnName() + public function getPlaintext() { - return $this->columnName; + return $this->plaintext; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignRequest.php new file mode 100644 index 00000000..3c2291e7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignRequest.php @@ -0,0 +1,37 @@ +digest = $digest; + } + /** + * @return Google_Service_CloudKMS_Digest + */ + public function getDigest() + { + return $this->digest; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignResponse.php new file mode 100644 index 00000000..92076a2e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/AsymmetricSignResponse.php @@ -0,0 +1,30 @@ +signature = $signature; + } + public function getSignature() + { + return $this->signature; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php index 39fa9074..29a61e22 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php @@ -18,9 +18,25 @@ class Google_Service_CloudKMS_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_CloudKMS_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_CloudKMS_Expr + */ + public function setCondition(Google_Service_CloudKMS_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_CloudKMS_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php index f0b7ca6e..599ce369 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php @@ -25,6 +25,8 @@ class Google_Service_CloudKMS_CryptoKey extends Google_Model protected $primaryDataType = ''; public $purpose; public $rotationPeriod; + protected $versionTemplateType = 'Google_Service_CloudKMS_CryptoKeyVersionTemplate'; + protected $versionTemplateDataType = ''; public function setCreateTime($createTime) { @@ -88,4 +90,18 @@ class Google_Service_CloudKMS_CryptoKey extends Google_Model { return $this->rotationPeriod; } + /** + * @param Google_Service_CloudKMS_CryptoKeyVersionTemplate + */ + public function setVersionTemplate(Google_Service_CloudKMS_CryptoKeyVersionTemplate $versionTemplate) + { + $this->versionTemplate = $versionTemplate; + } + /** + * @return Google_Service_CloudKMS_CryptoKeyVersionTemplate + */ + public function getVersionTemplate() + { + return $this->versionTemplate; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php index 6e7fe934..bf870efc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php @@ -17,12 +17,39 @@ class Google_Service_CloudKMS_CryptoKeyVersion extends Google_Model { + public $algorithm; + protected $attestationType = 'Google_Service_CloudKMS_KeyOperationAttestation'; + protected $attestationDataType = ''; public $createTime; public $destroyEventTime; public $destroyTime; + public $generateTime; public $name; + public $protectionLevel; public $state; + public function setAlgorithm($algorithm) + { + $this->algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + /** + * @param Google_Service_CloudKMS_KeyOperationAttestation + */ + public function setAttestation(Google_Service_CloudKMS_KeyOperationAttestation $attestation) + { + $this->attestation = $attestation; + } + /** + * @return Google_Service_CloudKMS_KeyOperationAttestation + */ + public function getAttestation() + { + return $this->attestation; + } public function setCreateTime($createTime) { $this->createTime = $createTime; @@ -47,6 +74,14 @@ class Google_Service_CloudKMS_CryptoKeyVersion extends Google_Model { return $this->destroyTime; } + public function setGenerateTime($generateTime) + { + $this->generateTime = $generateTime; + } + public function getGenerateTime() + { + return $this->generateTime; + } public function setName($name) { $this->name = $name; @@ -55,6 +90,14 @@ class Google_Service_CloudKMS_CryptoKeyVersion extends Google_Model { return $this->name; } + public function setProtectionLevel($protectionLevel) + { + $this->protectionLevel = $protectionLevel; + } + public function getProtectionLevel() + { + return $this->protectionLevel; + } public function setState($state) { $this->state = $state; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersionTemplate.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersionTemplate.php new file mode 100644 index 00000000..5b6e9515 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersionTemplate.php @@ -0,0 +1,39 @@ +algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + public function setProtectionLevel($protectionLevel) + { + $this->protectionLevel = $protectionLevel; + } + public function getProtectionLevel() + { + return $this->protectionLevel; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Digest.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Digest.php new file mode 100644 index 00000000..d4379025 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Digest.php @@ -0,0 +1,48 @@ +sha256 = $sha256; + } + public function getSha256() + { + return $this->sha256; + } + public function setSha384($sha384) + { + $this->sha384 = $sha384; + } + public function getSha384() + { + return $this->sha384; + } + public function setSha512($sha512) + { + $this->sha512 = $sha512; + } + public function getSha512() + { + return $this->sha512; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Expr.php new file mode 100644 index 00000000..1cb156a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryComment.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/KeyOperationAttestation.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryComment.php rename to vendor/google/apiclient-services/src/Google/Service/CloudKMS/KeyOperationAttestation.php index 6d2499b0..bc4bfa09 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryComment.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/KeyOperationAttestation.php @@ -15,9 +15,10 @@ * the License. */ -class Google_Service_TagManager_WorkspaceProposalHistoryComment extends Google_Model +class Google_Service_CloudKMS_KeyOperationAttestation extends Google_Model { public $content; + public $format; public function setContent($content) { @@ -27,4 +28,12 @@ class Google_Service_TagManager_WorkspaceProposalHistoryComment extends Google_M { return $this->content; } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/LocationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/LocationMetadata.php new file mode 100644 index 00000000..9ff9d80d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/LocationMetadata.php @@ -0,0 +1,30 @@ +hsmAvailable = $hsmAvailable; + } + public function getHsmAvailable() + { + return $this->hsmAvailable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/PublicKey.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/PublicKey.php new file mode 100644 index 00000000..222fb9f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/PublicKey.php @@ -0,0 +1,39 @@ +algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + public function setPem($pem) + { + $this->pem = $pem; + } + public function getPem() + { + return $this->pem; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php index 2114a918..aff09402 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php @@ -46,9 +46,9 @@ class Google_Service_CloudKMS_Resource_ProjectsLocations extends Google_Service_ * applicable. * @param array $optParams Optional parameters. * - * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. * @return Google_Service_CloudKMS_ListLocationsResponse */ public function listProjectsLocations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php index 716c38ba..498153c9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php @@ -79,12 +79,12 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRings extends Google_ * with the KeyRings, in the format `projects/locations`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional pagination token, returned earlier via - * ListKeyRingsResponse.next_page_token. * @opt_param int pageSize Optional limit on the number of KeyRings to include * in the response. Further KeyRings can subsequently be obtained by including * the ListKeyRingsResponse.next_page_token in a subsequent request. If * unspecified, the server will pick an appropriate default. + * @opt_param string pageToken Optional pagination token, returned earlier via + * ListKeyRingsResponse.next_page_token. * @return Google_Service_CloudKMS_ListKeyRingsResponse */ public function listProjectsLocationsKeyRings($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php index 6728159d..4a45cde6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php @@ -28,7 +28,8 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys exten /** * Create a new CryptoKey within a KeyRing. * - * CryptoKey.purpose is required. (cryptoKeys.create) + * CryptoKey.purpose and CryptoKey.version_template.algorithm are required. + * (cryptoKeys.create) * * @param string $parent Required. The name of the KeyRing associated with the * CryptoKeys. @@ -46,7 +47,8 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys exten return $this->call('create', array($params), "Google_Service_CloudKMS_CryptoKey"); } /** - * Decrypts data that was protected by Encrypt. (cryptoKeys.decrypt) + * Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be + * ENCRYPT_DECRYPT. (cryptoKeys.decrypt) * * @param string $name Required. The resource name of the CryptoKey to use for * decryption. The server will choose the appropriate version. @@ -61,8 +63,8 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys exten return $this->call('decrypt', array($params), "Google_Service_CloudKMS_DecryptResponse"); } /** - * Encrypts data, so that it can only be recovered by a call to Decrypt. - * (cryptoKeys.encrypt) + * Encrypts data, so that it can only be recovered by a call to Decrypt. The + * CryptoKey.purpose must be ENCRYPT_DECRYPT. (cryptoKeys.encrypt) * * @param string $name Required. The resource name of the CryptoKey or * CryptoKeyVersion to use for encryption. @@ -115,12 +117,14 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys exten * the format `projects/locations/keyRings`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional pagination token, returned earlier via - * ListCryptoKeysResponse.next_page_token. * @opt_param int pageSize Optional limit on the number of CryptoKeys to include * in the response. Further CryptoKeys can subsequently be obtained by * including the ListCryptoKeysResponse.next_page_token in a subsequent request. * If unspecified, the server will pick an appropriate default. + * @opt_param string versionView The fields of the primary version to include in + * the response. + * @opt_param string pageToken Optional pagination token, returned earlier via + * ListCryptoKeysResponse.next_page_token. * @return Google_Service_CloudKMS_ListCryptoKeysResponse */ public function listProjectsLocationsKeyRingsCryptoKeys($parent, $optParams = array()) @@ -187,7 +191,9 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys exten return $this->call('testIamPermissions', array($params), "Google_Service_CloudKMS_TestIamPermissionsResponse"); } /** - * Update the version of a CryptoKey that will be used in Encrypt + * Update the version of a CryptoKey that will be used in Encrypt. + * + * Returns an error if called on an asymmetric key. * (cryptoKeys.updatePrimaryVersion) * * @param string $name The resource name of the CryptoKey to update. diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php index 5933b430..6ed1c4d0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php @@ -25,6 +25,40 @@ */ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions extends Google_Service_Resource { + /** + * Decrypts data that was encrypted with a public key retrieved from + * GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose + * ASYMMETRIC_DECRYPT. (cryptoKeyVersions.asymmetricDecrypt) + * + * @param string $name Required. The resource name of the CryptoKeyVersion to + * use for decryption. + * @param Google_Service_CloudKMS_AsymmetricDecryptRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_AsymmetricDecryptResponse + */ + public function asymmetricDecrypt($name, Google_Service_CloudKMS_AsymmetricDecryptRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('asymmetricDecrypt', array($params), "Google_Service_CloudKMS_AsymmetricDecryptResponse"); + } + /** + * Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, + * producing a signature that can be verified with the public key retrieved from + * GetPublicKey. (cryptoKeyVersions.asymmetricSign) + * + * @param string $name Required. The resource name of the CryptoKeyVersion to + * use for signing. + * @param Google_Service_CloudKMS_AsymmetricSignRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_AsymmetricSignResponse + */ + public function asymmetricSign($name, Google_Service_CloudKMS_AsymmetricSignRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('asymmetricSign', array($params), "Google_Service_CloudKMS_AsymmetricSignResponse"); + } /** * Create a new CryptoKeyVersion in a CryptoKey. * @@ -78,6 +112,21 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCrypto $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_CloudKMS_CryptoKeyVersion"); } + /** + * Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose + * must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT. + * (cryptoKeyVersions.getPublicKey) + * + * @param string $name The name of the CryptoKeyVersion public key to get. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_PublicKey + */ + public function getPublicKey($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getPublicKey', array($params), "Google_Service_CloudKMS_PublicKey"); + } /** * Lists CryptoKeyVersions. * (cryptoKeyVersions.listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions) @@ -93,6 +142,7 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCrypto * obtained by including the ListCryptoKeyVersionsResponse.next_page_token in a * subsequent request. If unspecified, the server will pick an appropriate * default. + * @opt_param string view The fields to include in the response. * @return Google_Service_CloudKMS_ListCryptoKeyVersionsResponse */ public function listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions($parent, $optParams = array()) @@ -124,7 +174,7 @@ class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCrypto return $this->call('patch', array($params), "Google_Service_CloudKMS_CryptoKeyVersion"); } /** - * Restore a CryptoKeyVersion in the DESTROY_SCHEDULED, state. + * Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. * * Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and * destroy_time will be cleared. (cryptoKeyVersions.restore) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsImportJobs.php b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsImportJobs.php new file mode 100644 index 00000000..32f41621 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsImportJobs.php @@ -0,0 +1,83 @@ + + * $cloudkmsService = new Google_Service_CloudKMS(...); + * $importJobs = $cloudkmsService->importJobs; + * + */ +class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsImportJobs extends Google_Service_Resource +{ + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (importJobs.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_CloudKMS_Policy"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (importJobs.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_CloudKMS_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_Policy + */ + public function setIamPolicy($resource, Google_Service_CloudKMS_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_CloudKMS_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error. + * + * Note: This operation is designed to be used for building permission-aware UIs + * and command-line tools, not for authorization checking. This operation may + * "fail open" without warning. (importJobs.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_CloudKMS_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudKMS_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_CloudKMS_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_CloudKMS_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php index b0d7dbe6..5557962f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php @@ -34,6 +34,7 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + public $operations; public $projects; public $projects_jobs; public $projects_locations; @@ -52,9 +53,30 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service parent::__construct($client); $this->rootUrl = 'https://ml.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'ml'; + $this->operations = new Google_Service_CloudMachineLearningEngine_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects = new Google_Service_CloudMachineLearningEngine_Resource_Projects( $this, $this->serviceName, @@ -153,6 +175,20 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'type' => 'integer', ), ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', @@ -270,10 +306,6 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -282,6 +314,10 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -423,16 +459,6 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'required' => true, ), ), - ),'delete' => array( - 'path' => 'v1/{+name}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', @@ -452,10 +478,6 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -464,6 +486,10 @@ class Google_Service_CloudMachineLearningEngine extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1AcceleratorConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1AcceleratorConfig.php new file mode 100644 index 00000000..5b138053 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1AcceleratorConfig.php @@ -0,0 +1,39 @@ +count = $count; + } + public function getCount() + { + return $this->count; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php index 2cbd40a2..9a4714ff 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php @@ -22,6 +22,7 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpe public $enableTrialEarlyStopping; public $goal; public $hyperparameterMetricTag; + public $maxFailedTrials; public $maxParallelTrials; public $maxTrials; protected $paramsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ParameterSpec'; @@ -60,6 +61,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpe { return $this->hyperparameterMetricTag; } + public function setMaxFailedTrials($maxFailedTrials) + { + $this->maxFailedTrials = $maxFailedTrials; + } + public function getMaxFailedTrials() + { + return $this->maxFailedTrials; + } public function setMaxParallelTrials($maxParallelTrials) { $this->maxParallelTrials = $maxParallelTrials; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php index e4da30b2..10507e53 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php @@ -20,7 +20,9 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job extends Googl public $createTime; public $endTime; public $errorMessage; + public $etag; public $jobId; + public $labels; protected $predictionInputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput'; protected $predictionInputDataType = ''; protected $predictionOutputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionOutput'; @@ -56,6 +58,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job extends Googl { return $this->errorMessage; } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setJobId($jobId) { $this->jobId = $jobId; @@ -64,6 +74,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job extends Googl { return $this->jobId; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } /** * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput */ diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php index 5b3d3a9e..fa4a58c0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php @@ -21,6 +21,8 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model extends Goo protected $defaultVersionType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version'; protected $defaultVersionDataType = ''; public $description; + public $etag; + public $labels; public $name; public $onlinePredictionLogging; public $regions; @@ -47,6 +49,22 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model extends Goo { return $this->description; } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php index 80a28250..42c8e241 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php @@ -20,6 +20,7 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1OperationMetadata public $createTime; public $endTime; public $isCancellationRequested; + public $labels; public $modelName; public $operationType; public $projectNumber; @@ -51,6 +52,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1OperationMetadata { return $this->isCancellationRequested; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setModelName($modelName) { $this->modelName = $modelName; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php index 6eeb0be9..7bb9d791 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php @@ -23,6 +23,7 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput e public $inputPaths; public $maxWorkerCount; public $modelName; + public $outputDataFormat; public $outputPath; public $region; public $runtimeVersion; @@ -70,6 +71,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput e { return $this->modelName; } + public function setOutputDataFormat($outputDataFormat) + { + $this->outputDataFormat = $outputDataFormat; + } + public function getOutputDataFormat() + { + return $this->outputDataFormat; + } public function setOutputPath($outputPath) { $this->outputPath = $outputPath; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ReplicaConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ReplicaConfig.php new file mode 100644 index 00000000..3e55ca2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ReplicaConfig.php @@ -0,0 +1,46 @@ +acceleratorConfig = $acceleratorConfig; + } + /** + * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AcceleratorConfig + */ + public function getAcceleratorConfig() + { + return $this->acceleratorConfig; + } + public function setImageUri($imageUri) + { + $this->imageUri = $imageUri; + } + public function getImageUri() + { + return $this->imageUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php index 0a3417ac..c4b1106b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php @@ -22,8 +22,12 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput ext protected $hyperparametersType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec'; protected $hyperparametersDataType = ''; public $jobDir; + protected $masterConfigType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig'; + protected $masterConfigDataType = ''; public $masterType; public $packageUris; + protected $parameterServerConfigType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig'; + protected $parameterServerConfigDataType = ''; public $parameterServerCount; public $parameterServerType; public $pythonModule; @@ -31,6 +35,8 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput ext public $region; public $runtimeVersion; public $scaleTier; + protected $workerConfigType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig'; + protected $workerConfigDataType = ''; public $workerCount; public $workerType; @@ -64,6 +70,20 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput ext { return $this->jobDir; } + /** + * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function setMasterConfig(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig $masterConfig) + { + $this->masterConfig = $masterConfig; + } + /** + * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function getMasterConfig() + { + return $this->masterConfig; + } public function setMasterType($masterType) { $this->masterType = $masterType; @@ -80,6 +100,20 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput ext { return $this->packageUris; } + /** + * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function setParameterServerConfig(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig $parameterServerConfig) + { + $this->parameterServerConfig = $parameterServerConfig; + } + /** + * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function getParameterServerConfig() + { + return $this->parameterServerConfig; + } public function setParameterServerCount($parameterServerCount) { $this->parameterServerCount = $parameterServerCount; @@ -136,6 +170,20 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput ext { return $this->scaleTier; } + /** + * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function setWorkerConfig(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig $workerConfig) + { + $this->workerConfig = $workerConfig; + } + /** + * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig + */ + public function getWorkerConfig() + { + return $this->workerConfig; + } public function setWorkerCount($workerCount) { $this->workerCount = $workerCount; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php index f7e88df0..2b3603c7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php @@ -23,9 +23,12 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version extends G public $deploymentUri; public $description; public $errorMessage; + public $etag; public $framework; public $isDefault; + public $labels; public $lastUseTime; + public $machineType; protected $manualScalingType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling'; protected $manualScalingDataType = ''; public $name; @@ -79,6 +82,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version extends G { return $this->errorMessage; } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setFramework($framework) { $this->framework = $framework; @@ -95,6 +106,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version extends G { return $this->isDefault; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setLastUseTime($lastUseTime) { $this->lastUseTime = $lastUseTime; @@ -103,6 +122,14 @@ class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version extends G { return $this->lastUseTime; } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } /** * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling */ diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleIamV1Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleIamV1Binding.php index 1f4c924f..185c04f8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleIamV1Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleIamV1Binding.php @@ -18,9 +18,25 @@ class Google_Service_CloudMachineLearningEngine_GoogleIamV1Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_CloudMachineLearningEngine_GoogleTypeExpr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_CloudMachineLearningEngine_GoogleTypeExpr + */ + public function setCondition(Google_Service_CloudMachineLearningEngine_GoogleTypeExpr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_CloudMachineLearningEngine_GoogleTypeExpr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleTypeExpr.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleTypeExpr.php new file mode 100644 index 00000000..2285d352 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleTypeExpr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Operations.php new file mode 100644 index 00000000..6b801d4d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Operations.php @@ -0,0 +1,44 @@ + + * $mlService = new Google_Service_CloudMachineLearningEngine(...); + * $operations = $mlService->operations; + * + */ +class Google_Service_CloudMachineLearningEngine_Resource_Operations extends Google_Service_Resource +{ + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php index 20d7fc64..d4adad7a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php @@ -116,6 +116,36 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsJobs extends Go $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListJobsResponse"); } + /** + * Updates a specific job resource. + * + * Currently the only supported fields to update are `labels`. (jobs.patch) + * + * @param string $name Required. The job name. + * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Required. Specifies the path, relative to `Job`, + * of the field to update. To adopt etag mechanism, include `etag` field in the + * mask, and include the `etag` value in your job resource. + * + * For example, to change the labels of a job, the `update_mask` parameter would + * be specified as `labels`, `etag`, and the `PATCH` request body would specify + * the new value, as follows: { "labels": { "owner": + * "Google", "color": "Blue" } "etag": + * "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on + * the server, the labels of the job will be replaced with the given ones, and + * the server end `etag` will be recalculated. + * + * Currently the only supported update masks are `labels` and `etag`. + * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job + */ + public function patch($name, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job"); + } /** * Sets the access control policy on the specified resource. Replaces any * existing policy. (jobs.setIamPolicy) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php index f88e5617..295d05ec 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php @@ -104,8 +104,6 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModels extends * be listed. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Specifies the subset of models to - * retrieve. * @opt_param string pageToken Optional. A page token to request the next page * of results. * @@ -116,6 +114,8 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModels extends * response message will contain a valid value in the `next_page_token` field. * * The default value is 20, and the maximum page size is 100. + * @opt_param string filter Optional. Specifies the subset of models to + * retrieve. * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListModelsResponse */ public function listProjectsModels($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php index 47a56bc1..70451dcd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php @@ -125,8 +125,8 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModelsVersions /** * Updates the specified Version resource. * - * Currently the only supported field to update is `description`. - * (versions.patch) + * Currently the only update-able fields are `description` and + * `autoScaling.minNodes`. (versions.patch) * * @param string $name Required. The name of the model. * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $postBody @@ -140,7 +140,8 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModelsVersions * request body would specify the new value, as follows: { * "description": "foo" } * - * Currently the only supported update mask is`description`. + * Currently the only supported update mask fields are `description` and + * `autoScaling.minNodes`. * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation */ public function patch($name, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php index 772c16e7..1264e88a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php @@ -46,22 +46,6 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsOperations exte $params = array_merge($params, $optParams); return $this->call('cancel', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty"); } - /** - * Deletes a long-running operation. This method indicates that the client is no - * longer interested in the operation result. It does not cancel the operation. - * If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) - * - * @param string $name The name of the operation resource to be deleted. - * @param array $optParams Optional parameters. - * @return Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty"); - } /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API @@ -92,9 +76,9 @@ class Google_Service_CloudMachineLearningEngine_Resource_ProjectsOperations exte * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * - * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningListOperationsResponse */ public function listProjectsOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php b/vendor/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php index 0cdf2b90..cb74f1f4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php @@ -19,9 +19,9 @@ * Service definition for CloudNaturalLanguage (v1). * *
- * Provides natural language understanding technologies to developers. Examples - * include sentiment analysis, entity recognition, entity sentiment analysis, - * and text annotations.
+ * Provides natural language understanding technologies, such as sentiment + * analysis, entity recognition, entity sentiment analysis, and other text + * annotations, to developers. * ** For more information about this service, see the API @@ -51,6 +51,7 @@ class Google_Service_CloudNaturalLanguage extends Google_Service parent::__construct($client); $this->rootUrl = 'https://language.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'language'; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin.php b/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin.php index 592c58b2..789325f8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin.php @@ -23,7 +23,7 @@ * *
* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -51,6 +51,7 @@ class Google_Service_CloudOSLogin extends Google_Service parent::__construct($client); $this->rootUrl = 'https://oslogin.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'oslogin'; @@ -69,6 +70,14 @@ class Google_Service_CloudOSLogin extends Google_Service 'type' => 'string', 'required' => true, ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'systemId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'importSshPublicKey' => array( 'path' => 'v1/{+parent}:importSshPublicKey', diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin/Resource/Users.php b/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin/Resource/Users.php index 7b99d533..7da04406 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin/Resource/Users.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudOSLogin/Resource/Users.php @@ -31,6 +31,11 @@ class Google_Service_CloudOSLogin_Resource_Users extends Google_Service_Resource * * @param string $name The unique ID for the user in format `users/{user}`. * @param array $optParams Optional parameters. + * + * @opt_param string projectId The project ID of the Google Cloud Platform + * project. + * @opt_param string systemId A system ID for filtering the results of the + * request. * @return Google_Service_CloudOSLogin_LoginProfile */ public function getLoginProfile($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler.php new file mode 100644 index 00000000..23f95294 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler.php @@ -0,0 +1,104 @@ + + * Manages continuous profiling information. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudProfiler extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ + const MONITORING = + "https://www.googleapis.com/auth/monitoring"; + /** Publish metric data to your Google Cloud projects. */ + const MONITORING_WRITE = + "https://www.googleapis.com/auth/monitoring.write"; + + public $projects_profiles; + + /** + * Constructs the internal representation of the CloudProfiler service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudprofiler.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v2'; + $this->serviceName = 'cloudprofiler'; + + $this->projects_profiles = new Google_Service_CloudProfiler_Resource_ProjectsProfiles( + $this, + $this->serviceName, + 'profiles', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/profiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'createOffline' => array( + 'path' => 'v2/{+parent}/profiles:createOffline', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/CreateProfileRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/CreateProfileRequest.php new file mode 100644 index 00000000..5f7a5a4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/CreateProfileRequest.php @@ -0,0 +1,47 @@ +deployment = $deployment; + } + /** + * @return Google_Service_CloudProfiler_Deployment + */ + public function getDeployment() + { + return $this->deployment; + } + public function setProfileType($profileType) + { + $this->profileType = $profileType; + } + public function getProfileType() + { + return $this->profileType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Deployment.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Deployment.php new file mode 100644 index 00000000..bddd102b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Deployment.php @@ -0,0 +1,48 @@ +labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Profile.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Profile.php new file mode 100644 index 00000000..b8e2a016 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Profile.php @@ -0,0 +1,82 @@ +deployment = $deployment; + } + /** + * @return Google_Service_CloudProfiler_Deployment + */ + public function getDeployment() + { + return $this->deployment; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProfileBytes($profileBytes) + { + $this->profileBytes = $profileBytes; + } + public function getProfileBytes() + { + return $this->profileBytes; + } + public function setProfileType($profileType) + { + $this->profileType = $profileType; + } + public function getProfileType() + { + return $this->profileType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/Projects.php new file mode 100644 index 00000000..e6205865 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $cloudprofilerService = new Google_Service_CloudProfiler(...); + * $projects = $cloudprofilerService->projects; + * + */ +class Google_Service_CloudProfiler_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/ProjectsProfiles.php b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/ProjectsProfiles.php new file mode 100644 index 00000000..3f50cb0b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudProfiler/Resource/ProjectsProfiles.php @@ -0,0 +1,92 @@ + + * $cloudprofilerService = new Google_Service_CloudProfiler(...); + * $profiles = $cloudprofilerService->profiles; + * + */ +class Google_Service_CloudProfiler_Resource_ProjectsProfiles extends Google_Service_Resource +{ + /** + * CreateProfile creates a new profile resource in the online mode. + * + * The server ensures that the new profiles are created at a constant rate per + * deployment, so the creation request may hang for some time until the next + * profile session is available. + * + * The request may fail with ABORTED error if the creation is not available + * within ~1m, the response will indicate the duration of the backoff the client + * should take before attempting creating a profile again. The backoff duration + * is returned in google.rpc.RetryInfo extension on the response status. To a + * gRPC client, the extension will be return as a binary-serialized proto in the + * trailing metadata item named "google.rpc.retryinfo-bin". (profiles.create) + * + * @param string $parent Parent project to create the profile in. + * @param Google_Service_CloudProfiler_CreateProfileRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudProfiler_Profile + */ + public function create($parent, Google_Service_CloudProfiler_CreateProfileRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudProfiler_Profile"); + } + /** + * CreateOfflineProfile creates a new profile resource in the offline mode. The + * client provides the profile to create along with the profile bytes, the + * server records it. (profiles.createOffline) + * + * @param string $parent Parent project to create the profile in. + * @param Google_Service_CloudProfiler_Profile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudProfiler_Profile + */ + public function createOffline($parent, Google_Service_CloudProfiler_Profile $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createOffline', array($params), "Google_Service_CloudProfiler_Profile"); + } + /** + * UpdateProfile updates the profile bytes and labels on the profile resource + * created in the online mode. Updating the bytes for profiles created in the + * offline mode is currently not supported: the profile content must be provided + * at the time of the profile creation. (profiles.patch) + * + * @param string $name Output only. Opaque, server-assigned, unique ID for this + * profile. + * @param Google_Service_CloudProfiler_Profile $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Field mask used to specify the fields to be + * overwritten. Currently only profile_bytes and labels fields are supported by + * UpdateProfile, so only those fields can be specified in the mask. When no + * mask is provided, all fields are overwritten. + * @return Google_Service_CloudProfiler_Profile + */ + public function patch($name, Google_Service_CloudProfiler_Profile $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudProfiler_Profile"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis.php new file mode 100644 index 00000000..4909e392 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis.php @@ -0,0 +1,236 @@ + + * Creates and manages Redis instances on the Google Cloud Platform. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudRedis extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_locations; + public $projects_locations_instances; + public $projects_locations_operations; + + /** + * Constructs the internal representation of the CloudRedis service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://redis.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'redis'; + + $this->projects_locations = new Google_Service_CloudRedis_Resource_ProjectsLocations( + $this, + $this->serviceName, + 'locations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/locations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_instances = new Google_Service_CloudRedis_Resource_ProjectsLocationsInstances( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_locations_operations = new Google_Service_CloudRedis_Resource_ProjectsLocationsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1LocationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1LocationMetadata.php new file mode 100644 index 00000000..e0c6991e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1LocationMetadata.php @@ -0,0 +1,37 @@ +availableZones = $availableZones; + } + /** + * @return Google_Service_CloudRedis_GoogleCloudRedisV1ZoneMetadata + */ + public function getAvailableZones() + { + return $this->availableZones; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1OperationMetadata.php new file mode 100644 index 00000000..04be6a19 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1OperationMetadata.php @@ -0,0 +1,84 @@ +apiVersion = $apiVersion; + } + public function getApiVersion() + { + return $this->apiVersion; + } + public function setCancelRequested($cancelRequested) + { + $this->cancelRequested = $cancelRequested; + } + public function getCancelRequested() + { + return $this->cancelRequested; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStatusDetail($statusDetail) + { + $this->statusDetail = $statusDetail; + } + public function getStatusDetail() + { + return $this->statusDetail; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } + public function setVerb($verb) + { + $this->verb = $verb; + } + public function getVerb() + { + return $this->verb; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1ZoneMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1ZoneMetadata.php new file mode 100644 index 00000000..e4c073b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/GoogleCloudRedisV1ZoneMetadata.php @@ -0,0 +1,20 @@ +alternativeLocationId = $alternativeLocationId; + } + public function getAlternativeLocationId() + { + return $this->alternativeLocationId; + } + public function setAuthorizedNetwork($authorizedNetwork) + { + $this->authorizedNetwork = $authorizedNetwork; + } + public function getAuthorizedNetwork() + { + return $this->authorizedNetwork; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setCurrentLocationId($currentLocationId) + { + $this->currentLocationId = $currentLocationId; + } + public function getCurrentLocationId() + { + return $this->currentLocationId; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setMemorySizeGb($memorySizeGb) + { + $this->memorySizeGb = $memorySizeGb; + } + public function getMemorySizeGb() + { + return $this->memorySizeGb; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setRedisConfigs($redisConfigs) + { + $this->redisConfigs = $redisConfigs; + } + public function getRedisConfigs() + { + return $this->redisConfigs; + } + public function setRedisVersion($redisVersion) + { + $this->redisVersion = $redisVersion; + } + public function getRedisVersion() + { + return $this->redisVersion; + } + public function setReservedIpRange($reservedIpRange) + { + $this->reservedIpRange = $reservedIpRange; + } + public function getReservedIpRange() + { + return $this->reservedIpRange; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTier($tier) + { + $this->tier = $tier; + } + public function getTier() + { + return $this->tier; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListInstancesResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListInstancesResponse.php new file mode 100644 index 00000000..32ca911b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListInstancesResponse.php @@ -0,0 +1,56 @@ +instances = $instances; + } + /** + * @return Google_Service_CloudRedis_Instance + */ + public function getInstances() + { + return $this->instances; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + public function getUnreachable() + { + return $this->unreachable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListLocationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListLocationsResponse.php new file mode 100644 index 00000000..6ffc14d9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListLocationsResponse.php @@ -0,0 +1,47 @@ +locations = $locations; + } + /** + * @return Google_Service_CloudRedis_Location + */ + public function getLocations() + { + return $this->locations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListOperationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListOperationsResponse.php new file mode 100644 index 00000000..aaca54d8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/ListOperationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudRedis_Operation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_CloudRedis_Operation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Location.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Location.php new file mode 100644 index 00000000..b506d486 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Location.php @@ -0,0 +1,66 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Operation.php new file mode 100644 index 00000000..69dcc199 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudRedis_Status + */ + public function setError(Google_Service_CloudRedis_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudRedis_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullTarget.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/RedisEmpty.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullTarget.php rename to vendor/google/apiclient-services/src/Google/Service/CloudRedis/RedisEmpty.php index 2b921cd0..88e47623 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullTarget.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/RedisEmpty.php @@ -15,6 +15,6 @@ * the License. */ -class Google_Service_CloudTasks_PullTarget extends Google_Model +class Google_Service_CloudRedis_RedisEmpty extends Google_Model { } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/Projects.php new file mode 100644 index 00000000..b9498352 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $redisService = new Google_Service_CloudRedis(...); + * $projects = $redisService->projects; + * + */ +class Google_Service_CloudRedis_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocations.php new file mode 100644 index 00000000..6a90ac3d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocations.php @@ -0,0 +1,60 @@ + + * $redisService = new Google_Service_CloudRedis(...); + * $locations = $redisService->locations; + * + */ +class Google_Service_CloudRedis_Resource_ProjectsLocations extends Google_Service_Resource +{ + /** + * Gets information about a location. (locations.get) + * + * @param string $name Resource name for the location. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_Location + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudRedis_Location"); + } + /** + * Lists information about the supported locations for this service. + * (locations.listProjectsLocations) + * + * @param string $name The resource that owns the locations collection, if + * applicable. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_CloudRedis_ListLocationsResponse + */ + public function listProjectsLocations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudRedis_ListLocationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsInstances.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsInstances.php new file mode 100644 index 00000000..c5cb5695 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsInstances.php @@ -0,0 +1,157 @@ + + * $redisService = new Google_Service_CloudRedis(...); + * $instances = $redisService->instances; + * + */ +class Google_Service_CloudRedis_Resource_ProjectsLocationsInstances extends Google_Service_Resource +{ + /** + * Creates a Redis instance based on the specified tier and memory size. + * + * By default, the instance is accessible from the project's [default + * network](/compute/docs/networks-and-firewalls#networks). + * + * The creation is executed asynchronously and callers may check the returned + * operation to track its progress. Once the operation is completed the Redis + * instance will be fully functional. Completed longrunning.Operation will + * contain the new instance object in the response field. + * + * The returned operation is automatically deleted after a few hours, so there + * is no need to call DeleteOperation. (instances.create) + * + * @param string $parent Required. The resource name of the instance location + * using the form: `projects/{project_id}/locations/{location_id}` where + * `location_id` refers to a GCP region + * @param Google_Service_CloudRedis_Instance $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string instanceId Required. The logical name of the Redis instance + * in the customer project with the following restrictions: + * + * * Must contain only lowercase letters, numbers, and hyphens. * Must start + * with a letter. * Must be between 1-40 characters. * Must end with a number or + * a letter. * Must be unique within the customer project / location + * @return Google_Service_CloudRedis_Operation + */ + public function create($parent, Google_Service_CloudRedis_Instance $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudRedis_Operation"); + } + /** + * Deletes a specific Redis instance. Instance stops serving and data is + * deleted. (instances.delete) + * + * @param string $name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where + * `location_id` refers to a GCP region + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudRedis_Operation"); + } + /** + * Gets the details of a specific Redis instance. (instances.get) + * + * @param string $name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where + * `location_id` refers to a GCP region + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_Instance + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudRedis_Instance"); + } + /** + * Lists all Redis instances owned by a project in either the specified location + * (region) or all locations. + * + * The location should have the following format: * + * `projects/{project_id}/locations/{location_id}` + * + * If `location_id` is specified as `-` (wildcard), then all regions available + * to the project are queried, and the results are aggregated. + * (instances.listProjectsLocationsInstances) + * + * @param string $parent Required. The resource name of the instance location + * using the form: `projects/{project_id}/locations/{location_id}` where + * `location_id` refers to a GCP region + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize The maximum number of items to return. + * + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's next_page_token to determine if + * there are more instances left to be queried. + * @return Google_Service_CloudRedis_ListInstancesResponse + */ + public function listProjectsLocationsInstances($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudRedis_ListInstancesResponse"); + } + /** + * Updates the metadata and configuration of a specific Redis instance. + * + * Completed longrunning.Operation will contain the new instance object in the + * response field. The returned operation is automatically deleted after a few + * hours, so there is no need to call DeleteOperation. (instances.patch) + * + * @param string $name Required. Unique name of the resource in this scope + * including project and location using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * + * Note: Redis instances are managed and addressed at regional level so + * location_id here refers to a GCP region; however, users may choose which + * specific zone (or collection of zones for cross-zone instances) an instance + * should be provisioned in. Refer to [location_id] and + * [alternative_location_id] fields for more details. + * @param Google_Service_CloudRedis_Instance $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Required. Mask of fields to update. At least one + * path must be supplied in this field. The elements of the repeated paths field + * may only include these fields from Instance: + * + * `displayName` `labels` `memorySizeGb` `redisConfig` + * @return Google_Service_CloudRedis_Operation + */ + public function patch($name, Google_Service_CloudRedis_Instance $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudRedis_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsOperations.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsOperations.php new file mode 100644 index 00000000..83ff18ba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Resource/ProjectsLocationsOperations.php @@ -0,0 +1,107 @@ + + * $redisService = new Google_Service_CloudRedis(...); + * $operations = $redisService->operations; + * + */ +class Google_Service_CloudRedis_Resource_ProjectsLocationsOperations extends Google_Service_Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_RedisEmpty + */ + public function cancel($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_CloudRedis_RedisEmpty"); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_RedisEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudRedis_RedisEmpty"); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudRedis_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudRedis_Operation"); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listProjectsLocationsOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_CloudRedis_ListOperationsResponse + */ + public function listProjectsLocationsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudRedis_ListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Status.php new file mode 100644 index 00000000..a313d8c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRedis/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager.php b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager.php index 9b1ba460..9a05bdba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager.php @@ -19,8 +19,8 @@ * Service definition for CloudResourceManager (v2). * *- * The Google Cloud Resource Manager API provides methods for creating, reading, - * and updating project metadata.
+ * Creates, reads, and updates metadata for Google Cloud Platform resource + * containers. * ** For more information about this service, see the API @@ -39,6 +39,7 @@ class Google_Service_CloudResourceManager extends Google_Service "https://www.googleapis.com/auth/cloud-platform.read-only"; public $folders; + public $operations; /** * Constructs the internal representation of the CloudResourceManager service. @@ -50,6 +51,7 @@ class Google_Service_CloudResourceManager extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'cloudresourcemanager'; @@ -102,10 +104,6 @@ class Google_Service_CloudResourceManager extends Google_Service 'path' => 'v2/folders', 'httpMethod' => 'GET', 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'parent' => array( 'location' => 'query', 'type' => 'string', @@ -118,6 +116,10 @@ class Google_Service_CloudResourceManager extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'move' => array( 'path' => 'v2/{+name}:move', @@ -181,5 +183,25 @@ class Google_Service_CloudResourceManager extends Google_Service ) ) ); + $this->operations = new Google_Service_CloudResourceManager_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php index 5be27e48..060669a3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php @@ -18,9 +18,25 @@ class Google_Service_CloudResourceManager_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_CloudResourceManager_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_CloudResourceManager_Expr + */ + public function setCondition(Google_Service_CloudResourceManager_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_CloudResourceManager_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Expr.php new file mode 100644 index 00000000..0bc61f59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Folders.php b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Folders.php index ffaaccf7..a9a66e3a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Folders.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Folders.php @@ -41,11 +41,11 @@ class Google_Service_CloudResourceManager_Resource_Folders extends Google_Servic * the Folder must not cause the total number of Folders under its parent to * exceed 100. * - * If the operation fails due to a folder constraint violation, a - * PreconditionFailure explaining the violation will be returned. If the failure - * occurs synchronously then the PreconditionFailure will be returned via the - * Status.details field and if it occurs asynchronously then the - * PreconditionFailure will be returned via the the Operation.error field. + * If the operation fails due to a folder constraint violation, some errors may + * be returned by the CreateFolder request, with status code FAILED_PRECONDITION + * and an error description. Other folder constraint violations will be + * communicated in the Operation, with the specific PreconditionFailure returned + * via the details list in the Operation.error field. * * The caller must have `resourcemanager.folders.create` permission on the * identified parent. (folders.create) @@ -129,8 +129,6 @@ class Google_Service_CloudResourceManager_Resource_Folders extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param int pageSize The maximum number of Folders to return in the - * response. This field is optional. * @opt_param string parent The resource name of the Organization or Folder * whose Folders are being listed. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. Access to this method is controlled by checking the @@ -140,6 +138,8 @@ class Google_Service_CloudResourceManager_Resource_Folders extends Google_Servic * @opt_param string pageToken A pagination token returned from a previous call * to `ListFolders` that indicates where this listing should continue from. This * field is optional. + * @opt_param int pageSize The maximum number of Folders to return in the + * response. This field is optional. * @return Google_Service_CloudResourceManager_ListFoldersResponse */ public function listFolders($optParams = array()) @@ -155,8 +155,8 @@ class Google_Service_CloudResourceManager_Resource_Folders extends Google_Servic * failure, a FolderOperationError categorizing the failure cause will be * returned - if the failure occurs synchronously then the FolderOperationError * will be returned via the Status.details field and if it occurs asynchronously - * then the FolderOperation will be returned via the the Operation.error field. - * In addition, the Operation.metadata field will be populated with a + * then the FolderOperation will be returned via the Operation.error field. In + * addition, the Operation.metadata field will be populated with a * FolderOperation message as an aid to stateless clients. Folder moves will be * rejected if they violate either the naming, height or fanout constraints * described in the CreateFolder documentation. The caller must have @@ -184,7 +184,7 @@ class Google_Service_CloudResourceManager_Resource_Folders extends Google_Servic * The Folder's display name must start and end with a letter or digit, may * contain letters, digits, spaces, hyphens and underscores and can be no longer * than 30 characters. This is captured by the regular expression: - * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. The caller must have + * [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. The caller must have * `resourcemanager.folders.update` permission on the identified folder. * * If the update fails due to the unique name constraint then a diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php new file mode 100644 index 00000000..62cfc870 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php @@ -0,0 +1,43 @@ + + * $cloudresourcemanagerService = new Google_Service_CloudResourceManager(...); + * $operations = $cloudresourcemanagerService->operations; + * + */ +class Google_Service_CloudResourceManager_Resource_Operations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudResourceManager_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudResourceManager_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php index e0ac0f8d..c1f34565 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php @@ -52,6 +52,7 @@ class Google_Service_CloudRuntimeConfig extends Google_Service parent::__construct($client); $this->rootUrl = 'https://runtimeconfig.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'runtimeconfig'; @@ -90,6 +91,10 @@ class Google_Service_CloudRuntimeConfig extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -98,10 +103,6 @@ class Google_Service_CloudRuntimeConfig extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php index c6abfb92..1c7b00ed 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php @@ -78,9 +78,9 @@ class Google_Service_CloudRuntimeConfig_Resource_Operations extends Google_Servi * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. - * @opt_param int pageSize The standard list page size. * @return Google_Service_CloudRuntimeConfig_ListOperationsResponse */ public function listOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler.php new file mode 100644 index 00000000..a6789e4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler.php @@ -0,0 +1,199 @@ + + * Creates and manages jobs run on a regular recurring schedule.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudScheduler extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_locations; + public $projects_locations_jobs; + + /** + * Constructs the internal representation of the CloudScheduler service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudscheduler.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1beta1'; + $this->serviceName = 'cloudscheduler'; + + $this->projects_locations = new Google_Service_CloudScheduler_Resource_ProjectsLocations( + $this, + $this->serviceName, + 'locations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+name}/locations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_jobs = new Google_Service_CloudScheduler_Resource_ProjectsLocationsJobs( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/{+parent}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+parent}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'pause' => array( + 'path' => 'v1beta1/{+name}:pause', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resume' => array( + 'path' => 'v1beta1/{+name}:resume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'run' => array( + 'path' => 'v1beta1/{+name}:run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineHttpTarget.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineHttpTarget.php new file mode 100644 index 00000000..7b84d116 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineHttpTarget.php @@ -0,0 +1,73 @@ +appEngineRouting = $appEngineRouting; + } + /** + * @return Google_Service_CloudScheduler_AppEngineRouting + */ + public function getAppEngineRouting() + { + return $this->appEngineRouting; + } + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } + public function setHeaders($headers) + { + $this->headers = $headers; + } + public function getHeaders() + { + return $this->headers; + } + public function setHttpMethod($httpMethod) + { + $this->httpMethod = $httpMethod; + } + public function getHttpMethod() + { + return $this->httpMethod; + } + public function setRelativeUri($relativeUri) + { + $this->relativeUri = $relativeUri; + } + public function getRelativeUri() + { + return $this->relativeUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineRouting.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineRouting.php new file mode 100644 index 00000000..c1428280 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/AppEngineRouting.php @@ -0,0 +1,57 @@ +host = $host; + } + public function getHost() + { + return $this->host; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/CloudschedulerEmpty.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/CloudschedulerEmpty.php new file mode 100644 index 00000000..56e8e383 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/CloudschedulerEmpty.php @@ -0,0 +1,20 @@ +body = $body; + } + public function getBody() + { + return $this->body; + } + public function setHeaders($headers) + { + $this->headers = $headers; + } + public function getHeaders() + { + return $this->headers; + } + public function setHttpMethod($httpMethod) + { + $this->httpMethod = $httpMethod; + } + public function getHttpMethod() + { + return $this->httpMethod; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Job.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Job.php new file mode 100644 index 00000000..84f1853c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Job.php @@ -0,0 +1,173 @@ +appEngineHttpTarget = $appEngineHttpTarget; + } + /** + * @return Google_Service_CloudScheduler_AppEngineHttpTarget + */ + public function getAppEngineHttpTarget() + { + return $this->appEngineHttpTarget; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_CloudScheduler_HttpTarget + */ + public function setHttpTarget(Google_Service_CloudScheduler_HttpTarget $httpTarget) + { + $this->httpTarget = $httpTarget; + } + /** + * @return Google_Service_CloudScheduler_HttpTarget + */ + public function getHttpTarget() + { + return $this->httpTarget; + } + public function setLastAttemptTime($lastAttemptTime) + { + $this->lastAttemptTime = $lastAttemptTime; + } + public function getLastAttemptTime() + { + return $this->lastAttemptTime; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudScheduler_PubsubTarget + */ + public function setPubsubTarget(Google_Service_CloudScheduler_PubsubTarget $pubsubTarget) + { + $this->pubsubTarget = $pubsubTarget; + } + /** + * @return Google_Service_CloudScheduler_PubsubTarget + */ + public function getPubsubTarget() + { + return $this->pubsubTarget; + } + /** + * @param Google_Service_CloudScheduler_RetryConfig + */ + public function setRetryConfig(Google_Service_CloudScheduler_RetryConfig $retryConfig) + { + $this->retryConfig = $retryConfig; + } + /** + * @return Google_Service_CloudScheduler_RetryConfig + */ + public function getRetryConfig() + { + return $this->retryConfig; + } + public function setSchedule($schedule) + { + $this->schedule = $schedule; + } + public function getSchedule() + { + return $this->schedule; + } + public function setScheduleTime($scheduleTime) + { + $this->scheduleTime = $scheduleTime; + } + public function getScheduleTime() + { + return $this->scheduleTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + /** + * @param Google_Service_CloudScheduler_Status + */ + public function setStatus(Google_Service_CloudScheduler_Status $status) + { + $this->status = $status; + } + /** + * @return Google_Service_CloudScheduler_Status + */ + public function getStatus() + { + return $this->status; + } + public function setTimeZone($timeZone) + { + $this->timeZone = $timeZone; + } + public function getTimeZone() + { + return $this->timeZone; + } + public function setUserUpdateTime($userUpdateTime) + { + $this->userUpdateTime = $userUpdateTime; + } + public function getUserUpdateTime() + { + return $this->userUpdateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListJobsResponse.php new file mode 100644 index 00000000..0974a0b8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListJobsResponse.php @@ -0,0 +1,47 @@ +jobs = $jobs; + } + /** + * @return Google_Service_CloudScheduler_Job + */ + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListLocationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListLocationsResponse.php new file mode 100644 index 00000000..21f4c060 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ListLocationsResponse.php @@ -0,0 +1,47 @@ +locations = $locations; + } + /** + * @return Google_Service_CloudScheduler_Location + */ + public function getLocations() + { + return $this->locations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Location.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Location.php new file mode 100644 index 00000000..76a0e4c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Location.php @@ -0,0 +1,66 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PauseJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PauseJobRequest.php new file mode 100644 index 00000000..524afa51 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PauseJobRequest.php @@ -0,0 +1,20 @@ +attributes = $attributes; + } + public function getAttributes() + { + return $this->attributes; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessageId($messageId) + { + $this->messageId = $messageId; + } + public function getMessageId() + { + return $this->messageId; + } + public function setPublishTime($publishTime) + { + $this->publishTime = $publishTime; + } + public function getPublishTime() + { + return $this->publishTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PubsubTarget.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PubsubTarget.php new file mode 100644 index 00000000..b907f022 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/PubsubTarget.php @@ -0,0 +1,48 @@ +attributes = $attributes; + } + public function getAttributes() + { + return $this->attributes; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setTopicName($topicName) + { + $this->topicName = $topicName; + } + public function getTopicName() + { + return $this->topicName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/Projects.php new file mode 100644 index 00000000..01034246 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $cloudschedulerService = new Google_Service_CloudScheduler(...); + * $projects = $cloudschedulerService->projects; + * + */ +class Google_Service_CloudScheduler_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocations.php new file mode 100644 index 00000000..fdab5cd4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocations.php @@ -0,0 +1,60 @@ + + * $cloudschedulerService = new Google_Service_CloudScheduler(...); + * $locations = $cloudschedulerService->locations; + * + */ +class Google_Service_CloudScheduler_Resource_ProjectsLocations extends Google_Service_Resource +{ + /** + * Gets information about a location. (locations.get) + * + * @param string $name Resource name for the location. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Location + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudScheduler_Location"); + } + /** + * Lists information about the supported locations for this service. + * (locations.listProjectsLocations) + * + * @param string $name The resource that owns the locations collection, if + * applicable. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_CloudScheduler_ListLocationsResponse + */ + public function listProjectsLocations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudScheduler_ListLocationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocationsJobs.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocationsJobs.php new file mode 100644 index 00000000..f28cc344 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/Resource/ProjectsLocationsJobs.php @@ -0,0 +1,202 @@ + + * $cloudschedulerService = new Google_Service_CloudScheduler(...); + * $jobs = $cloudschedulerService->jobs; + * + */ +class Google_Service_CloudScheduler_Resource_ProjectsLocationsJobs extends Google_Service_Resource +{ + /** + * Creates a job. (jobs.create) + * + * @param string $parent Required. + * + * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param Google_Service_CloudScheduler_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Job + */ + public function create($parent, Google_Service_CloudScheduler_Job $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudScheduler_Job"); + } + /** + * Deletes a job. (jobs.delete) + * + * @param string $name Required. + * + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_CloudschedulerEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudScheduler_CloudschedulerEmpty"); + } + /** + * Gets a job. (jobs.get) + * + * @param string $name Required. + * + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Job + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudScheduler_Job"); + } + /** + * Lists jobs. (jobs.listProjectsLocationsJobs) + * + * @param string $parent Required. + * + * The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results the server + * will return. To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * next_page_token returned from the previous call to ListJobs. It is an error + * to switch the value of filter or order_by while iterating through pages. + * @opt_param int pageSize Requested page size. + * + * The maximum page size is 500. If unspecified, the page size will be the + * maximum. Fewer jobs than requested might be returned, even if more jobs + * exist; use next_page_token to determine if more jobs exist. + * @return Google_Service_CloudScheduler_ListJobsResponse + */ + public function listProjectsLocationsJobs($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudScheduler_ListJobsResponse"); + } + /** + * Updates a job. + * + * If successful, the updated Job is returned. If the job does not exist, + * `NOT_FOUND` is returned. + * + * If UpdateJob does not successfully return, it is possible for the job to be + * in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. + * If this happens, retry the UpdateJob request until a successful response is + * received. (jobs.patch) + * + * @param string $name The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens + * (-), colons (:), or periods (.). For more information, see [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing- + * projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the + * job's location. The list of available locations can be obtained by calling + * ListLocations. For more information, see + * https://cloud.google.com/about/locations/. * `JOB_ID` can contain only + * letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The + * maximum length is 500 characters. + * @param Google_Service_CloudScheduler_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask A mask used to specify which fields of the job + * are being updated. + * @return Google_Service_CloudScheduler_Job + */ + public function patch($name, Google_Service_CloudScheduler_Job $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudScheduler_Job"); + } + /** + * Pauses a job. + * + * If a job is paused then the system will stop executing the job until it is + * re-enabled via ResumeJob. The state of the job is stored in state; if paused + * it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be + * paused. (jobs.pause) + * + * @param string $name Required. + * + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param Google_Service_CloudScheduler_PauseJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Job + */ + public function pause($name, Google_Service_CloudScheduler_PauseJobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('pause', array($params), "Google_Service_CloudScheduler_Job"); + } + /** + * Resume a job. + * + * This method reenables a job after it has been Job.State.PAUSED. The state of + * a job is stored in Job.state; after calling this method it will be set to + * Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed. + * (jobs.resume) + * + * @param string $name Required. + * + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param Google_Service_CloudScheduler_ResumeJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Job + */ + public function resume($name, Google_Service_CloudScheduler_ResumeJobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resume', array($params), "Google_Service_CloudScheduler_Job"); + } + /** + * Forces a job to run now. + * + * When this method is called, Cloud Scheduler will dispatch the job, even if + * the job is already running. (jobs.run) + * + * @param string $name Required. + * + * The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param Google_Service_CloudScheduler_RunJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudScheduler_Job + */ + public function run($name, Google_Service_CloudScheduler_RunJobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_CloudScheduler_Job"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ResumeJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ResumeJobRequest.php new file mode 100644 index 00000000..4adc0ee8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/ResumeJobRequest.php @@ -0,0 +1,20 @@ +maxBackoffDuration = $maxBackoffDuration; + } + public function getMaxBackoffDuration() + { + return $this->maxBackoffDuration; + } + public function setMaxDoublings($maxDoublings) + { + $this->maxDoublings = $maxDoublings; + } + public function getMaxDoublings() + { + return $this->maxDoublings; + } + public function setMaxRetryDuration($maxRetryDuration) + { + $this->maxRetryDuration = $maxRetryDuration; + } + public function getMaxRetryDuration() + { + return $this->maxRetryDuration; + } + public function setMinBackoffDuration($minBackoffDuration) + { + $this->minBackoffDuration = $minBackoffDuration; + } + public function getMinBackoffDuration() + { + return $this->minBackoffDuration; + } + public function setRetryCount($retryCount) + { + $this->retryCount = $retryCount; + } + public function getRetryCount() + { + return $this->retryCount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/RunJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/RunJobRequest.php new file mode 100644 index 00000000..99457456 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudScheduler/RunJobRequest.php @@ -0,0 +1,20 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch.php new file mode 100644 index 00000000..cf30109f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch.php @@ -0,0 +1,750 @@ + + * Cloud Search provides cloud-based search capabilities over G Suite data. The + * Cloud Search API allows indexing of non-G Suite data into Cloud Search. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudSearch extends Google_Service +{ + /** Index and serve your organization's data with Cloud Search. */ + const CLOUD_SEARCH = + "https://www.googleapis.com/auth/cloud_search"; + /** New Service: https://www.googleapis.com/auth/cloud_search.debug. */ + const CLOUD_SEARCH_DEBUG = + "https://www.googleapis.com/auth/cloud_search.debug"; + /** New Service: https://www.googleapis.com/auth/cloud_search.indexing. */ + const CLOUD_SEARCH_INDEXING = + "https://www.googleapis.com/auth/cloud_search.indexing"; + /** Search your organization's data in the Cloud Search index. */ + const CLOUD_SEARCH_QUERY = + "https://www.googleapis.com/auth/cloud_search.query"; + /** New Service: https://www.googleapis.com/auth/cloud_search.settings. */ + const CLOUD_SEARCH_SETTINGS = + "https://www.googleapis.com/auth/cloud_search.settings"; + /** New Service: https://www.googleapis.com/auth/cloud_search.settings.indexing. */ + const CLOUD_SEARCH_SETTINGS_INDEXING = + "https://www.googleapis.com/auth/cloud_search.settings.indexing"; + /** New Service: https://www.googleapis.com/auth/cloud_search.settings.query. */ + const CLOUD_SEARCH_SETTINGS_QUERY = + "https://www.googleapis.com/auth/cloud_search.settings.query"; + /** New Service: https://www.googleapis.com/auth/cloud_search.stats. */ + const CLOUD_SEARCH_STATS = + "https://www.googleapis.com/auth/cloud_search.stats"; + /** New Service: https://www.googleapis.com/auth/cloud_search.stats.indexing. */ + const CLOUD_SEARCH_STATS_INDEXING = + "https://www.googleapis.com/auth/cloud_search.stats.indexing"; + + public $debug_datasources_items; + public $debug_datasources_items_unmappedids; + public $debug_identitysources_items; + public $debug_identitysources_unmappedids; + public $indexing_datasources; + public $indexing_datasources_items; + public $media; + public $operations; + public $query; + public $query_sources; + public $settings_datasources; + public $settings_searchapplications; + public $stats; + public $stats_index_datasources; + + /** + * Constructs the internal representation of the CloudSearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudsearch.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'cloudsearch'; + + $this->debug_datasources_items = new Google_Service_CloudSearch_Resource_DebugDatasourcesItems( + $this, + $this->serviceName, + 'items', + array( + 'methods' => array( + 'checkAccess' => array( + 'path' => 'v1/debug/{+name}:checkAccess', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'searchByViewUrl' => array( + 'path' => 'v1/debug/{+name}/items:searchByViewUrl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->debug_datasources_items_unmappedids = new Google_Service_CloudSearch_Resource_DebugDatasourcesItemsUnmappedids( + $this, + $this->serviceName, + 'unmappedids', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/debug/{+parent}/unmappedids', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->debug_identitysources_items = new Google_Service_CloudSearch_Resource_DebugIdentitysourcesItems( + $this, + $this->serviceName, + 'items', + array( + 'methods' => array( + 'listForunmappedidentity' => array( + 'path' => 'v1/debug/{+parent}/items:forunmappedidentity', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'groupResourceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userResourceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->debug_identitysources_unmappedids = new Google_Service_CloudSearch_Resource_DebugIdentitysourcesUnmappedids( + $this, + $this->serviceName, + 'unmappedids', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/debug/{+parent}/unmappedids', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resolutionStatusCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->indexing_datasources = new Google_Service_CloudSearch_Resource_IndexingDatasources( + $this, + $this->serviceName, + 'datasources', + array( + 'methods' => array( + 'deleteSchema' => array( + 'path' => 'v1/indexing/{+name}/schema', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'getSchema' => array( + 'path' => 'v1/indexing/{+name}/schema', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'updateSchema' => array( + 'path' => 'v1/indexing/{+name}/schema', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->indexing_datasources_items = new Google_Service_CloudSearch_Resource_IndexingDatasourcesItems( + $this, + $this->serviceName, + 'items', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1/indexing/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'connectorName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'version' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'mode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'deleteQueueItems' => array( + 'path' => 'v1/indexing/{+name}/items:deleteQueueItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/indexing/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'connectorName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'index' => array( + 'path' => 'v1/indexing/{+name}:index', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/indexing/{+name}/items', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'connectorName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'brief' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'poll' => array( + 'path' => 'v1/indexing/{+name}/items:poll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'push' => array( + 'path' => 'v1/indexing/{+name}:push', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unreserve' => array( + 'path' => 'v1/indexing/{+name}/items:unreserve', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'upload' => array( + 'path' => 'v1/indexing/{+name}:upload', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->media = new Google_Service_CloudSearch_Resource_Media( + $this, + $this->serviceName, + 'media', + array( + 'methods' => array( + 'upload' => array( + 'path' => 'v1/media/{+resourceName}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resourceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_CloudSearch_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->query = new Google_Service_CloudSearch_Resource_Query( + $this, + $this->serviceName, + 'query', + array( + 'methods' => array( + 'search' => array( + 'path' => 'v1/query/search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'suggest' => array( + 'path' => 'v1/query/suggest', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->query_sources = new Google_Service_CloudSearch_Resource_QuerySources( + $this, + $this->serviceName, + 'sources', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/query/sources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'requestOptions.debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'requestOptions.languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestOptions.searchApplicationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestOptions.timeZone' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->settings_datasources = new Google_Service_CloudSearch_Resource_SettingsDatasources( + $this, + $this->serviceName, + 'datasources', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/settings/datasources', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'v1/settings/datasources', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->settings_searchapplications = new Google_Service_CloudSearch_Resource_SettingsSearchapplications( + $this, + $this->serviceName, + 'searchapplications', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/settings/searchapplications', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'v1/settings/searchapplications', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'debugOptions.enableDebugging' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'reset' => array( + 'path' => 'v1/settings/{+name}:reset', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1/settings/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->stats = new Google_Service_CloudSearch_Resource_Stats( + $this, + $this->serviceName, + 'stats', + array( + 'methods' => array( + 'getIndex' => array( + 'path' => 'v1/stats/index', + 'httpMethod' => 'GET', + 'parameters' => array( + 'toDate.month' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'toDate.year' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fromDate.month' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fromDate.day' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fromDate.year' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'toDate.day' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->stats_index_datasources = new Google_Service_CloudSearch_Resource_StatsIndexDatasources( + $this, + $this->serviceName, + 'datasources', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/stats/index/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fromDate.year' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'toDate.day' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'toDate.month' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'toDate.year' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fromDate.month' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'fromDate.day' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanOperatorOptions.php new file mode 100644 index 00000000..3b822d96 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanOperatorOptions.php @@ -0,0 +1,30 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanPropertyOptions.php new file mode 100644 index 00000000..9e9a9c60 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/BooleanPropertyOptions.php @@ -0,0 +1,37 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_BooleanOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CheckAccessResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CheckAccessResponse.php new file mode 100644 index 00000000..3fb3a54c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CheckAccessResponse.php @@ -0,0 +1,30 @@ +hasAccess = $hasAccess; + } + public function getHasAccess() + { + return $this->hasAccess; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CompositeFilter.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CompositeFilter.php new file mode 100644 index 00000000..9ca756b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CompositeFilter.php @@ -0,0 +1,47 @@ +logicOperator = $logicOperator; + } + public function getLogicOperator() + { + return $this->logicOperator; + } + /** + * @param Google_Service_CloudSearch_Filter + */ + public function setSubFilters($subFilters) + { + $this->subFilters = $subFilters; + } + /** + * @return Google_Service_CloudSearch_Filter + */ + public function getSubFilters() + { + return $this->subFilters; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CustomerIndexStats.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CustomerIndexStats.php new file mode 100644 index 00000000..05e25720 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/CustomerIndexStats.php @@ -0,0 +1,54 @@ +date = $date; + } + /** + * @return Google_Service_CloudSearch_Date + */ + public function getDate() + { + return $this->date; + } + /** + * @param Google_Service_CloudSearch_ItemCountByStatus + */ + public function setItemCountByStatus($itemCountByStatus) + { + $this->itemCountByStatus = $itemCountByStatus; + } + /** + * @return Google_Service_CloudSearch_ItemCountByStatus + */ + public function getItemCountByStatus() + { + return $this->itemCountByStatus; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSource.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSource.php new file mode 100644 index 00000000..e4a18816 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSource.php @@ -0,0 +1,101 @@ +disableModifications = $disableModifications; + } + public function getDisableModifications() + { + return $this->disableModifications; + } + public function setDisableServing($disableServing) + { + $this->disableServing = $disableServing; + } + public function getDisableServing() + { + return $this->disableServing; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setIndexingServiceAccounts($indexingServiceAccounts) + { + $this->indexingServiceAccounts = $indexingServiceAccounts; + } + public function getIndexingServiceAccounts() + { + return $this->indexingServiceAccounts; + } + /** + * @param Google_Service_CloudSearch_GSuitePrincipal + */ + public function setItemsVisibility($itemsVisibility) + { + $this->itemsVisibility = $itemsVisibility; + } + /** + * @return Google_Service_CloudSearch_GSuitePrincipal + */ + public function getItemsVisibility() + { + return $this->itemsVisibility; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationIds($operationIds) + { + $this->operationIds = $operationIds; + } + public function getOperationIds() + { + return $this->operationIds; + } + public function setShortName($shortName) + { + $this->shortName = $shortName; + } + public function getShortName() + { + return $this->shortName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceIndexStats.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceIndexStats.php new file mode 100644 index 00000000..00cab583 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceIndexStats.php @@ -0,0 +1,54 @@ +date = $date; + } + /** + * @return Google_Service_CloudSearch_Date + */ + public function getDate() + { + return $this->date; + } + /** + * @param Google_Service_CloudSearch_ItemCountByStatus + */ + public function setItemCountByStatus($itemCountByStatus) + { + $this->itemCountByStatus = $itemCountByStatus; + } + /** + * @return Google_Service_CloudSearch_ItemCountByStatus + */ + public function getItemCountByStatus() + { + return $this->itemCountByStatus; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceRestriction.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceRestriction.php new file mode 100644 index 00000000..73d56a07 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DataSourceRestriction.php @@ -0,0 +1,54 @@ +filterOptions = $filterOptions; + } + /** + * @return Google_Service_CloudSearch_FilterOptions + */ + public function getFilterOptions() + { + return $this->filterOptions; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Date.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Date.php new file mode 100644 index 00000000..cc0809af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Date.php @@ -0,0 +1,48 @@ +day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateOperatorOptions.php new file mode 100644 index 00000000..accc560a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateOperatorOptions.php @@ -0,0 +1,48 @@ +greaterThanOperatorName = $greaterThanOperatorName; + } + public function getGreaterThanOperatorName() + { + return $this->greaterThanOperatorName; + } + public function setLessThanOperatorName($lessThanOperatorName) + { + $this->lessThanOperatorName = $lessThanOperatorName; + } + public function getLessThanOperatorName() + { + return $this->lessThanOperatorName; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DatePropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DatePropertyOptions.php new file mode 100644 index 00000000..cf50f429 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DatePropertyOptions.php @@ -0,0 +1,37 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_DateOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScopeSet.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateValues.php similarity index 75% rename from vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScopeSet.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateValues.php index 0fafee1e..0f53f13f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScopeSet.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DateValues.php @@ -15,21 +15,21 @@ * the License. */ -class Google_Service_Script_GoogleAppsScriptTypeScopeSet extends Google_Collection +class Google_Service_CloudSearch_DateValues extends Google_Collection { protected $collection_key = 'values'; - protected $valuesType = 'Google_Service_Script_GoogleAppsScriptTypeScope'; + protected $valuesType = 'Google_Service_CloudSearch_Date'; protected $valuesDataType = 'array'; /** - * @param Google_Service_Script_GoogleAppsScriptTypeScope + * @param Google_Service_CloudSearch_Date */ public function setValues($values) { $this->values = $values; } /** - * @return Google_Service_Script_GoogleAppsScriptTypeScope + * @return Google_Service_CloudSearch_Date */ public function getValues() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DebugOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DebugOptions.php new file mode 100644 index 00000000..3fe69e4d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DebugOptions.php @@ -0,0 +1,30 @@ +enableDebugging = $enableDebugging; + } + public function getEnableDebugging() + { + return $this->enableDebugging; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DeleteQueueItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DeleteQueueItemsRequest.php new file mode 100644 index 00000000..c003c76d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DeleteQueueItemsRequest.php @@ -0,0 +1,55 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + public function setQueue($queue) + { + $this->queue = $queue; + } + public function getQueue() + { + return $this->queue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DisplayedProperty.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DisplayedProperty.php new file mode 100644 index 00000000..af740568 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DisplayedProperty.php @@ -0,0 +1,30 @@ +propertyName = $propertyName; + } + public function getPropertyName() + { + return $this->propertyName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleOperatorOptions.php new file mode 100644 index 00000000..06574329 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleOperatorOptions.php @@ -0,0 +1,30 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoublePropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoublePropertyOptions.php new file mode 100644 index 00000000..8448bc2a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoublePropertyOptions.php @@ -0,0 +1,37 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_DoubleOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleValues.php new file mode 100644 index 00000000..04624879 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DoubleValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveFollowUpRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveFollowUpRestrict.php new file mode 100644 index 00000000..9c6c62a6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveFollowUpRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveLocationRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveLocationRestrict.php new file mode 100644 index 00000000..515c9bfd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveLocationRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveMimeTypeRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveMimeTypeRestrict.php new file mode 100644 index 00000000..3a4d51a8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveMimeTypeRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveTimeSpanRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveTimeSpanRestrict.php new file mode 100644 index 00000000..18e87ef5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/DriveTimeSpanRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EmailAddress.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EmailAddress.php new file mode 100644 index 00000000..ba2ed8eb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EmailAddress.php @@ -0,0 +1,30 @@ +emailAddress = $emailAddress; + } + public function getEmailAddress() + { + return $this->emailAddress; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumOperatorOptions.php new file mode 100644 index 00000000..ee7f8283 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumOperatorOptions.php @@ -0,0 +1,30 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumPropertyOptions.php new file mode 100644 index 00000000..1017155f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumPropertyOptions.php @@ -0,0 +1,63 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_EnumOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } + public function setOrderedRanking($orderedRanking) + { + $this->orderedRanking = $orderedRanking; + } + public function getOrderedRanking() + { + return $this->orderedRanking; + } + /** + * @param Google_Service_CloudSearch_EnumValuePair + */ + public function setPossibleValues($possibleValues) + { + $this->possibleValues = $possibleValues; + } + /** + * @return Google_Service_CloudSearch_EnumValuePair + */ + public function getPossibleValues() + { + return $this->possibleValues; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValuePair.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValuePair.php new file mode 100644 index 00000000..acd4e55a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValuePair.php @@ -0,0 +1,39 @@ +integerValue = $integerValue; + } + public function getIntegerValue() + { + return $this->integerValue; + } + public function setStringValue($stringValue) + { + $this->stringValue = $stringValue; + } + public function getStringValue() + { + return $this->stringValue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValues.php new file mode 100644 index 00000000..2d7b3556 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/EnumValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStorageOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorInfo.php similarity index 55% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStorageOptions.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorInfo.php index e9c3ee58..85d19455 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStorageOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorInfo.php @@ -15,23 +15,24 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStorageOptions extends Google_Model +class Google_Service_CloudSearch_ErrorInfo extends Google_Collection { - protected $fileSetType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FileSet'; - protected $fileSetDataType = ''; + protected $collection_key = 'errorMessages'; + protected $errorMessagesType = 'Google_Service_CloudSearch_ErrorMessage'; + protected $errorMessagesDataType = 'array'; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FileSet + * @param Google_Service_CloudSearch_ErrorMessage */ - public function setFileSet(Google_Service_DLP_GooglePrivacyDlpV2beta1FileSet $fileSet) + public function setErrorMessages($errorMessages) { - $this->fileSet = $fileSet; + $this->errorMessages = $errorMessages; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FileSet + * @return Google_Service_CloudSearch_ErrorMessage */ - public function getFileSet() + public function getErrorMessages() { - return $this->fileSet; + return $this->errorMessages; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorMessage.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorMessage.php new file mode 100644 index 00000000..48e7ad64 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ErrorMessage.php @@ -0,0 +1,46 @@ +errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1ValueFrequency.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetBucket.php similarity index 65% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1ValueFrequency.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetBucket.php index 1161a81a..cc7243f2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1ValueFrequency.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetBucket.php @@ -15,10 +15,11 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency extends Google_Model +class Google_Service_CloudSearch_FacetBucket extends Google_Model { public $count; - protected $valueType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1Value'; + public $percentage; + protected $valueType = 'Google_Service_CloudSearch_Value'; protected $valueDataType = ''; public function setCount($count) @@ -29,15 +30,23 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency extends Google_Mo { return $this->count; } + public function setPercentage($percentage) + { + $this->percentage = $percentage; + } + public function getPercentage() + { + return $this->percentage; + } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value + * @param Google_Service_CloudSearch_Value */ - public function setValue(Google_Service_DLP_GooglePrivacyDlpV2beta1Value $value) + public function setValue(Google_Service_CloudSearch_Value $value) { $this->value = $value; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value + * @return Google_Service_CloudSearch_Value */ public function getValue() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetOptions.php new file mode 100644 index 00000000..81e09537 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetOptions.php @@ -0,0 +1,48 @@ +objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } + public function setSourceName($sourceName) + { + $this->sourceName = $sourceName; + } + public function getSourceName() + { + return $this->sourceName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetResult.php new file mode 100644 index 00000000..21de1778 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FacetResult.php @@ -0,0 +1,65 @@ +buckets = $buckets; + } + /** + * @return Google_Service_CloudSearch_FacetBucket + */ + public function getBuckets() + { + return $this->buckets; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } + public function setSourceName($sourceName) + { + $this->sourceName = $sourceName; + } + public function getSourceName() + { + return $this->sourceName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Step.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FieldViolation.php similarity index 80% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Step.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/FieldViolation.php index b90a19af..9361ec63 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Step.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FieldViolation.php @@ -15,10 +15,10 @@ * the License. */ -class Google_Service_ServiceUsage_Step extends Google_Model +class Google_Service_CloudSearch_FieldViolation extends Google_Model { public $description; - public $status; + public $field; public function setDescription($description) { @@ -28,12 +28,12 @@ class Google_Service_ServiceUsage_Step extends Google_Model { return $this->description; } - public function setStatus($status) + public function setField($field) { - $this->status = $status; + $this->field = $field; } - public function getStatus() + public function getField() { - return $this->status; + return $this->field; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Filter.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Filter.php new file mode 100644 index 00000000..1cfd86f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Filter.php @@ -0,0 +1,53 @@ +compositeFilter = $compositeFilter; + } + /** + * @return Google_Service_CloudSearch_CompositeFilter + */ + public function getCompositeFilter() + { + return $this->compositeFilter; + } + /** + * @param Google_Service_CloudSearch_ValueFilter + */ + public function setValueFilter(Google_Service_CloudSearch_ValueFilter $valueFilter) + { + $this->valueFilter = $valueFilter; + } + /** + * @return Google_Service_CloudSearch_ValueFilter + */ + public function getValueFilter() + { + return $this->valueFilter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FilterOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FilterOptions.php new file mode 100644 index 00000000..e1c7fb33 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FilterOptions.php @@ -0,0 +1,46 @@ +filter = $filter; + } + /** + * @return Google_Service_CloudSearch_Filter + */ + public function getFilter() + { + return $this->filter; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FreshnessOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FreshnessOptions.php new file mode 100644 index 00000000..c1d8c8a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/FreshnessOptions.php @@ -0,0 +1,39 @@ +freshnessDuration = $freshnessDuration; + } + public function getFreshnessDuration() + { + return $this->freshnessDuration; + } + public function setFreshnessProperty($freshnessProperty) + { + $this->freshnessProperty = $freshnessProperty; + } + public function getFreshnessProperty() + { + return $this->freshnessProperty; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GSuitePrincipal.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GSuitePrincipal.php new file mode 100644 index 00000000..9c92ad18 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GSuitePrincipal.php @@ -0,0 +1,48 @@ +gsuiteDomain = $gsuiteDomain; + } + public function getGsuiteDomain() + { + return $this->gsuiteDomain; + } + public function setGsuiteGroupEmail($gsuiteGroupEmail) + { + $this->gsuiteGroupEmail = $gsuiteGroupEmail; + } + public function getGsuiteGroupEmail() + { + return $this->gsuiteGroupEmail; + } + public function setGsuiteUserEmail($gsuiteUserEmail) + { + $this->gsuiteUserEmail = $gsuiteUserEmail; + } + public function getGsuiteUserEmail() + { + return $this->gsuiteUserEmail; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetCustomerIndexStatsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetCustomerIndexStatsResponse.php new file mode 100644 index 00000000..784c71b3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetCustomerIndexStatsResponse.php @@ -0,0 +1,38 @@ +stats = $stats; + } + /** + * @return Google_Service_CloudSearch_CustomerIndexStats + */ + public function getStats() + { + return $this->stats; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetDataSourceIndexStatsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetDataSourceIndexStatsResponse.php new file mode 100644 index 00000000..5bb7837f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GetDataSourceIndexStatsResponse.php @@ -0,0 +1,38 @@ +stats = $stats; + } + /** + * @return Google_Service_CloudSearch_DataSourceIndexStats + */ + public function getStats() + { + return $this->stats; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailActionRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailActionRestrict.php new file mode 100644 index 00000000..31af50f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailActionRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailAttachmentRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailAttachmentRestrict.php new file mode 100644 index 00000000..38ea89f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailAttachmentRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailFolderRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailFolderRestrict.php new file mode 100644 index 00000000..06bbd454 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailFolderRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailIntelligentRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailIntelligentRestrict.php new file mode 100644 index 00000000..9e24a604 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailIntelligentRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailTimeRestrict.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailTimeRestrict.php new file mode 100644 index 00000000..cec239f1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/GmailTimeRestrict.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlOperatorOptions.php new file mode 100644 index 00000000..f513baaa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlOperatorOptions.php @@ -0,0 +1,30 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlPropertyOptions.php new file mode 100644 index 00000000..42dfd116 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlPropertyOptions.php @@ -0,0 +1,53 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_HtmlOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } + /** + * @param Google_Service_CloudSearch_RetrievalImportance + */ + public function setRetrievalImportance(Google_Service_CloudSearch_RetrievalImportance $retrievalImportance) + { + $this->retrievalImportance = $retrievalImportance; + } + /** + * @return Google_Service_CloudSearch_RetrievalImportance + */ + public function getRetrievalImportance() + { + return $this->retrievalImportance; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlValues.php new file mode 100644 index 00000000..98e5e56e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/HtmlValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemOptions.php new file mode 100644 index 00000000..33057e0b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemOptions.php @@ -0,0 +1,30 @@ +allowUnknownGsuitePrincipals = $allowUnknownGsuitePrincipals; + } + public function getAllowUnknownGsuitePrincipals() + { + return $this->allowUnknownGsuitePrincipals; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemRequest.php new file mode 100644 index 00000000..c1665ff6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IndexItemRequest.php @@ -0,0 +1,87 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + /** + * @param Google_Service_CloudSearch_IndexItemOptions + */ + public function setIndexItemOptions(Google_Service_CloudSearch_IndexItemOptions $indexItemOptions) + { + $this->indexItemOptions = $indexItemOptions; + } + /** + * @return Google_Service_CloudSearch_IndexItemOptions + */ + public function getIndexItemOptions() + { + return $this->indexItemOptions; + } + /** + * @param Google_Service_CloudSearch_Item + */ + public function setItem(Google_Service_CloudSearch_Item $item) + { + $this->item = $item; + } + /** + * @return Google_Service_CloudSearch_Item + */ + public function getItem() + { + return $this->item; + } + public function setMode($mode) + { + $this->mode = $mode; + } + public function getMode() + { + return $this->mode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerOperatorOptions.php new file mode 100644 index 00000000..e4894271 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerOperatorOptions.php @@ -0,0 +1,48 @@ +greaterThanOperatorName = $greaterThanOperatorName; + } + public function getGreaterThanOperatorName() + { + return $this->greaterThanOperatorName; + } + public function setLessThanOperatorName($lessThanOperatorName) + { + $this->lessThanOperatorName = $lessThanOperatorName; + } + public function getLessThanOperatorName() + { + return $this->lessThanOperatorName; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerPropertyOptions.php new file mode 100644 index 00000000..da50bc57 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerPropertyOptions.php @@ -0,0 +1,64 @@ +maximumValue = $maximumValue; + } + public function getMaximumValue() + { + return $this->maximumValue; + } + public function setMinimumValue($minimumValue) + { + $this->minimumValue = $minimumValue; + } + public function getMinimumValue() + { + return $this->minimumValue; + } + /** + * @param Google_Service_CloudSearch_IntegerOperatorOptions + */ + public function setOperatorOptions(Google_Service_CloudSearch_IntegerOperatorOptions $operatorOptions) + { + $this->operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_IntegerOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } + public function setOrderedRanking($orderedRanking) + { + $this->orderedRanking = $orderedRanking; + } + public function getOrderedRanking() + { + return $this->orderedRanking; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerValues.php new file mode 100644 index 00000000..6a6aaf17 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/IntegerValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Interaction.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Interaction.php new file mode 100644 index 00000000..68a0b39b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Interaction.php @@ -0,0 +1,55 @@ +interactionTime = $interactionTime; + } + public function getInteractionTime() + { + return $this->interactionTime; + } + /** + * @param Google_Service_CloudSearch_Principal + */ + public function setPrincipal(Google_Service_CloudSearch_Principal $principal) + { + $this->principal = $principal; + } + /** + * @return Google_Service_CloudSearch_Principal + */ + public function getPrincipal() + { + return $this->principal; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Item.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Item.php new file mode 100644 index 00000000..69b0b2c0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Item.php @@ -0,0 +1,146 @@ +acl = $acl; + } + /** + * @return Google_Service_CloudSearch_ItemAcl + */ + public function getAcl() + { + return $this->acl; + } + /** + * @param Google_Service_CloudSearch_ItemContent + */ + public function setContent(Google_Service_CloudSearch_ItemContent $content) + { + $this->content = $content; + } + /** + * @return Google_Service_CloudSearch_ItemContent + */ + public function getContent() + { + return $this->content; + } + public function setItemType($itemType) + { + $this->itemType = $itemType; + } + public function getItemType() + { + return $this->itemType; + } + /** + * @param Google_Service_CloudSearch_ItemMetadata + */ + public function setMetadata(Google_Service_CloudSearch_ItemMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudSearch_ItemMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPayload($payload) + { + $this->payload = $payload; + } + public function getPayload() + { + return $this->payload; + } + public function setQueue($queue) + { + $this->queue = $queue; + } + public function getQueue() + { + return $this->queue; + } + /** + * @param Google_Service_CloudSearch_ItemStatus + */ + public function setStatus(Google_Service_CloudSearch_ItemStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_CloudSearch_ItemStatus + */ + public function getStatus() + { + return $this->status; + } + /** + * @param Google_Service_CloudSearch_ItemStructuredData + */ + public function setStructuredData(Google_Service_CloudSearch_ItemStructuredData $structuredData) + { + $this->structuredData = $structuredData; + } + /** + * @return Google_Service_CloudSearch_ItemStructuredData + */ + public function getStructuredData() + { + return $this->structuredData; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemAcl.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemAcl.php new file mode 100644 index 00000000..540138e3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemAcl.php @@ -0,0 +1,88 @@ +aclInheritanceType = $aclInheritanceType; + } + public function getAclInheritanceType() + { + return $this->aclInheritanceType; + } + /** + * @param Google_Service_CloudSearch_Principal + */ + public function setDeniedReaders($deniedReaders) + { + $this->deniedReaders = $deniedReaders; + } + /** + * @return Google_Service_CloudSearch_Principal + */ + public function getDeniedReaders() + { + return $this->deniedReaders; + } + public function setInheritAclFrom($inheritAclFrom) + { + $this->inheritAclFrom = $inheritAclFrom; + } + public function getInheritAclFrom() + { + return $this->inheritAclFrom; + } + /** + * @param Google_Service_CloudSearch_Principal + */ + public function setOwners($owners) + { + $this->owners = $owners; + } + /** + * @return Google_Service_CloudSearch_Principal + */ + public function getOwners() + { + return $this->owners; + } + /** + * @param Google_Service_CloudSearch_Principal + */ + public function setReaders($readers) + { + $this->readers = $readers; + } + /** + * @return Google_Service_CloudSearch_Principal + */ + public function getReaders() + { + return $this->readers; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemContent.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemContent.php new file mode 100644 index 00000000..eec9a77c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemContent.php @@ -0,0 +1,64 @@ +contentDataRef = $contentDataRef; + } + /** + * @return Google_Service_CloudSearch_UploadItemRef + */ + public function getContentDataRef() + { + return $this->contentDataRef; + } + public function setContentFormat($contentFormat) + { + $this->contentFormat = $contentFormat; + } + public function getContentFormat() + { + return $this->contentFormat; + } + public function setHash($hash) + { + $this->hash = $hash; + } + public function getHash() + { + return $this->hash; + } + public function setInlineContent($inlineContent) + { + $this->inlineContent = $inlineContent; + } + public function getInlineContent() + { + return $this->inlineContent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemCountByStatus.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemCountByStatus.php new file mode 100644 index 00000000..a67386f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemCountByStatus.php @@ -0,0 +1,39 @@ +count = $count; + } + public function getCount() + { + return $this->count; + } + public function setStatusCode($statusCode) + { + $this->statusCode = $statusCode; + } + public function getStatusCode() + { + return $this->statusCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemMetadata.php new file mode 100644 index 00000000..5df5fd25 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemMetadata.php @@ -0,0 +1,144 @@ +containerName = $containerName; + } + public function getContainerName() + { + return $this->containerName; + } + public function setContentLanguage($contentLanguage) + { + $this->contentLanguage = $contentLanguage; + } + public function getContentLanguage() + { + return $this->contentLanguage; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setHash($hash) + { + $this->hash = $hash; + } + public function getHash() + { + return $this->hash; + } + /** + * @param Google_Service_CloudSearch_Interaction + */ + public function setInteractions($interactions) + { + $this->interactions = $interactions; + } + /** + * @return Google_Service_CloudSearch_Interaction + */ + public function getInteractions() + { + return $this->interactions; + } + public function setKeywords($keywords) + { + $this->keywords = $keywords; + } + public function getKeywords() + { + return $this->keywords; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + /** + * @param Google_Service_CloudSearch_SearchQualityMetadata + */ + public function setSearchQualityMetadata(Google_Service_CloudSearch_SearchQualityMetadata $searchQualityMetadata) + { + $this->searchQualityMetadata = $searchQualityMetadata; + } + /** + * @return Google_Service_CloudSearch_SearchQualityMetadata + */ + public function getSearchQualityMetadata() + { + return $this->searchQualityMetadata; + } + public function setSourceRepositoryUrl($sourceRepositoryUrl) + { + $this->sourceRepositoryUrl = $sourceRepositoryUrl; + } + public function getSourceRepositoryUrl() + { + return $this->sourceRepositoryUrl; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStatus.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStatus.php new file mode 100644 index 00000000..d3fa8148 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStatus.php @@ -0,0 +1,63 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_CloudSearch_ProcessingError + */ + public function setProcessingErrors($processingErrors) + { + $this->processingErrors = $processingErrors; + } + /** + * @return Google_Service_CloudSearch_ProcessingError + */ + public function getProcessingErrors() + { + return $this->processingErrors; + } + /** + * @param Google_Service_CloudSearch_RepositoryError + */ + public function setRepositoryErrors($repositoryErrors) + { + $this->repositoryErrors = $repositoryErrors; + } + /** + * @return Google_Service_CloudSearch_RepositoryError + */ + public function getRepositoryErrors() + { + return $this->repositoryErrors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStructuredData.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStructuredData.php new file mode 100644 index 00000000..349ea4bc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ItemStructuredData.php @@ -0,0 +1,46 @@ +hash = $hash; + } + public function getHash() + { + return $this->hash; + } + /** + * @param Google_Service_CloudSearch_StructuredDataObject + */ + public function setObject(Google_Service_CloudSearch_StructuredDataObject $object) + { + $this->object = $object; + } + /** + * @return Google_Service_CloudSearch_StructuredDataObject + */ + public function getObject() + { + return $this->object; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListDataSourceResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListDataSourceResponse.php new file mode 100644 index 00000000..d84ce261 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListDataSourceResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudSearch_DataSource + */ + public function setSources($sources) + { + $this->sources = $sources; + } + /** + * @return Google_Service_CloudSearch_DataSource + */ + public function getSources() + { + return $this->sources; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemNamesForUnmappedIdentityResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemNamesForUnmappedIdentityResponse.php new file mode 100644 index 00000000..842f1b15 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemNamesForUnmappedIdentityResponse.php @@ -0,0 +1,40 @@ +itemNames = $itemNames; + } + public function getItemNames() + { + return $this->itemNames; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemsResponse.php new file mode 100644 index 00000000..532527d8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListItemsResponse.php @@ -0,0 +1,47 @@ +items = $items; + } + /** + * @return Google_Service_CloudSearch_Item + */ + public function getItems() + { + return $this->items; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListQuerySourcesResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListQuerySourcesResponse.php new file mode 100644 index 00000000..4071a0db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListQuerySourcesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudSearch_QuerySource + */ + public function setSources($sources) + { + $this->sources = $sources; + } + /** + * @return Google_Service_CloudSearch_QuerySource + */ + public function getSources() + { + return $this->sources; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListSearchApplicationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListSearchApplicationsResponse.php new file mode 100644 index 00000000..5fc93ea2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListSearchApplicationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudSearch_SearchApplication + */ + public function setSearchApplications($searchApplications) + { + $this->searchApplications = $searchApplications; + } + /** + * @return Google_Service_CloudSearch_SearchApplication + */ + public function getSearchApplications() + { + return $this->searchApplications; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListUnmappedIdentitiesResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListUnmappedIdentitiesResponse.php new file mode 100644 index 00000000..031bcc62 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ListUnmappedIdentitiesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudSearch_UnmappedIdentity + */ + public function setUnmappedIdentities($unmappedIdentities) + { + $this->unmappedIdentities = $unmappedIdentities; + } + /** + * @return Google_Service_CloudSearch_UnmappedIdentity + */ + public function getUnmappedIdentities() + { + return $this->unmappedIdentities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/MatchRange.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/MatchRange.php new file mode 100644 index 00000000..6a69e2e2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/MatchRange.php @@ -0,0 +1,39 @@ +end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Media.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Media.php new file mode 100644 index 00000000..b464238d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Media.php @@ -0,0 +1,30 @@ +resourceName = $resourceName; + } + public function getResourceName() + { + return $this->resourceName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metadata.php new file mode 100644 index 00000000..a8accbc4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metadata.php @@ -0,0 +1,122 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_CloudSearch_ResultDisplayMetadata + */ + public function setDisplayOptions(Google_Service_CloudSearch_ResultDisplayMetadata $displayOptions) + { + $this->displayOptions = $displayOptions; + } + /** + * @return Google_Service_CloudSearch_ResultDisplayMetadata + */ + public function getDisplayOptions() + { + return $this->displayOptions; + } + /** + * @param Google_Service_CloudSearch_NamedProperty + */ + public function setFields($fields) + { + $this->fields = $fields; + } + /** + * @return Google_Service_CloudSearch_NamedProperty + */ + public function getFields() + { + return $this->fields; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + /** + * @param Google_Service_CloudSearch_Person + */ + public function setOwner(Google_Service_CloudSearch_Person $owner) + { + $this->owner = $owner; + } + /** + * @return Google_Service_CloudSearch_Person + */ + public function getOwner() + { + return $this->owner; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metaline.php similarity index 56% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsConfig.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metaline.php index 200f0df9..52cb8955 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Metaline.php @@ -15,23 +15,24 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsConfig extends Google_Model +class Google_Service_CloudSearch_Metaline extends Google_Collection { - protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; - protected $fieldDataType = ''; + protected $collection_key = 'properties'; + protected $propertiesType = 'Google_Service_CloudSearch_DisplayedProperty'; + protected $propertiesDataType = 'array'; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @param Google_Service_CloudSearch_DisplayedProperty */ - public function setField(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $field) + public function setProperties($properties) { - $this->field = $field; + $this->properties = $properties; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @return Google_Service_CloudSearch_DisplayedProperty */ - public function getField() + public function getProperties() { - return $this->field; + return $this->properties; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Name.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Name.php new file mode 100644 index 00000000..3eeb3484 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Name.php @@ -0,0 +1,30 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/NamedProperty.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/NamedProperty.php new file mode 100644 index 00000000..b5082ab4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/NamedProperty.php @@ -0,0 +1,167 @@ +booleanValue = $booleanValue; + } + public function getBooleanValue() + { + return $this->booleanValue; + } + /** + * @param Google_Service_CloudSearch_DateValues + */ + public function setDateValues(Google_Service_CloudSearch_DateValues $dateValues) + { + $this->dateValues = $dateValues; + } + /** + * @return Google_Service_CloudSearch_DateValues + */ + public function getDateValues() + { + return $this->dateValues; + } + /** + * @param Google_Service_CloudSearch_DoubleValues + */ + public function setDoubleValues(Google_Service_CloudSearch_DoubleValues $doubleValues) + { + $this->doubleValues = $doubleValues; + } + /** + * @return Google_Service_CloudSearch_DoubleValues + */ + public function getDoubleValues() + { + return $this->doubleValues; + } + /** + * @param Google_Service_CloudSearch_EnumValues + */ + public function setEnumValues(Google_Service_CloudSearch_EnumValues $enumValues) + { + $this->enumValues = $enumValues; + } + /** + * @return Google_Service_CloudSearch_EnumValues + */ + public function getEnumValues() + { + return $this->enumValues; + } + /** + * @param Google_Service_CloudSearch_HtmlValues + */ + public function setHtmlValues(Google_Service_CloudSearch_HtmlValues $htmlValues) + { + $this->htmlValues = $htmlValues; + } + /** + * @return Google_Service_CloudSearch_HtmlValues + */ + public function getHtmlValues() + { + return $this->htmlValues; + } + /** + * @param Google_Service_CloudSearch_IntegerValues + */ + public function setIntegerValues(Google_Service_CloudSearch_IntegerValues $integerValues) + { + $this->integerValues = $integerValues; + } + /** + * @return Google_Service_CloudSearch_IntegerValues + */ + public function getIntegerValues() + { + return $this->integerValues; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudSearch_ObjectValues + */ + public function setObjectValues(Google_Service_CloudSearch_ObjectValues $objectValues) + { + $this->objectValues = $objectValues; + } + /** + * @return Google_Service_CloudSearch_ObjectValues + */ + public function getObjectValues() + { + return $this->objectValues; + } + /** + * @param Google_Service_CloudSearch_TextValues + */ + public function setTextValues(Google_Service_CloudSearch_TextValues $textValues) + { + $this->textValues = $textValues; + } + /** + * @return Google_Service_CloudSearch_TextValues + */ + public function getTextValues() + { + return $this->textValues; + } + /** + * @param Google_Service_CloudSearch_TimestampValues + */ + public function setTimestampValues(Google_Service_CloudSearch_TimestampValues $timestampValues) + { + $this->timestampValues = $timestampValues; + } + /** + * @return Google_Service_CloudSearch_TimestampValues + */ + public function getTimestampValues() + { + return $this->timestampValues; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDefinition.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDefinition.php new file mode 100644 index 00000000..f040a1d2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDefinition.php @@ -0,0 +1,63 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudSearch_ObjectOptions + */ + public function setOptions(Google_Service_CloudSearch_ObjectOptions $options) + { + $this->options = $options; + } + /** + * @return Google_Service_CloudSearch_ObjectOptions + */ + public function getOptions() + { + return $this->options; + } + /** + * @param Google_Service_CloudSearch_PropertyDefinition + */ + public function setPropertyDefinitions($propertyDefinitions) + { + $this->propertyDefinitions = $propertyDefinitions; + } + /** + * @return Google_Service_CloudSearch_PropertyDefinition + */ + public function getPropertyDefinitions() + { + return $this->propertyDefinitions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDisplayOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDisplayOptions.php new file mode 100644 index 00000000..0bc90b75 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectDisplayOptions.php @@ -0,0 +1,47 @@ +metalines = $metalines; + } + /** + * @return Google_Service_CloudSearch_Metaline + */ + public function getMetalines() + { + return $this->metalines; + } + public function setObjectDisplayLabel($objectDisplayLabel) + { + $this->objectDisplayLabel = $objectDisplayLabel; + } + public function getObjectDisplayLabel() + { + return $this->objectDisplayLabel; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectOptions.php new file mode 100644 index 00000000..0b8d0434 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectOptions.php @@ -0,0 +1,53 @@ +displayOptions = $displayOptions; + } + /** + * @return Google_Service_CloudSearch_ObjectDisplayOptions + */ + public function getDisplayOptions() + { + return $this->displayOptions; + } + /** + * @param Google_Service_CloudSearch_FreshnessOptions + */ + public function setFreshnessOptions(Google_Service_CloudSearch_FreshnessOptions $freshnessOptions) + { + $this->freshnessOptions = $freshnessOptions; + } + /** + * @return Google_Service_CloudSearch_FreshnessOptions + */ + public function getFreshnessOptions() + { + return $this->freshnessOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectPropertyOptions.php new file mode 100644 index 00000000..040de80c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectPropertyOptions.php @@ -0,0 +1,38 @@ +subobjectProperties = $subobjectProperties; + } + /** + * @return Google_Service_CloudSearch_PropertyDefinition + */ + public function getSubobjectProperties() + { + return $this->subobjectProperties; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectValues.php new file mode 100644 index 00000000..cde3db14 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ObjectValues.php @@ -0,0 +1,38 @@ +values = $values; + } + /** + * @return Google_Service_CloudSearch_StructuredDataObject + */ + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Operation.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Operation.php new file mode 100644 index 00000000..9383d4d9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_CloudSearch_Status + */ + public function setError(Google_Service_CloudSearch_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudSearch_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PeopleSuggestion.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PeopleSuggestion.php new file mode 100644 index 00000000..4c4585c3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PeopleSuggestion.php @@ -0,0 +1,37 @@ +person = $person; + } + /** + * @return Google_Service_CloudSearch_Person + */ + public function getPerson() + { + return $this->person; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Person.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Person.php new file mode 100644 index 00000000..ce54d4d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Person.php @@ -0,0 +1,88 @@ +emailAddresses = $emailAddresses; + } + /** + * @return Google_Service_CloudSearch_EmailAddress + */ + public function getEmailAddresses() + { + return $this->emailAddresses; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setObfuscatedId($obfuscatedId) + { + $this->obfuscatedId = $obfuscatedId; + } + public function getObfuscatedId() + { + return $this->obfuscatedId; + } + /** + * @param Google_Service_CloudSearch_Name + */ + public function setPersonNames($personNames) + { + $this->personNames = $personNames; + } + /** + * @return Google_Service_CloudSearch_Name + */ + public function getPersonNames() + { + return $this->personNames; + } + /** + * @param Google_Service_CloudSearch_Photo + */ + public function setPhotos($photos) + { + $this->photos = $photos; + } + /** + * @return Google_Service_CloudSearch_Photo + */ + public function getPhotos() + { + return $this->photos; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FileSet.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Photo.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FileSet.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/Photo.php index 5f1e5c6d..5190d409 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1FileSet.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Photo.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1FileSet extends Google_Model +class Google_Service_CloudSearch_Photo extends Google_Model { public $url; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsRequest.php new file mode 100644 index 00000000..cfdb9d9c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsRequest.php @@ -0,0 +1,74 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + public function setLimit($limit) + { + $this->limit = $limit; + } + public function getLimit() + { + return $this->limit; + } + public function setQueue($queue) + { + $this->queue = $queue; + } + public function getQueue() + { + return $this->queue; + } + public function setStatusCodes($statusCodes) + { + $this->statusCodes = $statusCodes; + } + public function getStatusCodes() + { + return $this->statusCodes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsResponse.php similarity index 61% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksResponse.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsResponse.php index ecca54b2..d32a8e43 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PollItemsResponse.php @@ -15,24 +15,24 @@ * the License. */ -class Google_Service_CloudTasks_LeaseTasksResponse extends Google_Collection +class Google_Service_CloudSearch_PollItemsResponse extends Google_Collection { - protected $collection_key = 'tasks'; - protected $tasksType = 'Google_Service_CloudTasks_Task'; - protected $tasksDataType = 'array'; + protected $collection_key = 'items'; + protected $itemsType = 'Google_Service_CloudSearch_Item'; + protected $itemsDataType = 'array'; /** - * @param Google_Service_CloudTasks_Task + * @param Google_Service_CloudSearch_Item */ - public function setTasks($tasks) + public function setItems($items) { - $this->tasks = $tasks; + $this->items = $items; } /** - * @return Google_Service_CloudTasks_Task + * @return Google_Service_CloudSearch_Item */ - public function getTasks() + public function getItems() { - return $this->tasks; + return $this->items; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Principal.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Principal.php new file mode 100644 index 00000000..dd551085 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Principal.php @@ -0,0 +1,55 @@ +groupResourceName = $groupResourceName; + } + public function getGroupResourceName() + { + return $this->groupResourceName; + } + /** + * @param Google_Service_CloudSearch_GSuitePrincipal + */ + public function setGsuitePrincipal(Google_Service_CloudSearch_GSuitePrincipal $gsuitePrincipal) + { + $this->gsuitePrincipal = $gsuitePrincipal; + } + /** + * @return Google_Service_CloudSearch_GSuitePrincipal + */ + public function getGsuitePrincipal() + { + return $this->gsuitePrincipal; + } + public function setUserResourceName($userResourceName) + { + $this->userResourceName = $userResourceName; + } + public function getUserResourceName() + { + return $this->userResourceName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ProcessingError.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ProcessingError.php new file mode 100644 index 00000000..b6b322d2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ProcessingError.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setErrorMessage($errorMessage) + { + $this->errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + /** + * @param Google_Service_CloudSearch_FieldViolation + */ + public function setFieldViolations($fieldViolations) + { + $this->fieldViolations = $fieldViolations; + } + /** + * @return Google_Service_CloudSearch_FieldViolation + */ + public function getFieldViolations() + { + return $this->fieldViolations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDefinition.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDefinition.php new file mode 100644 index 00000000..d4b7adec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDefinition.php @@ -0,0 +1,226 @@ +booleanPropertyOptions = $booleanPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_BooleanPropertyOptions + */ + public function getBooleanPropertyOptions() + { + return $this->booleanPropertyOptions; + } + /** + * @param Google_Service_CloudSearch_DatePropertyOptions + */ + public function setDatePropertyOptions(Google_Service_CloudSearch_DatePropertyOptions $datePropertyOptions) + { + $this->datePropertyOptions = $datePropertyOptions; + } + /** + * @return Google_Service_CloudSearch_DatePropertyOptions + */ + public function getDatePropertyOptions() + { + return $this->datePropertyOptions; + } + /** + * @param Google_Service_CloudSearch_PropertyDisplayOptions + */ + public function setDisplayOptions(Google_Service_CloudSearch_PropertyDisplayOptions $displayOptions) + { + $this->displayOptions = $displayOptions; + } + /** + * @return Google_Service_CloudSearch_PropertyDisplayOptions + */ + public function getDisplayOptions() + { + return $this->displayOptions; + } + /** + * @param Google_Service_CloudSearch_DoublePropertyOptions + */ + public function setDoublePropertyOptions(Google_Service_CloudSearch_DoublePropertyOptions $doublePropertyOptions) + { + $this->doublePropertyOptions = $doublePropertyOptions; + } + /** + * @return Google_Service_CloudSearch_DoublePropertyOptions + */ + public function getDoublePropertyOptions() + { + return $this->doublePropertyOptions; + } + /** + * @param Google_Service_CloudSearch_EnumPropertyOptions + */ + public function setEnumPropertyOptions(Google_Service_CloudSearch_EnumPropertyOptions $enumPropertyOptions) + { + $this->enumPropertyOptions = $enumPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_EnumPropertyOptions + */ + public function getEnumPropertyOptions() + { + return $this->enumPropertyOptions; + } + /** + * @param Google_Service_CloudSearch_HtmlPropertyOptions + */ + public function setHtmlPropertyOptions(Google_Service_CloudSearch_HtmlPropertyOptions $htmlPropertyOptions) + { + $this->htmlPropertyOptions = $htmlPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_HtmlPropertyOptions + */ + public function getHtmlPropertyOptions() + { + return $this->htmlPropertyOptions; + } + /** + * @param Google_Service_CloudSearch_IntegerPropertyOptions + */ + public function setIntegerPropertyOptions(Google_Service_CloudSearch_IntegerPropertyOptions $integerPropertyOptions) + { + $this->integerPropertyOptions = $integerPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_IntegerPropertyOptions + */ + public function getIntegerPropertyOptions() + { + return $this->integerPropertyOptions; + } + public function setIsFacetable($isFacetable) + { + $this->isFacetable = $isFacetable; + } + public function getIsFacetable() + { + return $this->isFacetable; + } + public function setIsRepeatable($isRepeatable) + { + $this->isRepeatable = $isRepeatable; + } + public function getIsRepeatable() + { + return $this->isRepeatable; + } + public function setIsReturnable($isReturnable) + { + $this->isReturnable = $isReturnable; + } + public function getIsReturnable() + { + return $this->isReturnable; + } + public function setIsSortable($isSortable) + { + $this->isSortable = $isSortable; + } + public function getIsSortable() + { + return $this->isSortable; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudSearch_ObjectPropertyOptions + */ + public function setObjectPropertyOptions(Google_Service_CloudSearch_ObjectPropertyOptions $objectPropertyOptions) + { + $this->objectPropertyOptions = $objectPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_ObjectPropertyOptions + */ + public function getObjectPropertyOptions() + { + return $this->objectPropertyOptions; + } + /** + * @param Google_Service_CloudSearch_TextPropertyOptions + */ + public function setTextPropertyOptions(Google_Service_CloudSearch_TextPropertyOptions $textPropertyOptions) + { + $this->textPropertyOptions = $textPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_TextPropertyOptions + */ + public function getTextPropertyOptions() + { + return $this->textPropertyOptions; + } + /** + * @param Google_Service_CloudSearch_TimestampPropertyOptions + */ + public function setTimestampPropertyOptions(Google_Service_CloudSearch_TimestampPropertyOptions $timestampPropertyOptions) + { + $this->timestampPropertyOptions = $timestampPropertyOptions; + } + /** + * @return Google_Service_CloudSearch_TimestampPropertyOptions + */ + public function getTimestampPropertyOptions() + { + return $this->timestampPropertyOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDisplayOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDisplayOptions.php new file mode 100644 index 00000000..3904c0cb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PropertyDisplayOptions.php @@ -0,0 +1,30 @@ +displayLabel = $displayLabel; + } + public function getDisplayLabel() + { + return $this->displayLabel; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItem.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItem.php new file mode 100644 index 00000000..7389d01e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItem.php @@ -0,0 +1,91 @@ +contentHash = $contentHash; + } + public function getContentHash() + { + return $this->contentHash; + } + public function setMetadataHash($metadataHash) + { + $this->metadataHash = $metadataHash; + } + public function getMetadataHash() + { + return $this->metadataHash; + } + public function setPayload($payload) + { + $this->payload = $payload; + } + public function getPayload() + { + return $this->payload; + } + public function setQueue($queue) + { + $this->queue = $queue; + } + public function getQueue() + { + return $this->queue; + } + /** + * @param Google_Service_CloudSearch_RepositoryError + */ + public function setRepositoryError(Google_Service_CloudSearch_RepositoryError $repositoryError) + { + $this->repositoryError = $repositoryError; + } + /** + * @return Google_Service_CloudSearch_RepositoryError + */ + public function getRepositoryError() + { + return $this->repositoryError; + } + public function setStructuredDataHash($structuredDataHash) + { + $this->structuredDataHash = $structuredDataHash; + } + public function getStructuredDataHash() + { + return $this->structuredDataHash; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItemRequest.php new file mode 100644 index 00000000..9b149c54 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/PushItemRequest.php @@ -0,0 +1,62 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + /** + * @param Google_Service_CloudSearch_PushItem + */ + public function setItem(Google_Service_CloudSearch_PushItem $item) + { + $this->item = $item; + } + /** + * @return Google_Service_CloudSearch_PushItem + */ + public function getItem() + { + return $this->item; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretation.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretation.php new file mode 100644 index 00000000..78fe0ed5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretation.php @@ -0,0 +1,39 @@ +interpretationType = $interpretationType; + } + public function getInterpretationType() + { + return $this->interpretationType; + } + public function setInterpretedQuery($interpretedQuery) + { + $this->interpretedQuery = $interpretedQuery; + } + public function getInterpretedQuery() + { + return $this->interpretedQuery; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretationOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretationOptions.php new file mode 100644 index 00000000..b2f4bdef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryInterpretationOptions.php @@ -0,0 +1,30 @@ +disableNlInterpretation = $disableNlInterpretation; + } + public function getDisableNlInterpretation() + { + return $this->disableNlInterpretation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryItem.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryItem.php new file mode 100644 index 00000000..7748eedb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryItem.php @@ -0,0 +1,30 @@ +isSynthetic = $isSynthetic; + } + public function getIsSynthetic() + { + return $this->isSynthetic; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryOperator.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryOperator.php new file mode 100644 index 00000000..2ae49b32 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QueryOperator.php @@ -0,0 +1,121 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setEnumValues($enumValues) + { + $this->enumValues = $enumValues; + } + public function getEnumValues() + { + return $this->enumValues; + } + public function setGreaterThanOperatorName($greaterThanOperatorName) + { + $this->greaterThanOperatorName = $greaterThanOperatorName; + } + public function getGreaterThanOperatorName() + { + return $this->greaterThanOperatorName; + } + public function setIsFacetable($isFacetable) + { + $this->isFacetable = $isFacetable; + } + public function getIsFacetable() + { + return $this->isFacetable; + } + public function setIsRepeatable($isRepeatable) + { + $this->isRepeatable = $isRepeatable; + } + public function getIsRepeatable() + { + return $this->isRepeatable; + } + public function setIsReturnable($isReturnable) + { + $this->isReturnable = $isReturnable; + } + public function getIsReturnable() + { + return $this->isReturnable; + } + public function setIsSortable($isSortable) + { + $this->isSortable = $isSortable; + } + public function getIsSortable() + { + return $this->isSortable; + } + public function setIsSuggestable($isSuggestable) + { + $this->isSuggestable = $isSuggestable; + } + public function getIsSuggestable() + { + return $this->isSuggestable; + } + public function setLessThanOperatorName($lessThanOperatorName) + { + $this->lessThanOperatorName = $lessThanOperatorName; + } + public function getLessThanOperatorName() + { + return $this->lessThanOperatorName; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySource.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySource.php new file mode 100644 index 00000000..1cb21640 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySource.php @@ -0,0 +1,72 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_CloudSearch_QueryOperator + */ + public function setOperators($operators) + { + $this->operators = $operators; + } + /** + * @return Google_Service_CloudSearch_QueryOperator + */ + public function getOperators() + { + return $this->operators; + } + public function setShortName($shortName) + { + $this->shortName = $shortName; + } + public function getShortName() + { + return $this->shortName; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySuggestion.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySuggestion.php new file mode 100644 index 00000000..f6fbe78f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/QuerySuggestion.php @@ -0,0 +1,20 @@ +errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + public function setHttpStatusCode($httpStatusCode) + { + $this->httpStatusCode = $httpStatusCode; + } + public function getHttpStatusCode() + { + return $this->httpStatusCode; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RequestOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RequestOptions.php new file mode 100644 index 00000000..df65c5aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RequestOptions.php @@ -0,0 +1,64 @@ +debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setSearchApplicationId($searchApplicationId) + { + $this->searchApplicationId = $searchApplicationId; + } + public function getSearchApplicationId() + { + return $this->searchApplicationId; + } + public function setTimeZone($timeZone) + { + $this->timeZone = $timeZone; + } + public function getTimeZone() + { + return $this->timeZone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResetSearchApplicationRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResetSearchApplicationRequest.php new file mode 100644 index 00000000..20e4ecdc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResetSearchApplicationRequest.php @@ -0,0 +1,37 @@ +debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Debug.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Debug.php new file mode 100644 index 00000000..e9a97cce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Debug.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $debug = $cloudsearchService->debug; + * + */ +class Google_Service_CloudSearch_Resource_Debug extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasources.php new file mode 100644 index 00000000..560bae7a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasources.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $datasources = $cloudsearchService->datasources; + * + */ +class Google_Service_CloudSearch_Resource_DebugDatasources extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItems.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItems.php new file mode 100644 index 00000000..3ca89276 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItems.php @@ -0,0 +1,63 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $items = $cloudsearchService->items; + * + */ +class Google_Service_CloudSearch_Resource_DebugDatasourcesItems extends Google_Service_Resource +{ + /** + * Checks whether an item is accessible by specified principal. + * (items.checkAccess) + * + * @param string $name Item name, format: + * datasources/{source_id}/items/{item_id} + * @param Google_Service_CloudSearch_Principal $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_CheckAccessResponse + */ + public function checkAccess($name, Google_Service_CloudSearch_Principal $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('checkAccess', array($params), "Google_Service_CloudSearch_CheckAccessResponse"); + } + /** + * Fetches the item whose viewUrl exactly matches that of the URL provided in + * the request. (items.searchByViewUrl) + * + * @param string $name Source name, format: datasources/{source_id} + * @param Google_Service_CloudSearch_SearchItemsByViewUrlRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_SearchItemsByViewUrlResponse + */ + public function searchByViewUrl($name, Google_Service_CloudSearch_SearchItemsByViewUrlRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('searchByViewUrl', array($params), "Google_Service_CloudSearch_SearchItemsByViewUrlResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItemsUnmappedids.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItemsUnmappedids.php new file mode 100644 index 00000000..75c59599 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugDatasourcesItemsUnmappedids.php @@ -0,0 +1,51 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $unmappedids = $cloudsearchService->unmappedids; + * + */ +class Google_Service_CloudSearch_Resource_DebugDatasourcesItemsUnmappedids extends Google_Service_Resource +{ + /** + * List all unmapped identities for a specific item. + * (unmappedids.listDebugDatasourcesItemsUnmappedids) + * + * @param string $parent The name of the item, in the following format: + * datasources/{source_id}/items/{ID} + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize Maximum number of items to fetch in a request. + * Defaults to 100. + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_ListUnmappedIdentitiesResponse + */ + public function listDebugDatasourcesItemsUnmappedids($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListUnmappedIdentitiesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysources.php new file mode 100644 index 00000000..e517b5fd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysources.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $identitysources = $cloudsearchService->identitysources; + * + */ +class Google_Service_CloudSearch_Resource_DebugIdentitysources extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesItems.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesItems.php new file mode 100644 index 00000000..42960ca9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesItems.php @@ -0,0 +1,53 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $items = $cloudsearchService->items; + * + */ +class Google_Service_CloudSearch_Resource_DebugIdentitysourcesItems extends Google_Service_Resource +{ + /** + * Lists names of items associated with an unmapped identity. + * (items.listForunmappedidentity) + * + * @param string $parent The name of the identity source, in the following + * format: identitysources/{source_id}} + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Maximum number of items to fetch in a request. + * Defaults to 100. + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @opt_param string groupResourceName + * @opt_param string userResourceName + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @return Google_Service_CloudSearch_ListItemNamesForUnmappedIdentityResponse + */ + public function listForunmappedidentity($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('listForunmappedidentity', array($params), "Google_Service_CloudSearch_ListItemNamesForUnmappedIdentityResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesUnmappedids.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesUnmappedids.php new file mode 100644 index 00000000..3d878ce8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/DebugIdentitysourcesUnmappedids.php @@ -0,0 +1,52 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $unmappedids = $cloudsearchService->unmappedids; + * + */ +class Google_Service_CloudSearch_Resource_DebugIdentitysourcesUnmappedids extends Google_Service_Resource +{ + /** + * Lists unmapped user identities for an identity source. + * (unmappedids.listDebugIdentitysourcesUnmappedids) + * + * @param string $parent The name of the identity source, in the following + * format: identitysources/{source_id} + * @param array $optParams Optional parameters. + * + * @opt_param string resolutionStatusCode Limit users selection to this status. + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize Maximum number of items to fetch in a request. + * Defaults to 100. + * @return Google_Service_CloudSearch_ListUnmappedIdentitiesResponse + */ + public function listDebugIdentitysourcesUnmappedids($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListUnmappedIdentitiesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Indexing.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Indexing.php new file mode 100644 index 00000000..499ee523 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Indexing.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $indexing = $cloudsearchService->indexing; + * + */ +class Google_Service_CloudSearch_Resource_Indexing extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasources.php new file mode 100644 index 00000000..bdaccdf9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasources.php @@ -0,0 +1,79 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $datasources = $cloudsearchService->datasources; + * + */ +class Google_Service_CloudSearch_Resource_IndexingDatasources extends Google_Service_Resource +{ + /** + * Deletes the schema of a data source. (datasources.deleteSchema) + * + * @param string $name Name of the data source to delete Schema. Format: + * datasources/{source_id} + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_Operation + */ + public function deleteSchema($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('deleteSchema', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Gets the schema of a data source. (datasources.getSchema) + * + * @param string $name Name of the data source to get Schema. Format: + * datasources/{source_id} + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_Schema + */ + public function getSchema($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getSchema', array($params), "Google_Service_CloudSearch_Schema"); + } + /** + * Updates the schema of a data source. (datasources.updateSchema) + * + * @param string $name Name of the data source to update Schema. Format: + * datasources/{source_id} + * @param Google_Service_CloudSearch_UpdateSchemaRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function updateSchema($name, Google_Service_CloudSearch_UpdateSchemaRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateSchema', array($params), "Google_Service_CloudSearch_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasourcesItems.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasourcesItems.php new file mode 100644 index 00000000..5be154e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/IndexingDatasourcesItems.php @@ -0,0 +1,223 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $items = $cloudsearchService->items; + * + */ +class Google_Service_CloudSearch_Resource_IndexingDatasourcesItems extends Google_Service_Resource +{ + /** + * Deletes Item resource for the specified resource name. (items.delete) + * + * @param string $name Required. Name of the item to delete. Format: + * datasources/{source_id}/items/{item_id} + * @param array $optParams Optional parameters. + * + * @opt_param string connectorName Name of connector making this call. Format: + * datasources/{source_id}/connectors/{ID} + * @opt_param string version Required. The incremented version of the item to + * delete from the index. The indexing system stores the version from the + * datasource as a byte string and compares the Item version in the index to the + * version of the queued Item using lexical ordering. + * + * Cloud Search Indexing won't delete any queued item with a version value that + * is less than or equal to the version of the currently indexed item. The + * maximum length for this field is 1024 bytes. + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @opt_param string mode Required. The RequestMode for this request. + * @return Google_Service_CloudSearch_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Deletes all items in a queue. This method is useful for deleting stale items. + * (items.deleteQueueItems) + * + * @param string $name Name of the Data Source to delete items in a queue. + * Format: datasources/{source_id} + * @param Google_Service_CloudSearch_DeleteQueueItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function deleteQueueItems($name, Google_Service_CloudSearch_DeleteQueueItemsRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteQueueItems', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Gets Item resource by item name. (items.get) + * + * @param string $name Name of the item to get info. Format: + * datasources/{source_id}/items/{item_id} + * @param array $optParams Optional parameters. + * + * @opt_param string connectorName Name of connector making this call. Format: + * datasources/{source_id}/connectors/{ID} + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_Item + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudSearch_Item"); + } + /** + * Updates Item ACL, metadata, and content. It will insert the Item if it does + * not exist. This method does not support partial updates. Fields with no + * provided values are cleared out in the Cloud Search index. (items.index) + * + * @param string $name Name of the Item. Format: + * datasources/{source_id}/items/{item_id} This is a required field. The maximum + * length is 1536 characters. + * @param Google_Service_CloudSearch_IndexItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function index($name, Google_Service_CloudSearch_IndexItemRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('index', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Lists all or a subset of Item resources. (items.listIndexingDatasourcesItems) + * + * @param string $name Name of the Data Source to list Items. Format: + * datasources/{source_id} + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @opt_param string connectorName Name of connector making this call. Format: + * datasources/{source_id}/connectors/{ID} + * @opt_param bool brief When set to true, the indexing system only populates + * the following fields: name, version, metadata.hash, structured_data.hash, + * content.hash. If this value is false, then all the fields are populated in + * Item. + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize Maximum number of items to fetch in a request. The + * max value is 1000 when brief is true. The max value is 10 if brief is false. + * The default value is 10 + * @return Google_Service_CloudSearch_ListItemsResponse + */ + public function listIndexingDatasourcesItems($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListItemsResponse"); + } + /** + * Polls for unreserved items from the indexing queue and marks a set as + * reserved, starting with items that have the oldest timestamp from the highest + * priority ItemStatus. The priority order is as follows: ERROR + * + * MODIFIED + * + * NEW_ITEM + * + * ACCEPTED + * + * Reserving items ensures that polling from other threads cannot create + * overlapping sets. + * + * After handling the reserved items, the client should put items back into the + * unreserved state, either by calling index, or by calling push with the type + * REQUEUE. + * + * Items automatically become available (unreserved) after 4 hours even if no + * update or push method is called. (items.poll) + * + * @param string $name Name of the Data Source to poll items. Format: + * datasources/{source_id} + * @param Google_Service_CloudSearch_PollItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_PollItemsResponse + */ + public function poll($name, Google_Service_CloudSearch_PollItemsRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('poll', array($params), "Google_Service_CloudSearch_PollItemsResponse"); + } + /** + * Pushes an item onto a queue for later polling and updating. (items.push) + * + * @param string $name Name of the item to push into the indexing queue. Format: + * datasources/{source_id}/items/{ID} This is a required field. The maximum + * length is 1536 characters. + * @param Google_Service_CloudSearch_PushItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Item + */ + public function push($name, Google_Service_CloudSearch_PushItemRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('push', array($params), "Google_Service_CloudSearch_Item"); + } + /** + * Unreserves all items from a queue, making them all eligible to be polled. + * This method is useful for resetting the indexing queue after a connector has + * been restarted. (items.unreserve) + * + * @param string $name Name of the Data Source to unreserve all items. Format: + * datasources/{source_id} + * @param Google_Service_CloudSearch_UnreserveItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function unreserve($name, Google_Service_CloudSearch_UnreserveItemsRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('unreserve', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Creates an upload session for uploading item content. For items smaller than + * 100 KiB, it's easier to embed the content inline within update. + * (items.upload) + * + * @param string $name Name of the Data Source to start a resumable upload. + * Format: datasources/{source_id} + * @param Google_Service_CloudSearch_StartUploadItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_UploadItemRef + */ + public function upload($name, Google_Service_CloudSearch_StartUploadItemRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_CloudSearch_UploadItemRef"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Media.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Media.php new file mode 100644 index 00000000..685f9fd8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Media.php @@ -0,0 +1,55 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $media = $cloudsearchService->media; + * + */ +class Google_Service_CloudSearch_Resource_Media extends Google_Service_Resource +{ + /** + * Uploads media for indexing. + * + * The upload endpoint supports direct and resumable upload protocols and is + * intended for large items that can not be inlined during index requests. To + * index large content: + * + * 1. Call upload to begin a session and get the item reference. 1. Upload + * the content using the item reference's resource name. 1. Call index with the + * item reference as the content. + * + * For additional information, see [Create a content connector using the REST + * API](https://developers.google.com/cloud-search/docs/guides/content- + * connector#rest). (media.upload) + * + * @param string $resourceName Name of the media that is being downloaded. See + * ReadRequest.resource_name. + * @param Google_Service_CloudSearch_Media $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Media + */ + public function upload($resourceName, Google_Service_CloudSearch_Media $postBody, $optParams = array()) + { + $params = array('resourceName' => $resourceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('upload', array($params), "Google_Service_CloudSearch_Media"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Operations.php new file mode 100644 index 00000000..b00d0f91 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Operations.php @@ -0,0 +1,43 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $operations = $cloudsearchService->operations; + * + */ +class Google_Service_CloudSearch_Resource_Operations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudSearch_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Query.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Query.php new file mode 100644 index 00000000..ed6d6f7a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Query.php @@ -0,0 +1,57 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $query = $cloudsearchService->query; + * + */ +class Google_Service_CloudSearch_Resource_Query extends Google_Service_Resource +{ + /** + * The Cloud Search Query API provides the search method, which returns the most + * relevant results from a user query. The results can come from G Suite Apps, + * such as Gmail or Google Drive, or they can come from data that you have + * indexed from a third party. (query.search) + * + * @param Google_Service_CloudSearch_SearchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_SearchResponse + */ + public function search(Google_Service_CloudSearch_SearchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_CloudSearch_SearchResponse"); + } + /** + * Provides suggestions for autocompleting the query. (query.suggest) + * + * @param Google_Service_CloudSearch_SuggestRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_SuggestResponse + */ + public function suggest(Google_Service_CloudSearch_SuggestRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('suggest', array($params), "Google_Service_CloudSearch_SuggestResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/QuerySources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/QuerySources.php new file mode 100644 index 00000000..9f08a9b1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/QuerySources.php @@ -0,0 +1,57 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $sources = $cloudsearchService->sources; + * + */ +class Google_Service_CloudSearch_Resource_QuerySources extends Google_Service_Resource +{ + /** + * Returns list of sources that user can use for Search and Suggest APIs. + * (sources.listQuerySources) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool requestOptions.debugOptions.enableDebugging If set, the + * request will enable debugging features of Cloud Search. Only turn on this + * field, if asked by Google to help with debugging. + * @opt_param string requestOptions.languageCode The BCP-47 language code, such + * as "en-US" or "sr-Latn". For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For + * translations. + * @opt_param string requestOptions.searchApplicationId Id of the application + * created using SearchApplicationsService. + * @opt_param string requestOptions.timeZone Current user's time zone id, such + * as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by + * [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) + * project, and currently available in the file + * [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml) + * @opt_param string pageToken Number of sources to return in the response. + * @return Google_Service_CloudSearch_ListQuerySourcesResponse + */ + public function listQuerySources($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListQuerySourcesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Settings.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Settings.php new file mode 100644 index 00000000..40ef3c56 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Settings.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $settings = $cloudsearchService->settings; + * + */ +class Google_Service_CloudSearch_Resource_Settings extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsDatasources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsDatasources.php new file mode 100644 index 00000000..7a1a374c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsDatasources.php @@ -0,0 +1,110 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $datasources = $cloudsearchService->datasources; + * + */ +class Google_Service_CloudSearch_Resource_SettingsDatasources extends Google_Service_Resource +{ + /** + * Creates a datasource. (datasources.create) + * + * @param Google_Service_CloudSearch_DataSource $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function create(Google_Service_CloudSearch_DataSource $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Deletes a datasource. (datasources.delete) + * + * @param string $name Name of the datasource. Format: datasources/{source_id}. + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Gets a datasource. (datasources.get) + * + * @param string $name Name of the datasource resource. Format: + * datasources/{source_id}. + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_DataSource + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudSearch_DataSource"); + } + /** + * Lists datasources. (datasources.listSettingsDatasources) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Starting index of the results. + * @opt_param int pageSize Maximum number of datasources to fetch in a request. + * The max value is 100. The default value is 10 + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_ListDataSourceResponse + */ + public function listSettingsDatasources($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListDataSourceResponse"); + } + /** + * Updates a datasource. (datasources.update) + * + * @param string $name Name of the datasource resource. Format: + * datasources/{source_id}. The name is ignored when creating a datasource. + * @param Google_Service_CloudSearch_UpdateDataSourceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function update($name, Google_Service_CloudSearch_UpdateDataSourceRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_CloudSearch_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsSearchapplications.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsSearchapplications.php new file mode 100644 index 00000000..bbcf2a5b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/SettingsSearchapplications.php @@ -0,0 +1,128 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $searchapplications = $cloudsearchService->searchapplications; + * + */ +class Google_Service_CloudSearch_Resource_SettingsSearchapplications extends Google_Service_Resource +{ + /** + * Creates a search application. (searchapplications.create) + * + * @param Google_Service_CloudSearch_SearchApplication $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function create(Google_Service_CloudSearch_SearchApplication $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Deletes a search application. (searchapplications.delete) + * + * @param string $name The name of the search application to be deleted. Format: + * applications/{application_id}. + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_Operation + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Gets the specified search application. (searchapplications.get) + * + * @param string $name Name of the search application. Format: + * applications/{application_id}. + * @param array $optParams Optional parameters. + * + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_SearchApplication + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudSearch_SearchApplication"); + } + /** + * Lists all search applications. + * (searchapplications.listSettingsSearchapplications) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. The default value is 10 + * @opt_param int pageSize The maximum number of items to return. + * @opt_param bool debugOptions.enableDebugging If set, the request will enable + * debugging features of Cloud Search. Only turn on this field, if asked by + * Google to help with debugging. + * @return Google_Service_CloudSearch_ListSearchApplicationsResponse + */ + public function listSettingsSearchapplications($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudSearch_ListSearchApplicationsResponse"); + } + /** + * Resets a search application to default settings. This will return an empty + * response. (searchapplications.reset) + * + * @param string $name The name of the search application to be reset. Format: + * applications/{application_id}. + * @param Google_Service_CloudSearch_ResetSearchApplicationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function reset($name, Google_Service_CloudSearch_ResetSearchApplicationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reset', array($params), "Google_Service_CloudSearch_Operation"); + } + /** + * Updates a search application. (searchapplications.update) + * + * @param string $name Name of the Search Application. Format: + * searchapplications/{application_id}. + * @param Google_Service_CloudSearch_SearchApplication $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSearch_Operation + */ + public function update($name, Google_Service_CloudSearch_SearchApplication $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_CloudSearch_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Stats.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Stats.php new file mode 100644 index 00000000..3f08341c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/Stats.php @@ -0,0 +1,50 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $stats = $cloudsearchService->stats; + * + */ +class Google_Service_CloudSearch_Resource_Stats extends Google_Service_Resource +{ + /** + * Gets indexed item statistics aggreggated across all data sources. + * (stats.getIndex) + * + * @param array $optParams Optional parameters. + * + * @opt_param int toDate.month Month of date. Must be from 1 to 12. + * @opt_param int toDate.year Year of date. Must be from 1 to 9999. + * @opt_param int fromDate.month Month of date. Must be from 1 to 12. + * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for + * the year and month. + * @opt_param int fromDate.year Year of date. Must be from 1 to 9999. + * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for + * the year and month. + * @return Google_Service_CloudSearch_GetCustomerIndexStatsResponse + */ + public function getIndex($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getIndex', array($params), "Google_Service_CloudSearch_GetCustomerIndexStatsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndex.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndex.php new file mode 100644 index 00000000..b8585bb1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndex.php @@ -0,0 +1,28 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $index = $cloudsearchService->index; + * + */ +class Google_Service_CloudSearch_Resource_StatsIndex extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndexDatasources.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndexDatasources.php new file mode 100644 index 00000000..036acafe --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Resource/StatsIndexDatasources.php @@ -0,0 +1,51 @@ + + * $cloudsearchService = new Google_Service_CloudSearch(...); + * $datasources = $cloudsearchService->datasources; + * + */ +class Google_Service_CloudSearch_Resource_StatsIndexDatasources extends Google_Service_Resource +{ + /** + * Gets indexed item statistics for a single data source. (datasources.get) + * + * @param string $name The resource id of the data source to retrieve statistics + * for, in the following format: "datasources/{source_id}" + * @param array $optParams Optional parameters. + * + * @opt_param int fromDate.year Year of date. Must be from 1 to 9999. + * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for + * the year and month. + * @opt_param int toDate.month Month of date. Must be from 1 to 12. + * @opt_param int toDate.year Year of date. Must be from 1 to 9999. + * @opt_param int fromDate.month Month of date. Must be from 1 to 12. + * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for + * the year and month. + * @return Google_Service_CloudSearch_GetDataSourceIndexStatsResponse + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudSearch_GetDataSourceIndexStatsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResponseDebugInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResponseDebugInfo.php new file mode 100644 index 00000000..e0d37955 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResponseDebugInfo.php @@ -0,0 +1,30 @@ +formattedDebugInfo = $formattedDebugInfo; + } + public function getFormattedDebugInfo() + { + return $this->formattedDebugInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RestrictItem.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RestrictItem.php new file mode 100644 index 00000000..04bf35c4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RestrictItem.php @@ -0,0 +1,174 @@ +driveFollowUpRestrict = $driveFollowUpRestrict; + } + /** + * @return Google_Service_CloudSearch_DriveFollowUpRestrict + */ + public function getDriveFollowUpRestrict() + { + return $this->driveFollowUpRestrict; + } + /** + * @param Google_Service_CloudSearch_DriveLocationRestrict + */ + public function setDriveLocationRestrict(Google_Service_CloudSearch_DriveLocationRestrict $driveLocationRestrict) + { + $this->driveLocationRestrict = $driveLocationRestrict; + } + /** + * @return Google_Service_CloudSearch_DriveLocationRestrict + */ + public function getDriveLocationRestrict() + { + return $this->driveLocationRestrict; + } + /** + * @param Google_Service_CloudSearch_DriveMimeTypeRestrict + */ + public function setDriveMimeTypeRestrict(Google_Service_CloudSearch_DriveMimeTypeRestrict $driveMimeTypeRestrict) + { + $this->driveMimeTypeRestrict = $driveMimeTypeRestrict; + } + /** + * @return Google_Service_CloudSearch_DriveMimeTypeRestrict + */ + public function getDriveMimeTypeRestrict() + { + return $this->driveMimeTypeRestrict; + } + /** + * @param Google_Service_CloudSearch_DriveTimeSpanRestrict + */ + public function setDriveTimeSpanRestrict(Google_Service_CloudSearch_DriveTimeSpanRestrict $driveTimeSpanRestrict) + { + $this->driveTimeSpanRestrict = $driveTimeSpanRestrict; + } + /** + * @return Google_Service_CloudSearch_DriveTimeSpanRestrict + */ + public function getDriveTimeSpanRestrict() + { + return $this->driveTimeSpanRestrict; + } + /** + * @param Google_Service_CloudSearch_GmailActionRestrict + */ + public function setGmailActionRestrict(Google_Service_CloudSearch_GmailActionRestrict $gmailActionRestrict) + { + $this->gmailActionRestrict = $gmailActionRestrict; + } + /** + * @return Google_Service_CloudSearch_GmailActionRestrict + */ + public function getGmailActionRestrict() + { + return $this->gmailActionRestrict; + } + /** + * @param Google_Service_CloudSearch_GmailAttachmentRestrict + */ + public function setGmailAttachmentRestrict(Google_Service_CloudSearch_GmailAttachmentRestrict $gmailAttachmentRestrict) + { + $this->gmailAttachmentRestrict = $gmailAttachmentRestrict; + } + /** + * @return Google_Service_CloudSearch_GmailAttachmentRestrict + */ + public function getGmailAttachmentRestrict() + { + return $this->gmailAttachmentRestrict; + } + /** + * @param Google_Service_CloudSearch_GmailFolderRestrict + */ + public function setGmailFolderRestrict(Google_Service_CloudSearch_GmailFolderRestrict $gmailFolderRestrict) + { + $this->gmailFolderRestrict = $gmailFolderRestrict; + } + /** + * @return Google_Service_CloudSearch_GmailFolderRestrict + */ + public function getGmailFolderRestrict() + { + return $this->gmailFolderRestrict; + } + /** + * @param Google_Service_CloudSearch_GmailIntelligentRestrict + */ + public function setGmailIntelligentRestrict(Google_Service_CloudSearch_GmailIntelligentRestrict $gmailIntelligentRestrict) + { + $this->gmailIntelligentRestrict = $gmailIntelligentRestrict; + } + /** + * @return Google_Service_CloudSearch_GmailIntelligentRestrict + */ + public function getGmailIntelligentRestrict() + { + return $this->gmailIntelligentRestrict; + } + /** + * @param Google_Service_CloudSearch_GmailTimeRestrict + */ + public function setGmailTimeRestrict(Google_Service_CloudSearch_GmailTimeRestrict $gmailTimeRestrict) + { + $this->gmailTimeRestrict = $gmailTimeRestrict; + } + /** + * @return Google_Service_CloudSearch_GmailTimeRestrict + */ + public function getGmailTimeRestrict() + { + return $this->gmailTimeRestrict; + } + public function setSearchOperator($searchOperator) + { + $this->searchOperator = $searchOperator; + } + public function getSearchOperator() + { + return $this->searchOperator; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultCounts.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultCounts.php new file mode 100644 index 00000000..18f6b3af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultCounts.php @@ -0,0 +1,38 @@ +sourceResultCounts = $sourceResultCounts; + } + /** + * @return Google_Service_CloudSearch_SourceResultCount + */ + public function getSourceResultCounts() + { + return $this->sourceResultCounts; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDebugInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDebugInfo.php new file mode 100644 index 00000000..6dbca527 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDebugInfo.php @@ -0,0 +1,30 @@ +formattedDebugInfo = $formattedDebugInfo; + } + public function getFormattedDebugInfo() + { + return $this->formattedDebugInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Projection.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayField.php similarity index 53% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Projection.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayField.php index 2b84d0fa..1fc4c704 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Projection.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayField.php @@ -15,20 +15,38 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1Projection extends Google_Model +class Google_Service_CloudSearch_ResultDisplayField extends Google_Model { - protected $propertyType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1PropertyReference'; + public $label; + public $operatorName; + protected $propertyType = 'Google_Service_CloudSearch_NamedProperty'; protected $propertyDataType = ''; + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1PropertyReference + * @param Google_Service_CloudSearch_NamedProperty */ - public function setProperty(Google_Service_DLP_GooglePrivacyDlpV2beta1PropertyReference $property) + public function setProperty(Google_Service_CloudSearch_NamedProperty $property) { $this->property = $property; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1PropertyReference + * @return Google_Service_CloudSearch_NamedProperty */ public function getProperty() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayLine.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayLine.php new file mode 100644 index 00000000..e83d137c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayLine.php @@ -0,0 +1,38 @@ +fields = $fields; + } + /** + * @return Google_Service_CloudSearch_ResultDisplayField + */ + public function getFields() + { + return $this->fields; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayMetadata.php new file mode 100644 index 00000000..3ecab4a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ResultDisplayMetadata.php @@ -0,0 +1,47 @@ +metalines = $metalines; + } + /** + * @return Google_Service_CloudSearch_ResultDisplayLine + */ + public function getMetalines() + { + return $this->metalines; + } + public function setObjectTypeLabel($objectTypeLabel) + { + $this->objectTypeLabel = $objectTypeLabel; + } + public function getObjectTypeLabel() + { + return $this->objectTypeLabel; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RetrievalImportance.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RetrievalImportance.php new file mode 100644 index 00000000..ace066ab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/RetrievalImportance.php @@ -0,0 +1,30 @@ +importance = $importance; + } + public function getImportance() + { + return $this->importance; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Schema.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Schema.php new file mode 100644 index 00000000..90cc4616 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Schema.php @@ -0,0 +1,47 @@ +objectDefinitions = $objectDefinitions; + } + /** + * @return Google_Service_CloudSearch_ObjectDefinition + */ + public function getObjectDefinitions() + { + return $this->objectDefinitions; + } + public function setOperationIds($operationIds) + { + $this->operationIds = $operationIds; + } + public function getOperationIds() + { + return $this->operationIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ScoringConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ScoringConfig.php new file mode 100644 index 00000000..b6448f21 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ScoringConfig.php @@ -0,0 +1,39 @@ +disableFreshness = $disableFreshness; + } + public function getDisableFreshness() + { + return $this->disableFreshness; + } + public function setDisablePersonalization($disablePersonalization) + { + $this->disablePersonalization = $disablePersonalization; + } + public function getDisablePersonalization() + { + return $this->disablePersonalization; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchApplication.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchApplication.php new file mode 100644 index 00000000..72e9cbaa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchApplication.php @@ -0,0 +1,129 @@ +dataSourceRestrictions = $dataSourceRestrictions; + } + /** + * @return Google_Service_CloudSearch_DataSourceRestriction + */ + public function getDataSourceRestrictions() + { + return $this->dataSourceRestrictions; + } + /** + * @param Google_Service_CloudSearch_FacetOptions + */ + public function setDefaultFacetOptions($defaultFacetOptions) + { + $this->defaultFacetOptions = $defaultFacetOptions; + } + /** + * @return Google_Service_CloudSearch_FacetOptions + */ + public function getDefaultFacetOptions() + { + return $this->defaultFacetOptions; + } + /** + * @param Google_Service_CloudSearch_SortOptions + */ + public function setDefaultSortOptions(Google_Service_CloudSearch_SortOptions $defaultSortOptions) + { + $this->defaultSortOptions = $defaultSortOptions; + } + /** + * @return Google_Service_CloudSearch_SortOptions + */ + public function getDefaultSortOptions() + { + return $this->defaultSortOptions; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationIds($operationIds) + { + $this->operationIds = $operationIds; + } + public function getOperationIds() + { + return $this->operationIds; + } + /** + * @param Google_Service_CloudSearch_ScoringConfig + */ + public function setScoringConfig(Google_Service_CloudSearch_ScoringConfig $scoringConfig) + { + $this->scoringConfig = $scoringConfig; + } + /** + * @return Google_Service_CloudSearch_ScoringConfig + */ + public function getScoringConfig() + { + return $this->scoringConfig; + } + /** + * @param Google_Service_CloudSearch_SourceConfig + */ + public function setSourceConfig($sourceConfig) + { + $this->sourceConfig = $sourceConfig; + } + /** + * @return Google_Service_CloudSearch_SourceConfig + */ + public function getSourceConfig() + { + return $this->sourceConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlRequest.php new file mode 100644 index 00000000..5086abbd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlRequest.php @@ -0,0 +1,55 @@ +debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + public function setViewUrl($viewUrl) + { + $this->viewUrl = $viewUrl; + } + public function getViewUrl() + { + return $this->viewUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlResponse.php new file mode 100644 index 00000000..1a7d58f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchItemsByViewUrlResponse.php @@ -0,0 +1,47 @@ +items = $items; + } + /** + * @return Google_Service_CloudSearch_Item + */ + public function getItems() + { + return $this->items; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchQualityMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchQualityMetadata.php new file mode 100644 index 00000000..bc30280a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchQualityMetadata.php @@ -0,0 +1,30 @@ +quality = $quality; + } + public function getQuality() + { + return $this->quality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchRequest.php new file mode 100644 index 00000000..becc1d04 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchRequest.php @@ -0,0 +1,129 @@ +dataSourceRestrictions = $dataSourceRestrictions; + } + /** + * @return Google_Service_CloudSearch_DataSourceRestriction + */ + public function getDataSourceRestrictions() + { + return $this->dataSourceRestrictions; + } + /** + * @param Google_Service_CloudSearch_FacetOptions + */ + public function setFacetOptions($facetOptions) + { + $this->facetOptions = $facetOptions; + } + /** + * @return Google_Service_CloudSearch_FacetOptions + */ + public function getFacetOptions() + { + return $this->facetOptions; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + /** + * @param Google_Service_CloudSearch_QueryInterpretationOptions + */ + public function setQueryInterpretationOptions(Google_Service_CloudSearch_QueryInterpretationOptions $queryInterpretationOptions) + { + $this->queryInterpretationOptions = $queryInterpretationOptions; + } + /** + * @return Google_Service_CloudSearch_QueryInterpretationOptions + */ + public function getQueryInterpretationOptions() + { + return $this->queryInterpretationOptions; + } + /** + * @param Google_Service_CloudSearch_RequestOptions + */ + public function setRequestOptions(Google_Service_CloudSearch_RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return Google_Service_CloudSearch_RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } + /** + * @param Google_Service_CloudSearch_SortOptions + */ + public function setSortOptions(Google_Service_CloudSearch_SortOptions $sortOptions) + { + $this->sortOptions = $sortOptions; + } + /** + * @return Google_Service_CloudSearch_SortOptions + */ + public function getSortOptions() + { + return $this->sortOptions; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResponse.php new file mode 100644 index 00000000..3d9864c4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResponse.php @@ -0,0 +1,177 @@ +debugInfo = $debugInfo; + } + /** + * @return Google_Service_CloudSearch_ResponseDebugInfo + */ + public function getDebugInfo() + { + return $this->debugInfo; + } + /** + * @param Google_Service_CloudSearch_ErrorInfo + */ + public function setErrorInfo(Google_Service_CloudSearch_ErrorInfo $errorInfo) + { + $this->errorInfo = $errorInfo; + } + /** + * @return Google_Service_CloudSearch_ErrorInfo + */ + public function getErrorInfo() + { + return $this->errorInfo; + } + /** + * @param Google_Service_CloudSearch_FacetResult + */ + public function setFacetResults($facetResults) + { + $this->facetResults = $facetResults; + } + /** + * @return Google_Service_CloudSearch_FacetResult + */ + public function getFacetResults() + { + return $this->facetResults; + } + public function setHasMoreResults($hasMoreResults) + { + $this->hasMoreResults = $hasMoreResults; + } + public function getHasMoreResults() + { + return $this->hasMoreResults; + } + /** + * @param Google_Service_CloudSearch_QueryInterpretation + */ + public function setQueryInterpretation(Google_Service_CloudSearch_QueryInterpretation $queryInterpretation) + { + $this->queryInterpretation = $queryInterpretation; + } + /** + * @return Google_Service_CloudSearch_QueryInterpretation + */ + public function getQueryInterpretation() + { + return $this->queryInterpretation; + } + public function setResultCountEstimate($resultCountEstimate) + { + $this->resultCountEstimate = $resultCountEstimate; + } + public function getResultCountEstimate() + { + return $this->resultCountEstimate; + } + public function setResultCountExact($resultCountExact) + { + $this->resultCountExact = $resultCountExact; + } + public function getResultCountExact() + { + return $this->resultCountExact; + } + /** + * @param Google_Service_CloudSearch_ResultCounts + */ + public function setResultCounts(Google_Service_CloudSearch_ResultCounts $resultCounts) + { + $this->resultCounts = $resultCounts; + } + /** + * @return Google_Service_CloudSearch_ResultCounts + */ + public function getResultCounts() + { + return $this->resultCounts; + } + /** + * @param Google_Service_CloudSearch_SearchResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_CloudSearch_SearchResult + */ + public function getResults() + { + return $this->results; + } + /** + * @param Google_Service_CloudSearch_SpellResult + */ + public function setSpellResults($spellResults) + { + $this->spellResults = $spellResults; + } + /** + * @return Google_Service_CloudSearch_SpellResult + */ + public function getSpellResults() + { + return $this->spellResults; + } + /** + * @param Google_Service_CloudSearch_StructuredResult + */ + public function setStructuredResults($structuredResults) + { + $this->structuredResults = $structuredResults; + } + /** + * @return Google_Service_CloudSearch_StructuredResult + */ + public function getStructuredResults() + { + return $this->structuredResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResult.php new file mode 100644 index 00000000..cf217dfa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SearchResult.php @@ -0,0 +1,104 @@ +clusteredResults = $clusteredResults; + } + /** + * @return Google_Service_CloudSearch_SearchResult + */ + public function getClusteredResults() + { + return $this->clusteredResults; + } + /** + * @param Google_Service_CloudSearch_ResultDebugInfo + */ + public function setDebugInfo(Google_Service_CloudSearch_ResultDebugInfo $debugInfo) + { + $this->debugInfo = $debugInfo; + } + /** + * @return Google_Service_CloudSearch_ResultDebugInfo + */ + public function getDebugInfo() + { + return $this->debugInfo; + } + /** + * @param Google_Service_CloudSearch_Metadata + */ + public function setMetadata(Google_Service_CloudSearch_Metadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudSearch_Metadata + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param Google_Service_CloudSearch_Snippet + */ + public function setSnippet(Google_Service_CloudSearch_Snippet $snippet) + { + $this->snippet = $snippet; + } + /** + * @return Google_Service_CloudSearch_Snippet + */ + public function getSnippet() + { + return $this->snippet; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Snippet.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Snippet.php new file mode 100644 index 00000000..48eaedd3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Snippet.php @@ -0,0 +1,47 @@ +matchRanges = $matchRanges; + } + /** + * @return Google_Service_CloudSearch_MatchRange + */ + public function getMatchRanges() + { + return $this->matchRanges; + } + public function setSnippet($snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SortOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SortOptions.php new file mode 100644 index 00000000..1c97d826 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SortOptions.php @@ -0,0 +1,39 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } + public function setSortOrder($sortOrder) + { + $this->sortOrder = $sortOrder; + } + public function getSortOrder() + { + return $this->sortOrder; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Source.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Source.php new file mode 100644 index 00000000..a942029b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Source.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setPredefinedSource($predefinedSource) + { + $this->predefinedSource = $predefinedSource; + } + public function getPredefinedSource() + { + return $this->predefinedSource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceConfig.php new file mode 100644 index 00000000..c94fdd12 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceConfig.php @@ -0,0 +1,69 @@ +crowdingConfig = $crowdingConfig; + } + /** + * @return Google_Service_CloudSearch_SourceCrowdingConfig + */ + public function getCrowdingConfig() + { + return $this->crowdingConfig; + } + /** + * @param Google_Service_CloudSearch_SourceScoringConfig + */ + public function setScoringConfig(Google_Service_CloudSearch_SourceScoringConfig $scoringConfig) + { + $this->scoringConfig = $scoringConfig; + } + /** + * @return Google_Service_CloudSearch_SourceScoringConfig + */ + public function getScoringConfig() + { + return $this->scoringConfig; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceCrowdingConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceCrowdingConfig.php new file mode 100644 index 00000000..e5ada91e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceCrowdingConfig.php @@ -0,0 +1,57 @@ +field = $field; + } + public function getField() + { + return $this->field; + } + public function setNumResults($numResults) + { + $this->numResults = $numResults; + } + public function getNumResults() + { + return $this->numResults; + } + public function setNumSuggestions($numSuggestions) + { + $this->numSuggestions = $numSuggestions; + } + public function getNumSuggestions() + { + return $this->numSuggestions; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceResultCount.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceResultCount.php new file mode 100644 index 00000000..9ee33279 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceResultCount.php @@ -0,0 +1,64 @@ +hasMoreResults = $hasMoreResults; + } + public function getHasMoreResults() + { + return $this->hasMoreResults; + } + public function setResultCountEstimate($resultCountEstimate) + { + $this->resultCountEstimate = $resultCountEstimate; + } + public function getResultCountEstimate() + { + return $this->resultCountEstimate; + } + public function setResultCountExact($resultCountExact) + { + $this->resultCountExact = $resultCountExact; + } + public function getResultCountExact() + { + return $this->resultCountExact; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceScoringConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceScoringConfig.php new file mode 100644 index 00000000..228f8de1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SourceScoringConfig.php @@ -0,0 +1,30 @@ +sourceImportance = $sourceImportance; + } + public function getSourceImportance() + { + return $this->sourceImportance; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SpellResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SpellResult.php new file mode 100644 index 00000000..547e447c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SpellResult.php @@ -0,0 +1,30 @@ +suggestedQuery = $suggestedQuery; + } + public function getSuggestedQuery() + { + return $this->suggestedQuery; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StartUploadItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StartUploadItemRequest.php new file mode 100644 index 00000000..b4b85acf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StartUploadItemRequest.php @@ -0,0 +1,46 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Status.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Status.php new file mode 100644 index 00000000..34ed26a9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredDataObject.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredDataObject.php new file mode 100644 index 00000000..7626df8a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredDataObject.php @@ -0,0 +1,38 @@ +properties = $properties; + } + /** + * @return Google_Service_CloudSearch_NamedProperty + */ + public function getProperties() + { + return $this->properties; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredResult.php new file mode 100644 index 00000000..84d55ea4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/StructuredResult.php @@ -0,0 +1,37 @@ +person = $person; + } + /** + * @return Google_Service_CloudSearch_Person + */ + public function getPerson() + { + return $this->person; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestRequest.php new file mode 100644 index 00000000..b7385ac0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestRequest.php @@ -0,0 +1,63 @@ +dataSourceRestrictions = $dataSourceRestrictions; + } + /** + * @return Google_Service_CloudSearch_DataSourceRestriction + */ + public function getDataSourceRestrictions() + { + return $this->dataSourceRestrictions; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + /** + * @param Google_Service_CloudSearch_RequestOptions + */ + public function setRequestOptions(Google_Service_CloudSearch_RequestOptions $requestOptions) + { + $this->requestOptions = $requestOptions; + } + /** + * @return Google_Service_CloudSearch_RequestOptions + */ + public function getRequestOptions() + { + return $this->requestOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResponse.php new file mode 100644 index 00000000..1bfcee4c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResponse.php @@ -0,0 +1,38 @@ +suggestResults = $suggestResults; + } + /** + * @return Google_Service_CloudSearch_SuggestResult + */ + public function getSuggestResults() + { + return $this->suggestResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResult.php new file mode 100644 index 00000000..19b1f4a2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/SuggestResult.php @@ -0,0 +1,78 @@ +peopleSuggestion = $peopleSuggestion; + } + /** + * @return Google_Service_CloudSearch_PeopleSuggestion + */ + public function getPeopleSuggestion() + { + return $this->peopleSuggestion; + } + /** + * @param Google_Service_CloudSearch_QuerySuggestion + */ + public function setQuerySuggestion(Google_Service_CloudSearch_QuerySuggestion $querySuggestion) + { + $this->querySuggestion = $querySuggestion; + } + /** + * @return Google_Service_CloudSearch_QuerySuggestion + */ + public function getQuerySuggestion() + { + return $this->querySuggestion; + } + /** + * @param Google_Service_CloudSearch_Source + */ + public function setSource(Google_Service_CloudSearch_Source $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_Source + */ + public function getSource() + { + return $this->source; + } + public function setSuggestedQuery($suggestedQuery) + { + $this->suggestedQuery = $suggestedQuery; + } + public function getSuggestedQuery() + { + return $this->suggestedQuery; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextOperatorOptions.php new file mode 100644 index 00000000..c64f5c17 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextOperatorOptions.php @@ -0,0 +1,39 @@ +exactMatchWithOperator = $exactMatchWithOperator; + } + public function getExactMatchWithOperator() + { + return $this->exactMatchWithOperator; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextPropertyOptions.php new file mode 100644 index 00000000..c2c017c5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextPropertyOptions.php @@ -0,0 +1,53 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_TextOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } + /** + * @param Google_Service_CloudSearch_RetrievalImportance + */ + public function setRetrievalImportance(Google_Service_CloudSearch_RetrievalImportance $retrievalImportance) + { + $this->retrievalImportance = $retrievalImportance; + } + /** + * @return Google_Service_CloudSearch_RetrievalImportance + */ + public function getRetrievalImportance() + { + return $this->retrievalImportance; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextValues.php new file mode 100644 index 00000000..78f3523d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TextValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampOperatorOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampOperatorOptions.php new file mode 100644 index 00000000..9cccec75 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampOperatorOptions.php @@ -0,0 +1,48 @@ +greaterThanOperatorName = $greaterThanOperatorName; + } + public function getGreaterThanOperatorName() + { + return $this->greaterThanOperatorName; + } + public function setLessThanOperatorName($lessThanOperatorName) + { + $this->lessThanOperatorName = $lessThanOperatorName; + } + public function getLessThanOperatorName() + { + return $this->lessThanOperatorName; + } + public function setOperatorName($operatorName) + { + $this->operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampPropertyOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampPropertyOptions.php new file mode 100644 index 00000000..ecc82d8d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampPropertyOptions.php @@ -0,0 +1,37 @@ +operatorOptions = $operatorOptions; + } + /** + * @return Google_Service_CloudSearch_TimestampOperatorOptions + */ + public function getOperatorOptions() + { + return $this->operatorOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampValues.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampValues.php new file mode 100644 index 00000000..633755d6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/TimestampValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnmappedIdentity.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnmappedIdentity.php new file mode 100644 index 00000000..db82ba99 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnmappedIdentity.php @@ -0,0 +1,46 @@ +externalIdentity = $externalIdentity; + } + /** + * @return Google_Service_CloudSearch_Principal + */ + public function getExternalIdentity() + { + return $this->externalIdentity; + } + public function setResolutionStatusCode($resolutionStatusCode) + { + $this->resolutionStatusCode = $resolutionStatusCode; + } + public function getResolutionStatusCode() + { + return $this->resolutionStatusCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnreserveItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnreserveItemsRequest.php new file mode 100644 index 00000000..295349ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UnreserveItemsRequest.php @@ -0,0 +1,55 @@ +connectorName = $connectorName; + } + public function getConnectorName() + { + return $this->connectorName; + } + /** + * @param Google_Service_CloudSearch_DebugOptions + */ + public function setDebugOptions(Google_Service_CloudSearch_DebugOptions $debugOptions) + { + $this->debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + public function setQueue($queue) + { + $this->queue = $queue; + } + public function getQueue() + { + return $this->queue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateDataSourceRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateDataSourceRequest.php new file mode 100644 index 00000000..a5e83590 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateDataSourceRequest.php @@ -0,0 +1,53 @@ +debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + /** + * @param Google_Service_CloudSearch_DataSource + */ + public function setSource(Google_Service_CloudSearch_DataSource $source) + { + $this->source = $source; + } + /** + * @return Google_Service_CloudSearch_DataSource + */ + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateSchemaRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateSchemaRequest.php new file mode 100644 index 00000000..6bdb32f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UpdateSchemaRequest.php @@ -0,0 +1,62 @@ +debugOptions = $debugOptions; + } + /** + * @return Google_Service_CloudSearch_DebugOptions + */ + public function getDebugOptions() + { + return $this->debugOptions; + } + /** + * @param Google_Service_CloudSearch_Schema + */ + public function setSchema(Google_Service_CloudSearch_Schema $schema) + { + $this->schema = $schema; + } + /** + * @return Google_Service_CloudSearch_Schema + */ + public function getSchema() + { + return $this->schema; + } + public function setValidateOnly($validateOnly) + { + $this->validateOnly = $validateOnly; + } + public function getValidateOnly() + { + return $this->validateOnly; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UploadItemRef.php similarity index 89% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationResult.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/UploadItemRef.php index 038adf52..17092055 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationResult.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/UploadItemRef.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1InspectOperationResult extends Google_Model +class Google_Service_CloudSearch_UploadItemRef extends Google_Model { public $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Value.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Value.php similarity index 63% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Value.php rename to vendor/google/apiclient-services/src/Google/Service/CloudSearch/Value.php index a480df19..fe3dcb32 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1Value.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/Value.php @@ -15,16 +15,14 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1Value extends Google_Model +class Google_Service_CloudSearch_Value extends Google_Model { public $booleanValue; - protected $dateValueType = 'Google_Service_DLP_GoogleTypeDate'; + protected $dateValueType = 'Google_Service_CloudSearch_Date'; protected $dateValueDataType = ''; - public $floatValue; + public $doubleValue; public $integerValue; public $stringValue; - protected $timeValueType = 'Google_Service_DLP_GoogleTypeTimeOfDay'; - protected $timeValueDataType = ''; public $timestampValue; public function setBooleanValue($booleanValue) @@ -36,26 +34,26 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1Value extends Google_Model return $this->booleanValue; } /** - * @param Google_Service_DLP_GoogleTypeDate + * @param Google_Service_CloudSearch_Date */ - public function setDateValue(Google_Service_DLP_GoogleTypeDate $dateValue) + public function setDateValue(Google_Service_CloudSearch_Date $dateValue) { $this->dateValue = $dateValue; } /** - * @return Google_Service_DLP_GoogleTypeDate + * @return Google_Service_CloudSearch_Date */ public function getDateValue() { return $this->dateValue; } - public function setFloatValue($floatValue) + public function setDoubleValue($doubleValue) { - $this->floatValue = $floatValue; + $this->doubleValue = $doubleValue; } - public function getFloatValue() + public function getDoubleValue() { - return $this->floatValue; + return $this->doubleValue; } public function setIntegerValue($integerValue) { @@ -73,20 +71,6 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1Value extends Google_Model { return $this->stringValue; } - /** - * @param Google_Service_DLP_GoogleTypeTimeOfDay - */ - public function setTimeValue(Google_Service_DLP_GoogleTypeTimeOfDay $timeValue) - { - $this->timeValue = $timeValue; - } - /** - * @return Google_Service_DLP_GoogleTypeTimeOfDay - */ - public function getTimeValue() - { - return $this->timeValue; - } public function setTimestampValue($timestampValue) { $this->timestampValue = $timestampValue; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ValueFilter.php b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ValueFilter.php new file mode 100644 index 00000000..44f01253 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSearch/ValueFilter.php @@ -0,0 +1,46 @@ +operatorName = $operatorName; + } + public function getOperatorName() + { + return $this->operatorName; + } + /** + * @param Google_Service_CloudSearch_Value + */ + public function setValue(Google_Service_CloudSearch_Value $value) + { + $this->value = $value; + } + /** + * @return Google_Service_CloudSearch_Value + */ + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudShell.php b/vendor/google/apiclient-services/src/Google/Service/CloudShell.php index 4d37e8d6..be946149 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudShell.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudShell.php @@ -47,6 +47,7 @@ class Google_Service_CloudShell extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudshell.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudshell'; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php index bf3fea63..57ee80f1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php @@ -19,7 +19,7 @@ * Service definition for CloudSourceRepositories (v1). * *- * Access source code repositories hosted by Google.
+ * Accesses source code repositories hosted by Google. * ** For more information about this service, see the API @@ -43,6 +43,7 @@ class Google_Service_CloudSourceRepositories extends Google_Service const SOURCE_READ_WRITE = "https://www.googleapis.com/auth/source.read_write"; + public $projects; public $projects_repos; /** @@ -56,9 +57,40 @@ class Google_Service_CloudSourceRepositories extends Google_Service parent::__construct($client); $this->rootUrl = 'https://sourcerepo.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'sourcerepo'; + $this->projects = new Google_Service_CloudSourceRepositories_Resource_Projects( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'getConfig' => array( + 'path' => 'v1/{+name}/config', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updateConfig' => array( + 'path' => 'v1/{+name}/config', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects_repos = new Google_Service_CloudSourceRepositories_Resource_ProjectsRepos( $this, $this->serviceName, @@ -114,13 +146,23 @@ class Google_Service_CloudSourceRepositories extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ),'setIamPolicy' => array( diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php index e648bc37..d0b3ce30 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php @@ -18,9 +18,25 @@ class Google_Service_CloudSourceRepositories_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_CloudSourceRepositories_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_CloudSourceRepositories_Expr + */ + public function setCondition(Google_Service_CloudSourceRepositories_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_CloudSourceRepositories_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Expr.php new file mode 100644 index 00000000..3ce2627a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ProjectConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ProjectConfig.php new file mode 100644 index 00000000..5f5b2921 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ProjectConfig.php @@ -0,0 +1,55 @@ +enablePrivateKeyCheck = $enablePrivateKeyCheck; + } + public function getEnablePrivateKeyCheck() + { + return $this->enablePrivateKeyCheck; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_CloudSourceRepositories_PubsubConfig + */ + public function setPubsubConfigs($pubsubConfigs) + { + $this->pubsubConfigs = $pubsubConfigs; + } + /** + * @return Google_Service_CloudSourceRepositories_PubsubConfig + */ + public function getPubsubConfigs() + { + return $this->pubsubConfigs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/PubsubConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/PubsubConfig.php new file mode 100644 index 00000000..2c372e42 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/PubsubConfig.php @@ -0,0 +1,48 @@ +messageFormat = $messageFormat; + } + public function getMessageFormat() + { + return $this->messageFormat; + } + public function setServiceAccountEmail($serviceAccountEmail) + { + $this->serviceAccountEmail = $serviceAccountEmail; + } + public function getServiceAccountEmail() + { + return $this->serviceAccountEmail; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php index 87d212a7..82142167 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php @@ -20,6 +20,8 @@ class Google_Service_CloudSourceRepositories_Repo extends Google_Model protected $mirrorConfigType = 'Google_Service_CloudSourceRepositories_MirrorConfig'; protected $mirrorConfigDataType = ''; public $name; + protected $pubsubConfigsType = 'Google_Service_CloudSourceRepositories_PubsubConfig'; + protected $pubsubConfigsDataType = 'map'; public $size; public $url; @@ -45,6 +47,20 @@ class Google_Service_CloudSourceRepositories_Repo extends Google_Model { return $this->name; } + /** + * @param Google_Service_CloudSourceRepositories_PubsubConfig + */ + public function setPubsubConfigs($pubsubConfigs) + { + $this->pubsubConfigs = $pubsubConfigs; + } + /** + * @return Google_Service_CloudSourceRepositories_PubsubConfig + */ + public function getPubsubConfigs() + { + return $this->pubsubConfigs; + } public function setSize($size) { $this->size = $size; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php index e866c01c..56a0733b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php @@ -25,4 +25,35 @@ */ class Google_Service_CloudSourceRepositories_Resource_Projects extends Google_Service_Resource { + /** + * Returns the Cloud Source Repositories configuration of the project. + * (projects.getConfig) + * + * @param string $name The name of the requested project. Values are of the form + * `projects/`. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSourceRepositories_ProjectConfig + */ + public function getConfig($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getConfig', array($params), "Google_Service_CloudSourceRepositories_ProjectConfig"); + } + /** + * Updates the Cloud Source Repositories configuration of the project. + * (projects.updateConfig) + * + * @param string $name The name of the requested project. Values are of the form + * `projects/`. + * @param Google_Service_CloudSourceRepositories_UpdateProjectConfigRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSourceRepositories_ProjectConfig + */ + public function updateConfig($name, Google_Service_CloudSourceRepositories_UpdateProjectConfigRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateConfig', array($params), "Google_Service_CloudSourceRepositories_ProjectConfig"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php index 0d69f458..94c7abcd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php @@ -96,11 +96,11 @@ class Google_Service_CloudSourceRepositories_Resource_ProjectsRepos extends Goog * of the form `projects/`. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of repositories to return; between 1 + * and 500. If not set or zero, defaults to 100 at the server. * @opt_param string pageToken Resume listing repositories where a prior * ListReposResponse left off. This is an opaque token that must be obtained * from a recent, prior ListReposResponse's next_page_token field. - * @opt_param int pageSize Maximum number of repositories to return; between 1 - * and 500. If not set or zero, defaults to 100 at the server. * @return Google_Service_CloudSourceRepositories_ListReposResponse */ public function listProjectsRepos($name, $optParams = array()) @@ -109,6 +109,21 @@ class Google_Service_CloudSourceRepositories_Resource_ProjectsRepos extends Goog $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudSourceRepositories_ListReposResponse"); } + /** + * Updates information about a repo. (repos.patch) + * + * @param string $name The name of the requested repository. Values are of the + * form `projects//repos/`. + * @param Google_Service_CloudSourceRepositories_UpdateRepoRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudSourceRepositories_Repo + */ + public function patch($name, Google_Service_CloudSourceRepositories_UpdateRepoRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudSourceRepositories_Repo"); + } /** * Sets the access control policy on the specified resource. Replaces any * existing policy. (repos.setIamPolicy) diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateProjectConfigRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateProjectConfigRequest.php new file mode 100644 index 00000000..cded5ef2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateProjectConfigRequest.php @@ -0,0 +1,46 @@ +projectConfig = $projectConfig; + } + /** + * @return Google_Service_CloudSourceRepositories_ProjectConfig + */ + public function getProjectConfig() + { + return $this->projectConfig; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateRepoRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateRepoRequest.php new file mode 100644 index 00000000..b77ef986 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudSourceRepositories/UpdateRepoRequest.php @@ -0,0 +1,46 @@ +repo = $repo; + } + /** + * @return Google_Service_CloudSourceRepositories_Repo + */ + public function getRepo() + { + return $this->repo; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution.php new file mode 100644 index 00000000..c5ff91be --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution.php @@ -0,0 +1,308 @@ + + * Cloud Talent Solution provides the capability to create, read, update, and + * delete job postings, as well as search jobs based on keywords and filters.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_CloudTalentSolution extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage job postings. */ + const JOBS = + "https://www.googleapis.com/auth/jobs"; + + public $projects; + public $projects_clientEvents; + public $projects_companies; + public $projects_jobs; + + /** + * Constructs the internal representation of the CloudTalentSolution service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://jobs.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v3'; + $this->serviceName = 'jobs'; + + $this->projects = new Google_Service_CloudTalentSolution_Resource_Projects( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'complete' => array( + 'path' => 'v3/{+name}:complete', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'languageCodes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companyName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_clientEvents = new Google_Service_CloudTalentSolution_Resource_ProjectsClientEvents( + $this, + $this->serviceName, + 'clientEvents', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v3/{+parent}/clientEvents', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_companies = new Google_Service_CloudTalentSolution_Resource_ProjectsCompanies( + $this, + $this->serviceName, + 'companies', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v3/{+parent}/companies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v3/{+parent}/companies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'requireOpenJobs' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_jobs = new Google_Service_CloudTalentSolution_Resource_ProjectsJobs( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'v3/{+parent}/jobs:batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v3/{+parent}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v3/{+parent}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'jobView' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v3/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'v3/{+parent}/jobs:search', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'searchForAlert' => array( + 'path' => 'v3/{+parent}/jobs:searchForAlert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ApplicationInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ApplicationInfo.php new file mode 100644 index 00000000..82281738 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ApplicationInfo.php @@ -0,0 +1,49 @@ +emails = $emails; + } + public function getEmails() + { + return $this->emails; + } + public function setInstruction($instruction) + { + $this->instruction = $instruction; + } + public function getInstruction() + { + return $this->instruction; + } + public function setUris($uris) + { + $this->uris = $uris; + } + public function getUris() + { + return $this->uris; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BatchDeleteJobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BatchDeleteJobsRequest.php new file mode 100644 index 00000000..bdb71169 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BatchDeleteJobsRequest.php @@ -0,0 +1,30 @@ +filter = $filter; + } + public function getFilter() + { + return $this->filter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketRange.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketRange.php new file mode 100644 index 00000000..a7db67ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketRange.php @@ -0,0 +1,39 @@ +from = $from; + } + public function getFrom() + { + return $this->from; + } + public function setTo($to) + { + $this->to = $to; + } + public function getTo() + { + return $this->to; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeStatistics.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketizedCount.php similarity index 60% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeStatistics.php rename to vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketizedCount.php index 382fcc2a..91f00e7a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeStatistics.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/BucketizedCount.php @@ -15,11 +15,11 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeStatistics extends Google_Model +class Google_Service_CloudTalentSolution_BucketizedCount extends Google_Model { public $count; - protected $infoTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType'; - protected $infoTypeDataType = ''; + protected $rangeType = 'Google_Service_CloudTalentSolution_BucketRange'; + protected $rangeDataType = ''; public function setCount($count) { @@ -30,17 +30,17 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeStatistics extends Googl return $this->count; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @param Google_Service_CloudTalentSolution_BucketRange */ - public function setInfoType(Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType $infoType) + public function setRange(Google_Service_CloudTalentSolution_BucketRange $range) { - $this->infoType = $infoType; + $this->range = $range; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @return Google_Service_CloudTalentSolution_BucketRange */ - public function getInfoType() + public function getRange() { - return $this->infoType; + return $this->range; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ClientEvent.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ClientEvent.php new file mode 100644 index 00000000..738886b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ClientEvent.php @@ -0,0 +1,82 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setExtraInfo($extraInfo) + { + $this->extraInfo = $extraInfo; + } + public function getExtraInfo() + { + return $this->extraInfo; + } + /** + * @param Google_Service_CloudTalentSolution_JobEvent + */ + public function setJobEvent(Google_Service_CloudTalentSolution_JobEvent $jobEvent) + { + $this->jobEvent = $jobEvent; + } + /** + * @return Google_Service_CloudTalentSolution_JobEvent + */ + public function getJobEvent() + { + return $this->jobEvent; + } + public function setParentEventId($parentEventId) + { + $this->parentEventId = $parentEventId; + } + public function getParentEventId() + { + return $this->parentEventId; + } + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + public function getRequestId() + { + return $this->requestId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteFilter.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteFilter.php new file mode 100644 index 00000000..dee18f0a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteFilter.php @@ -0,0 +1,89 @@ +allowImpreciseAddresses = $allowImpreciseAddresses; + } + public function getAllowImpreciseAddresses() + { + return $this->allowImpreciseAddresses; + } + public function setCommuteMethod($commuteMethod) + { + $this->commuteMethod = $commuteMethod; + } + public function getCommuteMethod() + { + return $this->commuteMethod; + } + /** + * @param Google_Service_CloudTalentSolution_TimeOfDay + */ + public function setDepartureTime(Google_Service_CloudTalentSolution_TimeOfDay $departureTime) + { + $this->departureTime = $departureTime; + } + /** + * @return Google_Service_CloudTalentSolution_TimeOfDay + */ + public function getDepartureTime() + { + return $this->departureTime; + } + public function setRoadTraffic($roadTraffic) + { + $this->roadTraffic = $roadTraffic; + } + public function getRoadTraffic() + { + return $this->roadTraffic; + } + /** + * @param Google_Service_CloudTalentSolution_LatLng + */ + public function setStartCoordinates(Google_Service_CloudTalentSolution_LatLng $startCoordinates) + { + $this->startCoordinates = $startCoordinates; + } + /** + * @return Google_Service_CloudTalentSolution_LatLng + */ + public function getStartCoordinates() + { + return $this->startCoordinates; + } + public function setTravelDuration($travelDuration) + { + $this->travelDuration = $travelDuration; + } + public function getTravelDuration() + { + return $this->travelDuration; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteInfo.php new file mode 100644 index 00000000..4a2d0b4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CommuteInfo.php @@ -0,0 +1,46 @@ +jobLocation = $jobLocation; + } + /** + * @return Google_Service_CloudTalentSolution_Location + */ + public function getJobLocation() + { + return $this->jobLocation; + } + public function setTravelDuration($travelDuration) + { + $this->travelDuration = $travelDuration; + } + public function getTravelDuration() + { + return $this->travelDuration; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Company.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Company.php new file mode 100644 index 00000000..a37fd8ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Company.php @@ -0,0 +1,146 @@ +careerSiteUri = $careerSiteUri; + } + public function getCareerSiteUri() + { + return $this->careerSiteUri; + } + /** + * @param Google_Service_CloudTalentSolution_CompanyDerivedInfo + */ + public function setDerivedInfo(Google_Service_CloudTalentSolution_CompanyDerivedInfo $derivedInfo) + { + $this->derivedInfo = $derivedInfo; + } + /** + * @return Google_Service_CloudTalentSolution_CompanyDerivedInfo + */ + public function getDerivedInfo() + { + return $this->derivedInfo; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setEeoText($eeoText) + { + $this->eeoText = $eeoText; + } + public function getEeoText() + { + return $this->eeoText; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setHeadquartersAddress($headquartersAddress) + { + $this->headquartersAddress = $headquartersAddress; + } + public function getHeadquartersAddress() + { + return $this->headquartersAddress; + } + public function setHiringAgency($hiringAgency) + { + $this->hiringAgency = $hiringAgency; + } + public function getHiringAgency() + { + return $this->hiringAgency; + } + public function setImageUri($imageUri) + { + $this->imageUri = $imageUri; + } + public function getImageUri() + { + return $this->imageUri; + } + public function setKeywordSearchableJobCustomAttributes($keywordSearchableJobCustomAttributes) + { + $this->keywordSearchableJobCustomAttributes = $keywordSearchableJobCustomAttributes; + } + public function getKeywordSearchableJobCustomAttributes() + { + return $this->keywordSearchableJobCustomAttributes; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSuspended($suspended) + { + $this->suspended = $suspended; + } + public function getSuspended() + { + return $this->suspended; + } + public function setWebsiteUri($websiteUri) + { + $this->websiteUri = $websiteUri; + } + public function getWebsiteUri() + { + return $this->websiteUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompanyDerivedInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompanyDerivedInfo.php new file mode 100644 index 00000000..b313f0b7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompanyDerivedInfo.php @@ -0,0 +1,37 @@ +headquartersLocation = $headquartersLocation; + } + /** + * @return Google_Service_CloudTalentSolution_Location + */ + public function getHeadquartersLocation() + { + return $this->headquartersLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationEntry.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationEntry.php new file mode 100644 index 00000000..4f0a9c37 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationEntry.php @@ -0,0 +1,89 @@ +amount = $amount; + } + /** + * @return Google_Service_CloudTalentSolution_Money + */ + public function getAmount() + { + return $this->amount; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpectedUnitsPerYear($expectedUnitsPerYear) + { + $this->expectedUnitsPerYear = $expectedUnitsPerYear; + } + public function getExpectedUnitsPerYear() + { + return $this->expectedUnitsPerYear; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationRange + */ + public function setRange(Google_Service_CloudTalentSolution_CompensationRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationRange + */ + public function getRange() + { + return $this->range; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationFilter.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationFilter.php new file mode 100644 index 00000000..a8d144c2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationFilter.php @@ -0,0 +1,65 @@ +includeJobsWithUnspecifiedCompensationRange = $includeJobsWithUnspecifiedCompensationRange; + } + public function getIncludeJobsWithUnspecifiedCompensationRange() + { + return $this->includeJobsWithUnspecifiedCompensationRange; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationRange + */ + public function setRange(Google_Service_CloudTalentSolution_CompensationRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationRange + */ + public function getRange() + { + return $this->range; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramRequest.php new file mode 100644 index 00000000..8b602bd4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramRequest.php @@ -0,0 +1,46 @@ +bucketingOption = $bucketingOption; + } + /** + * @return Google_Service_CloudTalentSolution_NumericBucketingOption + */ + public function getBucketingOption() + { + return $this->bucketingOption; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramResult.php new file mode 100644 index 00000000..41aeada7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationHistogramResult.php @@ -0,0 +1,46 @@ +result = $result; + } + /** + * @return Google_Service_CloudTalentSolution_NumericBucketingResult + */ + public function getResult() + { + return $this->result; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationInfo.php new file mode 100644 index 00000000..08149ff2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationInfo.php @@ -0,0 +1,70 @@ +annualizedBaseCompensationRange = $annualizedBaseCompensationRange; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationRange + */ + public function getAnnualizedBaseCompensationRange() + { + return $this->annualizedBaseCompensationRange; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationRange + */ + public function setAnnualizedTotalCompensationRange(Google_Service_CloudTalentSolution_CompensationRange $annualizedTotalCompensationRange) + { + $this->annualizedTotalCompensationRange = $annualizedTotalCompensationRange; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationRange + */ + public function getAnnualizedTotalCompensationRange() + { + return $this->annualizedTotalCompensationRange; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationEntry + */ + public function setEntries($entries) + { + $this->entries = $entries; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationEntry + */ + public function getEntries() + { + return $this->entries; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationRange.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationRange.php new file mode 100644 index 00000000..ab9bbf27 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompensationRange.php @@ -0,0 +1,53 @@ +maxCompensation = $maxCompensation; + } + /** + * @return Google_Service_CloudTalentSolution_Money + */ + public function getMaxCompensation() + { + return $this->maxCompensation; + } + /** + * @param Google_Service_CloudTalentSolution_Money + */ + public function setMinCompensation(Google_Service_CloudTalentSolution_Money $minCompensation) + { + $this->minCompensation = $minCompensation; + } + /** + * @return Google_Service_CloudTalentSolution_Money + */ + public function getMinCompensation() + { + return $this->minCompensation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompleteQueryResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompleteQueryResponse.php new file mode 100644 index 00000000..973f5501 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompleteQueryResponse.php @@ -0,0 +1,54 @@ +completionResults = $completionResults; + } + /** + * @return Google_Service_CloudTalentSolution_CompletionResult + */ + public function getCompletionResults() + { + return $this->completionResults; + } + /** + * @param Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function setMetadata(Google_Service_CloudTalentSolution_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompletionResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompletionResult.php new file mode 100644 index 00000000..51f8abab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CompletionResult.php @@ -0,0 +1,48 @@ +imageUri = $imageUri; + } + public function getImageUri() + { + return $this->imageUri; + } + public function setSuggestion($suggestion) + { + $this->suggestion = $suggestion; + } + public function getSuggestion() + { + return $this->suggestion; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateClientEventRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateClientEventRequest.php new file mode 100644 index 00000000..4b1f2e6f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateClientEventRequest.php @@ -0,0 +1,37 @@ +clientEvent = $clientEvent; + } + /** + * @return Google_Service_CloudTalentSolution_ClientEvent + */ + public function getClientEvent() + { + return $this->clientEvent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateCompanyRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateCompanyRequest.php new file mode 100644 index 00000000..f0a8a0b7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateCompanyRequest.php @@ -0,0 +1,37 @@ +company = $company; + } + /** + * @return Google_Service_CloudTalentSolution_Company + */ + public function getCompany() + { + return $this->company; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateJobRequest.php new file mode 100644 index 00000000..c07069c8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CreateJobRequest.php @@ -0,0 +1,37 @@ +job = $job; + } + /** + * @return Google_Service_CloudTalentSolution_Job + */ + public function getJob() + { + return $this->job; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttribute.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttribute.php new file mode 100644 index 00000000..cd267d9d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttribute.php @@ -0,0 +1,49 @@ +filterable = $filterable; + } + public function getFilterable() + { + return $this->filterable; + } + public function setLongValues($longValues) + { + $this->longValues = $longValues; + } + public function getLongValues() + { + return $this->longValues; + } + public function setStringValues($stringValues) + { + $this->stringValues = $stringValues; + } + public function getStringValues() + { + return $this->stringValues; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramRequest.php new file mode 100644 index 00000000..36c4b68c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramRequest.php @@ -0,0 +1,55 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + /** + * @param Google_Service_CloudTalentSolution_NumericBucketingOption + */ + public function setLongValueHistogramBucketingOption(Google_Service_CloudTalentSolution_NumericBucketingOption $longValueHistogramBucketingOption) + { + $this->longValueHistogramBucketingOption = $longValueHistogramBucketingOption; + } + /** + * @return Google_Service_CloudTalentSolution_NumericBucketingOption + */ + public function getLongValueHistogramBucketingOption() + { + return $this->longValueHistogramBucketingOption; + } + public function setStringValueHistogram($stringValueHistogram) + { + $this->stringValueHistogram = $stringValueHistogram; + } + public function getStringValueHistogram() + { + return $this->stringValueHistogram; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramResult.php new file mode 100644 index 00000000..3bae46d6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/CustomAttributeHistogramResult.php @@ -0,0 +1,55 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + /** + * @param Google_Service_CloudTalentSolution_NumericBucketingResult + */ + public function setLongValueHistogramResult(Google_Service_CloudTalentSolution_NumericBucketingResult $longValueHistogramResult) + { + $this->longValueHistogramResult = $longValueHistogramResult; + } + /** + * @return Google_Service_CloudTalentSolution_NumericBucketingResult + */ + public function getLongValueHistogramResult() + { + return $this->longValueHistogramResult; + } + public function setStringValueHistogramResult($stringValueHistogramResult) + { + $this->stringValueHistogramResult = $stringValueHistogramResult; + } + public function getStringValueHistogramResult() + { + return $this->stringValueHistogramResult; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/DeviceInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/DeviceInfo.php new file mode 100644 index 00000000..e6ca35a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/DeviceInfo.php @@ -0,0 +1,39 @@ +deviceType = $deviceType; + } + public function getDeviceType() + { + return $this->deviceType; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramFacets.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramFacets.php new file mode 100644 index 00000000..fefca583 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramFacets.php @@ -0,0 +1,63 @@ +compensationHistogramFacets = $compensationHistogramFacets; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationHistogramRequest + */ + public function getCompensationHistogramFacets() + { + return $this->compensationHistogramFacets; + } + /** + * @param Google_Service_CloudTalentSolution_CustomAttributeHistogramRequest + */ + public function setCustomAttributeHistogramFacets($customAttributeHistogramFacets) + { + $this->customAttributeHistogramFacets = $customAttributeHistogramFacets; + } + /** + * @return Google_Service_CloudTalentSolution_CustomAttributeHistogramRequest + */ + public function getCustomAttributeHistogramFacets() + { + return $this->customAttributeHistogramFacets; + } + public function setSimpleHistogramFacets($simpleHistogramFacets) + { + $this->simpleHistogramFacets = $simpleHistogramFacets; + } + public function getSimpleHistogramFacets() + { + return $this->simpleHistogramFacets; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResult.php new file mode 100644 index 00000000..1999bafc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResult.php @@ -0,0 +1,39 @@ +searchType = $searchType; + } + public function getSearchType() + { + return $this->searchType; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResults.php new file mode 100644 index 00000000..419d39df --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/HistogramResults.php @@ -0,0 +1,70 @@ +compensationHistogramResults = $compensationHistogramResults; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationHistogramResult + */ + public function getCompensationHistogramResults() + { + return $this->compensationHistogramResults; + } + /** + * @param Google_Service_CloudTalentSolution_CustomAttributeHistogramResult + */ + public function setCustomAttributeHistogramResults($customAttributeHistogramResults) + { + $this->customAttributeHistogramResults = $customAttributeHistogramResults; + } + /** + * @return Google_Service_CloudTalentSolution_CustomAttributeHistogramResult + */ + public function getCustomAttributeHistogramResults() + { + return $this->customAttributeHistogramResults; + } + /** + * @param Google_Service_CloudTalentSolution_HistogramResult + */ + public function setSimpleHistogramResults($simpleHistogramResults) + { + $this->simpleHistogramResults = $simpleHistogramResults; + } + /** + * @return Google_Service_CloudTalentSolution_HistogramResult + */ + public function getSimpleHistogramResults() + { + return $this->simpleHistogramResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Job.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Job.php new file mode 100644 index 00000000..fcba92f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Job.php @@ -0,0 +1,327 @@ +addresses = $addresses; + } + public function getAddresses() + { + return $this->addresses; + } + /** + * @param Google_Service_CloudTalentSolution_ApplicationInfo + */ + public function setApplicationInfo(Google_Service_CloudTalentSolution_ApplicationInfo $applicationInfo) + { + $this->applicationInfo = $applicationInfo; + } + /** + * @return Google_Service_CloudTalentSolution_ApplicationInfo + */ + public function getApplicationInfo() + { + return $this->applicationInfo; + } + public function setCompanyDisplayName($companyDisplayName) + { + $this->companyDisplayName = $companyDisplayName; + } + public function getCompanyDisplayName() + { + return $this->companyDisplayName; + } + public function setCompanyName($companyName) + { + $this->companyName = $companyName; + } + public function getCompanyName() + { + return $this->companyName; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationInfo + */ + public function setCompensationInfo(Google_Service_CloudTalentSolution_CompensationInfo $compensationInfo) + { + $this->compensationInfo = $compensationInfo; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationInfo + */ + public function getCompensationInfo() + { + return $this->compensationInfo; + } + /** + * @param Google_Service_CloudTalentSolution_CustomAttribute + */ + public function setCustomAttributes($customAttributes) + { + $this->customAttributes = $customAttributes; + } + /** + * @return Google_Service_CloudTalentSolution_CustomAttribute + */ + public function getCustomAttributes() + { + return $this->customAttributes; + } + public function setDegreeTypes($degreeTypes) + { + $this->degreeTypes = $degreeTypes; + } + public function getDegreeTypes() + { + return $this->degreeTypes; + } + public function setDepartment($department) + { + $this->department = $department; + } + public function getDepartment() + { + return $this->department; + } + /** + * @param Google_Service_CloudTalentSolution_JobDerivedInfo + */ + public function setDerivedInfo(Google_Service_CloudTalentSolution_JobDerivedInfo $derivedInfo) + { + $this->derivedInfo = $derivedInfo; + } + /** + * @return Google_Service_CloudTalentSolution_JobDerivedInfo + */ + public function getDerivedInfo() + { + return $this->derivedInfo; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEmploymentTypes($employmentTypes) + { + $this->employmentTypes = $employmentTypes; + } + public function getEmploymentTypes() + { + return $this->employmentTypes; + } + public function setIncentives($incentives) + { + $this->incentives = $incentives; + } + public function getIncentives() + { + return $this->incentives; + } + public function setJobBenefits($jobBenefits) + { + $this->jobBenefits = $jobBenefits; + } + public function getJobBenefits() + { + return $this->jobBenefits; + } + public function setJobEndTime($jobEndTime) + { + $this->jobEndTime = $jobEndTime; + } + public function getJobEndTime() + { + return $this->jobEndTime; + } + public function setJobLevel($jobLevel) + { + $this->jobLevel = $jobLevel; + } + public function getJobLevel() + { + return $this->jobLevel; + } + public function setJobStartTime($jobStartTime) + { + $this->jobStartTime = $jobStartTime; + } + public function getJobStartTime() + { + return $this->jobStartTime; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPostingCreateTime($postingCreateTime) + { + $this->postingCreateTime = $postingCreateTime; + } + public function getPostingCreateTime() + { + return $this->postingCreateTime; + } + public function setPostingExpireTime($postingExpireTime) + { + $this->postingExpireTime = $postingExpireTime; + } + public function getPostingExpireTime() + { + return $this->postingExpireTime; + } + public function setPostingPublishTime($postingPublishTime) + { + $this->postingPublishTime = $postingPublishTime; + } + public function getPostingPublishTime() + { + return $this->postingPublishTime; + } + public function setPostingRegion($postingRegion) + { + $this->postingRegion = $postingRegion; + } + public function getPostingRegion() + { + return $this->postingRegion; + } + public function setPostingUpdateTime($postingUpdateTime) + { + $this->postingUpdateTime = $postingUpdateTime; + } + public function getPostingUpdateTime() + { + return $this->postingUpdateTime; + } + /** + * @param Google_Service_CloudTalentSolution_ProcessingOptions + */ + public function setProcessingOptions(Google_Service_CloudTalentSolution_ProcessingOptions $processingOptions) + { + $this->processingOptions = $processingOptions; + } + /** + * @return Google_Service_CloudTalentSolution_ProcessingOptions + */ + public function getProcessingOptions() + { + return $this->processingOptions; + } + public function setPromotionValue($promotionValue) + { + $this->promotionValue = $promotionValue; + } + public function getPromotionValue() + { + return $this->promotionValue; + } + public function setQualifications($qualifications) + { + $this->qualifications = $qualifications; + } + public function getQualifications() + { + return $this->qualifications; + } + public function setRequisitionId($requisitionId) + { + $this->requisitionId = $requisitionId; + } + public function getRequisitionId() + { + return $this->requisitionId; + } + public function setResponsibilities($responsibilities) + { + $this->responsibilities = $responsibilities; + } + public function getResponsibilities() + { + return $this->responsibilities; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobDerivedInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobDerivedInfo.php new file mode 100644 index 00000000..75b5cd1c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobDerivedInfo.php @@ -0,0 +1,47 @@ +jobCategories = $jobCategories; + } + public function getJobCategories() + { + return $this->jobCategories; + } + /** + * @param Google_Service_CloudTalentSolution_Location + */ + public function setLocations($locations) + { + $this->locations = $locations; + } + /** + * @return Google_Service_CloudTalentSolution_Location + */ + public function getLocations() + { + return $this->locations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobEvent.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobEvent.php new file mode 100644 index 00000000..356abaaa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobEvent.php @@ -0,0 +1,40 @@ +jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobQuery.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobQuery.php new file mode 100644 index 00000000..5ba9dc54 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobQuery.php @@ -0,0 +1,158 @@ +commuteFilter = $commuteFilter; + } + /** + * @return Google_Service_CloudTalentSolution_CommuteFilter + */ + public function getCommuteFilter() + { + return $this->commuteFilter; + } + public function setCompanyDisplayNames($companyDisplayNames) + { + $this->companyDisplayNames = $companyDisplayNames; + } + public function getCompanyDisplayNames() + { + return $this->companyDisplayNames; + } + public function setCompanyNames($companyNames) + { + $this->companyNames = $companyNames; + } + public function getCompanyNames() + { + return $this->companyNames; + } + /** + * @param Google_Service_CloudTalentSolution_CompensationFilter + */ + public function setCompensationFilter(Google_Service_CloudTalentSolution_CompensationFilter $compensationFilter) + { + $this->compensationFilter = $compensationFilter; + } + /** + * @return Google_Service_CloudTalentSolution_CompensationFilter + */ + public function getCompensationFilter() + { + return $this->compensationFilter; + } + public function setCustomAttributeFilter($customAttributeFilter) + { + $this->customAttributeFilter = $customAttributeFilter; + } + public function getCustomAttributeFilter() + { + return $this->customAttributeFilter; + } + public function setDisableSpellCheck($disableSpellCheck) + { + $this->disableSpellCheck = $disableSpellCheck; + } + public function getDisableSpellCheck() + { + return $this->disableSpellCheck; + } + public function setEmploymentTypes($employmentTypes) + { + $this->employmentTypes = $employmentTypes; + } + public function getEmploymentTypes() + { + return $this->employmentTypes; + } + public function setJobCategories($jobCategories) + { + $this->jobCategories = $jobCategories; + } + public function getJobCategories() + { + return $this->jobCategories; + } + public function setLanguageCodes($languageCodes) + { + $this->languageCodes = $languageCodes; + } + public function getLanguageCodes() + { + return $this->languageCodes; + } + /** + * @param Google_Service_CloudTalentSolution_LocationFilter + */ + public function setLocationFilters($locationFilters) + { + $this->locationFilters = $locationFilters; + } + /** + * @return Google_Service_CloudTalentSolution_LocationFilter + */ + public function getLocationFilters() + { + return $this->locationFilters; + } + /** + * @param Google_Service_CloudTalentSolution_TimestampRange + */ + public function setPublishTimeRange(Google_Service_CloudTalentSolution_TimestampRange $publishTimeRange) + { + $this->publishTimeRange = $publishTimeRange; + } + /** + * @return Google_Service_CloudTalentSolution_TimestampRange + */ + public function getPublishTimeRange() + { + return $this->publishTimeRange; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobsEmpty.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobsEmpty.php new file mode 100644 index 00000000..93603d49 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/JobsEmpty.php @@ -0,0 +1,20 @@ +latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListCompaniesResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListCompaniesResponse.php new file mode 100644 index 00000000..d18ebac3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListCompaniesResponse.php @@ -0,0 +1,63 @@ +companies = $companies; + } + /** + * @return Google_Service_CloudTalentSolution_Company + */ + public function getCompanies() + { + return $this->companies; + } + /** + * @param Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function setMetadata(Google_Service_CloudTalentSolution_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListJobsResponse.php new file mode 100644 index 00000000..8fc24821 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ListJobsResponse.php @@ -0,0 +1,63 @@ +jobs = $jobs; + } + /** + * @return Google_Service_CloudTalentSolution_Job + */ + public function getJobs() + { + return $this->jobs; + } + /** + * @param Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function setMetadata(Google_Service_CloudTalentSolution_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Location.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Location.php new file mode 100644 index 00000000..5280dcec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Location.php @@ -0,0 +1,71 @@ +latLng = $latLng; + } + /** + * @return Google_Service_CloudTalentSolution_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } + public function setLocationType($locationType) + { + $this->locationType = $locationType; + } + public function getLocationType() + { + return $this->locationType; + } + /** + * @param Google_Service_CloudTalentSolution_PostalAddress + */ + public function setPostalAddress(Google_Service_CloudTalentSolution_PostalAddress $postalAddress) + { + $this->postalAddress = $postalAddress; + } + /** + * @return Google_Service_CloudTalentSolution_PostalAddress + */ + public function getPostalAddress() + { + return $this->postalAddress; + } + public function setRadiusInMiles($radiusInMiles) + { + $this->radiusInMiles = $radiusInMiles; + } + public function getRadiusInMiles() + { + return $this->radiusInMiles; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/LocationFilter.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/LocationFilter.php new file mode 100644 index 00000000..ef7a2484 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/LocationFilter.php @@ -0,0 +1,73 @@ +address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setDistanceInMiles($distanceInMiles) + { + $this->distanceInMiles = $distanceInMiles; + } + public function getDistanceInMiles() + { + return $this->distanceInMiles; + } + /** + * @param Google_Service_CloudTalentSolution_LatLng + */ + public function setLatLng(Google_Service_CloudTalentSolution_LatLng $latLng) + { + $this->latLng = $latLng; + } + /** + * @return Google_Service_CloudTalentSolution_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setTelecommutePreference($telecommutePreference) + { + $this->telecommutePreference = $telecommutePreference; + } + public function getTelecommutePreference() + { + return $this->telecommutePreference; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/MatchingJob.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/MatchingJob.php new file mode 100644 index 00000000..9cfb8e1e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/MatchingJob.php @@ -0,0 +1,80 @@ +commuteInfo = $commuteInfo; + } + /** + * @return Google_Service_CloudTalentSolution_CommuteInfo + */ + public function getCommuteInfo() + { + return $this->commuteInfo; + } + /** + * @param Google_Service_CloudTalentSolution_Job + */ + public function setJob(Google_Service_CloudTalentSolution_Job $job) + { + $this->job = $job; + } + /** + * @return Google_Service_CloudTalentSolution_Job + */ + public function getJob() + { + return $this->job; + } + public function setJobSummary($jobSummary) + { + $this->jobSummary = $jobSummary; + } + public function getJobSummary() + { + return $this->jobSummary; + } + public function setJobTitleSnippet($jobTitleSnippet) + { + $this->jobTitleSnippet = $jobTitleSnippet; + } + public function getJobTitleSnippet() + { + return $this->jobTitleSnippet; + } + public function setSearchTextSnippet($searchTextSnippet) + { + $this->searchTextSnippet = $searchTextSnippet; + } + public function getSearchTextSnippet() + { + return $this->searchTextSnippet; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Money.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Money.php new file mode 100644 index 00000000..19c6621f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Money.php @@ -0,0 +1,48 @@ +currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + public function getNanos() + { + return $this->nanos; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingOption.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingOption.php new file mode 100644 index 00000000..fbc00e2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingOption.php @@ -0,0 +1,40 @@ +bucketBounds = $bucketBounds; + } + public function getBucketBounds() + { + return $this->bucketBounds; + } + public function setRequiresMinMax($requiresMinMax) + { + $this->requiresMinMax = $requiresMinMax; + } + public function getRequiresMinMax() + { + return $this->requiresMinMax; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingResult.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingResult.php new file mode 100644 index 00000000..1c5b5b80 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/NumericBucketingResult.php @@ -0,0 +1,56 @@ +counts = $counts; + } + /** + * @return Google_Service_CloudTalentSolution_BucketizedCount + */ + public function getCounts() + { + return $this->counts; + } + public function setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + public function getMaxValue() + { + return $this->maxValue; + } + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + public function getMinValue() + { + return $this->minValue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/PostalAddress.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/PostalAddress.php new file mode 100644 index 00000000..02a8f2f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/PostalAddress.php @@ -0,0 +1,121 @@ +addressLines = $addressLines; + } + public function getAddressLines() + { + return $this->addressLines; + } + public function setAdministrativeArea($administrativeArea) + { + $this->administrativeArea = $administrativeArea; + } + public function getAdministrativeArea() + { + return $this->administrativeArea; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setLocality($locality) + { + $this->locality = $locality; + } + public function getLocality() + { + return $this->locality; + } + public function setOrganization($organization) + { + $this->organization = $organization; + } + public function getOrganization() + { + return $this->organization; + } + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + public function getPostalCode() + { + return $this->postalCode; + } + public function setRecipients($recipients) + { + $this->recipients = $recipients; + } + public function getRecipients() + { + return $this->recipients; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setRevision($revision) + { + $this->revision = $revision; + } + public function getRevision() + { + return $this->revision; + } + public function setSortingCode($sortingCode) + { + $this->sortingCode = $sortingCode; + } + public function getSortingCode() + { + return $this->sortingCode; + } + public function setSublocality($sublocality) + { + $this->sublocality = $sublocality; + } + public function getSublocality() + { + return $this->sublocality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ProcessingOptions.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ProcessingOptions.php new file mode 100644 index 00000000..63aec5f8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ProcessingOptions.php @@ -0,0 +1,39 @@ +disableStreetAddressResolution = $disableStreetAddressResolution; + } + public function getDisableStreetAddressResolution() + { + return $this->disableStreetAddressResolution; + } + public function setHtmlSanitization($htmlSanitization) + { + $this->htmlSanitization = $htmlSanitization; + } + public function getHtmlSanitization() + { + return $this->htmlSanitization; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/RequestMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/RequestMetadata.php new file mode 100644 index 00000000..6adf0d6a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/RequestMetadata.php @@ -0,0 +1,64 @@ +deviceInfo = $deviceInfo; + } + /** + * @return Google_Service_CloudTalentSolution_DeviceInfo + */ + public function getDeviceInfo() + { + return $this->deviceInfo; + } + public function setDomain($domain) + { + $this->domain = $domain; + } + public function getDomain() + { + return $this->domain; + } + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + public function getSessionId() + { + return $this->sessionId; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/Projects.php new file mode 100644 index 00000000..0a54d7d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/Projects.php @@ -0,0 +1,104 @@ + + * $jobsService = new Google_Service_CloudTalentSolution(...); + * $projects = $jobsService->projects; + * + */ +class Google_Service_CloudTalentSolution_Resource_Projects extends Google_Service_Resource +{ + /** + * Completes the specified prefix with keyword suggestions. Intended for use by + * a job search auto-complete search box. (projects.complete) + * + * @param string $name Required. + * + * Resource name of project the completion is performed within. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Required. + * + * Completion result count. + * + * The maximum allowed page size is 10. + * @opt_param string query Required. + * + * The query used to generate suggestions. + * + * The maximum number of allowed characters is 255. + * @opt_param string languageCode Deprecated. Use language_codes instead. + * + * Optional. + * + * The language of the query. This is the BCP-47 language code, such as "en-US" + * or "sr-Latn". For more information, see [Tags for Identifying + * Languages](https://tools.ietf.org/html/bcp47). + * + * For CompletionType.JOB_TITLE type, only open jobs with the same language_code + * are returned. + * + * For CompletionType.COMPANY_NAME type, only companies having open jobs with + * the same language_code are returned. + * + * For CompletionType.COMBINED type, only open jobs with the same language_code + * or companies having open jobs with the same language_code are returned. + * + * The maximum number of allowed characters is 255. + * @opt_param string type Optional. + * + * The completion topic. The default is CompletionType.COMBINED. + * @opt_param string languageCodes Optional. + * + * The list of languages of the query. This is the BCP-47 language code, such as + * "en-US" or "sr-Latn". For more information, see [Tags for Identifying + * Languages](https://tools.ietf.org/html/bcp47). + * + * For CompletionType.JOB_TITLE type, only open jobs with the same + * language_codes are returned. + * + * For CompletionType.COMPANY_NAME type, only companies having open jobs with + * the same language_codes are returned. + * + * For CompletionType.COMBINED type, only open jobs with the same language_codes + * or companies having open jobs with the same language_codes are returned. + * + * The maximum number of allowed characters is 255. + * @opt_param string scope Optional. + * + * The scope of the completion. The defaults is CompletionScope.PUBLIC. + * @opt_param string companyName Optional. + * + * If provided, restricts completion to specified company. + * + * The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @return Google_Service_CloudTalentSolution_CompleteQueryResponse + */ + public function complete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('complete', array($params), "Google_Service_CloudTalentSolution_CompleteQueryResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsClientEvents.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsClientEvents.php new file mode 100644 index 00000000..9240dc47 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsClientEvents.php @@ -0,0 +1,46 @@ + + * $jobsService = new Google_Service_CloudTalentSolution(...); + * $clientEvents = $jobsService->clientEvents; + * + */ +class Google_Service_CloudTalentSolution_Resource_ProjectsClientEvents extends Google_Service_Resource +{ + /** + * Report events issued when end user interacts with customer's application that + * uses Cloud Talent Solution. You may inspect the created events in [self + * service tools](https://console.cloud.google.com/talent-solution/overview). + * [Learn more](https://cloud.google.com/talent-solution/job-search/docs + * /management-tools) about self service tools. (clientEvents.create) + * + * @param string $parent Parent project name. + * @param Google_Service_CloudTalentSolution_CreateClientEventRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_ClientEvent + */ + public function create($parent, Google_Service_CloudTalentSolution_CreateClientEventRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudTalentSolution_ClientEvent"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsCompanies.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsCompanies.php new file mode 100644 index 00000000..45a2b29e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsCompanies.php @@ -0,0 +1,141 @@ + + * $jobsService = new Google_Service_CloudTalentSolution(...); + * $companies = $jobsService->companies; + * + */ +class Google_Service_CloudTalentSolution_Resource_ProjectsCompanies extends Google_Service_Resource +{ + /** + * Creates a new company entity. (companies.create) + * + * @param string $parent Required. + * + * Resource name of the project under which the company is created. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param Google_Service_CloudTalentSolution_CreateCompanyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Company + */ + public function create($parent, Google_Service_CloudTalentSolution_CreateCompanyRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudTalentSolution_Company"); + } + /** + * Deletes specified company. Prerequisite: The company has no jobs associated + * with it. (companies.delete) + * + * @param string $name Required. + * + * The resource name of the company to be deleted. + * + * The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_JobsEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudTalentSolution_JobsEmpty"); + } + /** + * Retrieves specified company. (companies.get) + * + * @param string $name Required. + * + * The resource name of the company to be retrieved. + * + * The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Company + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudTalentSolution_Company"); + } + /** + * Lists all companies associated with the service account. + * (companies.listProjectsCompanies) + * + * @param string $parent Required. + * + * Resource name of the project under which the company is created. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. + * + * The starting indicator from which to return results. + * @opt_param int pageSize Optional. + * + * The maximum number of companies to be returned, at most 100. Default is 100 + * if a non-positive number is provided. + * @opt_param bool requireOpenJobs Optional. + * + * Set to true if the companies requested must have open jobs. + * + * Defaults to false. + * + * If true, at most page_size of companies are fetched, among which only those + * with open jobs are returned. + * @return Google_Service_CloudTalentSolution_ListCompaniesResponse + */ + public function listProjectsCompanies($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudTalentSolution_ListCompaniesResponse"); + } + /** + * Updates specified company. Company names can't be updated. To update a + * company name, delete the company and all jobs associated with it, and only + * then re-create them. (companies.patch) + * + * @param string $name Required during company update. + * + * The resource name for a company. This is generated by the service when a + * company is created. + * + * The format is "projects/{project_id}/companies/{company_id}", for example, + * "projects/api-test-project/companies/foo". + * @param Google_Service_CloudTalentSolution_UpdateCompanyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Company + */ + public function patch($name, Google_Service_CloudTalentSolution_UpdateCompanyRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudTalentSolution_Company"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsJobs.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsJobs.php new file mode 100644 index 00000000..08bf13e3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/Resource/ProjectsJobs.php @@ -0,0 +1,233 @@ + + * $jobsService = new Google_Service_CloudTalentSolution(...); + * $jobs = $jobsService->jobs; + * + */ +class Google_Service_CloudTalentSolution_Resource_ProjectsJobs extends Google_Service_Resource +{ + /** + * Deletes a list of Jobs by filter. (jobs.batchDelete) + * + * @param string $parent Required. + * + * The resource name of the project under which the job is created. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param Google_Service_CloudTalentSolution_BatchDeleteJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_JobsEmpty + */ + public function batchDelete($parent, Google_Service_CloudTalentSolution_BatchDeleteJobsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_CloudTalentSolution_JobsEmpty"); + } + /** + * Creates a new job. + * + * Typically, the job becomes searchable within 10 seconds, but it may take up + * to 5 minutes. (jobs.create) + * + * @param string $parent Required. + * + * The resource name of the project under which the job is created. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param Google_Service_CloudTalentSolution_CreateJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Job + */ + public function create($parent, Google_Service_CloudTalentSolution_CreateJobRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudTalentSolution_Job"); + } + /** + * Deletes the specified job. + * + * Typically, the job becomes unsearchable within 10 seconds, but it may take up + * to 5 minutes. (jobs.delete) + * + * @param string $name Required. + * + * The resource name of the job to be deleted. + * + * The format is "projects/{project_id}/jobs/{job_id}", for example, "projects + * /api-test-project/jobs/1234". + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_JobsEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudTalentSolution_JobsEmpty"); + } + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within + * the last 90 days. (jobs.get) + * + * @param string $name Required. + * + * The resource name of the job to retrieve. + * + * The format is "projects/{project_id}/jobs/{job_id}", for example, "projects + * /api-test-project/jobs/1234". + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Job + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_CloudTalentSolution_Job"); + } + /** + * Lists jobs by filter. (jobs.listProjectsJobs) + * + * @param string $parent Required. + * + * The resource name of the project under which the job is created. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param array $optParams Optional parameters. + * + * @opt_param string filter Required. + * + * The filter string specifies the jobs to be enumerated. + * + * Supported operator: =, AND + * + * The fields eligible for filtering are: + * + * * `companyName` (Required) * `requisitionId` (Optional) + * + * Sample Query: + * + * * companyName = "projects/api-test-project/companies/123" * companyName = + * "projects/api-test-project/companies/123" AND requisitionId = "req-1" + * @opt_param string jobView Optional. + * + * The desired job attributes returned for jobs in the search response. Defaults + * to JobView.JOB_VIEW_FULL if no value is specified. + * @opt_param string pageToken Optional. + * + * The starting point of a query result. + * @opt_param int pageSize Optional. + * + * The maximum number of jobs to be returned per page of results. + * + * If job_view is set to JobView.JOB_VIEW_ID_ONLY, the maximum allowed page size + * is 1000. Otherwise, the maximum allowed page size is 100. + * + * Default is 100 if empty or a number < 1 is specified. + * @return Google_Service_CloudTalentSolution_ListJobsResponse + */ + public function listProjectsJobs($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_CloudTalentSolution_ListJobsResponse"); + } + /** + * Updates specified job. + * + * Typically, updated contents become visible in search results within 10 + * seconds, but it may take up to 5 minutes. (jobs.patch) + * + * @param string $name Required during job update. + * + * The resource name for the job. This is generated by the service when a job is + * created. + * + * The format is "projects/{project_id}/jobs/{job_id}", for example, "projects + * /api-test-project/jobs/1234". + * + * Use of this field in job queries and API calls is preferred over the use of + * requisition_id since this value is unique. + * @param Google_Service_CloudTalentSolution_UpdateJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_Job + */ + public function patch($name, Google_Service_CloudTalentSolution_UpdateJobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_CloudTalentSolution_Job"); + } + /** + * Searches for jobs using the provided SearchJobsRequest. + * + * This call constrains the visibility of jobs present in the database, and only + * returns jobs that the caller has permission to search against. (jobs.search) + * + * @param string $parent Required. + * + * The resource name of the project to search within. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param Google_Service_CloudTalentSolution_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_SearchJobsResponse + */ + public function search($parent, Google_Service_CloudTalentSolution_SearchJobsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_CloudTalentSolution_SearchJobsResponse"); + } + /** + * Searches for jobs using the provided SearchJobsRequest. + * + * This API call is intended for the use case of targeting passive job seekers + * (for example, job seekers who have signed up to receive email alerts about + * potential job opportunities), and has different algorithmic adjustments that + * are targeted to passive job seekers. + * + * This call constrains the visibility of jobs present in the database, and only + * returns jobs the caller has permission to search against. + * (jobs.searchForAlert) + * + * @param string $parent Required. + * + * The resource name of the project to search within. + * + * The format is "projects/{project_id}", for example, "projects/api-test- + * project". + * @param Google_Service_CloudTalentSolution_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudTalentSolution_SearchJobsResponse + */ + public function searchForAlert($parent, Google_Service_CloudTalentSolution_SearchJobsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('searchForAlert', array($params), "Google_Service_CloudTalentSolution_SearchJobsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ResponseMetadata.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ResponseMetadata.php new file mode 100644 index 00000000..23b11a5f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/ResponseMetadata.php @@ -0,0 +1,30 @@ +requestId = $requestId; + } + public function getRequestId() + { + return $this->requestId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsRequest.php new file mode 100644 index 00000000..48d54f8f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsRequest.php @@ -0,0 +1,159 @@ +disableKeywordMatch = $disableKeywordMatch; + } + public function getDisableKeywordMatch() + { + return $this->disableKeywordMatch; + } + public function setDiversificationLevel($diversificationLevel) + { + $this->diversificationLevel = $diversificationLevel; + } + public function getDiversificationLevel() + { + return $this->diversificationLevel; + } + public function setEnableBroadening($enableBroadening) + { + $this->enableBroadening = $enableBroadening; + } + public function getEnableBroadening() + { + return $this->enableBroadening; + } + /** + * @param Google_Service_CloudTalentSolution_HistogramFacets + */ + public function setHistogramFacets(Google_Service_CloudTalentSolution_HistogramFacets $histogramFacets) + { + $this->histogramFacets = $histogramFacets; + } + /** + * @return Google_Service_CloudTalentSolution_HistogramFacets + */ + public function getHistogramFacets() + { + return $this->histogramFacets; + } + /** + * @param Google_Service_CloudTalentSolution_JobQuery + */ + public function setJobQuery(Google_Service_CloudTalentSolution_JobQuery $jobQuery) + { + $this->jobQuery = $jobQuery; + } + /** + * @return Google_Service_CloudTalentSolution_JobQuery + */ + public function getJobQuery() + { + return $this->jobQuery; + } + public function setJobView($jobView) + { + $this->jobView = $jobView; + } + public function getJobView() + { + return $this->jobView; + } + public function setOffset($offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + public function getOrderBy() + { + return $this->orderBy; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + /** + * @param Google_Service_CloudTalentSolution_RequestMetadata + */ + public function setRequestMetadata(Google_Service_CloudTalentSolution_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + /** + * @return Google_Service_CloudTalentSolution_RequestMetadata + */ + public function getRequestMetadata() + { + return $this->requestMetadata; + } + public function setRequirePreciseResultSize($requirePreciseResultSize) + { + $this->requirePreciseResultSize = $requirePreciseResultSize; + } + public function getRequirePreciseResultSize() + { + return $this->requirePreciseResultSize; + } + public function setSearchMode($searchMode) + { + $this->searchMode = $searchMode; + } + public function getSearchMode() + { + return $this->searchMode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsResponse.php new file mode 100644 index 00000000..d8b397b7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SearchJobsResponse.php @@ -0,0 +1,138 @@ +broadenedQueryJobsCount = $broadenedQueryJobsCount; + } + public function getBroadenedQueryJobsCount() + { + return $this->broadenedQueryJobsCount; + } + public function setEstimatedTotalSize($estimatedTotalSize) + { + $this->estimatedTotalSize = $estimatedTotalSize; + } + public function getEstimatedTotalSize() + { + return $this->estimatedTotalSize; + } + /** + * @param Google_Service_CloudTalentSolution_HistogramResults + */ + public function setHistogramResults(Google_Service_CloudTalentSolution_HistogramResults $histogramResults) + { + $this->histogramResults = $histogramResults; + } + /** + * @return Google_Service_CloudTalentSolution_HistogramResults + */ + public function getHistogramResults() + { + return $this->histogramResults; + } + /** + * @param Google_Service_CloudTalentSolution_Location + */ + public function setLocationFilters($locationFilters) + { + $this->locationFilters = $locationFilters; + } + /** + * @return Google_Service_CloudTalentSolution_Location + */ + public function getLocationFilters() + { + return $this->locationFilters; + } + /** + * @param Google_Service_CloudTalentSolution_MatchingJob + */ + public function setMatchingJobs($matchingJobs) + { + $this->matchingJobs = $matchingJobs; + } + /** + * @return Google_Service_CloudTalentSolution_MatchingJob + */ + public function getMatchingJobs() + { + return $this->matchingJobs; + } + /** + * @param Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function setMetadata(Google_Service_CloudTalentSolution_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_CloudTalentSolution_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_CloudTalentSolution_SpellingCorrection + */ + public function setSpellCorrection(Google_Service_CloudTalentSolution_SpellingCorrection $spellCorrection) + { + $this->spellCorrection = $spellCorrection; + } + /** + * @return Google_Service_CloudTalentSolution_SpellingCorrection + */ + public function getSpellCorrection() + { + return $this->spellCorrection; + } + public function setTotalSize($totalSize) + { + $this->totalSize = $totalSize; + } + public function getTotalSize() + { + return $this->totalSize; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SpellingCorrection.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SpellingCorrection.php new file mode 100644 index 00000000..bbc10a3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/SpellingCorrection.php @@ -0,0 +1,39 @@ +corrected = $corrected; + } + public function getCorrected() + { + return $this->corrected; + } + public function setCorrectedText($correctedText) + { + $this->correctedText = $correctedText; + } + public function getCorrectedText() + { + return $this->correctedText; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimeOfDay.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimeOfDay.php new file mode 100644 index 00000000..88da7f49 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimeOfDay.php @@ -0,0 +1,57 @@ +hours = $hours; + } + public function getHours() + { + return $this->hours; + } + public function setMinutes($minutes) + { + $this->minutes = $minutes; + } + public function getMinutes() + { + return $this->minutes; + } + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + public function getNanos() + { + return $this->nanos; + } + public function setSeconds($seconds) + { + $this->seconds = $seconds; + } + public function getSeconds() + { + return $this->seconds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimestampRange.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimestampRange.php new file mode 100644 index 00000000..211c7976 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/TimestampRange.php @@ -0,0 +1,39 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateCompanyRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateCompanyRequest.php new file mode 100644 index 00000000..323e0f7b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateCompanyRequest.php @@ -0,0 +1,46 @@ +company = $company; + } + /** + * @return Google_Service_CloudTalentSolution_Company + */ + public function getCompany() + { + return $this->company; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateJobRequest.php new file mode 100644 index 00000000..59e1eb2f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTalentSolution/UpdateJobRequest.php @@ -0,0 +1,46 @@ +job = $job; + } + /** + * @return Google_Service_CloudTalentSolution_Job + */ + public function getJob() + { + return $this->job; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks.php index df8b1947..51117203 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks.php @@ -16,15 +16,14 @@ */ /** - * Service definition for CloudTasks (v2beta2). + * Service definition for CloudTasks (v2beta3). * *- * Manages the execution of large numbers of distributed requests. Cloud Tasks - * is in Alpha.
+ * Manages the execution of large numbers of distributed requests. * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -49,7 +48,8 @@ class Google_Service_CloudTasks extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudtasks.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v2beta2'; + $this->batchPath = 'batch'; + $this->version = 'v2beta3'; $this->serviceName = 'cloudtasks'; $this->projects_locations = new Google_Service_CloudTasks_Resource_ProjectsLocations( @@ -59,7 +59,7 @@ class Google_Service_CloudTasks extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -69,7 +69,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'list' => array( - 'path' => 'v2beta2/{+name}/locations', + 'path' => 'v2beta3/{+name}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -101,7 +101,7 @@ class Google_Service_CloudTasks extends Google_Service array( 'methods' => array( 'create' => array( - 'path' => 'v2beta2/{+parent}/queues', + 'path' => 'v2beta3/{+parent}/queues', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -111,7 +111,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'delete' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -121,7 +121,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'get' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -131,7 +131,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'getIamPolicy' => array( - 'path' => 'v2beta2/{+resource}:getIamPolicy', + 'path' => 'v2beta3/{+resource}:getIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -141,7 +141,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'list' => array( - 'path' => 'v2beta2/{+parent}/queues', + 'path' => 'v2beta3/{+parent}/queues', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -163,7 +163,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'patch' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( @@ -177,7 +177,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'pause' => array( - 'path' => 'v2beta2/{+name}:pause', + 'path' => 'v2beta3/{+name}:pause', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -187,7 +187,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'purge' => array( - 'path' => 'v2beta2/{+name}:purge', + 'path' => 'v2beta3/{+name}:purge', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -197,7 +197,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'resume' => array( - 'path' => 'v2beta2/{+name}:resume', + 'path' => 'v2beta3/{+name}:resume', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -207,7 +207,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'setIamPolicy' => array( - 'path' => 'v2beta2/{+resource}:setIamPolicy', + 'path' => 'v2beta3/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -217,7 +217,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'testIamPermissions' => array( - 'path' => 'v2beta2/{+resource}:testIamPermissions', + 'path' => 'v2beta3/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( @@ -236,28 +236,8 @@ class Google_Service_CloudTasks extends Google_Service 'tasks', array( 'methods' => array( - 'acknowledge' => array( - 'path' => 'v2beta2/{+name}:acknowledge', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'cancelLease' => array( - 'path' => 'v2beta2/{+name}:cancelLease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'create' => array( - 'path' => 'v2beta2/{+parent}/tasks', + 'create' => array( + 'path' => 'v2beta3/{+parent}/tasks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -267,7 +247,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'delete' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -277,7 +257,7 @@ class Google_Service_CloudTasks extends Google_Service ), ), ),'get' => array( - 'path' => 'v2beta2/{+name}', + 'path' => 'v2beta3/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -290,18 +270,8 @@ class Google_Service_CloudTasks extends Google_Service 'type' => 'string', ), ), - ),'lease' => array( - 'path' => 'v2beta2/{+parent}/tasks:lease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'parent' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'list' => array( - 'path' => 'v2beta2/{+parent}/tasks', + 'path' => 'v2beta3/{+parent}/tasks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -313,10 +283,6 @@ class Google_Service_CloudTasks extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -326,18 +292,8 @@ class Google_Service_CloudTasks extends Google_Service 'type' => 'integer', ), ), - ),'renewLease' => array( - 'path' => 'v2beta2/{+name}:renewLease', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'run' => array( - 'path' => 'v2beta2/{+name}:run', + 'path' => 'v2beta3/{+name}:run', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpTarget.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpQueue.php similarity index 94% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpTarget.php rename to vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpQueue.php index a4e933d8..abc37213 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpTarget.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpQueue.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_CloudTasks_AppEngineHttpTarget extends Google_Model +class Google_Service_CloudTasks_AppEngineHttpQueue extends Google_Model { protected $appEngineRoutingOverrideType = 'Google_Service_CloudTasks_AppEngineRouting'; protected $appEngineRoutingOverrideDataType = ''; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpRequest.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpRequest.php index 390e56f7..c1f296ff 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AppEngineHttpRequest.php @@ -19,10 +19,10 @@ class Google_Service_CloudTasks_AppEngineHttpRequest extends Google_Model { protected $appEngineRoutingType = 'Google_Service_CloudTasks_AppEngineRouting'; protected $appEngineRoutingDataType = ''; + public $body; public $headers; public $httpMethod; - public $payload; - public $relativeUrl; + public $relativeUri; /** * @param Google_Service_CloudTasks_AppEngineRouting @@ -38,6 +38,14 @@ class Google_Service_CloudTasks_AppEngineHttpRequest extends Google_Model { return $this->appEngineRouting; } + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } public function setHeaders($headers) { $this->headers = $headers; @@ -54,20 +62,12 @@ class Google_Service_CloudTasks_AppEngineHttpRequest extends Google_Model { return $this->httpMethod; } - public function setPayload($payload) + public function setRelativeUri($relativeUri) { - $this->payload = $payload; + $this->relativeUri = $relativeUri; } - public function getPayload() + public function getRelativeUri() { - return $this->payload; - } - public function setRelativeUrl($relativeUrl) - { - $this->relativeUrl = $relativeUrl; - } - public function getRelativeUrl() - { - return $this->relativeUrl; + return $this->relativeUri; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AttemptStatus.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Attempt.php similarity index 96% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/AttemptStatus.php rename to vendor/google/apiclient-services/src/Google/Service/CloudTasks/Attempt.php index 1138e49b..82da1f7d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/AttemptStatus.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Attempt.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_CloudTasks_AttemptStatus extends Google_Model +class Google_Service_CloudTasks_Attempt extends Google_Model { public $dispatchTime; protected $responseStatusType = 'Google_Service_CloudTasks_Status'; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Binding.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Binding.php index cd5a2afe..17205e8d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Binding.php @@ -18,9 +18,25 @@ class Google_Service_CloudTasks_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_CloudTasks_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_CloudTasks_Expr + */ + public function setCondition(Google_Service_CloudTasks_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_CloudTasks_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Expr.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Expr.php new file mode 100644 index 00000000..c63e5542 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Queue.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Queue.php index a3a0bf90..25c258a6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Queue.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Queue.php @@ -17,11 +17,9 @@ class Google_Service_CloudTasks_Queue extends Google_Model { - protected $appEngineHttpTargetType = 'Google_Service_CloudTasks_AppEngineHttpTarget'; - protected $appEngineHttpTargetDataType = ''; + protected $appEngineHttpQueueType = 'Google_Service_CloudTasks_AppEngineHttpQueue'; + protected $appEngineHttpQueueDataType = ''; public $name; - protected $pullTargetType = 'Google_Service_CloudTasks_PullTarget'; - protected $pullTargetDataType = ''; public $purgeTime; protected $rateLimitsType = 'Google_Service_CloudTasks_RateLimits'; protected $rateLimitsDataType = ''; @@ -30,18 +28,18 @@ class Google_Service_CloudTasks_Queue extends Google_Model public $state; /** - * @param Google_Service_CloudTasks_AppEngineHttpTarget + * @param Google_Service_CloudTasks_AppEngineHttpQueue */ - public function setAppEngineHttpTarget(Google_Service_CloudTasks_AppEngineHttpTarget $appEngineHttpTarget) + public function setAppEngineHttpQueue(Google_Service_CloudTasks_AppEngineHttpQueue $appEngineHttpQueue) { - $this->appEngineHttpTarget = $appEngineHttpTarget; + $this->appEngineHttpQueue = $appEngineHttpQueue; } /** - * @return Google_Service_CloudTasks_AppEngineHttpTarget + * @return Google_Service_CloudTasks_AppEngineHttpQueue */ - public function getAppEngineHttpTarget() + public function getAppEngineHttpQueue() { - return $this->appEngineHttpTarget; + return $this->appEngineHttpQueue; } public function setName($name) { @@ -51,20 +49,6 @@ class Google_Service_CloudTasks_Queue extends Google_Model { return $this->name; } - /** - * @param Google_Service_CloudTasks_PullTarget - */ - public function setPullTarget(Google_Service_CloudTasks_PullTarget $pullTarget) - { - $this->pullTarget = $pullTarget; - } - /** - * @return Google_Service_CloudTasks_PullTarget - */ - public function getPullTarget() - { - return $this->pullTarget; - } public function setPurgeTime($purgeTime) { $this->purgeTime = $purgeTime; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RateLimits.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RateLimits.php index de9dcafc..7a19a10d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RateLimits.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RateLimits.php @@ -18,8 +18,8 @@ class Google_Service_CloudTasks_RateLimits extends Google_Model { public $maxBurstSize; - public $maxConcurrentTasks; - public $maxTasksDispatchedPerSecond; + public $maxConcurrentDispatches; + public $maxDispatchesPerSecond; public function setMaxBurstSize($maxBurstSize) { @@ -29,20 +29,20 @@ class Google_Service_CloudTasks_RateLimits extends Google_Model { return $this->maxBurstSize; } - public function setMaxConcurrentTasks($maxConcurrentTasks) + public function setMaxConcurrentDispatches($maxConcurrentDispatches) { - $this->maxConcurrentTasks = $maxConcurrentTasks; + $this->maxConcurrentDispatches = $maxConcurrentDispatches; } - public function getMaxConcurrentTasks() + public function getMaxConcurrentDispatches() { - return $this->maxConcurrentTasks; + return $this->maxConcurrentDispatches; } - public function setMaxTasksDispatchedPerSecond($maxTasksDispatchedPerSecond) + public function setMaxDispatchesPerSecond($maxDispatchesPerSecond) { - $this->maxTasksDispatchedPerSecond = $maxTasksDispatchedPerSecond; + $this->maxDispatchesPerSecond = $maxDispatchesPerSecond; } - public function getMaxTasksDispatchedPerSecond() + public function getMaxDispatchesPerSecond() { - return $this->maxTasksDispatchedPerSecond; + return $this->maxDispatchesPerSecond; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueues.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueues.php index ee170c91..a7fcd5cc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueues.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueues.php @@ -34,8 +34,9 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * * WARNING: Using this method may have unintended side effects if you are using * an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read - * [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) - * before using this method. (queues.create) + * [Overview of Queue Management and + * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this + * method. (queues.create) * * @param string $parent Required. * @@ -64,8 +65,9 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * * WARNING: Using this method may have unintended side effects if you are using * an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read - * [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) - * before using this method. (queues.delete) + * [Overview of Queue Management and + * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this + * method. (queues.delete) * * @param string $name Required. * @@ -100,8 +102,9 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * Gets the access control policy for a Queue. Returns an empty policy if the * resource exists and does not have a policy set. * - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following [Google + * IAM](https://cloud.google.com/iam) permission on the specified resource + * parent: * * * `cloudtasks.queues.getIamPolicy` (queues.getIamPolicy) * @@ -133,11 +136,11 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * Any Queue field can be used as a filter and several operators as supported. * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as * described in [Stackdriver's Advanced Logs - * Filters](/logging/docs/view/advanced_filters). + * Filters](https://cloud.google.com/logging/docs/view/advanced_filters). * - * Sample filter "app_engine_http_target: *". + * Sample filter "state: PAUSED". * - * Note that using filters might cause fewer queues than the requested_page size + * Note that using filters might cause fewer queues than the requested page_size * to be returned. * @opt_param string pageToken A token identifying the page of results to * return. @@ -172,26 +175,27 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * * WARNING: Using this method may have unintended side effects if you are using * an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read - * [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml) - * before using this method. (queues.patch) + * [Overview of Queue Management and + * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this + * method. (queues.patch) * - * @param string $name The queue name. + * @param string $name Caller-specified and required in CreateQueue, after which + * it becomes output only. + * + * The queue name. * * The queue name must have the following format: * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens * (-), colons (:), or periods (.). For more information, see [Identifying - * projects](/resource-manager/docs/creating-managing- + * projects](https://cloud.google.com/resource-manager/docs/creating-managing- * projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the * queue's location. The list of available locations can be obtained by * calling ListLocations. For more information, see * https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters * ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 * characters. - * - * Caller-specified and required in CreateQueue, after which it becomes output - * only. * @param Google_Service_CloudTasks_Queue $postBody * @param array $optParams Optional parameters. * @@ -260,8 +264,9 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * * WARNING: Resuming many high-QPS queues at the same time can lead to target * overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern - * described in [Managing Cloud Tasks Scaling Risks](/cloud-tasks/pdfs/managing- - * cloud-tasks-scaling-risks-2017-06-05.pdf). (queues.resume) + * described in [Managing Cloud Tasks Scaling + * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + * (queues.resume) * * @param string $name Required. * @@ -283,8 +288,9 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueues extends Google_ * Note: The Cloud Console does not check queue-level IAM permissions yet. * Project-level permissions are required to use the Cloud Console. * - * Authorization requires the following [Google IAM](/iam) permission on the - * specified resource parent: + * Authorization requires the following [Google + * IAM](https://cloud.google.com/iam) permission on the specified resource + * parent: * * * `cloudtasks.queues.setIamPolicy` (queues.setIamPolicy) * diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueuesTasks.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueuesTasks.php index 7d831e32..33344d8a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueuesTasks.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Resource/ProjectsLocationsQueuesTasks.php @@ -25,72 +25,12 @@ */ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Google_Service_Resource { - /** - * Acknowledges a pull task. - * - * The worker, that is, the entity that leased this task must call this method - * to indicate that the work associated with the task has finished. - * - * The worker must acknowledge a task within the lease_duration or the lease - * will expire and the task will become available to be leased again. After the - * task is acknowledged, it will not be returned by a later LeaseTasks, GetTask, - * or ListTasks. - * - * To acknowledge multiple tasks at the same time, use [HTTP - * batching](/storage/docs/json_api/v1/how-tos/batch) or the batching - * documentation for your client library, for example - * https://developers.google.com/api-client-library/python/guide/batch. - * (tasks.acknowledge) - * - * @param string $name Required. - * - * The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param Google_Service_CloudTasks_AcknowledgeTaskRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudTasks_CloudtasksEmpty - */ - public function acknowledge($name, Google_Service_CloudTasks_AcknowledgeTaskRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params), "Google_Service_CloudTasks_CloudtasksEmpty"); - } - /** - * Cancel a pull task's lease. - * - * The worker can use this method to cancel a task's lease by setting its - * schedule_time to now. This will make the task available to be leased to the - * next caller of LeaseTasks. (tasks.cancelLease) - * - * @param string $name Required. - * - * The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param Google_Service_CloudTasks_CancelLeaseRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudTasks_Task - */ - public function cancelLease($name, Google_Service_CloudTasks_CancelLeaseRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('cancelLease', array($params), "Google_Service_CloudTasks_Task"); - } /** * Creates a task and adds it to a queue. * - * To add multiple tasks at the same time, use [HTTP - * batching](/storage/docs/json_api/v1/how-tos/batch) or the batching - * documentation for your client library, for example - * https://developers.google.com/api-client-library/python/guide/batch. - * * Tasks cannot be updated after creation; there is no UpdateTask command. * - * * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget), - * the maximum task size is 100KB. * For [pull - * queues](google.cloud.tasks.v2beta2.PullTarget), this the maximum task size - * is 1MB. (tasks.create) + * * For App Engine queues, the maximum task size is 100KB. (tasks.create) * * @param string $parent Required. * @@ -112,8 +52,7 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Go * Deletes a task. * * A task can be deleted if it is scheduled or dispatched. A task cannot be - * deleted if it has completed successfully or permanently failed. - * (tasks.delete) + * deleted if it has executed successfully or permanently failed. (tasks.delete) * * @param string $name Required. * @@ -146,7 +85,7 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Go * data that it contains. * * Authorization for FULL requires `cloudtasks.tasks.fullView` [Google - * IAM](/iam/) permission on the Task resource. + * IAM](https://cloud.google.com/iam/) permission on the Task resource. * @return Google_Service_CloudTasks_Task */ public function get($name, $optParams = array()) @@ -155,42 +94,15 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Go $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_CloudTasks_Task"); } - /** - * Leases tasks from a pull queue for lease_duration. - * - * This method is invoked by the worker to obtain a lease. The worker must - * acknowledge the task via AcknowledgeTask after they have performed the work - * associated with the task. - * - * The payload is intended to store data that the worker needs to perform the - * work associated with the task. To return the payloads in the response, set - * response_view to FULL. - * - * A maximum of 10 qps of LeaseTasks requests are allowed per queue. - * RESOURCE_EXHAUSTED is returned when this limit is exceeded. - * RESOURCE_EXHAUSTED is also returned when max_tasks_dispatched_per_second is - * exceeded. (tasks.lease) - * - * @param string $parent Required. - * - * The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @param Google_Service_CloudTasks_LeaseTasksRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudTasks_LeaseTasksResponse - */ - public function lease($parent, Google_Service_CloudTasks_LeaseTasksRequest $postBody, $optParams = array()) - { - $params = array('parent' => $parent, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('lease', array($params), "Google_Service_CloudTasks_LeaseTasksResponse"); - } /** * Lists the tasks in a queue. * * By default, only the BASIC view is retrieved due to performance * considerations; response_view controls the subset of information which is - * returned. (tasks.listProjectsLocationsQueuesTasks) + * returned. + * + * The tasks may be returned in any order. The ordering may change at any time. + * (tasks.listProjectsLocationsQueuesTasks) * * @param string $parent Required. * @@ -207,11 +119,7 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Go * data that it contains. * * Authorization for FULL requires `cloudtasks.tasks.fullView` [Google - * IAM](/iam/) permission on the Task resource. - * @opt_param string orderBy Sort order used for the query. The only fields - * supported for sorting are `schedule_time` and `pull_message.tag`. All results - * will be returned in approximately ascending order. The default ordering is by - * `schedule_time`. + * IAM](https://cloud.google.com/iam/) permission on the Task resource. * @opt_param string pageToken A token identifying the page of results to * return. * @@ -234,51 +142,27 @@ class Google_Service_CloudTasks_Resource_ProjectsLocationsQueuesTasks extends Go $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudTasks_ListTasksResponse"); } - /** - * Renew the current lease of a pull task. - * - * The worker can use this method to extend the lease by a new duration, - * starting from now. The new task lease will be returned in the task's - * schedule_time. (tasks.renewLease) - * - * @param string $name Required. - * - * The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param Google_Service_CloudTasks_RenewLeaseRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_CloudTasks_Task - */ - public function renewLease($name, Google_Service_CloudTasks_RenewLeaseRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('renewLease', array($params), "Google_Service_CloudTasks_Task"); - } /** * Forces a task to run now. * + * When this method is called, Cloud Tasks will dispatch the task, even if the + * task is already running, the queue has reached its RateLimits or is PAUSED. + * * This command is meant to be used for manual debugging. For example, RunTask * can be used to retry a failed task after a fix has been made or to manually * force a task to be dispatched now. * - * When this method is called, Cloud Tasks will dispatch the task to its target, - * even if the queue is PAUSED. - * * The dispatched task is returned. That is, the task that is returned contains * the status after the task is dispatched but before the task is received by * its target. * - * If Cloud Tasks receives a successful response from the task's handler, then + * If Cloud Tasks receives a successful response from the task's target, then * the task will be deleted; otherwise the task's schedule_time will be reset to - * the time that RunTask was called plus the retry delay specified in the queue - * and task's RetryConfig. + * the time that RunTask was called plus the retry delay specified in the + * queue's RetryConfig. * * RunTask returns NOT_FOUND when it is called on a task that has already - * succeeded or permanently failed. FAILED_PRECONDITION is returned when RunTask - * is called on task that is dispatched or already running. - * - * RunTask cannot be called on pull tasks. (tasks.run) + * succeeded or permanently failed. (tasks.run) * * @param string $name Required. * diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RetryConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RetryConfig.php index 28e282d7..7d2e237b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RetryConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RetryConfig.php @@ -22,7 +22,6 @@ class Google_Service_CloudTasks_RetryConfig extends Google_Model public $maxDoublings; public $maxRetryDuration; public $minBackoff; - public $unlimitedAttempts; public function setMaxAttempts($maxAttempts) { @@ -64,12 +63,4 @@ class Google_Service_CloudTasks_RetryConfig extends Google_Model { return $this->minBackoff; } - public function setUnlimitedAttempts($unlimitedAttempts) - { - $this->unlimitedAttempts = $unlimitedAttempts; - } - public function getUnlimitedAttempts() - { - return $this->unlimitedAttempts; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Task.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Task.php index 31da0219..8869a316 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Task.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/Task.php @@ -20,12 +20,15 @@ class Google_Service_CloudTasks_Task extends Google_Model protected $appEngineHttpRequestType = 'Google_Service_CloudTasks_AppEngineHttpRequest'; protected $appEngineHttpRequestDataType = ''; public $createTime; + public $dispatchCount; + public $dispatchDeadline; + protected $firstAttemptType = 'Google_Service_CloudTasks_Attempt'; + protected $firstAttemptDataType = ''; + protected $lastAttemptType = 'Google_Service_CloudTasks_Attempt'; + protected $lastAttemptDataType = ''; public $name; - protected $pullMessageType = 'Google_Service_CloudTasks_PullMessage'; - protected $pullMessageDataType = ''; + public $responseCount; public $scheduleTime; - protected $statusType = 'Google_Service_CloudTasks_TaskStatus'; - protected $statusDataType = ''; public $view; /** @@ -50,6 +53,50 @@ class Google_Service_CloudTasks_Task extends Google_Model { return $this->createTime; } + public function setDispatchCount($dispatchCount) + { + $this->dispatchCount = $dispatchCount; + } + public function getDispatchCount() + { + return $this->dispatchCount; + } + public function setDispatchDeadline($dispatchDeadline) + { + $this->dispatchDeadline = $dispatchDeadline; + } + public function getDispatchDeadline() + { + return $this->dispatchDeadline; + } + /** + * @param Google_Service_CloudTasks_Attempt + */ + public function setFirstAttempt(Google_Service_CloudTasks_Attempt $firstAttempt) + { + $this->firstAttempt = $firstAttempt; + } + /** + * @return Google_Service_CloudTasks_Attempt + */ + public function getFirstAttempt() + { + return $this->firstAttempt; + } + /** + * @param Google_Service_CloudTasks_Attempt + */ + public function setLastAttempt(Google_Service_CloudTasks_Attempt $lastAttempt) + { + $this->lastAttempt = $lastAttempt; + } + /** + * @return Google_Service_CloudTasks_Attempt + */ + public function getLastAttempt() + { + return $this->lastAttempt; + } public function setName($name) { $this->name = $name; @@ -58,19 +105,13 @@ class Google_Service_CloudTasks_Task extends Google_Model { return $this->name; } - /** - * @param Google_Service_CloudTasks_PullMessage - */ - public function setPullMessage(Google_Service_CloudTasks_PullMessage $pullMessage) + public function setResponseCount($responseCount) { - $this->pullMessage = $pullMessage; + $this->responseCount = $responseCount; } - /** - * @return Google_Service_CloudTasks_PullMessage - */ - public function getPullMessage() + public function getResponseCount() { - return $this->pullMessage; + return $this->responseCount; } public function setScheduleTime($scheduleTime) { @@ -80,20 +121,6 @@ class Google_Service_CloudTasks_Task extends Google_Model { return $this->scheduleTime; } - /** - * @param Google_Service_CloudTasks_TaskStatus - */ - public function setStatus(Google_Service_CloudTasks_TaskStatus $status) - { - $this->status = $status; - } - /** - * @return Google_Service_CloudTasks_TaskStatus - */ - public function getStatus() - { - return $this->status; - } public function setView($view) { $this->view = $view; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/TaskStatus.php b/vendor/google/apiclient-services/src/Google/Service/CloudTasks/TaskStatus.php deleted file mode 100644 index 63ccece1..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/TaskStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -attemptDispatchCount = $attemptDispatchCount; - } - public function getAttemptDispatchCount() - { - return $this->attemptDispatchCount; - } - public function setAttemptResponseCount($attemptResponseCount) - { - $this->attemptResponseCount = $attemptResponseCount; - } - public function getAttemptResponseCount() - { - return $this->attemptResponseCount; - } - /** - * @param Google_Service_CloudTasks_AttemptStatus - */ - public function setFirstAttemptStatus(Google_Service_CloudTasks_AttemptStatus $firstAttemptStatus) - { - $this->firstAttemptStatus = $firstAttemptStatus; - } - /** - * @return Google_Service_CloudTasks_AttemptStatus - */ - public function getFirstAttemptStatus() - { - return $this->firstAttemptStatus; - } - /** - * @param Google_Service_CloudTasks_AttemptStatus - */ - public function setLastAttemptStatus(Google_Service_CloudTasks_AttemptStatus $lastAttemptStatus) - { - $this->lastAttemptStatus = $lastAttemptStatus; - } - /** - * @return Google_Service_CloudTasks_AttemptStatus - */ - public function getLastAttemptStatus() - { - return $this->lastAttemptStatus; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTrace.php b/vendor/google/apiclient-services/src/Google/Service/CloudTrace.php index fc9b5f09..843be1c3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTrace.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudTrace.php @@ -21,7 +21,9 @@ ** Sends application trace data to Stackdriver Trace for viewing. Trace data is * collected for all App Engine applications by default. Trace data from other - * applications can be provided using this API.
+ * applications can be provided using this API. This library is used to interact + * with the Trace API directly. If you are looking to instrument your + * application for Stackdriver Trace, we recommend using OpenCensus. * ** For more information about this service, see the API @@ -52,6 +54,7 @@ class Google_Service_CloudTrace extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudtrace.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'cloudtrace'; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence.php index f1a5838c..10209f53 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence.php @@ -19,7 +19,9 @@ * Service definition for CloudVideoIntelligence (v1). * *
- * Cloud Video Intelligence API.
+ * Detects objects, explicit content, and scene changes in videos. It also + * specifies the region for annotation and transcribes speech to text. Supports + * both asynchronous API and streaming API. * ** For more information about this service, see the API @@ -48,6 +50,7 @@ class Google_Service_CloudVideoIntelligence extends Google_Service parent::__construct($client); $this->rootUrl = 'https://videointelligence.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'videointelligence'; @@ -91,6 +94,10 @@ class Google_Service_CloudVideoIntelligence extends Google_Service 'path' => 'v1/operations', 'httpMethod' => 'GET', 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'name' => array( 'location' => 'query', 'type' => 'string', @@ -103,10 +110,6 @@ class Google_Service_CloudVideoIntelligence extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4ArgsSecondaryRects.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingBox.php similarity index 70% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4ArgsSecondaryRects.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingBox.php index 5f4da460..f768a845 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4ArgsSecondaryRects.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingBox.php @@ -15,20 +15,20 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRects extends Google_Model +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingBox extends Google_Model { - public $height; + public $bottom; public $left; + public $right; public $top; - public $width; - public function setHeight($height) + public function setBottom($bottom) { - $this->height = $height; + $this->bottom = $bottom; } - public function getHeight() + public function getBottom() { - return $this->height; + return $this->bottom; } public function setLeft($left) { @@ -38,6 +38,14 @@ class Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRect { return $this->left; } + public function setRight($right) + { + $this->right = $right; + } + public function getRight() + { + return $this->right; + } public function setTop($top) { $this->top = $top; @@ -46,12 +54,4 @@ class Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRect { return $this->top; } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingPoly.php new file mode 100644 index 00000000..0ee791ca --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedBoundingPoly.php @@ -0,0 +1,38 @@ +vertices = $vertices; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedVertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedVertex.php new file mode 100644 index 00000000..aa00d40f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingAnnotation.php new file mode 100644 index 00000000..1a125fcb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingAnnotation.php @@ -0,0 +1,88 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } + public function setTrackId($trackId) + { + $this->trackId = $trackId; + } + public function getTrackId() + { + return $this->trackId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingFrame.php new file mode 100644 index 00000000..ce7273bd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1ObjectTrackingFrame.php @@ -0,0 +1,46 @@ +normalizedBoundingBox = $normalizedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingBox + */ + public function getNormalizedBoundingBox() + { + return $this->normalizedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechContext.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechContext.php new file mode 100644 index 00000000..473eda4d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechContext.php @@ -0,0 +1,31 @@ +phrases = $phrases; + } + public function getPhrases() + { + return $this->phrases; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechRecognitionAlternative.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechRecognitionAlternative.php new file mode 100644 index 00000000..3720f1c9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechRecognitionAlternative.php @@ -0,0 +1,56 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTranscript($transcript) + { + $this->transcript = $transcript; + } + public function getTranscript() + { + return $this->transcript; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1WordInfo + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1WordInfo + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscription.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscription.php new file mode 100644 index 00000000..95240ded --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscription.php @@ -0,0 +1,47 @@ +alternatives = $alternatives; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechRecognitionAlternative + */ + public function getAlternatives() + { + return $this->alternatives; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.php new file mode 100644 index 00000000..a5612dd0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.php @@ -0,0 +1,110 @@ +audioTracks = $audioTracks; + } + public function getAudioTracks() + { + return $this->audioTracks; + } + public function setDiarizationSpeakerCount($diarizationSpeakerCount) + { + $this->diarizationSpeakerCount = $diarizationSpeakerCount; + } + public function getDiarizationSpeakerCount() + { + return $this->diarizationSpeakerCount; + } + public function setEnableAutomaticPunctuation($enableAutomaticPunctuation) + { + $this->enableAutomaticPunctuation = $enableAutomaticPunctuation; + } + public function getEnableAutomaticPunctuation() + { + return $this->enableAutomaticPunctuation; + } + public function setEnableSpeakerDiarization($enableSpeakerDiarization) + { + $this->enableSpeakerDiarization = $enableSpeakerDiarization; + } + public function getEnableSpeakerDiarization() + { + return $this->enableSpeakerDiarization; + } + public function setEnableWordConfidence($enableWordConfidence) + { + $this->enableWordConfidence = $enableWordConfidence; + } + public function getEnableWordConfidence() + { + return $this->enableWordConfidence; + } + public function setFilterProfanity($filterProfanity) + { + $this->filterProfanity = $filterProfanity; + } + public function getFilterProfanity() + { + return $this->filterProfanity; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMaxAlternatives($maxAlternatives) + { + $this->maxAlternatives = $maxAlternatives; + } + public function getMaxAlternatives() + { + return $this->maxAlternatives; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechContext + */ + public function setSpeechContexts($speechContexts) + { + $this->speechContexts = $speechContexts; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechContext + */ + public function getSpeechContexts() + { + return $this->speechContexts; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextAnnotation.php similarity index 61% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextAnnotation.php index 35c0cb10..c711d768 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextAnnotation.php @@ -15,40 +15,33 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextAnnotation extends Google_Collection { protected $collection_key = 'segments'; - protected $framesType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame'; - protected $framesDataType = 'array'; - protected $segmentsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceSegment'; + protected $segmentsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextSegment'; protected $segmentsDataType = 'array'; + public $text; /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame - */ - public function setFrames($frames) - { - $this->frames = $frames; - } - /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame - */ - public function getFrames() - { - return $this->frames; - } - /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceSegment + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextSegment */ public function setSegments($segments) { $this->segments = $segments; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceSegment + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextSegment */ public function getSegments() { return $this->segments; } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextDetectionConfig.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextDetectionConfig.php new file mode 100644 index 00000000..9f03f9dc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextDetectionConfig.php @@ -0,0 +1,31 @@ +languageHints = $languageHints; + } + public function getLanguageHints() + { + return $this->languageHints; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextFrame.php similarity index 63% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextFrame.php index 03cd15c0..3244407f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextFrame.php @@ -15,26 +15,25 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextFrame extends Google_Model { - protected $collection_key = 'attributes'; - protected $attributesType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute'; - protected $attributesDataType = 'array'; + protected $rotatedBoundingBoxType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingPoly'; + protected $rotatedBoundingBoxDataType = ''; public $timeOffset; /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingPoly */ - public function setAttributes($attributes) + public function setRotatedBoundingBox(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingPoly $rotatedBoundingBox) { - $this->attributes = $attributes; + $this->rotatedBoundingBox = $rotatedBoundingBox; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingPoly */ - public function getAttributes() + public function getRotatedBoundingBox() { - return $this->attributes; + return $this->rotatedBoundingBox; } public function setTimeOffset($timeOffset) { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextSegment.php new file mode 100644 index 00000000..6d4d8b42 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1TextSegment.php @@ -0,0 +1,63 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoAnnotationResults.php index 2c1a6e22..f695e853 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoAnnotationResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoAnnotationResults.php @@ -17,7 +17,7 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoAnnotationResults extends Google_Collection { - protected $collection_key = 'shotLabelAnnotations'; + protected $collection_key = 'textAnnotations'; protected $errorType = 'Google_Service_CloudVideoIntelligence_GoogleRpcStatus'; protected $errorDataType = ''; protected $explicitAnnotationType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExplicitContentAnnotation'; @@ -25,12 +25,18 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoA protected $frameLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation'; protected $frameLabelAnnotationsDataType = 'array'; public $inputUri; + protected $objectAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingAnnotation'; + protected $objectAnnotationsDataType = 'array'; protected $segmentLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation'; protected $segmentLabelAnnotationsDataType = 'array'; protected $shotAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment'; protected $shotAnnotationsDataType = 'array'; protected $shotLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation'; protected $shotLabelAnnotationsDataType = 'array'; + protected $speechTranscriptionsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscription'; + protected $speechTranscriptionsDataType = 'array'; + protected $textAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextAnnotation'; + protected $textAnnotationsDataType = 'array'; /** * @param Google_Service_CloudVideoIntelligence_GoogleRpcStatus @@ -82,6 +88,20 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoA { return $this->inputUri; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingAnnotation + */ + public function setObjectAnnotations($objectAnnotations) + { + $this->objectAnnotations = $objectAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingAnnotation + */ + public function getObjectAnnotations() + { + return $this->objectAnnotations; + } /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation */ @@ -124,4 +144,32 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoA { return $this->shotLabelAnnotations; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscription + */ + public function setSpeechTranscriptions($speechTranscriptions) + { + $this->speechTranscriptions = $speechTranscriptions; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscription + */ + public function getSpeechTranscriptions() + { + return $this->speechTranscriptions; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoContext.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoContext.php index 97256f32..9b68b766 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoContext.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1VideoContext.php @@ -26,6 +26,10 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoC protected $segmentsDataType = 'array'; protected $shotChangeDetectionConfigType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ShotChangeDetectionConfig'; protected $shotChangeDetectionConfigDataType = ''; + protected $speechTranscriptionConfigType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscriptionConfig'; + protected $speechTranscriptionConfigDataType = ''; + protected $textDetectionConfigType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextDetectionConfig'; + protected $textDetectionConfigDataType = ''; /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig @@ -83,4 +87,32 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoC { return $this->shotChangeDetectionConfig; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscriptionConfig + */ + public function setSpeechTranscriptionConfig(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscriptionConfig $speechTranscriptionConfig) + { + $this->speechTranscriptionConfig = $speechTranscriptionConfig; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscriptionConfig + */ + public function getSpeechTranscriptionConfig() + { + return $this->speechTranscriptionConfig; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextDetectionConfig + */ + public function setTextDetectionConfig(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextDetectionConfig $textDetectionConfig) + { + $this->textDetectionConfig = $textDetectionConfig; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextDetectionConfig + */ + public function getTextDetectionConfig() + { + return $this->textDetectionConfig; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1WordInfo.php new file mode 100644 index 00000000..ac20f76c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1WordInfo.php @@ -0,0 +1,66 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setSpeakerTag($speakerTag) + { + $this->speakerTag = $speakerTag; + } + public function getSpeakerTag() + { + return $this->speakerTag; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWord($word) + { + $this->word = $word; + } + public function getWord() + { + return $this->word; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox.php new file mode 100644 index 00000000..426e8fda --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox.php @@ -0,0 +1,57 @@ +bottom = $bottom; + } + public function getBottom() + { + return $this->bottom; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setRight($right) + { + $this->right = $right; + } + public function getRight() + { + return $this->right; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly.php new file mode 100644 index 00000000..82467447 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly.php @@ -0,0 +1,38 @@ +vertices = $vertices; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedVertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedVertex.php new file mode 100644 index 00000000..79837ee7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation.php new file mode 100644 index 00000000..d6c669b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation.php @@ -0,0 +1,88 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment + */ + public function getSegment() + { + return $this->segment; + } + public function setTrackId($trackId) + { + $this->trackId = $trackId; + } + public function getTrackId() + { + return $this->trackId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame.php new file mode 100644 index 00000000..649049d1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame.php @@ -0,0 +1,46 @@ +normalizedBoundingBox = $normalizedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox + */ + public function getNormalizedBoundingBox() + { + return $this->normalizedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative.php new file mode 100644 index 00000000..d92210da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative.php @@ -0,0 +1,56 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTranscript($transcript) + { + $this->transcript = $transcript; + } + public function getTranscript() + { + return $this->transcript; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2WordInfo + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2WordInfo + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechTranscription.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechTranscription.php new file mode 100644 index 00000000..a7e62e78 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2SpeechTranscription.php @@ -0,0 +1,47 @@ +alternatives = $alternatives; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative + */ + public function getAlternatives() + { + return $this->alternatives; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextAnnotation.php new file mode 100644 index 00000000..a13887c5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextAnnotation.php @@ -0,0 +1,47 @@ +segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextSegment + */ + public function getSegments() + { + return $this->segments; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextFrame.php new file mode 100644 index 00000000..c328ddef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextFrame.php @@ -0,0 +1,46 @@ +rotatedBoundingBox = $rotatedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly + */ + public function getRotatedBoundingBox() + { + return $this->rotatedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextSegment.php new file mode 100644 index 00000000..864f25ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2TextSegment.php @@ -0,0 +1,63 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment + */ + public function getSegment() + { + return $this->segment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.php index ae06e081..8772b256 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.php @@ -17,7 +17,7 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoAnnotationResults extends Google_Collection { - protected $collection_key = 'shotLabelAnnotations'; + protected $collection_key = 'textAnnotations'; protected $errorType = 'Google_Service_CloudVideoIntelligence_GoogleRpcStatus'; protected $errorDataType = ''; protected $explicitAnnotationType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation'; @@ -25,12 +25,18 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2V protected $frameLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation'; protected $frameLabelAnnotationsDataType = 'array'; public $inputUri; + protected $objectAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation'; + protected $objectAnnotationsDataType = 'array'; protected $segmentLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation'; protected $segmentLabelAnnotationsDataType = 'array'; protected $shotAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment'; protected $shotAnnotationsDataType = 'array'; protected $shotLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation'; protected $shotLabelAnnotationsDataType = 'array'; + protected $speechTranscriptionsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechTranscription'; + protected $speechTranscriptionsDataType = 'array'; + protected $textAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextAnnotation'; + protected $textAnnotationsDataType = 'array'; /** * @param Google_Service_CloudVideoIntelligence_GoogleRpcStatus @@ -82,6 +88,20 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2V { return $this->inputUri; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation + */ + public function setObjectAnnotations($objectAnnotations) + { + $this->objectAnnotations = $objectAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation + */ + public function getObjectAnnotations() + { + return $this->objectAnnotations; + } /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation */ @@ -124,4 +144,32 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2V { return $this->shotLabelAnnotations; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechTranscription + */ + public function setSpeechTranscriptions($speechTranscriptions) + { + $this->speechTranscriptions = $speechTranscriptions; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechTranscription + */ + public function getSpeechTranscriptions() + { + return $this->speechTranscriptions; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2WordInfo.php new file mode 100644 index 00000000..547f6fa3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta2WordInfo.php @@ -0,0 +1,66 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setSpeakerTag($speakerTag) + { + $this->speakerTag = $speakerTag; + } + public function getSpeakerTag() + { + return $this->speakerTag; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWord($word) + { + $this->word = $word; + } + public function getWord() + { + return $this->word; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly.php new file mode 100644 index 00000000..5935d21c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly.php @@ -0,0 +1,38 @@ +vertices = $vertices; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedVertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedVertex.php new file mode 100644 index 00000000..c2420ff5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.php new file mode 100644 index 00000000..ea10527d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.php @@ -0,0 +1,88 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } + public function setTrackId($trackId) + { + $this->trackId = $trackId; + } + public function getTrackId() + { + return $this->trackId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame.php similarity index 69% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame.php index e1e8b8db..f1be842d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame.php @@ -15,28 +15,12 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame extends Google_Model { - protected $collection_key = 'emotions'; - protected $emotionsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1EmotionAttribute'; - protected $emotionsDataType = 'array'; protected $normalizedBoundingBoxType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox'; protected $normalizedBoundingBoxDataType = ''; + public $timeOffset; - /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1EmotionAttribute - */ - public function setEmotions($emotions) - { - $this->emotions = $emotions; - } - /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1EmotionAttribute - */ - public function getEmotions() - { - return $this->emotions; - } /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox */ @@ -51,4 +35,12 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->normalizedBoundingBox; } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1SpeechTranscription.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1SpeechTranscription.php index f383b081..eefb8ff6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1SpeechTranscription.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1SpeechTranscription.php @@ -20,6 +20,7 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta protected $collection_key = 'alternatives'; protected $alternativesType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative'; protected $alternativesDataType = 'array'; + public $languageCode; /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative @@ -35,4 +36,12 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->alternatives; } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextAnnotation.php new file mode 100644 index 00000000..dc27c3cc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextAnnotation.php @@ -0,0 +1,47 @@ +segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextSegment + */ + public function getSegments() + { + return $this->segments; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextFrame.php new file mode 100644 index 00000000..d6ec8c6b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextFrame.php @@ -0,0 +1,46 @@ +rotatedBoundingBox = $rotatedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly + */ + public function getRotatedBoundingBox() + { + return $this->rotatedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextSegment.php new file mode 100644 index 00000000..25e9b098 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1TextSegment.php @@ -0,0 +1,63 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults.php index 2099d8a8..ebbfa68b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults.php @@ -17,16 +17,16 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults extends Google_Collection { - protected $collection_key = 'speechTranscriptions'; + protected $collection_key = 'textAnnotations'; protected $errorType = 'Google_Service_CloudVideoIntelligence_GoogleRpcStatus'; protected $errorDataType = ''; protected $explicitAnnotationType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation'; protected $explicitAnnotationDataType = ''; - protected $faceDetectionAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation'; - protected $faceDetectionAnnotationsDataType = 'array'; protected $frameLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelAnnotation'; protected $frameLabelAnnotationsDataType = 'array'; public $inputUri; + protected $objectAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation'; + protected $objectAnnotationsDataType = 'array'; protected $segmentLabelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelAnnotation'; protected $segmentLabelAnnotationsDataType = 'array'; protected $shotAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment'; @@ -35,6 +35,8 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta protected $shotLabelAnnotationsDataType = 'array'; protected $speechTranscriptionsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1SpeechTranscription'; protected $speechTranscriptionsDataType = 'array'; + protected $textAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextAnnotation'; + protected $textAnnotationsDataType = 'array'; /** * @param Google_Service_CloudVideoIntelligence_GoogleRpcStatus @@ -64,20 +66,6 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->explicitAnnotation; } - /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation - */ - public function setFaceDetectionAnnotations($faceDetectionAnnotations) - { - $this->faceDetectionAnnotations = $faceDetectionAnnotations; - } - /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation - */ - public function getFaceDetectionAnnotations() - { - return $this->faceDetectionAnnotations; - } /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelAnnotation */ @@ -100,6 +88,20 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->inputUri; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation + */ + public function setObjectAnnotations($objectAnnotations) + { + $this->objectAnnotations = $objectAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation + */ + public function getObjectAnnotations() + { + return $this->objectAnnotations; + } /** * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelAnnotation */ @@ -156,4 +158,18 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->speechTranscriptions; } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1TextAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1WordInfo.php index 14c3d358..846fb56b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1WordInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1WordInfo.php @@ -17,10 +17,20 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1WordInfo extends Google_Model { + public $confidence; public $endTime; + public $speakerTag; public $startTime; public $word; + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -29,6 +39,14 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta { return $this->endTime; } + public function setSpeakerTag($speakerTag) + { + $this->speakerTag = $speakerTag; + } + public function getSpeakerTag() + { + return $this->speakerTag; + } public function setStartTime($startTime) { $this->startTime = $startTime; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress.php new file mode 100644 index 00000000..27918517 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress.php @@ -0,0 +1,38 @@ +annotationProgress = $annotationProgress; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress + */ + public function getAnnotationProgress() + { + return $this->annotationProgress; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse.php new file mode 100644 index 00000000..39a5de91 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse.php @@ -0,0 +1,38 @@ +annotationResults = $annotationResults; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults + */ + public function getAnnotationResults() + { + return $this->annotationResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1Entity.php similarity index 63% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelAnnotation.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1Entity.php index 11204928..b9e63000 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelAnnotation.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1Entity.php @@ -15,13 +15,11 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelAnnotation extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity extends Google_Model { - protected $collection_key = 'locations'; public $description; + public $entityId; public $languageCode; - protected $locationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelLocation'; - protected $locationsDataType = 'array'; public function setDescription($description) { @@ -31,6 +29,14 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1L { return $this->description; } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; @@ -39,18 +45,4 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1L { return $this->languageCode; } - /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelLocation - */ - public function setLocations($locations) - { - $this->locations = $locations; - } - /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelLocation - */ - public function getLocations() - { - return $this->locations; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation.php new file mode 100644 index 00000000..042733f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation.php @@ -0,0 +1,38 @@ +frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame + */ + public function getFrames() + { + return $this->frames; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame.php new file mode 100644 index 00000000..4d93867b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame.php @@ -0,0 +1,39 @@ +pornographyLikelihood = $pornographyLikelihood; + } + public function getPornographyLikelihood() + { + return $this->pornographyLikelihood; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelAnnotation.php new file mode 100644 index 00000000..a0012c7d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelAnnotation.php @@ -0,0 +1,86 @@ +categoryEntities = $categoryEntities; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity + */ + public function getCategoryEntities() + { + return $this->categoryEntities; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelSegment + */ + public function setSegments($segments) + { + $this->segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelSegment + */ + public function getSegments() + { + return $this->segments; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelFrame.php new file mode 100644 index 00000000..f8a9e3d5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelFrame.php @@ -0,0 +1,39 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelLocation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelSegment.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelLocation.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelSegment.php index 286679ce..4f8150b2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1LabelLocation.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1LabelSegment.php @@ -15,11 +15,10 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelLocation extends Google_Model +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelSegment extends Google_Model { public $confidence; - public $level; - protected $segmentType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment'; + protected $segmentType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment'; protected $segmentDataType = ''; public function setConfidence($confidence) @@ -30,23 +29,15 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1L { return $this->confidence; } - public function setLevel($level) - { - $this->level = $level; - } - public function getLevel() - { - return $this->level; - } /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment */ - public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment $segment) + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment $segment) { $this->segment = $segment; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment */ public function getSegment() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox.php new file mode 100644 index 00000000..52fdc9c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox.php @@ -0,0 +1,57 @@ +bottom = $bottom; + } + public function getBottom() + { + return $this->bottom; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setRight($right) + { + $this->right = $right; + } + public function getRight() + { + return $this->right; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly.php new file mode 100644 index 00000000..9ffaa748 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly.php @@ -0,0 +1,38 @@ +vertices = $vertices; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1NormalizedVertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedVertex.php new file mode 100644 index 00000000..096b6ba9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.php new file mode 100644 index 00000000..cca869d2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.php @@ -0,0 +1,88 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } + public function setTrackId($trackId) + { + $this->trackId = $trackId; + } + public function getTrackId() + { + return $this->trackId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame.php new file mode 100644 index 00000000..b05eaa0f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame.php @@ -0,0 +1,46 @@ +normalizedBoundingBox = $normalizedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox + */ + public function getNormalizedBoundingBox() + { + return $this->normalizedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative.php new file mode 100644 index 00000000..ae7c2f77 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative.php @@ -0,0 +1,56 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTranscript($transcript) + { + $this->transcript = $transcript; + } + public function getTranscript() + { + return $this->transcript; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1WordInfo + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1WordInfo + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechTranscription.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechTranscription.php new file mode 100644 index 00000000..6fa78260 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1SpeechTranscription.php @@ -0,0 +1,47 @@ +alternatives = $alternatives; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative + */ + public function getAlternatives() + { + return $this->alternatives; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextAnnotation.php new file mode 100644 index 00000000..b63910a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextAnnotation.php @@ -0,0 +1,47 @@ +segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1TextSegment + */ + public function getSegments() + { + return $this->segments; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextFrame.php new file mode 100644 index 00000000..fc66110b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextFrame.php @@ -0,0 +1,46 @@ +rotatedBoundingBox = $rotatedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly + */ + public function getRotatedBoundingBox() + { + return $this->rotatedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextSegment.php new file mode 100644 index 00000000..4d7e2036 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1TextSegment.php @@ -0,0 +1,63 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1TextFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1TextFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress.php new file mode 100644 index 00000000..81d7407c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress.php @@ -0,0 +1,57 @@ +inputUri = $inputUri; + } + public function getInputUri() + { + return $this->inputUri; + } + public function setProgressPercent($progressPercent) + { + $this->progressPercent = $progressPercent; + } + public function getProgressPercent() + { + return $this->progressPercent; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults.php new file mode 100644 index 00000000..ca3c34b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults.php @@ -0,0 +1,175 @@ +error = $error; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleRpcStatus + */ + public function getError() + { + return $this->error; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation + */ + public function setExplicitAnnotation(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation $explicitAnnotation) + { + $this->explicitAnnotation = $explicitAnnotation; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation + */ + public function getExplicitAnnotation() + { + return $this->explicitAnnotation; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function setFrameLabelAnnotations($frameLabelAnnotations) + { + $this->frameLabelAnnotations = $frameLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function getFrameLabelAnnotations() + { + return $this->frameLabelAnnotations; + } + public function setInputUri($inputUri) + { + $this->inputUri = $inputUri; + } + public function getInputUri() + { + return $this->inputUri; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation + */ + public function setObjectAnnotations($objectAnnotations) + { + $this->objectAnnotations = $objectAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation + */ + public function getObjectAnnotations() + { + return $this->objectAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function setSegmentLabelAnnotations($segmentLabelAnnotations) + { + $this->segmentLabelAnnotations = $segmentLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function getSegmentLabelAnnotations() + { + return $this->segmentLabelAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function setShotAnnotations($shotAnnotations) + { + $this->shotAnnotations = $shotAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1VideoSegment + */ + public function getShotAnnotations() + { + return $this->shotAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function setShotLabelAnnotations($shotLabelAnnotations) + { + $this->shotLabelAnnotations = $shotLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1LabelAnnotation + */ + public function getShotLabelAnnotations() + { + return $this->shotLabelAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1SpeechTranscription + */ + public function setSpeechTranscriptions($speechTranscriptions) + { + $this->speechTranscriptions = $speechTranscriptions; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1SpeechTranscription + */ + public function getSpeechTranscriptions() + { + return $this->speechTranscriptions; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1TextAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p2beta1TextAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoSegment.php new file mode 100644 index 00000000..1608c7d2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1VideoSegment.php @@ -0,0 +1,39 @@ +endTimeOffset = $endTimeOffset; + } + public function getEndTimeOffset() + { + return $this->endTimeOffset; + } + public function setStartTimeOffset($startTimeOffset) + { + $this->startTimeOffset = $startTimeOffset; + } + public function getStartTimeOffset() + { + return $this->startTimeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1WordInfo.php new file mode 100644 index 00000000..8e67e91b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1WordInfo.php @@ -0,0 +1,66 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setSpeakerTag($speakerTag) + { + $this->speakerTag = $speakerTag; + } + public function getSpeakerTag() + { + return $this->speakerTag; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWord($word) + { + $this->word = $word; + } + public function getWord() + { + return $this->word; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoProgress.php similarity index 84% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoProgress.php index 811aa6b1..7b832541 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoProgress.php @@ -15,21 +15,21 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1AnnotateVideoProgress extends Google_Collection { protected $collection_key = 'annotationProgress'; - protected $annotationProgressType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress'; + protected $annotationProgressType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress'; protected $annotationProgressDataType = 'array'; /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress */ public function setAnnotationProgress($annotationProgress) { $this->annotationProgress = $annotationProgress; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress */ public function getAnnotationProgress() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoResponse.php similarity index 84% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoResponse.php index d52da748..486870f6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1AnnotateVideoResponse.php @@ -15,21 +15,21 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1AnnotateVideoResponse extends Google_Collection { protected $collection_key = 'annotationResults'; - protected $annotationResultsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationResults'; + protected $annotationResultsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationResults'; protected $annotationResultsDataType = 'array'; /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationResults + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationResults */ public function setAnnotationResults($annotationResults) { $this->annotationResults = $annotationResults; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationResults + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationResults */ public function getAnnotationResults() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1Entity.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1Entity.php new file mode 100644 index 00000000..7c8853f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1Entity.php @@ -0,0 +1,48 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation.php new file mode 100644 index 00000000..958e7fcb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation.php @@ -0,0 +1,38 @@ +frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentFrame + */ + public function getFrames() + { + return $this->frames; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentFrame.php new file mode 100644 index 00000000..cba6c9b4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ExplicitContentFrame.php @@ -0,0 +1,39 @@ +pornographyLikelihood = $pornographyLikelihood; + } + public function getPornographyLikelihood() + { + return $this->pornographyLikelihood; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelAnnotation.php new file mode 100644 index 00000000..5de786d1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelAnnotation.php @@ -0,0 +1,86 @@ +categoryEntities = $categoryEntities; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity + */ + public function getCategoryEntities() + { + return $this->categoryEntities; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelSegment + */ + public function setSegments($segments) + { + $this->segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelSegment + */ + public function getSegments() + { + return $this->segments; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelFrame.php new file mode 100644 index 00000000..ca184a94 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelFrame.php @@ -0,0 +1,39 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelSegment.php similarity index 72% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceSegment.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelSegment.php index d442c4f8..c0a92f22 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1FaceSegment.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1LabelSegment.php @@ -15,20 +15,29 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceSegment extends Google_Model +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelSegment extends Google_Model { - protected $segmentType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment'; + public $confidence; + protected $segmentType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment'; protected $segmentDataType = ''; + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment */ - public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment) + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment $segment) { $this->segment = $segment; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoSegment + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment */ public function getSegment() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingBox.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingBox.php new file mode 100644 index 00000000..38c22c7a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingBox.php @@ -0,0 +1,57 @@ +bottom = $bottom; + } + public function getBottom() + { + return $this->bottom; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setRight($right) + { + $this->right = $right; + } + public function getRight() + { + return $this->right; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingPoly.php new file mode 100644 index 00000000..0abd0ca1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedBoundingPoly.php @@ -0,0 +1,38 @@ +vertices = $vertices; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1NormalizedVertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedVertex.php new file mode 100644 index 00000000..089bff65 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation.php new file mode 100644 index 00000000..129b5a26 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation.php @@ -0,0 +1,88 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity + */ + public function setEntity(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity $entity) + { + $this->entity = $entity; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1Entity + */ + public function getEntity() + { + return $this->entity; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } + public function setTrackId($trackId) + { + $this->trackId = $trackId; + } + public function getTrackId() + { + return $this->trackId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingFrame.php new file mode 100644 index 00000000..2d5a00de --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1ObjectTrackingFrame.php @@ -0,0 +1,46 @@ +normalizedBoundingBox = $normalizedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1NormalizedBoundingBox + */ + public function getNormalizedBoundingBox() + { + return $this->normalizedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechRecognitionAlternative.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechRecognitionAlternative.php new file mode 100644 index 00000000..237f8e21 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechRecognitionAlternative.php @@ -0,0 +1,56 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setTranscript($transcript) + { + $this->transcript = $transcript; + } + public function getTranscript() + { + return $this->transcript; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1WordInfo + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1WordInfo + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechTranscription.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechTranscription.php new file mode 100644 index 00000000..7d9521f1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1SpeechTranscription.php @@ -0,0 +1,47 @@ +alternatives = $alternatives; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1SpeechRecognitionAlternative + */ + public function getAlternatives() + { + return $this->alternatives; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingAnnotateVideoResponse.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingAnnotateVideoResponse.php new file mode 100644 index 00000000..5485ba02 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingAnnotateVideoResponse.php @@ -0,0 +1,62 @@ +annotationResults = $annotationResults; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1StreamingVideoAnnotationResults + */ + public function getAnnotationResults() + { + return $this->annotationResults; + } + public function setAnnotationResultsUri($annotationResultsUri) + { + $this->annotationResultsUri = $annotationResultsUri; + } + public function getAnnotationResultsUri() + { + return $this->annotationResultsUri; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleRpcStatus + */ + public function setError(Google_Service_CloudVideoIntelligence_GoogleRpcStatus $error) + { + $this->error = $error; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleRpcStatus + */ + public function getError() + { + return $this->error; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingVideoAnnotationResults.php similarity index 55% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingVideoAnnotationResults.php index 1e1840a3..c7aea0e0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1StreamingVideoAnnotationResults.php @@ -15,78 +15,69 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationResults extends Google_Collection +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1StreamingVideoAnnotationResults extends Google_Collection { protected $collection_key = 'shotAnnotations'; - protected $errorType = 'Google_Service_CloudVideoIntelligence_GoogleRpcStatus'; - protected $errorDataType = ''; - public $inputUri; - protected $labelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelAnnotation'; + protected $explicitAnnotationType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation'; + protected $explicitAnnotationDataType = ''; + protected $labelAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation'; protected $labelAnnotationsDataType = 'array'; - protected $safeSearchAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation'; - protected $safeSearchAnnotationsDataType = 'array'; - protected $shotAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment'; + protected $objectAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation'; + protected $objectAnnotationsDataType = 'array'; + protected $shotAnnotationsType = 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment'; protected $shotAnnotationsDataType = 'array'; /** - * @param Google_Service_CloudVideoIntelligence_GoogleRpcStatus + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation */ - public function setError(Google_Service_CloudVideoIntelligence_GoogleRpcStatus $error) + public function setExplicitAnnotation(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation $explicitAnnotation) { - $this->error = $error; + $this->explicitAnnotation = $explicitAnnotation; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleRpcStatus + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation */ - public function getError() + public function getExplicitAnnotation() { - return $this->error; - } - public function setInputUri($inputUri) - { - $this->inputUri = $inputUri; - } - public function getInputUri() - { - return $this->inputUri; + return $this->explicitAnnotation; } /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelAnnotation + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation */ public function setLabelAnnotations($labelAnnotations) { $this->labelAnnotations = $labelAnnotations; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1LabelAnnotation + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation */ public function getLabelAnnotations() { return $this->labelAnnotations; } /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation */ - public function setSafeSearchAnnotations($safeSearchAnnotations) + public function setObjectAnnotations($objectAnnotations) { - $this->safeSearchAnnotations = $safeSearchAnnotations; + $this->objectAnnotations = $objectAnnotations; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation */ - public function getSafeSearchAnnotations() + public function getObjectAnnotations() { - return $this->safeSearchAnnotations; + return $this->objectAnnotations; } /** - * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment */ public function setShotAnnotations($shotAnnotations) { $this->shotAnnotations = $shotAnnotations; } /** - * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment */ public function getShotAnnotations() { diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextAnnotation.php new file mode 100644 index 00000000..04993aa4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextAnnotation.php @@ -0,0 +1,47 @@ +segments = $segments; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1TextSegment + */ + public function getSegments() + { + return $this->segments; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextFrame.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextFrame.php new file mode 100644 index 00000000..59c20d3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextFrame.php @@ -0,0 +1,46 @@ +rotatedBoundingBox = $rotatedBoundingBox; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1NormalizedBoundingPoly + */ + public function getRotatedBoundingBox() + { + return $this->rotatedBoundingBox; + } + public function setTimeOffset($timeOffset) + { + $this->timeOffset = $timeOffset; + } + public function getTimeOffset() + { + return $this->timeOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextSegment.php new file mode 100644 index 00000000..ed3f0371 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1TextSegment.php @@ -0,0 +1,63 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1TextFrame + */ + public function setFrames($frames) + { + $this->frames = $frames; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1TextFrame + */ + public function getFrames() + { + return $this->frames; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function setSegment(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment $segment) + { + $this->segment = $segment; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function getSegment() + { + return $this->segment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress.php similarity index 95% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress.php index fe1bcb4e..6f40d469 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress extends Google_Model +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoAnnotationProgress extends Google_Model { public $inputUri; public $progressPercent; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationResults.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationResults.php new file mode 100644 index 00000000..bfa91fdc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoAnnotationResults.php @@ -0,0 +1,175 @@ +error = $error; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleRpcStatus + */ + public function getError() + { + return $this->error; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation + */ + public function setExplicitAnnotation(Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation $explicitAnnotation) + { + $this->explicitAnnotation = $explicitAnnotation; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ExplicitContentAnnotation + */ + public function getExplicitAnnotation() + { + return $this->explicitAnnotation; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function setFrameLabelAnnotations($frameLabelAnnotations) + { + $this->frameLabelAnnotations = $frameLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function getFrameLabelAnnotations() + { + return $this->frameLabelAnnotations; + } + public function setInputUri($inputUri) + { + $this->inputUri = $inputUri; + } + public function getInputUri() + { + return $this->inputUri; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation + */ + public function setObjectAnnotations($objectAnnotations) + { + $this->objectAnnotations = $objectAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1ObjectTrackingAnnotation + */ + public function getObjectAnnotations() + { + return $this->objectAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function setSegmentLabelAnnotations($segmentLabelAnnotations) + { + $this->segmentLabelAnnotations = $segmentLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function getSegmentLabelAnnotations() + { + return $this->segmentLabelAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function setShotAnnotations($shotAnnotations) + { + $this->shotAnnotations = $shotAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment + */ + public function getShotAnnotations() + { + return $this->shotAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function setShotLabelAnnotations($shotLabelAnnotations) + { + $this->shotLabelAnnotations = $shotLabelAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1LabelAnnotation + */ + public function getShotLabelAnnotations() + { + return $this->shotLabelAnnotations; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1SpeechTranscription + */ + public function setSpeechTranscriptions($speechTranscriptions) + { + $this->speechTranscriptions = $speechTranscriptions; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1SpeechTranscription + */ + public function getSpeechTranscriptions() + { + return $this->speechTranscriptions; + } + /** + * @param Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1TextAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1TextAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoSegment.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoSegment.php similarity index 95% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoSegment.php rename to vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoSegment.php index c266f3a8..0157d32b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1VideoSegment.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1VideoSegment.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1VideoSegment extends Google_Model +class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV2beta1VideoSegment extends Google_Model { public $endTimeOffset; public $startTimeOffset; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1WordInfo.php new file mode 100644 index 00000000..028dcc40 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV2beta1WordInfo.php @@ -0,0 +1,66 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setSpeakerTag($speakerTag) + { + $this->speakerTag = $speakerTag; + } + public function getSpeakerTag() + { + return $this->speakerTag; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWord($word) + { + $this->word = $word; + } + public function getWord() + { + return $this->word; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/Resource/Operations.php index 2510e8e7..4ca34c11 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/Resource/Operations.php @@ -92,10 +92,10 @@ class Google_Service_CloudVideoIntelligence_Resource_Operations extends Google_S * * @param array $optParams Optional parameters. * + * @opt_param string filter The standard list filter. * @opt_param string name The name of the operation's parent resource. * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. - * @opt_param string filter The standard list filter. * @return Google_Service_CloudVideoIntelligence_GoogleLongrunningListOperationsResponse */ public function listOperations($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling.php b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling.php index 05ea0103..c649e501 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling.php +++ b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling.php @@ -51,6 +51,7 @@ class Google_Service_Cloudbilling extends Google_Service parent::__construct($client); $this->rootUrl = 'https://cloudbilling.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudbilling'; @@ -88,6 +89,10 @@ class Google_Service_Cloudbilling extends Google_Service 'path' => 'v1/billingAccounts', 'httpMethod' => 'GET', 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -96,10 +101,6 @@ class Google_Service_Cloudbilling extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/{+name}', diff --git a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Binding.php index bd02642e..35f7bf5f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Binding.php @@ -18,9 +18,25 @@ class Google_Service_Cloudbilling_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_Cloudbilling_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_Cloudbilling_Expr + */ + public function setCondition(Google_Service_Cloudbilling_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Cloudbilling_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Expr.php new file mode 100644 index 00000000..7c7316ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php index da91694a..16293f90 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php +++ b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php @@ -27,15 +27,13 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic { /** * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) for GCP + * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP * resellers. When creating a subaccount, the current authenticated user must * have the `billing.accounts.update` IAM permission on the master account, * which is typically given to billing account * [administrators](https://cloud.google.com/billing/docs/how-to/billing- - * access). - * - * > This method is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). (billingAccounts.create) + * access). This method will return an error if the master account has not been + * provisioned as a reseller account. (billingAccounts.create) * * @param Google_Service_Cloudbilling_BillingAccount $postBody * @param array $optParams Optional parameters. @@ -67,10 +65,7 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic * Gets the access control policy for a billing account. The caller must have * the `billing.accounts.getIamPolicy` permission on the account, which is often * given to billing account [viewers](https://cloud.google.com/billing/docs/how- - * to/billing-access). - * - * > This method is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). (billingAccounts.getIamPolicy) + * to/billing-access). (billingAccounts.getIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being * requested. See the operation documentation for the appropriate value for this @@ -91,21 +86,18 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string pageToken A token identifying a page of results to return. - * This should be a `next_page_token` value returned from a previous - * `ListBillingAccounts` call. If unspecified, the first page of results is - * returned. - * @opt_param int pageSize Requested page size. The maximum page size is 100; - * this is also the default. * @opt_param string filter Options for how to filter the returned billing * accounts. Currently this only supports filtering for * [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single * provided reseller billing account. (e.g. * "master_billing_account=billingAccounts/012345-678901-ABCDEF"). Boolean * algebra and other fields are not currently supported. - * - * > This field is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). + * @opt_param string pageToken A token identifying a page of results to return. + * This should be a `next_page_token` value returned from a previous + * `ListBillingAccounts` call. If unspecified, the first page of results is + * returned. + * @opt_param int pageSize Requested page size. The maximum page size is 100; + * this is also the default. * @return Google_Service_Cloudbilling_ListBillingAccountsResponse */ public function listBillingAccounts($optParams = array()) @@ -119,10 +111,7 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic * edited is `display_name`. The current authenticated user must have the * `billing.accounts.update` IAM permission, which is typically given to the * [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) - * of the billing account. - * - * > This method is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). (billingAccounts.patch) + * of the billing account. (billingAccounts.patch) * * @param string $name The name of the billing account resource to be updated. * @param Google_Service_Cloudbilling_BillingAccount $postBody @@ -143,10 +132,7 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic * policy. The caller must have the `billing.accounts.setIamPolicy` permission * on the account, which is often given to billing account * [administrators](https://cloud.google.com/billing/docs/how-to/billing- - * access). - * - * > This method is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). (billingAccounts.setIamPolicy) + * access). (billingAccounts.setIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being * specified. See the operation documentation for the appropriate value for this @@ -165,9 +151,7 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic * Tests the access control policy for a billing account. This method takes the * resource and a set of permissions as input and returns the subset of the * input permissions that the caller is allowed for that resource. - * - * > This method is currently in > [Beta](https://cloud.google.com/terms/launch- - * stages). (billingAccounts.testIamPermissions) + * (billingAccounts.testIamPermissions) * * @param string $resource REQUIRED: The resource for which the policy detail is * being requested. See the operation documentation for the appropriate value diff --git a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Service.php b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Service.php index 0af72361..526ebf85 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Service.php +++ b/vendor/google/apiclient-services/src/Google/Service/Cloudbilling/Service.php @@ -17,10 +17,19 @@ class Google_Service_Cloudbilling_Service extends Google_Model { + public $businessEntityName; public $displayName; public $name; public $serviceId; + public function setBusinessEntityName($businessEntityName) + { + $this->businessEntityName = $businessEntityName; + } + public function getBusinessEntityName() + { + return $this->businessEntityName; + } public function setDisplayName($displayName) { $this->displayName = $displayName; diff --git a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting.php b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting.php index 8ad7ce8b..31293254 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting.php +++ b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting.php @@ -51,6 +51,7 @@ class Google_Service_Clouderrorreporting extends Google_Service parent::__construct($client); $this->rootUrl = 'https://clouderrorreporting.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1beta1'; $this->serviceName = 'clouderrorreporting'; @@ -89,6 +90,18 @@ class Google_Service_Clouderrorreporting extends Google_Service 'type' => 'string', 'required' => true, ), + 'serviceFilter.resourceType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timeRange.period' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'groupId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -105,18 +118,6 @@ class Google_Service_Clouderrorreporting extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'serviceFilter.resourceType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timeRange.period' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'groupId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'report' => array( 'path' => 'v1beta1/{+projectName}/events:report', @@ -147,6 +148,22 @@ class Google_Service_Clouderrorreporting extends Google_Service 'type' => 'string', 'required' => true, ), + 'serviceFilter.resourceType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'alignmentTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'timedCountDuration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'timeRange.period' => array( 'location' => 'query', 'type' => 'string', @@ -176,22 +193,6 @@ class Google_Service_Clouderrorreporting extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'serviceFilter.resourceType' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'alignmentTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'timedCountDuration' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php index 6d411e63..c6bf9835 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php +++ b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php @@ -34,6 +34,13 @@ class Google_Service_Clouderrorreporting_Resource_ProjectsEvents extends Google_ * `projects/my-project-123`. * @param array $optParams Optional parameters. * + * @opt_param string serviceFilter.resourceType [Optional] The exact value to + * match against [`ServiceContext.resource_type`](/error- + * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + * @opt_param string timeRange.period Restricts the query to the specified time + * range. + * @opt_param string groupId [Required] The group for which events shall be + * returned. * @opt_param string pageToken [Optional] A `next_page_token` provided by a * previous response. * @opt_param string serviceFilter.service [Optional] The exact value to match @@ -44,13 +51,6 @@ class Google_Service_Clouderrorreporting_Resource_ProjectsEvents extends Google_ * @opt_param string serviceFilter.version [Optional] The exact value to match * against [`ServiceContext.version`](/error- * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * @opt_param string serviceFilter.resourceType [Optional] The exact value to - * match against [`ServiceContext.resource_type`](/error- - * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * @opt_param string timeRange.period Restricts the query to the specified time - * range. - * @opt_param string groupId [Required] The group for which events shall be - * returned. * @return Google_Service_Clouderrorreporting_ListEventsResponse */ public function listProjectsEvents($projectName, $optParams = array()) @@ -62,11 +62,13 @@ class Google_Service_Clouderrorreporting_Resource_ProjectsEvents extends Google_ /** * Report an individual error event. * - * This endpoint accepts either an OAuth token, or an API key for - * authentication. To use an API key, append it to the URL as the value of a - * `key` parameter. For example: POST - * https://clouderrorreporting.googleapis.com/v1beta1/projects/example- - * project/events:report?key=123ABC456 (events.report) + * This endpoint accepts **either** an OAuth token, **or** an [API + * key](https://support.google.com/cloud/answer/6158862) for authentication. To + * use an API key, append it to the URL as the value of a `key` parameter. For + * example: + * + * `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example- + * project/events:report?key=123ABC456` (events.report) * * @param string $projectName [Required] The resource name of the Google Cloud * Platform project. Written as `projects/` plus the [Google Cloud Platform diff --git a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php index e2f9a28e..237a0a43 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php +++ b/vendor/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php @@ -35,6 +35,16 @@ class Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats extends Goo * Example: projects/my-project-123. * @param array $optParams Optional parameters. * + * @opt_param string serviceFilter.resourceType [Optional] The exact value to + * match against [`ServiceContext.resource_type`](/error- + * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + * @opt_param string alignmentTime [Optional] Time where the timed counts shall + * be aligned if rounded alignment is chosen. Default is 00:00 UTC. + * @opt_param string timedCountDuration [Optional] The preferred duration for a + * single returned `TimedCount`. If not set, no timed counts are returned. + * @opt_param string pageToken [Optional] A `next_page_token` provided by a + * previous response. To view additional results, pass this token along with the + * identical query parameters as the first request. * @opt_param string timeRange.period Restricts the query to the specified time * range. * @opt_param string alignment [Optional] The alignment of the timed counts to @@ -50,16 +60,6 @@ class Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats extends Goo * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). * @opt_param string order [Optional] The sort order in which the results are * returned. Default is `COUNT_DESC`. - * @opt_param string serviceFilter.resourceType [Optional] The exact value to - * match against [`ServiceContext.resource_type`](/error- - * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * @opt_param string alignmentTime [Optional] Time where the timed counts shall - * be aligned if rounded alignment is chosen. Default is 00:00 UTC. - * @opt_param string timedCountDuration [Optional] The preferred duration for a - * single returned `TimedCount`. If not set, no timed counts are returned. - * @opt_param string pageToken [Optional] A `next_page_token` provided by a - * previous response. To view additional results, pass this token along with the - * identical query parameters as the first request. * @return Google_Service_Clouderrorreporting_ListGroupStatsResponse */ public function listProjectsGroupStats($projectName, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute.php b/vendor/google/apiclient-services/src/Google/Service/Compute.php index c0eacc80..a01f8245 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute.php @@ -76,16 +76,22 @@ class Google_Service_Compute extends Google_Service public $licenses; public $machineTypes; public $networks; + public $nodeGroups; + public $nodeTemplates; + public $nodeTypes; public $projects; public $regionAutoscalers; public $regionBackendServices; public $regionCommitments; + public $regionDiskTypes; + public $regionDisks; public $regionInstanceGroupManagers; public $regionInstanceGroups; public $regionOperations; public $regions; public $routers; public $routes; + public $securityPolicies; public $snapshots; public $sslCertificates; public $sslPolicies; @@ -112,6 +118,7 @@ class Google_Service_Compute extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'compute/v1/projects/'; + $this->batchPath = 'batch/compute/v1'; $this->version = 'v1'; $this->serviceName = 'compute'; @@ -514,7 +521,26 @@ class Google_Service_Compute extends Google_Service 'backendBuckets', array( 'methods' => array( - 'delete' => array( + 'addSignedUrlKey' => array( + 'path' => '{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( 'path' => '{project}/global/backendBuckets/{backendBucket}', 'httpMethod' => 'DELETE', 'parameters' => array( @@ -533,6 +559,30 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'deleteSignedUrlKey' => array( + 'path' => '{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'keyName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'get' => array( 'path' => '{project}/global/backendBuckets/{backendBucket}', 'httpMethod' => 'GET', @@ -636,7 +686,26 @@ class Google_Service_Compute extends Google_Service 'backendServices', array( 'methods' => array( - 'aggregatedList' => array( + 'addSignedUrlKey' => array( + 'path' => '{project}/global/backendServices/{backendService}/addSignedUrlKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'aggregatedList' => array( 'path' => '{project}/aggregated/backendServices', 'httpMethod' => 'GET', 'parameters' => array( @@ -681,6 +750,30 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'deleteSignedUrlKey' => array( + 'path' => '{project}/global/backendServices/{backendService}/deleteSignedUrlKey', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'keyName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'get' => array( 'path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'GET', @@ -770,6 +863,25 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setSecurityPolicy' => array( + 'path' => '{project}/global/backendServices/{backendService}/setSecurityPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'backendService' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'update' => array( 'path' => '{project}/global/backendServices/{backendService}', 'httpMethod' => 'PUT', @@ -984,6 +1096,26 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/zones/{zone}/disks/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/zones/{zone}/disks', 'httpMethod' => 'POST', @@ -1062,6 +1194,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/zones/{zone}/disks/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setLabels' => array( 'path' => '{project}/zones/{zone}/disks/{resource}/setLabels', 'httpMethod' => 'POST', @@ -1086,6 +1238,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'testIamPermissions' => array( + 'path' => '{project}/zones/{zone}/disks/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -2085,6 +2257,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/images/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/images', 'httpMethod' => 'POST', @@ -2129,6 +2316,21 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/images/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setLabels' => array( 'path' => '{project}/global/images/{resource}/setLabels', 'httpMethod' => 'POST', @@ -2144,6 +2346,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'testIamPermissions' => array( + 'path' => '{project}/global/images/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -2358,6 +2575,30 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'patch' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'recreateInstances' => array( 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', 'httpMethod' => 'POST', @@ -2741,6 +2982,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/instanceTemplates/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/instanceTemplates', 'httpMethod' => 'POST', @@ -2781,6 +3037,36 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/instanceTemplates/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/global/instanceTemplates/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -2865,6 +3151,10 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', 'required' => true, ), + 'forceAttach' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'requestId' => array( 'location' => 'query', 'type' => 'string', @@ -2977,6 +3267,26 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/zones/{zone}/instances/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'getSerialPortOutput' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', 'httpMethod' => 'GET', @@ -3181,6 +3491,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/zones/{zone}/instances/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setLabels' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/setLabels', 'httpMethod' => 'POST', @@ -3373,6 +3703,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'simulateMaintenanceEvent' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'start' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/start', 'httpMethod' => 'POST', @@ -3445,6 +3795,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'testIamPermissions' => array( + 'path' => '{project}/zones/{zone}/instances/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'updateAccessConfig' => array( 'path' => '{project}/zones/{zone}/instances/{instance}/updateAccessConfig', 'httpMethod' => 'POST', @@ -3633,6 +4003,30 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'patch' => array( + 'path' => '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'interconnectAttachment' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ), ) ) @@ -3728,6 +4122,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getDiagnostics' => array( + 'path' => '{project}/global/interconnects/{interconnect}/getDiagnostics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'interconnect' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/interconnects', 'httpMethod' => 'POST', @@ -3871,6 +4280,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/licenses/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/global/licenses', 'httpMethod' => 'POST', @@ -3911,6 +4335,21 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/licenses/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'testIamPermissions' => array( 'path' => '{project}/global/licenses/{resource}/testIamPermissions', 'httpMethod' => 'POST', @@ -4177,6 +4616,586 @@ class Google_Service_Compute extends Google_Service ) ) ); + $this->nodeGroups = new Google_Service_Compute_Resource_NodeGroups( + $this, + $this->serviceName, + 'nodeGroups', + array( + 'methods' => array( + 'addNodes' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/nodeGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'deleteNodes' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/nodeGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'initialNodeCount' => array( + 'location' => 'query', + 'type' => 'integer', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/nodeGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listNodes' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setNodeTemplate' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeGroup' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->nodeTemplates = new Google_Service_Compute_Resource_NodeTemplates( + $this, + $this->serviceName, + 'nodeTemplates', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/nodeTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeTemplate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/nodeTemplates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/nodeTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->nodeTypes = new Google_Service_Compute_Resource_NodeTypes( + $this, + $this->serviceName, + 'nodeTypes', + array( + 'methods' => array( + 'aggregatedList' => array( + 'path' => '{project}/aggregated/nodeTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{project}/zones/{zone}/nodeTypes/{nodeType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'nodeType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/zones/{zone}/nodeTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->projects = new Google_Service_Compute_Resource_Projects( $this, $this->serviceName, @@ -4353,6 +5372,20 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setDefaultNetworkTier' => array( + 'path' => '{project}/setDefaultNetworkTier', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'setUsageExportBucket' => array( 'path' => '{project}/setUsageExportBucket', 'httpMethod' => 'POST', @@ -4799,6 +5832,267 @@ class Google_Service_Compute extends Google_Service ) ) ); + $this->regionDiskTypes = new Google_Service_Compute_Resource_RegionDiskTypes( + $this, + $this->serviceName, + 'regionDiskTypes', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/regions/{region}/diskTypes/{diskType}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'diskType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/diskTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->regionDisks = new Google_Service_Compute_Resource_RegionDisks( + $this, + $this->serviceName, + 'regionDisks', + array( + 'methods' => array( + 'createSnapshot' => array( + 'path' => '{project}/regions/{region}/disks/{disk}/createSnapshot', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => '{project}/regions/{region}/disks/{disk}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{project}/regions/{region}/disks/{disk}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => '{project}/regions/{region}/disks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sourceImage' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{project}/regions/{region}/disks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'resize' => array( + 'path' => '{project}/regions/{region}/disks/{disk}/resize', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disk' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setLabels' => array( + 'path' => '{project}/regions/{region}/disks/{resource}/setLabels', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'testIamPermissions' => array( + 'path' => '{project}/regions/{region}/disks/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->regionInstanceGroupManagers = new Google_Service_Compute_Resource_RegionInstanceGroupManagers( $this, $this->serviceName, @@ -4983,6 +6277,30 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'patch' => array( + 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instanceGroupManager' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'recreateInstances' => array( 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', 'httpMethod' => 'POST', @@ -5417,6 +6735,42 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getNatMappingInfo' => array( + 'path' => '{project}/regions/{region}/routers/{router}/getNatMappingInfo', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'router' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'getRouterStatus' => array( 'path' => '{project}/regions/{region}/routers/{router}/getRouterStatus', 'httpMethod' => 'GET', @@ -5643,6 +6997,181 @@ class Google_Service_Compute extends Google_Service ) ) ); + $this->securityPolicies = new Google_Service_Compute_Resource_SecurityPolicies( + $this, + $this->serviceName, + 'securityPolicies', + array( + 'methods' => array( + 'addRule' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}/addRule', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getRule' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}/getRule', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'priority' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'insert' => array( + 'path' => '{project}/global/securityPolicies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{project}/global/securityPolicies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patchRule' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}/patchRule', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'priority' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'removeRule' => array( + 'path' => '{project}/global/securityPolicies/{securityPolicy}/removeRule', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'securityPolicy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'priority' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->snapshots = new Google_Service_Compute_Resource_Snapshots( $this, $this->serviceName, @@ -5683,6 +7212,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/global/snapshots/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => '{project}/global/snapshots', 'httpMethod' => 'GET', @@ -5709,6 +7253,21 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/global/snapshots/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setLabels' => array( 'path' => '{project}/global/snapshots/{resource}/setLabels', 'httpMethod' => 'POST', @@ -5724,6 +7283,21 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'testIamPermissions' => array( + 'path' => '{project}/global/snapshots/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -6041,6 +7615,26 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'insert' => array( 'path' => '{project}/regions/{region}/subnetworks', 'httpMethod' => 'POST', @@ -6091,6 +7685,32 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'listUsable' => array( + 'path' => '{project}/aggregated/subnetworks/listUsable', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'patch' => array( 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}', 'httpMethod' => 'PATCH', @@ -6115,6 +7735,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setPrivateIpGoogleAccess' => array( 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', 'httpMethod' => 'POST', @@ -6139,6 +7779,26 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'testIamPermissions' => array( + 'path' => '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'region' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -6326,6 +7986,25 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', ), ), + ),'setQuicOverride' => array( + 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'targetHttpsProxy' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'setSslCertificates' => array( 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', 'httpMethod' => 'POST', diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php index caac23cc..4969fc67 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php @@ -20,6 +20,7 @@ class Google_Service_Compute_AccessConfig extends Google_Model public $kind; public $name; public $natIP; + public $networkTier; public $publicPtrDomainName; public $setPublicPtr; public $type; @@ -48,6 +49,14 @@ class Google_Service_Compute_AccessConfig extends Google_Model { return $this->natIP; } + public function setNetworkTier($networkTier) + { + $this->networkTier = $networkTier; + } + public function getNetworkTier() + { + return $this->networkTier; + } public function setPublicPtrDomainName($publicPtrDomainName) { $this->publicPtrDomainName = $publicPtrDomainName; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Address.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Address.php index bcd8e885..9442f4fe 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Address.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Address.php @@ -26,6 +26,10 @@ class Google_Service_Compute_Address extends Google_Collection public $ipVersion; public $kind; public $name; + public $network; + public $networkTier; + public $prefixLength; + public $purpose; public $region; public $selfLink; public $status; @@ -96,6 +100,38 @@ class Google_Service_Compute_Address extends Google_Collection { return $this->name; } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNetworkTier($networkTier) + { + $this->networkTier = $networkTier; + } + public function getNetworkTier() + { + return $this->networkTier; + } + public function setPrefixLength($prefixLength) + { + $this->prefixLength = $prefixLength; + } + public function getPrefixLength() + { + return $this->prefixLength; + } + public function setPurpose($purpose) + { + $this->purpose = $purpose; + } + public function getPurpose() + { + return $this->purpose; + } public function setRegion($region) { $this->region = $region; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php b/vendor/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php index ca6d3c08..a2ad46ce 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php @@ -17,6 +17,7 @@ class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model { + public $description; public $diskName; public $diskSizeGb; public $diskType; @@ -25,6 +26,14 @@ class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model protected $sourceImageEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey'; protected $sourceImageEncryptionKeyDataType = ''; + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setDiskName($diskName) { $this->diskName = $diskName; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/AuditConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/AuditConfig.php new file mode 100644 index 00000000..33e40f5b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/AuditConfig.php @@ -0,0 +1,56 @@ +auditLogConfigs = $auditLogConfigs; + } + /** + * @return Google_Service_Compute_AuditLogConfig + */ + public function getAuditLogConfigs() + { + return $this->auditLogConfigs; + } + public function setExemptedMembers($exemptedMembers) + { + $this->exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/AuditLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/AuditLogConfig.php new file mode 100644 index 00000000..5e4a65b2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/AuditLogConfig.php @@ -0,0 +1,40 @@ +exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setLogType($logType) + { + $this->logType = $logType; + } + public function getLogType() + { + return $this->logType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/AuthorizationLoggingOptions.php b/vendor/google/apiclient-services/src/Google/Service/Compute/AuthorizationLoggingOptions.php new file mode 100644 index 00000000..182ffb09 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/AuthorizationLoggingOptions.php @@ -0,0 +1,30 @@ +permissionType = $permissionType; + } + public function getPermissionType() + { + return $this->permissionType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php index 6a9b161e..b3b39247 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php @@ -18,6 +18,8 @@ class Google_Service_Compute_BackendBucket extends Google_Model { public $bucketName; + protected $cdnPolicyType = 'Google_Service_Compute_BackendBucketCdnPolicy'; + protected $cdnPolicyDataType = ''; public $creationTimestamp; public $description; public $enableCdn; @@ -34,6 +36,20 @@ class Google_Service_Compute_BackendBucket extends Google_Model { return $this->bucketName; } + /** + * @param Google_Service_Compute_BackendBucketCdnPolicy + */ + public function setCdnPolicy(Google_Service_Compute_BackendBucketCdnPolicy $cdnPolicy) + { + $this->cdnPolicy = $cdnPolicy; + } + /** + * @return Google_Service_Compute_BackendBucketCdnPolicy + */ + public function getCdnPolicy() + { + return $this->cdnPolicy; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucketCdnPolicy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucketCdnPolicy.php new file mode 100644 index 00000000..2d5e1e91 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendBucketCdnPolicy.php @@ -0,0 +1,40 @@ +signedUrlCacheMaxAgeSec = $signedUrlCacheMaxAgeSec; + } + public function getSignedUrlCacheMaxAgeSec() + { + return $this->signedUrlCacheMaxAgeSec; + } + public function setSignedUrlKeyNames($signedUrlKeyNames) + { + $this->signedUrlKeyNames = $signedUrlKeyNames; + } + public function getSignedUrlKeyNames() + { + return $this->signedUrlKeyNames; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendService.php b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendService.php index 21302b79..412ccc29 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendService.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendService.php @@ -40,6 +40,7 @@ class Google_Service_Compute_BackendService extends Google_Collection public $portName; public $protocol; public $region; + public $securityPolicy; public $selfLink; public $sessionAffinity; public $timeoutSec; @@ -212,6 +213,14 @@ class Google_Service_Compute_BackendService extends Google_Collection { return $this->region; } + public function setSecurityPolicy($securityPolicy) + { + $this->securityPolicy = $securityPolicy; + } + public function getSecurityPolicy() + { + return $this->securityPolicy; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendServiceCdnPolicy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendServiceCdnPolicy.php index 4a00e264..a1cd3a3a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/BackendServiceCdnPolicy.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/BackendServiceCdnPolicy.php @@ -15,10 +15,13 @@ * the License. */ -class Google_Service_Compute_BackendServiceCdnPolicy extends Google_Model +class Google_Service_Compute_BackendServiceCdnPolicy extends Google_Collection { + protected $collection_key = 'signedUrlKeyNames'; protected $cacheKeyPolicyType = 'Google_Service_Compute_CacheKeyPolicy'; protected $cacheKeyPolicyDataType = ''; + public $signedUrlCacheMaxAgeSec; + public $signedUrlKeyNames; /** * @param Google_Service_Compute_CacheKeyPolicy @@ -34,4 +37,20 @@ class Google_Service_Compute_BackendServiceCdnPolicy extends Google_Model { return $this->cacheKeyPolicy; } + public function setSignedUrlCacheMaxAgeSec($signedUrlCacheMaxAgeSec) + { + $this->signedUrlCacheMaxAgeSec = $signedUrlCacheMaxAgeSec; + } + public function getSignedUrlCacheMaxAgeSec() + { + return $this->signedUrlCacheMaxAgeSec; + } + public function setSignedUrlKeyNames($signedUrlKeyNames) + { + $this->signedUrlKeyNames = $signedUrlKeyNames; + } + public function getSignedUrlKeyNames() + { + return $this->signedUrlKeyNames; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Binding.php new file mode 100644 index 00000000..8930d822 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_Compute_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Condition.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Condition.php new file mode 100644 index 00000000..a32b82b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Condition.php @@ -0,0 +1,67 @@ +iam = $iam; + } + public function getIam() + { + return $this->iam; + } + public function setOp($op) + { + $this->op = $op; + } + public function getOp() + { + return $this->op; + } + public function setSvc($svc) + { + $this->svc = $svc; + } + public function getSvc() + { + return $this->svc; + } + public function setSys($sys) + { + $this->sys = $sys; + } + public function getSys() + { + return $this->sys; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php b/vendor/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php index 11f99a2e..5db5a9f3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php @@ -17,9 +17,18 @@ class Google_Service_Compute_CustomerEncryptionKey extends Google_Model { + public $kmsKeyName; public $rawKey; public $sha256; + public function setKmsKeyName($kmsKeyName) + { + $this->kmsKeyName = $kmsKeyName; + } + public function getKmsKeyName() + { + return $this->kmsKeyName; + } public function setRawKey($rawKey) { $this->rawKey = $rawKey; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Disk.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Disk.php index 35d12d26..4eb76daa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Disk.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Disk.php @@ -34,6 +34,9 @@ class Google_Service_Compute_Disk extends Google_Collection public $licenses; public $name; public $options; + public $physicalBlockSizeBytes; + public $region; + public $replicaZones; public $selfLink; public $sizeGb; public $sourceImage; @@ -173,6 +176,30 @@ class Google_Service_Compute_Disk extends Google_Collection { return $this->options; } + public function setPhysicalBlockSizeBytes($physicalBlockSizeBytes) + { + $this->physicalBlockSizeBytes = $physicalBlockSizeBytes; + } + public function getPhysicalBlockSizeBytes() + { + return $this->physicalBlockSizeBytes; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setReplicaZones($replicaZones) + { + $this->replicaZones = $replicaZones; + } + public function getReplicaZones() + { + return $this->replicaZones; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/DiskInstantiationConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/DiskInstantiationConfig.php new file mode 100644 index 00000000..7c328ff2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/DiskInstantiationConfig.php @@ -0,0 +1,57 @@ +autoDelete = $autoDelete; + } + public function getAutoDelete() + { + return $this->autoDelete; + } + public function setCustomImage($customImage) + { + $this->customImage = $customImage; + } + public function getCustomImage() + { + return $this->customImage; + } + public function setDeviceName($deviceName) + { + $this->deviceName = $deviceName; + } + public function getDeviceName() + { + return $this->deviceName; + } + public function setInstantiateFrom($instantiateFrom) + { + $this->instantiateFrom = $instantiateFrom; + } + public function getInstantiateFrom() + { + return $this->instantiateFrom; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/DiskType.php b/vendor/google/apiclient-services/src/Google/Service/Compute/DiskType.php index 4fb54259..9d9f6854 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/DiskType.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/DiskType.php @@ -25,6 +25,7 @@ class Google_Service_Compute_DiskType extends Google_Model public $id; public $kind; public $name; + public $region; public $selfLink; public $validDiskSize; public $zone; @@ -91,6 +92,14 @@ class Google_Service_Compute_DiskType extends Google_Model { return $this->name; } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicy.php new file mode 100644 index 00000000..fdf6895f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicy.php @@ -0,0 +1,38 @@ +zones = $zones; + } + /** + * @return Google_Service_Compute_DistributionPolicyZoneConfiguration + */ + public function getZones() + { + return $this->zones; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicyZoneConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicyZoneConfiguration.php new file mode 100644 index 00000000..3dc8532e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/DistributionPolicyZoneConfiguration.php @@ -0,0 +1,30 @@ +zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Expr.php new file mode 100644 index 00000000..810251cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Firewall.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Firewall.php index db604fe9..246ce250 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Firewall.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Firewall.php @@ -26,8 +26,11 @@ class Google_Service_Compute_Firewall extends Google_Collection public $description; public $destinationRanges; public $direction; + public $disabled; public $id; public $kind; + protected $logConfigType = 'Google_Service_Compute_FirewallLogConfig'; + protected $logConfigDataType = ''; public $name; public $network; public $priority; @@ -98,6 +101,14 @@ class Google_Service_Compute_Firewall extends Google_Collection { return $this->direction; } + public function setDisabled($disabled) + { + $this->disabled = $disabled; + } + public function getDisabled() + { + return $this->disabled; + } public function setId($id) { $this->id = $id; @@ -114,6 +125,20 @@ class Google_Service_Compute_Firewall extends Google_Collection { return $this->kind; } + /** + * @param Google_Service_Compute_FirewallLogConfig + */ + public function setLogConfig(Google_Service_Compute_FirewallLogConfig $logConfig) + { + $this->logConfig = $logConfig; + } + /** + * @return Google_Service_Compute_FirewallLogConfig + */ + public function getLogConfig() + { + return $this->logConfig; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/FirewallLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/FirewallLogConfig.php new file mode 100644 index 00000000..81bde6bb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/FirewallLogConfig.php @@ -0,0 +1,30 @@ +enable = $enable; + } + public function getEnable() + { + return $this->enable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/FixedOrPercent.php b/vendor/google/apiclient-services/src/Google/Service/Compute/FixedOrPercent.php new file mode 100644 index 00000000..acf3254c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/FixedOrPercent.php @@ -0,0 +1,48 @@ +calculated = $calculated; + } + public function getCalculated() + { + return $this->calculated; + } + public function setFixed($fixed) + { + $this->fixed = $fixed; + } + public function getFixed() + { + return $this->fixed; + } + public function setPercent($percent) + { + $this->percent = $percent; + } + public function getPercent() + { + return $this->percent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php b/vendor/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php index c6442b39..9c4514d8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php @@ -24,6 +24,7 @@ class Google_Service_Compute_ForwardingRule extends Google_Collection ); public $iPAddress; public $iPProtocol; + public $allPorts; public $backendService; public $creationTimestamp; public $description; @@ -33,10 +34,13 @@ class Google_Service_Compute_ForwardingRule extends Google_Collection public $loadBalancingScheme; public $name; public $network; + public $networkTier; public $portRange; public $ports; public $region; public $selfLink; + public $serviceLabel; + public $serviceName; public $subnetwork; public $target; @@ -56,6 +60,14 @@ class Google_Service_Compute_ForwardingRule extends Google_Collection { return $this->iPProtocol; } + public function setAllPorts($allPorts) + { + $this->allPorts = $allPorts; + } + public function getAllPorts() + { + return $this->allPorts; + } public function setBackendService($backendService) { $this->backendService = $backendService; @@ -128,6 +140,14 @@ class Google_Service_Compute_ForwardingRule extends Google_Collection { return $this->network; } + public function setNetworkTier($networkTier) + { + $this->networkTier = $networkTier; + } + public function getNetworkTier() + { + return $this->networkTier; + } public function setPortRange($portRange) { $this->portRange = $portRange; @@ -160,6 +180,22 @@ class Google_Service_Compute_ForwardingRule extends Google_Collection { return $this->selfLink; } + public function setServiceLabel($serviceLabel) + { + $this->serviceLabel = $serviceLabel; + } + public function getServiceLabel() + { + return $this->serviceLabel; + } + public function setServiceName($serviceName) + { + $this->serviceName = $serviceName; + } + public function getServiceName() + { + return $this->serviceName; + } public function setSubnetwork($subnetwork) { $this->subnetwork = $subnetwork; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/GlobalSetPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/GlobalSetPolicyRequest.php new file mode 100644 index 00000000..db5bbf74 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/GlobalSetPolicyRequest.php @@ -0,0 +1,63 @@ +bindings = $bindings; + } + /** + * @return Google_Service_Compute_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_Compute_Policy + */ + public function setPolicy(Google_Service_Compute_Policy $policy) + { + $this->policy = $policy; + } + /** + * @return Google_Service_Compute_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Instance.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Instance.php index 262e9df4..2fd50835 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Instance.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Instance.php @@ -27,6 +27,7 @@ class Google_Service_Compute_Instance extends Google_Collection protected $disksDataType = 'array'; protected $guestAcceleratorsType = 'Google_Service_Compute_AcceleratorConfig'; protected $guestAcceleratorsDataType = 'array'; + public $hostname; public $id; public $kind; public $labelFingerprint; @@ -118,6 +119,14 @@ class Google_Service_Compute_Instance extends Google_Collection { return $this->guestAccelerators; } + public function setHostname($hostname) + { + $this->hostname = $hostname; + } + public function getHostname() + { + return $this->hostname; + } public function setId($id) { $this->id = $id; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php index ba952d23..e65c64c7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php @@ -17,12 +17,16 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection { - protected $collection_key = 'targetPools'; + protected $collection_key = 'versions'; + protected $autoHealingPoliciesType = 'Google_Service_Compute_InstanceGroupManagerAutoHealingPolicy'; + protected $autoHealingPoliciesDataType = 'array'; public $baseInstanceName; public $creationTimestamp; protected $currentActionsType = 'Google_Service_Compute_InstanceGroupManagerActionsSummary'; protected $currentActionsDataType = ''; public $description; + protected $distributionPolicyType = 'Google_Service_Compute_DistributionPolicy'; + protected $distributionPolicyDataType = ''; public $fingerprint; public $id; public $instanceGroup; @@ -33,10 +37,30 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection protected $namedPortsDataType = 'array'; public $region; public $selfLink; + protected $statusType = 'Google_Service_Compute_InstanceGroupManagerStatus'; + protected $statusDataType = ''; public $targetPools; public $targetSize; + protected $updatePolicyType = 'Google_Service_Compute_InstanceGroupManagerUpdatePolicy'; + protected $updatePolicyDataType = ''; + protected $versionsType = 'Google_Service_Compute_InstanceGroupManagerVersion'; + protected $versionsDataType = 'array'; public $zone; + /** + * @param Google_Service_Compute_InstanceGroupManagerAutoHealingPolicy + */ + public function setAutoHealingPolicies($autoHealingPolicies) + { + $this->autoHealingPolicies = $autoHealingPolicies; + } + /** + * @return Google_Service_Compute_InstanceGroupManagerAutoHealingPolicy + */ + public function getAutoHealingPolicies() + { + return $this->autoHealingPolicies; + } public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; @@ -75,6 +99,20 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection { return $this->description; } + /** + * @param Google_Service_Compute_DistributionPolicy + */ + public function setDistributionPolicy(Google_Service_Compute_DistributionPolicy $distributionPolicy) + { + $this->distributionPolicy = $distributionPolicy; + } + /** + * @return Google_Service_Compute_DistributionPolicy + */ + public function getDistributionPolicy() + { + return $this->distributionPolicy; + } public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; @@ -153,6 +191,20 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection { return $this->selfLink; } + /** + * @param Google_Service_Compute_InstanceGroupManagerStatus + */ + public function setStatus(Google_Service_Compute_InstanceGroupManagerStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_Compute_InstanceGroupManagerStatus + */ + public function getStatus() + { + return $this->status; + } public function setTargetPools($targetPools) { $this->targetPools = $targetPools; @@ -169,6 +221,34 @@ class Google_Service_Compute_InstanceGroupManager extends Google_Collection { return $this->targetSize; } + /** + * @param Google_Service_Compute_InstanceGroupManagerUpdatePolicy + */ + public function setUpdatePolicy(Google_Service_Compute_InstanceGroupManagerUpdatePolicy $updatePolicy) + { + $this->updatePolicy = $updatePolicy; + } + /** + * @return Google_Service_Compute_InstanceGroupManagerUpdatePolicy + */ + public function getUpdatePolicy() + { + return $this->updatePolicy; + } + /** + * @param Google_Service_Compute_InstanceGroupManagerVersion + */ + public function setVersions($versions) + { + $this->versions = $versions; + } + /** + * @return Google_Service_Compute_InstanceGroupManagerVersion + */ + public function getVersions() + { + return $this->versions; + } public function setZone($zone) { $this->zone = $zone; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php index 5c42550b..202dd91c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php @@ -25,6 +25,7 @@ class Google_Service_Compute_InstanceGroupManagerActionsSummary extends Google_M public $recreating; public $refreshing; public $restarting; + public $verifying; public function setAbandoning($abandoning) { @@ -90,4 +91,12 @@ class Google_Service_Compute_InstanceGroupManagerActionsSummary extends Google_M { return $this->restarting; } + public function setVerifying($verifying) + { + $this->verifying = $verifying; + } + public function getVerifying() + { + return $this->verifying; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAutoHealingPolicy.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAutoHealingPolicy.php index 7747c751..1f97c3c4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAutoHealingPolicy.php @@ -15,19 +15,11 @@ * the License. */ -class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model +class Google_Service_Compute_InstanceGroupManagerAutoHealingPolicy extends Google_Model { - public $actionType; public $healthCheck; + public $initialDelaySec; - public function setActionType($actionType) - { - $this->actionType = $actionType; - } - public function getActionType() - { - return $this->actionType; - } public function setHealthCheck($healthCheck) { $this->healthCheck = $healthCheck; @@ -36,4 +28,12 @@ class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Mod { return $this->healthCheck; } + public function setInitialDelaySec($initialDelaySec) + { + $this->initialDelaySec = $initialDelaySec; + } + public function getInitialDelaySec() + { + return $this->initialDelaySec; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/CustomAuthRequirements.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerStatus.php similarity index 74% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUser/CustomAuthRequirements.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerStatus.php index c3d30c47..3327347c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/CustomAuthRequirements.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerStatus.php @@ -15,16 +15,16 @@ * the License. */ -class Google_Service_ServiceUser_CustomAuthRequirements extends Google_Model +class Google_Service_Compute_InstanceGroupManagerStatus extends Google_Model { - public $provider; + public $isStable; - public function setProvider($provider) + public function setIsStable($isStable) { - $this->provider = $provider; + $this->isStable = $isStable; } - public function getProvider() + public function getIsStable() { - return $this->provider; + return $this->isStable; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerUpdatePolicy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerUpdatePolicy.php new file mode 100644 index 00000000..d896ac85 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerUpdatePolicy.php @@ -0,0 +1,71 @@ +maxSurge = $maxSurge; + } + /** + * @return Google_Service_Compute_FixedOrPercent + */ + public function getMaxSurge() + { + return $this->maxSurge; + } + /** + * @param Google_Service_Compute_FixedOrPercent + */ + public function setMaxUnavailable(Google_Service_Compute_FixedOrPercent $maxUnavailable) + { + $this->maxUnavailable = $maxUnavailable; + } + /** + * @return Google_Service_Compute_FixedOrPercent + */ + public function getMaxUnavailable() + { + return $this->maxUnavailable; + } + public function setMinimalAction($minimalAction) + { + $this->minimalAction = $minimalAction; + } + public function getMinimalAction() + { + return $this->minimalAction; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerVersion.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerVersion.php new file mode 100644 index 00000000..d8b4d4cc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerVersion.php @@ -0,0 +1,55 @@ +instanceTemplate = $instanceTemplate; + } + public function getInstanceTemplate() + { + return $this->instanceTemplate; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Compute_FixedOrPercent + */ + public function setTargetSize(Google_Service_Compute_FixedOrPercent $targetSize) + { + $this->targetSize = $targetSize; + } + /** + * @return Google_Service_Compute_FixedOrPercent + */ + public function getTargetSize() + { + return $this->targetSize; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php index a8362a4d..0c4157d4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php @@ -25,6 +25,9 @@ class Google_Service_Compute_InstanceTemplate extends Google_Model protected $propertiesType = 'Google_Service_Compute_InstanceProperties'; protected $propertiesDataType = ''; public $selfLink; + public $sourceInstance; + protected $sourceInstanceParamsType = 'Google_Service_Compute_SourceInstanceParams'; + protected $sourceInstanceParamsDataType = ''; public function setCreationTimestamp($creationTimestamp) { @@ -88,4 +91,26 @@ class Google_Service_Compute_InstanceTemplate extends Google_Model { return $this->selfLink; } + public function setSourceInstance($sourceInstance) + { + $this->sourceInstance = $sourceInstance; + } + public function getSourceInstance() + { + return $this->sourceInstance; + } + /** + * @param Google_Service_Compute_SourceInstanceParams + */ + public function setSourceInstanceParams(Google_Service_Compute_SourceInstanceParams $sourceInstanceParams) + { + $this->sourceInstanceParams = $sourceInstanceParams; + } + /** + * @return Google_Service_Compute_SourceInstanceParams + */ + public function getSourceInstanceParams() + { + return $this->sourceInstanceParams; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Interconnect.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Interconnect.php index 6084f350..235ea660 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Interconnect.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Interconnect.php @@ -41,6 +41,7 @@ class Google_Service_Compute_Interconnect extends Google_Collection public $provisionedLinkCount; public $requestedLinkCount; public $selfLink; + public $state; public function setAdminEnabled($adminEnabled) { @@ -222,4 +223,12 @@ class Google_Service_Compute_Interconnect extends Google_Collection { return $this->selfLink; } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachment.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachment.php index 3f7bbce2..65094dc0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachment.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachment.php @@ -15,24 +15,60 @@ * the License. */ -class Google_Service_Compute_InterconnectAttachment extends Google_Model +class Google_Service_Compute_InterconnectAttachment extends Google_Collection { + protected $collection_key = 'candidateSubnets'; + public $adminEnabled; + public $bandwidth; + public $candidateSubnets; public $cloudRouterIpAddress; public $creationTimestamp; public $customerRouterIpAddress; public $description; + public $edgeAvailabilityDomain; public $googleReferenceId; public $id; public $interconnect; public $kind; public $name; public $operationalStatus; + public $pairingKey; + public $partnerAsn; + protected $partnerMetadataType = 'Google_Service_Compute_InterconnectAttachmentPartnerMetadata'; + protected $partnerMetadataDataType = ''; protected $privateInterconnectInfoType = 'Google_Service_Compute_InterconnectAttachmentPrivateInfo'; protected $privateInterconnectInfoDataType = ''; public $region; public $router; public $selfLink; + public $state; + public $type; + public $vlanTag8021q; + public function setAdminEnabled($adminEnabled) + { + $this->adminEnabled = $adminEnabled; + } + public function getAdminEnabled() + { + return $this->adminEnabled; + } + public function setBandwidth($bandwidth) + { + $this->bandwidth = $bandwidth; + } + public function getBandwidth() + { + return $this->bandwidth; + } + public function setCandidateSubnets($candidateSubnets) + { + $this->candidateSubnets = $candidateSubnets; + } + public function getCandidateSubnets() + { + return $this->candidateSubnets; + } public function setCloudRouterIpAddress($cloudRouterIpAddress) { $this->cloudRouterIpAddress = $cloudRouterIpAddress; @@ -65,6 +101,14 @@ class Google_Service_Compute_InterconnectAttachment extends Google_Model { return $this->description; } + public function setEdgeAvailabilityDomain($edgeAvailabilityDomain) + { + $this->edgeAvailabilityDomain = $edgeAvailabilityDomain; + } + public function getEdgeAvailabilityDomain() + { + return $this->edgeAvailabilityDomain; + } public function setGoogleReferenceId($googleReferenceId) { $this->googleReferenceId = $googleReferenceId; @@ -113,6 +157,36 @@ class Google_Service_Compute_InterconnectAttachment extends Google_Model { return $this->operationalStatus; } + public function setPairingKey($pairingKey) + { + $this->pairingKey = $pairingKey; + } + public function getPairingKey() + { + return $this->pairingKey; + } + public function setPartnerAsn($partnerAsn) + { + $this->partnerAsn = $partnerAsn; + } + public function getPartnerAsn() + { + return $this->partnerAsn; + } + /** + * @param Google_Service_Compute_InterconnectAttachmentPartnerMetadata + */ + public function setPartnerMetadata(Google_Service_Compute_InterconnectAttachmentPartnerMetadata $partnerMetadata) + { + $this->partnerMetadata = $partnerMetadata; + } + /** + * @return Google_Service_Compute_InterconnectAttachmentPartnerMetadata + */ + public function getPartnerMetadata() + { + return $this->partnerMetadata; + } /** * @param Google_Service_Compute_InterconnectAttachmentPrivateInfo */ @@ -151,4 +225,28 @@ class Google_Service_Compute_InterconnectAttachment extends Google_Model { return $this->selfLink; } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVlanTag8021q($vlanTag8021q) + { + $this->vlanTag8021q = $vlanTag8021q; + } + public function getVlanTag8021q() + { + return $this->vlanTag8021q; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachmentPartnerMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachmentPartnerMetadata.php new file mode 100644 index 00000000..0496df58 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectAttachmentPartnerMetadata.php @@ -0,0 +1,48 @@ +interconnectName = $interconnectName; + } + public function getInterconnectName() + { + return $this->interconnectName; + } + public function setPartnerName($partnerName) + { + $this->partnerName = $partnerName; + } + public function getPartnerName() + { + return $this->partnerName; + } + public function setPortalUrl($portalUrl) + { + $this->portalUrl = $portalUrl; + } + public function getPortalUrl() + { + return $this->portalUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnostics.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnostics.php new file mode 100644 index 00000000..2e03e1e4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnostics.php @@ -0,0 +1,63 @@ +arpCaches = $arpCaches; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsARPEntry + */ + public function getArpCaches() + { + return $this->arpCaches; + } + /** + * @param Google_Service_Compute_InterconnectDiagnosticsLinkStatus + */ + public function setLinks($links) + { + $this->links = $links; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsLinkStatus + */ + public function getLinks() + { + return $this->links; + } + public function setMacAddress($macAddress) + { + $this->macAddress = $macAddress; + } + public function getMacAddress() + { + return $this->macAddress; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsARPEntry.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsARPEntry.php new file mode 100644 index 00000000..c969fe48 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsARPEntry.php @@ -0,0 +1,39 @@ +ipAddress = $ipAddress; + } + public function getIpAddress() + { + return $this->ipAddress; + } + public function setMacAddress($macAddress) + { + $this->macAddress = $macAddress; + } + public function getMacAddress() + { + return $this->macAddress; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkLACPStatus.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkLACPStatus.php new file mode 100644 index 00000000..189518e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkLACPStatus.php @@ -0,0 +1,48 @@ +googleSystemId = $googleSystemId; + } + public function getGoogleSystemId() + { + return $this->googleSystemId; + } + public function setNeighborSystemId($neighborSystemId) + { + $this->neighborSystemId = $neighborSystemId; + } + public function getNeighborSystemId() + { + return $this->neighborSystemId; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkOpticalPower.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkOpticalPower.php new file mode 100644 index 00000000..1b7d7f23 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkOpticalPower.php @@ -0,0 +1,39 @@ +state = $state; + } + public function getState() + { + return $this->state; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkStatus.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkStatus.php new file mode 100644 index 00000000..478fb996 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectDiagnosticsLinkStatus.php @@ -0,0 +1,104 @@ +arpCaches = $arpCaches; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsARPEntry + */ + public function getArpCaches() + { + return $this->arpCaches; + } + public function setCircuitId($circuitId) + { + $this->circuitId = $circuitId; + } + public function getCircuitId() + { + return $this->circuitId; + } + public function setGoogleDemarc($googleDemarc) + { + $this->googleDemarc = $googleDemarc; + } + public function getGoogleDemarc() + { + return $this->googleDemarc; + } + /** + * @param Google_Service_Compute_InterconnectDiagnosticsLinkLACPStatus + */ + public function setLacpStatus(Google_Service_Compute_InterconnectDiagnosticsLinkLACPStatus $lacpStatus) + { + $this->lacpStatus = $lacpStatus; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsLinkLACPStatus + */ + public function getLacpStatus() + { + return $this->lacpStatus; + } + /** + * @param Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower + */ + public function setReceivingOpticalPower(Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower $receivingOpticalPower) + { + $this->receivingOpticalPower = $receivingOpticalPower; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower + */ + public function getReceivingOpticalPower() + { + return $this->receivingOpticalPower; + } + /** + * @param Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower + */ + public function setTransmittingOpticalPower(Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower $transmittingOpticalPower) + { + $this->transmittingOpticalPower = $transmittingOpticalPower; + } + /** + * @return Google_Service_Compute_InterconnectDiagnosticsLinkOpticalPower + */ + public function getTransmittingOpticalPower() + { + return $this->transmittingOpticalPower; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectLocation.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectLocation.php index d0538ca6..be142862 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectLocation.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectLocation.php @@ -33,6 +33,7 @@ class Google_Service_Compute_InterconnectLocation extends Google_Collection protected $regionInfosType = 'Google_Service_Compute_InterconnectLocationRegionInfo'; protected $regionInfosDataType = 'array'; public $selfLink; + public $status; public function setAddress($address) { @@ -152,4 +153,12 @@ class Google_Service_Compute_InterconnectLocation extends Google_Collection { return $this->selfLink; } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectsGetDiagnosticsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectsGetDiagnosticsResponse.php new file mode 100644 index 00000000..4ae08548 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/InterconnectsGetDiagnosticsResponse.php @@ -0,0 +1,37 @@ +result = $result; + } + /** + * @return Google_Service_Compute_InterconnectDiagnostics + */ + public function getResult() + { + return $this->result; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfig.php new file mode 100644 index 00000000..7e09fbf1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfig.php @@ -0,0 +1,69 @@ +cloudAudit = $cloudAudit; + } + /** + * @return Google_Service_Compute_LogConfigCloudAuditOptions + */ + public function getCloudAudit() + { + return $this->cloudAudit; + } + /** + * @param Google_Service_Compute_LogConfigCounterOptions + */ + public function setCounter(Google_Service_Compute_LogConfigCounterOptions $counter) + { + $this->counter = $counter; + } + /** + * @return Google_Service_Compute_LogConfigCounterOptions + */ + public function getCounter() + { + return $this->counter; + } + /** + * @param Google_Service_Compute_LogConfigDataAccessOptions + */ + public function setDataAccess(Google_Service_Compute_LogConfigDataAccessOptions $dataAccess) + { + $this->dataAccess = $dataAccess; + } + /** + * @return Google_Service_Compute_LogConfigDataAccessOptions + */ + public function getDataAccess() + { + return $this->dataAccess; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCloudAuditOptions.php b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCloudAuditOptions.php new file mode 100644 index 00000000..f6654456 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCloudAuditOptions.php @@ -0,0 +1,46 @@ +authorizationLoggingOptions = $authorizationLoggingOptions; + } + /** + * @return Google_Service_Compute_AuthorizationLoggingOptions + */ + public function getAuthorizationLoggingOptions() + { + return $this->authorizationLoggingOptions; + } + public function setLogName($logName) + { + $this->logName = $logName; + } + public function getLogName() + { + return $this->logName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCounterOptions.php b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCounterOptions.php new file mode 100644 index 00000000..f3bc5b89 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigCounterOptions.php @@ -0,0 +1,39 @@ +field = $field; + } + public function getField() + { + return $this->field; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigDataAccessOptions.php b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigDataAccessOptions.php new file mode 100644 index 00000000..7a692c3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/LogConfigDataAccessOptions.php @@ -0,0 +1,30 @@ +logMode = $logMode; + } + public function getLogMode() + { + return $this->logMode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php b/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php index 5b0f1f55..fe4ca335 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php @@ -23,6 +23,8 @@ class Google_Service_Compute_ManagedInstance extends Google_Model public $instanceStatus; protected $lastAttemptType = 'Google_Service_Compute_ManagedInstanceLastAttempt'; protected $lastAttemptDataType = ''; + protected $versionType = 'Google_Service_Compute_ManagedInstanceVersion'; + protected $versionDataType = ''; public function setCurrentAction($currentAction) { @@ -70,4 +72,18 @@ class Google_Service_Compute_ManagedInstance extends Google_Model { return $this->lastAttempt; } + /** + * @param Google_Service_Compute_ManagedInstanceVersion + */ + public function setVersion(Google_Service_Compute_ManagedInstanceVersion $version) + { + $this->version = $version; + } + /** + * @return Google_Service_Compute_ManagedInstanceVersion + */ + public function getVersion() + { + return $this->version; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceVersion.php similarity index 79% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceVersion.php index d2899eac..94b8ba98 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceVersion.php @@ -15,9 +15,10 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model +class Google_Service_Compute_ManagedInstanceVersion extends Google_Model { public $instanceTemplate; + public $name; public function setInstanceTemplate($instanceTemplate) { @@ -27,4 +28,12 @@ class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest { return $this->instanceTemplate; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NetworkPeering.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NetworkPeering.php index cad4a5ac..3317ecc5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/NetworkPeering.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NetworkPeering.php @@ -18,6 +18,7 @@ class Google_Service_Compute_NetworkPeering extends Google_Model { public $autoCreateRoutes; + public $exchangeSubnetRoutes; public $name; public $network; public $state; @@ -31,6 +32,14 @@ class Google_Service_Compute_NetworkPeering extends Google_Model { return $this->autoCreateRoutes; } + public function setExchangeSubnetRoutes($exchangeSubnetRoutes) + { + $this->exchangeSubnetRoutes = $exchangeSubnetRoutes; + } + public function getExchangeSubnetRoutes() + { + return $this->exchangeSubnetRoutes; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NetworksAddPeeringRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NetworksAddPeeringRequest.php index 069cf0e1..9c8b5a59 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/NetworksAddPeeringRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NetworksAddPeeringRequest.php @@ -19,6 +19,8 @@ class Google_Service_Compute_NetworksAddPeeringRequest extends Google_Model { public $autoCreateRoutes; public $name; + protected $networkPeeringType = 'Google_Service_Compute_NetworkPeering'; + protected $networkPeeringDataType = ''; public $peerNetwork; public function setAutoCreateRoutes($autoCreateRoutes) @@ -37,6 +39,20 @@ class Google_Service_Compute_NetworksAddPeeringRequest extends Google_Model { return $this->name; } + /** + * @param Google_Service_Compute_NetworkPeering + */ + public function setNetworkPeering(Google_Service_Compute_NetworkPeering $networkPeering) + { + $this->networkPeering = $networkPeering; + } + /** + * @return Google_Service_Compute_NetworkPeering + */ + public function getNetworkPeering() + { + return $this->networkPeering; + } public function setPeerNetwork($peerNetwork) { $this->peerNetwork = $peerNetwork; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroup.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroup.php new file mode 100644 index 00000000..0afcb119 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroup.php @@ -0,0 +1,111 @@ +creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNodeTemplate($nodeTemplate) + { + $this->nodeTemplate = $nodeTemplate; + } + public function getNodeTemplate() + { + return $this->nodeTemplate; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedList.php new file mode 100644 index 00000000..620845ce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedList.php @@ -0,0 +1,89 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_NodeGroupsScopedList + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_NodeGroupsScopedList + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_NodeGroupAggregatedListWarning + */ + public function setWarning(Google_Service_Compute_NodeGroupAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeGroupAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarning.php new file mode 100644 index 00000000..884d15aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeGroupAggregatedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeGroupAggregatedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarningData.php new file mode 100644 index 00000000..c0f1a78b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupAggregatedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupList.php similarity index 69% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupList.php index 0b934269..f7047a8e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupList.php @@ -15,15 +15,17 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection +class Google_Service_Compute_NodeGroupList extends Google_Collection { protected $collection_key = 'items'; public $id; - protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager'; + protected $itemsType = 'Google_Service_Compute_NodeGroup'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; + protected $warningType = 'Google_Service_Compute_NodeGroupListWarning'; + protected $warningDataType = ''; public function setId($id) { @@ -34,14 +36,14 @@ class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collect return $this->id; } /** - * @param Google_Service_Replicapool_InstanceGroupManager + * @param Google_Service_Compute_NodeGroup */ public function setItems($items) { $this->items = $items; } /** - * @return Google_Service_Replicapool_InstanceGroupManager + * @return Google_Service_Compute_NodeGroup */ public function getItems() { @@ -71,4 +73,18 @@ class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collect { return $this->selfLink; } + /** + * @param Google_Service_Compute_NodeGroupListWarning + */ + public function setWarning(Google_Service_Compute_NodeGroupListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeGroupListWarning + */ + public function getWarning() + { + return $this->warning; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarning.php similarity index 80% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarning.php index 694e3ec0..6cf0ec05 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarning.php @@ -15,11 +15,11 @@ * the License. */ -class Google_Service_Replicapool_OperationWarnings extends Google_Collection +class Google_Service_Compute_NodeGroupListWarning extends Google_Collection { protected $collection_key = 'data'; public $code; - protected $dataType = 'Google_Service_Replicapool_OperationWarningsData'; + protected $dataType = 'Google_Service_Compute_NodeGroupListWarningData'; protected $dataDataType = 'array'; public $message; @@ -32,14 +32,14 @@ class Google_Service_Replicapool_OperationWarnings extends Google_Collection return $this->code; } /** - * @param Google_Service_Replicapool_OperationWarningsData + * @param Google_Service_Compute_NodeGroupListWarningData */ public function setData($data) { $this->data = $data; } /** - * @return Google_Service_Replicapool_OperationWarningsData + * @return Google_Service_Compute_NodeGroupListWarningData */ public function getData() { diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarningData.php similarity index 92% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarningData.php index bb04d214..917c4cc7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupListWarningData.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_Replicapool_OperationWarningsData extends Google_Model +class Google_Service_Compute_NodeGroupListWarningData extends Google_Model { public $key; public $value; diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupNode.php similarity index 60% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupNode.php index e4aac8a8..3bcc7544 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupNode.php @@ -15,10 +15,13 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection +class Google_Service_Compute_NodeGroupNode extends Google_Collection { protected $collection_key = 'instances'; public $instances; + public $name; + public $nodeType; + public $status; public function setInstances($instances) { @@ -28,4 +31,28 @@ class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest ex { return $this->instances; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNodeType($nodeType) + { + $this->nodeType = $nodeType; + } + public function getNodeType() + { + return $this->nodeType; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsAddNodesRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsAddNodesRequest.php new file mode 100644 index 00000000..6a41fe4a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsAddNodesRequest.php @@ -0,0 +1,30 @@ +additionalNodeCount = $additionalNodeCount; + } + public function getAdditionalNodeCount() + { + return $this->additionalNodeCount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsDeleteNodesRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsDeleteNodesRequest.php new file mode 100644 index 00000000..76d146dd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsDeleteNodesRequest.php @@ -0,0 +1,31 @@ +nodes = $nodes; + } + public function getNodes() + { + return $this->nodes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodes.php new file mode 100644 index 00000000..a8b2d1c3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodes.php @@ -0,0 +1,90 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_NodeGroupNode + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_NodeGroupNode + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_NodeGroupsListNodesWarning + */ + public function setWarning(Google_Service_Compute_NodeGroupsListNodesWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeGroupsListNodesWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarning.php new file mode 100644 index 00000000..7b950850 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeGroupsListNodesWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeGroupsListNodesWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarningData.php new file mode 100644 index 00000000..817b76a9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsListNodesWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedList.php new file mode 100644 index 00000000..3de4d919 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedList.php @@ -0,0 +1,54 @@ +nodeGroups = $nodeGroups; + } + /** + * @return Google_Service_Compute_NodeGroup + */ + public function getNodeGroups() + { + return $this->nodeGroups; + } + /** + * @param Google_Service_Compute_NodeGroupsScopedListWarning + */ + public function setWarning(Google_Service_Compute_NodeGroupsScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeGroupsScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarning.php new file mode 100644 index 00000000..f9e2ce06 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeGroupsScopedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeGroupsScopedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarningData.php new file mode 100644 index 00000000..65e8b6b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsScopedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsSetNodeTemplateRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsSetNodeTemplateRequest.php new file mode 100644 index 00000000..2115b542 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeGroupsSetNodeTemplateRequest.php @@ -0,0 +1,30 @@ +nodeTemplate = $nodeTemplate; + } + public function getNodeTemplate() + { + return $this->nodeTemplate; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplate.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplate.php new file mode 100644 index 00000000..ecd17916 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplate.php @@ -0,0 +1,136 @@ +creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNodeAffinityLabels($nodeAffinityLabels) + { + $this->nodeAffinityLabels = $nodeAffinityLabels; + } + public function getNodeAffinityLabels() + { + return $this->nodeAffinityLabels; + } + public function setNodeType($nodeType) + { + $this->nodeType = $nodeType; + } + public function getNodeType() + { + return $this->nodeType; + } + /** + * @param Google_Service_Compute_NodeTemplateNodeTypeFlexibility + */ + public function setNodeTypeFlexibility(Google_Service_Compute_NodeTemplateNodeTypeFlexibility $nodeTypeFlexibility) + { + $this->nodeTypeFlexibility = $nodeTypeFlexibility; + } + /** + * @return Google_Service_Compute_NodeTemplateNodeTypeFlexibility + */ + public function getNodeTypeFlexibility() + { + return $this->nodeTypeFlexibility; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedList.php new file mode 100644 index 00000000..80940ff3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedList.php @@ -0,0 +1,89 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_NodeTemplatesScopedList + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_NodeTemplatesScopedList + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_NodeTemplateAggregatedListWarning + */ + public function setWarning(Google_Service_Compute_NodeTemplateAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTemplateAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarning.php new file mode 100644 index 00000000..cd6702ba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTemplateAggregatedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTemplateAggregatedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarningData.php new file mode 100644 index 00000000..a5298ab3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateAggregatedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateList.php new file mode 100644 index 00000000..9841f352 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateList.php @@ -0,0 +1,90 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_NodeTemplate + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_NodeTemplate + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_NodeTemplateListWarning + */ + public function setWarning(Google_Service_Compute_NodeTemplateListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTemplateListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarning.php new file mode 100644 index 00000000..9b19d01c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTemplateListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTemplateListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarningData.php new file mode 100644 index 00000000..17fdb7c4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateNodeTypeFlexibility.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateNodeTypeFlexibility.php new file mode 100644 index 00000000..0775f3c9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplateNodeTypeFlexibility.php @@ -0,0 +1,48 @@ +cpus = $cpus; + } + public function getCpus() + { + return $this->cpus; + } + public function setLocalSsd($localSsd) + { + $this->localSsd = $localSsd; + } + public function getLocalSsd() + { + return $this->localSsd; + } + public function setMemory($memory) + { + $this->memory = $memory; + } + public function getMemory() + { + return $this->memory; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedList.php new file mode 100644 index 00000000..7d6fdd03 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedList.php @@ -0,0 +1,54 @@ +nodeTemplates = $nodeTemplates; + } + /** + * @return Google_Service_Compute_NodeTemplate + */ + public function getNodeTemplates() + { + return $this->nodeTemplates; + } + /** + * @param Google_Service_Compute_NodeTemplatesScopedListWarning + */ + public function setWarning(Google_Service_Compute_NodeTemplatesScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTemplatesScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarning.php new file mode 100644 index 00000000..c077b7ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTemplatesScopedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTemplatesScopedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarningData.php new file mode 100644 index 00000000..0c9f04cb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTemplatesScopedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeType.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeType.php new file mode 100644 index 00000000..8dd40a8e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeType.php @@ -0,0 +1,136 @@ +cpuPlatform = $cpuPlatform; + } + public function getCpuPlatform() + { + return $this->cpuPlatform; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + /** + * @param Google_Service_Compute_DeprecationStatus + */ + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + { + $this->deprecated = $deprecated; + } + /** + * @return Google_Service_Compute_DeprecationStatus + */ + public function getDeprecated() + { + return $this->deprecated; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setGuestCpus($guestCpus) + { + $this->guestCpus = $guestCpus; + } + public function getGuestCpus() + { + return $this->guestCpus; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocalSsdGb($localSsdGb) + { + $this->localSsdGb = $localSsdGb; + } + public function getLocalSsdGb() + { + return $this->localSsdGb; + } + public function setMemoryMb($memoryMb) + { + $this->memoryMb = $memoryMb; + } + public function getMemoryMb() + { + return $this->memoryMb; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedList.php new file mode 100644 index 00000000..129b0d1a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedList.php @@ -0,0 +1,89 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_NodeTypesScopedList + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_NodeTypesScopedList + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_NodeTypeAggregatedListWarning + */ + public function setWarning(Google_Service_Compute_NodeTypeAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTypeAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarning.php new file mode 100644 index 00000000..a5819cc7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTypeAggregatedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTypeAggregatedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarningData.php new file mode 100644 index 00000000..3ed12133 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeAggregatedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeList.php similarity index 69% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeList.php index e26acb52..459fbef6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeList.php @@ -15,15 +15,17 @@ * the License. */ -class Google_Service_Replicapool_OperationList extends Google_Collection +class Google_Service_Compute_NodeTypeList extends Google_Collection { protected $collection_key = 'items'; public $id; - protected $itemsType = 'Google_Service_Replicapool_Operation'; + protected $itemsType = 'Google_Service_Compute_NodeType'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; + protected $warningType = 'Google_Service_Compute_NodeTypeListWarning'; + protected $warningDataType = ''; public function setId($id) { @@ -34,14 +36,14 @@ class Google_Service_Replicapool_OperationList extends Google_Collection return $this->id; } /** - * @param Google_Service_Replicapool_Operation + * @param Google_Service_Compute_NodeType */ public function setItems($items) { $this->items = $items; } /** - * @return Google_Service_Replicapool_Operation + * @return Google_Service_Compute_NodeType */ public function getItems() { @@ -71,4 +73,18 @@ class Google_Service_Replicapool_OperationList extends Google_Collection { return $this->selfLink; } + /** + * @param Google_Service_Compute_NodeTypeListWarning + */ + public function setWarning(Google_Service_Compute_NodeTypeListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTypeListWarning + */ + public function getWarning() + { + return $this->warning; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarning.php new file mode 100644 index 00000000..eb7a8bea --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTypeListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTypeListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarningData.php new file mode 100644 index 00000000..2b1f882b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypeListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedList.php new file mode 100644 index 00000000..5463d843 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedList.php @@ -0,0 +1,54 @@ +nodeTypes = $nodeTypes; + } + /** + * @return Google_Service_Compute_NodeType + */ + public function getNodeTypes() + { + return $this->nodeTypes; + } + /** + * @param Google_Service_Compute_NodeTypesScopedListWarning + */ + public function setWarning(Google_Service_Compute_NodeTypesScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_NodeTypesScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarning.php new file mode 100644 index 00000000..5ba2f1ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_NodeTypesScopedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_NodeTypesScopedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarningData.php new file mode 100644 index 00000000..a5603e0e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/NodeTypesScopedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Policy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Policy.php new file mode 100644 index 00000000..fc685752 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Policy.php @@ -0,0 +1,97 @@ +auditConfigs = $auditConfigs; + } + /** + * @return Google_Service_Compute_AuditConfig + */ + public function getAuditConfigs() + { + return $this->auditConfigs; + } + /** + * @param Google_Service_Compute_Binding + */ + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + /** + * @return Google_Service_Compute_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setIamOwned($iamOwned) + { + $this->iamOwned = $iamOwned; + } + public function getIamOwned() + { + return $this->iamOwned; + } + /** + * @param Google_Service_Compute_Rule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_Compute_Rule + */ + public function getRules() + { + return $this->rules; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Project.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Project.php index b084a17a..8f1e2630 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Project.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Project.php @@ -21,6 +21,7 @@ class Google_Service_Compute_Project extends Google_Collection protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata'; protected $commonInstanceMetadataDataType = ''; public $creationTimestamp; + public $defaultNetworkTier; public $defaultServiceAccount; public $description; public $enabledFeatures; @@ -56,6 +57,14 @@ class Google_Service_Compute_Project extends Google_Collection { return $this->creationTimestamp; } + public function setDefaultNetworkTier($defaultNetworkTier) + { + $this->defaultNetworkTier = $defaultNetworkTier; + } + public function getDefaultNetworkTier() + { + return $this->defaultNetworkTier; + } public function setDefaultServiceAccount($defaultServiceAccount) { $this->defaultServiceAccount = $defaultServiceAccount; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/ProjectsSetDefaultNetworkTierRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/ProjectsSetDefaultNetworkTierRequest.php new file mode 100644 index 00000000..83a25bbc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/ProjectsSetDefaultNetworkTierRequest.php @@ -0,0 +1,30 @@ +networkTier = $networkTier; + } + public function getNetworkTier() + { + return $this->networkTier; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Quota.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Quota.php index 24bc0638..f9b5a919 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Quota.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Quota.php @@ -19,6 +19,7 @@ class Google_Service_Compute_Quota extends Google_Model { public $limit; public $metric; + public $owner; public $usage; public function setLimit($limit) @@ -37,6 +38,14 @@ class Google_Service_Compute_Quota extends Google_Model { return $this->metric; } + public function setOwner($owner) + { + $this->owner = $owner; + } + public function getOwner() + { + return $this->owner; + } public function setUsage($usage) { $this->usage = $usage; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeList.php new file mode 100644 index 00000000..08417838 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeList.php @@ -0,0 +1,90 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_DiskType + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_DiskType + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_RegionDiskTypeListWarning + */ + public function setWarning(Google_Service_Compute_RegionDiskTypeListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_RegionDiskTypeListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarning.php new file mode 100644 index 00000000..b0074909 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_RegionDiskTypeListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_RegionDiskTypeListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarningData.php new file mode 100644 index 00000000..b0eb12d2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDiskTypeListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDisksResizeRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDisksResizeRequest.php new file mode 100644 index 00000000..0216f22a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionDisksResizeRequest.php @@ -0,0 +1,30 @@ +sizeGb = $sizeGb; + } + public function getSizeGb() + { + return $this->sizeGb; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetLabelsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetLabelsRequest.php new file mode 100644 index 00000000..427e1feb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetLabelsRequest.php @@ -0,0 +1,39 @@ +labelFingerprint = $labelFingerprint; + } + public function getLabelFingerprint() + { + return $this->labelFingerprint; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetPolicyRequest.php new file mode 100644 index 00000000..0a05aa33 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RegionSetPolicyRequest.php @@ -0,0 +1,63 @@ +bindings = $bindings; + } + /** + * @return Google_Service_Compute_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_Compute_Policy + */ + public function setPolicy(Google_Service_Compute_Policy $policy) + { + $this->policy = $policy; + } + /** + * @return Google_Service_Compute_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/AcceleratorTypes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/AcceleratorTypes.php index 031cb937..5a3c0c51 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/AcceleratorTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/AcceleratorTypes.php @@ -79,8 +79,7 @@ class Google_Service_Compute_Resource_AcceleratorTypes extends Google_Service_Re return $this->call('aggregatedList', array($params), "Google_Service_Compute_AcceleratorTypeAggregatedList"); } /** - * Returns the specified accelerator type. Get a list of available accelerator - * types by making a list() request. (acceleratorTypes.get) + * Returns the specified accelerator type. (acceleratorTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php index 3495e7aa..3c1c9974 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php @@ -106,7 +106,7 @@ class Google_Service_Compute_Resource_Autoscalers extends Google_Service_Resourc return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified autoscaler resource. Get a list of available + * Returns the specified autoscaler resource. Gets a list of available * autoscalers by making a list() request. (autoscalers.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php index 9c25d661..31e30ccc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php @@ -25,6 +25,36 @@ */ class Google_Service_Compute_Resource_BackendBuckets extends Google_Service_Resource { + /** + * Adds a key for validating requests with signed URLs for this backend bucket. + * (backendBuckets.addSignedUrlKey) + * + * @param string $project Project ID for this request. + * @param string $backendBucket Name of the BackendBucket resource to which the + * Signed URL Key should be added. The name should conform to RFC1035. + * @param Google_Service_Compute_SignedUrlKey $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function addSignedUrlKey($project, $backendBucket, Google_Service_Compute_SignedUrlKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendBucket' => $backendBucket, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addSignedUrlKey', array($params), "Google_Service_Compute_Operation"); + } /** * Deletes the specified BackendBucket resource. (backendBuckets.delete) * @@ -53,8 +83,38 @@ class Google_Service_Compute_Resource_BackendBuckets extends Google_Service_Reso return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified BackendBucket resource. Get a list of available backend - * buckets by making a list() request. (backendBuckets.get) + * Deletes a key for validating requests with signed URLs for this backend + * bucket. (backendBuckets.deleteSignedUrlKey) + * + * @param string $project Project ID for this request. + * @param string $backendBucket Name of the BackendBucket resource to which the + * Signed URL Key should be added. The name should conform to RFC1035. + * @param string $keyName The name of the Signed URL Key to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function deleteSignedUrlKey($project, $backendBucket, $keyName, $optParams = array()) + { + $params = array('project' => $project, 'backendBucket' => $backendBucket, 'keyName' => $keyName); + $params = array_merge($params, $optParams); + return $this->call('deleteSignedUrlKey', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified BackendBucket resource. Gets a list of available + * backend buckets by making a list() request. (backendBuckets.get) * * @param string $project Project ID for this request. * @param string $backendBucket Name of the BackendBucket resource to return. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php index f78b87be..92de2fcc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php @@ -25,6 +25,36 @@ */ class Google_Service_Compute_Resource_BackendServices extends Google_Service_Resource { + /** + * Adds a key for validating requests with signed URLs for this backend service. + * (backendServices.addSignedUrlKey) + * + * @param string $project Project ID for this request. + * @param string $backendService Name of the BackendService resource to which + * the Signed URL Key should be added. The name should conform to RFC1035. + * @param Google_Service_Compute_SignedUrlKey $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function addSignedUrlKey($project, $backendService, Google_Service_Compute_SignedUrlKey $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addSignedUrlKey', array($params), "Google_Service_Compute_Operation"); + } /** * Retrieves the list of all BackendService resources, regional and global, * available to the specified project. (backendServices.aggregatedList) @@ -106,8 +136,38 @@ class Google_Service_Compute_Resource_BackendServices extends Google_Service_Res return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified BackendService resource. Get a list of available - * backend services by making a list() request. (backendServices.get) + * Deletes a key for validating requests with signed URLs for this backend + * service. (backendServices.deleteSignedUrlKey) + * + * @param string $project Project ID for this request. + * @param string $backendService Name of the BackendService resource to which + * the Signed URL Key should be added. The name should conform to RFC1035. + * @param string $keyName The name of the Signed URL Key to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function deleteSignedUrlKey($project, $backendService, $keyName, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'keyName' => $keyName); + $params = array_merge($params, $optParams); + return $this->call('deleteSignedUrlKey', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified BackendService resource. Gets a list of available + * backend services. (backendServices.get) * * @param string $project Project ID for this request. * @param string $backendService Name of the BackendService resource to return. @@ -252,6 +312,36 @@ class Google_Service_Compute_Resource_BackendServices extends Google_Service_Res $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets the security policy for the specified backend service. + * (backendServices.setSecurityPolicy) + * + * @param string $project Project ID for this request. + * @param string $backendService Name of the BackendService resource to which + * the security policy should be set. The name should conform to RFC1035. + * @param Google_Service_Compute_SecurityPolicyReference $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function setSecurityPolicy($project, $backendService, Google_Service_Compute_SecurityPolicyReference $postBody, $optParams = array()) + { + $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setSecurityPolicy', array($params), "Google_Service_Compute_Operation"); + } /** * Updates the specified BackendService resource with the data included in the * request. There are several restrictions and guidelines to keep in mind when diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php index c693e0ef..fa62043e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php @@ -78,8 +78,8 @@ class Google_Service_Compute_Resource_DiskTypes extends Google_Service_Resource return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); } /** - * Returns the specified disk type. Get a list of available disk types by making - * a list() request. (diskTypes.get) + * Returns the specified disk type. Gets a list of available disk types by + * making a list() request. (diskTypes.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php index 9206fef4..8acee94d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php @@ -139,8 +139,8 @@ class Google_Service_Compute_Resource_Disks extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns a specified persistent disk. Get a list of available persistent disks - * by making a list() request. (disks.get) + * Returns a specified persistent disk. Gets a list of available persistent + * disks by making a list() request. (disks.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -154,6 +154,22 @@ class Google_Service_Compute_Resource_Disks extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Disk"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (disks.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $zone, $resource, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Creates a persistent disk in the specified project using the data in the * request. You can create a disk with a sourceImage, a sourceSnapshot, or @@ -271,13 +287,30 @@ class Google_Service_Compute_Resource_Disks extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('resize', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (disks.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_ZoneSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $zone, $resource, Google_Service_Compute_ZoneSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Sets the labels on a disk. To learn more about labels, read the Labeling * Resources documentation. (disks.setLabels) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_Compute_ZoneSetLabelsRequest $postBody * @param array $optParams Optional parameters. * @@ -301,4 +334,21 @@ class Google_Service_Compute_Resource_Disks extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('setLabels', array($params), "Google_Service_Compute_Operation"); } + /** + * Returns permissions that a caller has on the specified resource. + * (disks.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $zone, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php index 8dc80007..3411abd9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php @@ -53,7 +53,7 @@ class Google_Service_Compute_Resource_GlobalAddresses extends Google_Service_Res return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified address resource. Get a list of available addresses by + * Returns the specified address resource. Gets a list of available addresses by * making a list() request. (globalAddresses.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php index f491f6a1..2ff86b6c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php @@ -54,7 +54,7 @@ class Google_Service_Compute_Resource_GlobalForwardingRules extends Google_Servi return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified GlobalForwardingRule resource. Get a list of available + * Returns the specified GlobalForwardingRule resource. Gets a list of available * forwarding rules by making a list() request. (globalForwardingRules.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php index 3e185eb0..b85842e2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php @@ -92,7 +92,7 @@ class Google_Service_Compute_Resource_GlobalOperations extends Google_Service_Re return $this->call('delete', array($params)); } /** - * Retrieves the specified Operations resource. Get a list of operations by + * Retrieves the specified Operations resource. Gets a list of operations by * making a list() request. (globalOperations.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php index 47b9aadb..6e284977 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php @@ -53,7 +53,7 @@ class Google_Service_Compute_Resource_HealthChecks extends Google_Service_Resour return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified HealthCheck resource. Get a list of available health + * Returns the specified HealthCheck resource. Gets a list of available health * checks by making a list() request. (healthChecks.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php index 58d61897..4511b123 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php @@ -54,7 +54,7 @@ class Google_Service_Compute_Resource_HttpHealthChecks extends Google_Service_Re return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified HttpHealthCheck resource. Get a list of available HTTP + * Returns the specified HttpHealthCheck resource. Gets a list of available HTTP * health checks by making a list() request. (httpHealthChecks.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php index 28070f1e..e6683174 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php @@ -54,7 +54,7 @@ class Google_Service_Compute_Resource_HttpsHealthChecks extends Google_Service_R return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified HttpsHealthCheck resource. Get a list of available + * Returns the specified HttpsHealthCheck resource. Gets a list of available * HTTPS health checks by making a list() request. (httpsHealthChecks.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php index 110093b7..c7bef4e7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php @@ -84,7 +84,7 @@ class Google_Service_Compute_Resource_Images extends Google_Service_Resource return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified image. Get a list of available images by making a + * Returns the specified image. Gets a list of available images by making a * list() request. (images.get) * * @param string $project Project ID for this request. @@ -113,6 +113,21 @@ class Google_Service_Compute_Resource_Images extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('getFromFamily', array($params), "Google_Service_Compute_Image"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (images.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Creates an image in the specified project using the data included in the * request. (images.insert) @@ -199,12 +214,28 @@ class Google_Service_Compute_Resource_Images extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_ImageList"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (images.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_GlobalSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_Compute_GlobalSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Sets the labels on an image. To learn more about labels, read the Labeling * Resources documentation. (images.setLabels) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_Compute_GlobalSetLabelsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -215,4 +246,20 @@ class Google_Service_Compute_Resource_Images extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('setLabels', array($params), "Google_Service_Compute_Operation"); } + /** + * Returns permissions that a caller has on the specified resource. + * (images.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php index 7596c93b..a011b028 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php @@ -26,14 +26,14 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Service_Resource { /** - * Schedules a group action to remove the specified instances from the managed - * instance group. Abandoning an instance does not delete the instance, but it - * does remove the instance from any target pools that are applied by the - * managed instance group. This method reduces the targetSize of the managed - * instance group by the number of instances that you abandon. This operation is - * marked as DONE when the action is scheduled even if the instances have not - * yet been removed from the group. You must separately verify the status of the - * abandoning action with the listmanagedinstances method. + * Flags the specified instances to be removed from the managed instance group. + * Abandoning an instance does not delete the instance, but it does remove the + * instance from any target pools that are applied by the managed instance + * group. This method reduces the targetSize of the managed instance group by + * the number of instances that you abandon. This operation is marked as DONE + * when the action is scheduled even if the instances have not yet been removed + * from the group. You must separately verify the status of the abandoning + * action with the listmanagedinstances method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration @@ -156,13 +156,13 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Servi return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Schedules a group action to delete the specified instances in the managed - * instance group. The instances are also removed from any target pools of which - * they were a member. This method reduces the targetSize of the managed - * instance group by the number of instances that you delete. This operation is - * marked as DONE when the action is scheduled even if the instances are still - * being deleted. You must separately verify the status of the deleting action - * with the listmanagedinstances method. + * Flags the specified instances in the managed instance group for immediate + * deletion. The instances are also removed from any target pools of which they + * were a member. This method reduces the targetSize of the managed instance + * group by the number of instances that you delete. This operation is marked as + * DONE when the action is scheduled even if the instances are still being + * deleted. You must separately verify the status of the deleting action with + * the listmanagedinstances method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration @@ -218,11 +218,11 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Servi } /** * Creates a managed instance group using the information that you specify in - * the request. After the group is created, it schedules an action to create - * instances in the group using the specified instance template. This operation - * is marked as DONE when the group is created even if the instances in the - * group have not yet been created. You must separately verify the status of the - * individual instances with the listmanagedinstances method. + * the request. After the group is created, instances in the group are created + * using the specified instance template. This operation is marked as DONE when + * the group is created even if the instances in the group have not yet been + * created. You must separately verify the status of the individual instances + * with the listmanagedinstances method. * * A managed instance group can have up to 1000 VM instances per group. Please * contact Cloud Support if you need an increase in this limit. @@ -323,10 +323,44 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Servi * @param string $instanceGroupManager The name of the managed instance group. * @param array $optParams Optional parameters. * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string order_by - * @opt_param string pageToken + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string order_by Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse */ public function listManagedInstances($project, $zone, $instanceGroupManager, $optParams = array()) @@ -336,12 +370,48 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Servi return $this->call('listManagedInstances', array($params), "Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse"); } /** - * Schedules a group action to recreate the specified instances in the managed - * instance group. The instances are deleted and recreated using the current - * instance template for the managed instance group. This operation is marked as - * DONE when the action is scheduled even if the instances have not yet been - * recreated. You must separately verify the status of the recreating action - * with the listmanagedinstances method. + * Updates a managed instance group using the information that you specify in + * the request. This operation is marked as DONE when the group is patched even + * if the instances in the group are still in the process of being patched. You + * must separately verify the status of the individual instances with the + * listManagedInstances method. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * (instanceGroupManagers.patch) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone where you want to create the managed + * instance group. + * @param string $instanceGroupManager The name of the instance group manager. + * @param Google_Service_Compute_InstanceGroupManager $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function patch($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Flags the specified instances in the managed instance group to be immediately + * recreated. The instances are deleted and recreated using the current instance + * template for the managed instance group. This operation is marked as DONE + * when the flag is set even if the instances have not yet been recreated. You + * must separately verify the status of the recreating action with the + * listmanagedinstances method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration @@ -385,6 +455,16 @@ class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Servi * deleted any instances. You must separately verify the status of the creating * or deleting actions with the listmanagedinstances method. * + * When resizing down, the instance group arbitrarily chooses the order in which + * VMs are deleted. The group takes into account some VM attributes when making + * the selection including: + * + * + The status of the VM instance. + The health of the VM instance. + The + * instance template version the VM is based on. + For regional managed instance + * groups, the location of the VM instance. + * + * This list is subject to change. + * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration * has elapsed before the VM instance is removed or deleted. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php index fc8273e3..e5ba6217 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php @@ -141,8 +141,8 @@ class Google_Service_Compute_Resource_InstanceGroups extends Google_Service_Reso return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified instance group. Get a list of available instance groups - * by making a list() request. (instanceGroups.get) + * Returns the specified instance group. Gets a list of available instance + * groups by making a list() request. (instanceGroups.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone where the instance group is located. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php index 184622d2..bed57981 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php @@ -27,8 +27,8 @@ class Google_Service_Compute_Resource_InstanceTemplates extends Google_Service_R { /** * Deletes the specified instance template. Deleting an instance template is - * permanent and cannot be undone. It's not possible to delete templates which - * are in use by an instance group. (instanceTemplates.delete) + * permanent and cannot be undone. It is not possible to delete templates that + * are already in use by a managed instance group. (instanceTemplates.delete) * * @param string $project Project ID for this request. * @param string $instanceTemplate The name of the instance template to delete. @@ -69,6 +69,21 @@ class Google_Service_Compute_Resource_InstanceTemplates extends Google_Service_R $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (instanceTemplates.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Creates an instance template in the specified project using the data that is * included in the request. If you are creating a new template to update an @@ -102,7 +117,7 @@ class Google_Service_Compute_Resource_InstanceTemplates extends Google_Service_R } /** * Retrieves a list of instance templates that are contained within the - * specified project and zone. (instanceTemplates.listInstanceTemplates) + * specified project. (instanceTemplates.listInstanceTemplates) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. @@ -153,4 +168,36 @@ class Google_Service_Compute_Resource_InstanceTemplates extends Google_Service_R $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (instanceTemplates.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_GlobalSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_Compute_GlobalSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. + * (instanceTemplates.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php index 1a9ece6f..861ca5cd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php @@ -58,7 +58,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves aggregated list of instances. (instances.aggregatedList) + * Retrieves aggregated list of all of the instances in your project across all + * regions and zones. (instances.aggregatedList) * * @param string $project Project ID for this request. * @param array $optParams Optional parameters. @@ -121,6 +122,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * @param Google_Service_Compute_AttachedDisk $postBody * @param array $optParams Optional parameters. * + * @opt_param bool forceAttach Whether to force attach the disk even if it's + * currently attached to another instance. * @opt_param string requestId An optional request ID to identify requests. * Specify a unique request ID so that if you must retry your request, the * server will know to ignore the request if it has already been completed. @@ -206,8 +209,9 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. - * @param string $deviceName Disk device name to detach. + * @param string $instance Instance name for this request. + * @param string $deviceName The device name of the disk to detach. Make a get() + * request on the instance to view currently attached disks and device names. * @param array $optParams Optional parameters. * * @opt_param string requestId An optional request ID to identify requests. @@ -231,8 +235,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified Instance resource. Get a list of available instances by - * making a list() request. (instances.get) + * Returns the specified Instance resource. Gets a list of available instances + * by making a list() request. (instances.get) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -247,7 +251,23 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_Compute_Instance"); } /** - * Returns the specified instance's serial port output. + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (instances.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $zone, $resource, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Returns the last 1 MB of serial port output from the specified instance. * (instances.getSerialPortOutput) * * @param string $project Project ID for this request. @@ -295,9 +315,9 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * * This field is optional. It can be a full or partial URL. For example, the * following are all valid URLs to an instance template: - https://www.googlea - * pis.com/compute/v1/projects/project/global/global/instanceTemplates/instanceT - * emplate - projects/project/global/global/instanceTemplates/instanceTemplate - * - global/instancesTemplates/instanceTemplate + * pis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + * - projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate * @return Google_Service_Compute_Operation */ public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array()) @@ -362,7 +382,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource } /** * Retrieves the list of referrers to instances contained within the specified - * zone. (instances.listReferrers) + * zone. For more information, read Viewing Referrers to VM Instances. + * (instances.listReferrers) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -417,8 +438,9 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('listReferrers', array($params), "Google_Service_Compute_InstanceListReferrers"); } /** - * Performs a reset on the instance. For more information, see Resetting an - * instance. (instances.reset) + * Performs a reset on the instance. This is a hard reset the VM does not do a + * graceful shutdown. For more information, see Resetting an instance. + * (instances.reset) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -450,7 +472,7 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param array $optParams Optional parameters. * * @opt_param bool deletionProtection Whether the resource should be protected @@ -481,10 +503,11 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $instance The instance name. + * @param string $instance The instance name for this request. * @param bool $autoDelete Whether to auto-delete the disk when the instance is * deleted. - * @param string $deviceName The device name of the disk to modify. + * @param string $deviceName The device name of the disk to modify. Make a get() + * request on the instance to view currently attached disks and device names. * @param array $optParams Optional parameters. * * @opt_param string requestId An optional request ID to identify requests. @@ -507,6 +530,23 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (instances.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_ZoneSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $zone, $resource, Google_Service_Compute_ZoneSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Sets labels on an instance. To learn more about labels, read the Labeling * Resources documentation. (instances.setLabels) @@ -663,7 +703,7 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. - * @param string $instance Instance name. + * @param string $instance Instance name for this request. * @param Google_Service_Compute_Scheduling $postBody * @param array $optParams Optional parameters. * @@ -719,8 +759,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('setServiceAccount', array($params), "Google_Service_Compute_Operation"); } /** - * Sets tags for the specified instance to the data included in the request. - * (instances.setTags) + * Sets network tags for the specified instance to the data included in the + * request. (instances.setTags) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -749,8 +789,24 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('setTags', array($params), "Google_Service_Compute_Operation"); } /** - * Starts an instance that was stopped using the using the instances().stop - * method. For more information, see Restart an instance. (instances.start) + * Simulates a maintenance event on the instance. + * (instances.simulateMaintenanceEvent) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance Name of the instance scoping this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function simulateMaintenanceEvent($project, $zone, $instance, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('simulateMaintenanceEvent', array($params), "Google_Service_Compute_Operation"); + } + /** + * Starts an instance that was stopped using the instances().stop method. For + * more information, see Restart an instance. (instances.start) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -778,9 +834,8 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource return $this->call('start', array($params), "Google_Service_Compute_Operation"); } /** - * Starts an instance that was stopped using the using the instances().stop - * method. For more information, see Restart an instance. - * (instances.startWithEncryptionKey) + * Starts an instance that was stopped using the instances().stop method. For + * more information, see Restart an instance. (instances.startWithEncryptionKey) * * @param string $project Project ID for this request. * @param string $zone The name of the zone for this request. @@ -841,6 +896,23 @@ class Google_Service_Compute_Resource_Instances extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('stop', array($params), "Google_Service_Compute_Operation"); } + /** + * Returns permissions that a caller has on the specified resource. + * (instances.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $zone, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } /** * Updates the specified access config from an instance's network interface with * the data included in the request. This method supports PATCH semantics and diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectAttachments.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectAttachments.php index 476b4dc0..25ef9595 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectAttachments.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectAttachments.php @@ -207,4 +207,36 @@ class Google_Service_Compute_Resource_InterconnectAttachments extends Google_Ser $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_InterconnectAttachmentList"); } + /** + * Updates the specified interconnect attachment with the data included in the + * request. This method supports PATCH semantics and uses the JSON merge patch + * format and processing rules. (interconnectAttachments.patch) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $interconnectAttachment Name of the interconnect attachment to + * patch. + * @param Google_Service_Compute_InterconnectAttachment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function patch($project, $region, $interconnectAttachment, Google_Service_Compute_InterconnectAttachment $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'interconnectAttachment' => $interconnectAttachment, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectLocations.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectLocations.php index d750bdef..da06afac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/InterconnectLocations.php @@ -26,7 +26,7 @@ class Google_Service_Compute_Resource_InterconnectLocations extends Google_Service_Resource { /** - * Returns the details for the specified interconnect location. Get a list of + * Returns the details for the specified interconnect location. Gets a list of * available interconnect locations by making a list() request. * (interconnectLocations.get) * diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Interconnects.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Interconnects.php index 28f0ca28..36e0fc33 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Interconnects.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Interconnects.php @@ -67,6 +67,21 @@ class Google_Service_Compute_Resource_Interconnects extends Google_Service_Resou $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Interconnect"); } + /** + * Returns the interconnectDiagnostics for the specified interconnect. + * (interconnects.getDiagnostics) + * + * @param string $project Project ID for this request. + * @param string $interconnect Name of the interconnect resource to query. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_InterconnectsGetDiagnosticsResponse + */ + public function getDiagnostics($project, $interconnect, $optParams = array()) + { + $params = array('project' => $project, 'interconnect' => $interconnect); + $params = array_merge($params, $optParams); + return $this->call('getDiagnostics', array($params), "Google_Service_Compute_InterconnectsGetDiagnosticsResponse"); + } /** * Creates a Interconnect in the specified project using the data included in * the request. (interconnects.insert) diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/LicenseCodes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/LicenseCodes.php index d2972945..e94856b5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/LicenseCodes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/LicenseCodes.php @@ -46,7 +46,7 @@ class Google_Service_Compute_Resource_LicenseCodes extends Google_Service_Resour * (licenseCodes.testIamPermissions) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_Compute_TestPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_TestPermissionsResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php index 1dd0f322..e2ef9885 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php @@ -66,6 +66,21 @@ class Google_Service_Compute_Resource_Licenses extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_License"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (licenses.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Create a License resource in the specified project. (licenses.insert) * @@ -96,7 +111,7 @@ class Google_Service_Compute_Resource_Licenses extends Google_Service_Resource /** * Retrieves the list of licenses available in the specified project. This * method does not get any licenses that belong to other projects, including - * licenses attached to publicly-available images, like Debian 8. If you want to + * licenses attached to publicly-available images, like Debian 9. If you want to * get a list of publicly-available licenses, use this method to make a request * to the respective image project, such as debian-cloud or windows-cloud. * (licenses.listLicenses) @@ -150,12 +165,28 @@ class Google_Service_Compute_Resource_Licenses extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_LicensesListResponse"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (licenses.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_GlobalSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_Compute_GlobalSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Returns permissions that a caller has on the specified resource. * (licenses.testIamPermissions) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_Compute_TestPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_TestPermissionsResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php index 50630248..6c1c366c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php @@ -81,7 +81,7 @@ class Google_Service_Compute_Resource_Networks extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified network. Get a list of available networks by making a + * Returns the specified network. Gets a list of available networks by making a * list() request. (networks.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeGroups.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeGroups.php new file mode 100644 index 00000000..90c192aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeGroups.php @@ -0,0 +1,403 @@ + + * $computeService = new Google_Service_Compute(...); + * $nodeGroups = $computeService->nodeGroups; + * + */ +class Google_Service_Compute_Resource_NodeGroups extends Google_Service_Resource +{ + /** + * Adds specified number of nodes to the node group. (nodeGroups.addNodes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the NodeGroup resource. + * @param Google_Service_Compute_NodeGroupsAddNodesRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function addNodes($project, $zone, $nodeGroup, Google_Service_Compute_NodeGroupsAddNodesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addNodes', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes + * for more details about each group. (nodeGroups.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeGroupAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_NodeGroupAggregatedList"); + } + /** + * Deletes the specified NodeGroup resource. (nodeGroups.delete) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the NodeGroup resource to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function delete($project, $zone, $nodeGroup, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Deletes specified nodes from the node group. (nodeGroups.deleteNodes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the NodeGroup resource to delete. + * @param Google_Service_Compute_NodeGroupsDeleteNodesRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function deleteNodes($project, $zone, $nodeGroup, Google_Service_Compute_NodeGroupsDeleteNodesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteNodes', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified NodeGroup. Get a list of available NodeGroups by making + * a list() request. Note: the "nodes" field should not be used. Use + * nodeGroups.listNodes instead. (nodeGroups.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the node group to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_NodeGroup + */ + public function get($project, $zone, $nodeGroup, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_NodeGroup"); + } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (nodeGroups.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $zone, $resource, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Creates a NodeGroup resource in the specified project using the data included + * in the request. (nodeGroups.insert) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param int $initialNodeCount Initial count of nodes in the node group. + * @param Google_Service_Compute_NodeGroup $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function insert($project, $zone, $initialNodeCount, Google_Service_Compute_NodeGroup $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'initialNodeCount' => $initialNodeCount, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. + * (nodeGroups.listNodeGroups) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeGroupList + */ + public function listNodeGroups($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NodeGroupList"); + } + /** + * Lists nodes in the node group. (nodeGroups.listNodes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the NodeGroup resource whose nodes you want + * to list. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeGroupsListNodes + */ + public function listNodes($project, $zone, $nodeGroup, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup); + $params = array_merge($params, $optParams); + return $this->call('listNodes', array($params), "Google_Service_Compute_NodeGroupsListNodes"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (nodeGroups.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_ZoneSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $zone, $resource, Google_Service_Compute_ZoneSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Updates the node template of the node group. (nodeGroups.setNodeTemplate) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeGroup Name of the NodeGroup resource to update. + * @param Google_Service_Compute_NodeGroupsSetNodeTemplateRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function setNodeTemplate($project, $zone, $nodeGroup, Google_Service_Compute_NodeGroupsSetNodeTemplateRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeGroup' => $nodeGroup, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setNodeTemplate', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns permissions that a caller has on the specified resource. + * (nodeGroups.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $zone, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTemplates.php new file mode 100644 index 00000000..c043338f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTemplates.php @@ -0,0 +1,258 @@ + + * $computeService = new Google_Service_Compute(...); + * $nodeTemplates = $computeService->nodeTemplates; + * + */ +class Google_Service_Compute_Resource_NodeTemplates extends Google_Service_Resource +{ + /** + * Retrieves an aggregated list of node templates. + * (nodeTemplates.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeTemplateAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_NodeTemplateAggregatedList"); + } + /** + * Deletes the specified NodeTemplate resource. (nodeTemplates.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $nodeTemplate Name of the NodeTemplate resource to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $nodeTemplate, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'nodeTemplate' => $nodeTemplate); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns the specified node template. Gets a list of available node templates + * by making a list() request. (nodeTemplates.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $nodeTemplate Name of the node template to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_NodeTemplate + */ + public function get($project, $region, $nodeTemplate, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'nodeTemplate' => $nodeTemplate); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_NodeTemplate"); + } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (nodeTemplates.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $region, $resource, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Creates a NodeTemplate resource in the specified project using the data + * included in the request. (nodeTemplates.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_Service_Compute_NodeTemplate $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_NodeTemplate $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves a list of node templates available to the specified project. + * (nodeTemplates.listNodeTemplates) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeTemplateList + */ + public function listNodeTemplates($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NodeTemplateList"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (nodeTemplates.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_RegionSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $region, $resource, Google_Service_Compute_RegionSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. + * (nodeTemplates.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $region, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTypes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTypes.php new file mode 100644 index 00000000..b441258f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/NodeTypes.php @@ -0,0 +1,150 @@ + + * $computeService = new Google_Service_Compute(...); + * $nodeTypes = $computeService->nodeTypes; + * + */ +class Google_Service_Compute_Resource_NodeTypes extends Google_Service_Resource +{ + /** + * Retrieves an aggregated list of node types. (nodeTypes.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeTypeAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_NodeTypeAggregatedList"); + } + /** + * Returns the specified node type. Gets a list of available node types by + * making a list() request. (nodeTypes.get) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $nodeType Name of the node type to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_NodeType + */ + public function get($project, $zone, $nodeType, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'nodeType' => $nodeType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_NodeType"); + } + /** + * Retrieves a list of node types available to the specified project. + * (nodeTypes.listNodeTypes) + * + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_NodeTypeList + */ + public function listNodeTypes($project, $zone, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_NodeTypeList"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php index 98e5939d..63ea19be 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php @@ -168,10 +168,44 @@ class Google_Service_Compute_Resource_Projects extends Google_Service_Resource * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string order_by - * @opt_param string pageToken + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string order_by Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_ProjectsGetXpnResources */ public function getXpnResources($project, $optParams = array()) @@ -188,10 +222,44 @@ class Google_Service_Compute_Resource_Projects extends Google_Service_Resource * @param Google_Service_Compute_ProjectsListXpnHostsRequest $postBody * @param array $optParams Optional parameters. * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string order_by - * @opt_param string pageToken + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string order_by Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_XpnHostList */ public function listXpnHosts($project, Google_Service_Compute_ProjectsListXpnHostsRequest $postBody, $optParams = array()) @@ -283,6 +351,35 @@ class Google_Service_Compute_Resource_Projects extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets the default network tier of the project. The default network tier is + * used when an address/forwardingRule/instance is created without specifying + * the network tier field. (projects.setDefaultNetworkTier) + * + * @param string $project Project ID for this request. + * @param Google_Service_Compute_ProjectsSetDefaultNetworkTierRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function setDefaultNetworkTier($project, Google_Service_Compute_ProjectsSetDefaultNetworkTierRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setDefaultNetworkTier', array($params), "Google_Service_Compute_Operation"); + } /** * Enables the usage export feature and sets the usage export bucket where * reports are stored. If you provide an empty request body using this method, diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionCommitments.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionCommitments.php index 695e0ac2..a2a0587b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionCommitments.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionCommitments.php @@ -79,7 +79,7 @@ class Google_Service_Compute_Resource_RegionCommitments extends Google_Service_R return $this->call('aggregatedList', array($params), "Google_Service_Compute_CommitmentAggregatedList"); } /** - * Returns the specified commitment resource. Get a list of available + * Returns the specified commitment resource. Gets a list of available * commitments by making a list() request. (regionCommitments.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDiskTypes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDiskTypes.php new file mode 100644 index 00000000..5b7972ce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDiskTypes.php @@ -0,0 +1,98 @@ + + * $computeService = new Google_Service_Compute(...); + * $regionDiskTypes = $computeService->regionDiskTypes; + * + */ +class Google_Service_Compute_Resource_RegionDiskTypes extends Google_Service_Resource +{ + /** + * Returns the specified regional disk type. Gets a list of available disk types + * by making a list() request. (regionDiskTypes.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $diskType Name of the disk type to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_DiskType + */ + public function get($project, $region, $diskType, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'diskType' => $diskType); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + } + /** + * Retrieves a list of regional disk types available to the specified project. + * (regionDiskTypes.listRegionDiskTypes) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_RegionDiskTypeList + */ + public function listRegionDiskTypes($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_RegionDiskTypeList"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDisks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDisks.php new file mode 100644 index 00000000..43a6ba59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionDisks.php @@ -0,0 +1,262 @@ + + * $computeService = new Google_Service_Compute(...); + * $regionDisks = $computeService->regionDisks; + * + */ +class Google_Service_Compute_Resource_RegionDisks extends Google_Service_Resource +{ + /** + * Creates a snapshot of this regional disk. (regionDisks.createSnapshot) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param string $disk Name of the regional persistent disk to snapshot. + * @param Google_Service_Compute_Snapshot $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function createSnapshot($project, $region, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + } + /** + * Deletes the specified regional persistent disk. Deleting a regional disk + * removes all the replicas of its data permanently and is irreversible. + * However, deleting a disk does not delete any snapshots previously made from + * the disk. You must separately delete snapshots. (regionDisks.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param string $disk Name of the regional persistent disk to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $disk, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns a specified regional persistent disk. (regionDisks.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param string $disk Name of the regional persistent disk to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Disk + */ + public function get($project, $region, $disk, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'disk' => $disk); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_Disk"); + } + /** + * Creates a persistent regional disk in the specified project using the data + * included in the request. (regionDisks.insert) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param Google_Service_Compute_Disk $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @opt_param string sourceImage Optional. Source image to restore onto a disk. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_Disk $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * Retrieves the list of persistent disks contained within the specified region. + * (regionDisks.listRegionDisks) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_DiskList + */ + public function listRegionDisks($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + } + /** + * Resizes the specified regional persistent disk. (regionDisks.resize) + * + * @param string $project The project ID for this request. + * @param string $region Name of the region for this request. + * @param string $disk Name of the regional persistent disk. + * @param Google_Service_Compute_RegionDisksResizeRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function resize($project, $region, $disk, Google_Service_Compute_RegionDisksResizeRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'disk' => $disk, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('resize', array($params), "Google_Service_Compute_Operation"); + } + /** + * Sets the labels on the target regional disk. (regionDisks.setLabels) + * + * @param string $project Project ID for this request. + * @param string $region The region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_RegionSetLabelsRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function setLabels($project, $region, $resource, Google_Service_Compute_RegionSetLabelsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setLabels', array($params), "Google_Service_Compute_Operation"); + } + /** + * Returns permissions that a caller has on the specified resource. + * (regionDisks.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $region, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php index f94d15a3..41584fdd 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php @@ -26,7 +26,7 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google_Service_Resource { /** - * Schedules a group action to remove the specified instances from the managed + * Flags the specified instances to be immediately removed from the managed * instance group. Abandoning an instance does not delete the instance, but it * does remove the instance from any target pools that are applied by the * managed instance group. This method reduces the targetSize of the managed @@ -99,13 +99,13 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Schedules a group action to delete the specified instances in the managed - * instance group. The instances are also removed from any target pools of which - * they were a member. This method reduces the targetSize of the managed - * instance group by the number of instances that you delete. This operation is - * marked as DONE when the action is scheduled even if the instances are still - * being deleted. You must separately verify the status of the deleting action - * with the listmanagedinstances method. + * Flags the specified instances in the managed instance group to be immediately + * deleted. The instances are also removed from any target pools of which they + * were a member. This method reduces the targetSize of the managed instance + * group by the number of instances that you delete. The deleteInstances + * operation is marked DONE if the deleteInstances request is successful. The + * underlying actions take additional time. You must separately verify the + * status of the deleting action with the listmanagedinstances method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration @@ -159,11 +159,11 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google } /** * Creates a managed instance group using the information that you specify in - * the request. After the group is created, it schedules an action to create - * instances in the group using the specified instance template. This operation - * is marked as DONE when the group is created even if the instances in the - * group have not yet been created. You must separately verify the status of the - * individual instances with the listmanagedinstances method. + * the request. After the group is created, instances in the group are created + * using the specified instance template. This operation is marked as DONE when + * the group is created even if the instances in the group have not yet been + * created. You must separately verify the status of the individual instances + * with the listmanagedinstances method. * * A regional managed instance group can contain up to 2000 instances. * (regionInstanceGroupManagers.insert) @@ -259,10 +259,44 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google * @param string $instanceGroupManager The name of the managed instance group. * @param array $optParams Optional parameters. * - * @opt_param string filter - * @opt_param string maxResults - * @opt_param string order_by - * @opt_param string pageToken + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string order_by Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. * @return Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse */ public function listManagedInstances($project, $region, $instanceGroupManager, $optParams = array()) @@ -272,12 +306,47 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google return $this->call('listManagedInstances', array($params), "Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse"); } /** - * Schedules a group action to recreate the specified instances in the managed - * instance group. The instances are deleted and recreated using the current - * instance template for the managed instance group. This operation is marked as - * DONE when the action is scheduled even if the instances have not yet been - * recreated. You must separately verify the status of the recreating action - * with the listmanagedinstances method. + * Updates a managed instance group using the information that you specify in + * the request. This operation is marked as DONE when the group is patched even + * if the instances in the group are still in the process of being patched. You + * must separately verify the status of the individual instances with the + * listmanagedinstances method. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * (regionInstanceGroupManagers.patch) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $instanceGroupManager The name of the instance group manager. + * @param Google_Service_Compute_InstanceGroupManager $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function patch($project, $region, $instanceGroupManager, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Flags the specified instances in the managed instance group to be immediately + * recreated. The instances are deleted and recreated using the current instance + * template for the managed instance group. This operation is marked as DONE + * when the flag is set even if the instances have not yet been recreated. You + * must separately verify the status of the recreating action with the + * listmanagedinstances method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration @@ -313,13 +382,14 @@ class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google return $this->call('recreateInstances', array($params), "Google_Service_Compute_Operation"); } /** - * Changes the intended size for the managed instance group. If you increase the - * size, the group schedules actions to create new instances using the current - * instance template. If you decrease the size, the group schedules delete - * actions on one or more instances. The resize operation is marked DONE when - * the resize actions are scheduled even if the group has not yet added or - * deleted any instances. You must separately verify the status of the creating - * or deleting actions with the listmanagedinstances method. + * Changes the intended size of the managed instance group. If you increase the + * size, the group creates new instances using the current instance template. If + * you decrease the size, the group deletes one or more instances. + * + * The resize operation is marked DONE if the resize request is successful. The + * underlying actions take additional time. You must separately verify the + * status of the creating or deleting actions with the listmanagedinstances + * method. * * If the group is part of a backend service that has enabled connection * draining, it can take up to 60 seconds after the connection draining duration diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php index 718f6347..cb6a7580 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php @@ -26,7 +26,7 @@ class Google_Service_Compute_Resource_Regions extends Google_Service_Resource { /** - * Returns the specified Region resource. Get a list of available regions by + * Returns the specified Region resource. Gets a list of available regions by * making a list() request. (regions.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php index a3647a44..27269cdb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php @@ -106,7 +106,7 @@ class Google_Service_Compute_Resource_Routers extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified Router resource. Get a list of available routers by + * Returns the specified Router resource. Gets a list of available routers by * making a list() request. (routers.get) * * @param string $project Project ID for this request. @@ -121,6 +121,62 @@ class Google_Service_Compute_Resource_Routers extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Router"); } + /** + * Retrieves runtime Nat mapping information of VM endpoints. + * (routers.getNatMappingInfo) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region for this request. + * @param string $router Name of the Router resource to query for Nat Mapping + * information of VM endpoints. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_VmEndpointNatMappingsList + */ + public function getNatMappingInfo($project, $region, $router, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'router' => $router); + $params = array_merge($params, $optParams); + return $this->call('getNatMappingInfo', array($params), "Google_Service_Compute_VmEndpointNatMappingsList"); + } /** * Retrieves runtime information of the specified router. * (routers.getRouterStatus) diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php index 9e9efc2f..d006af9b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php @@ -53,7 +53,7 @@ class Google_Service_Compute_Resource_Routes extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified Route resource. Get a list of available routes by + * Returns the specified Route resource. Gets a list of available routes by * making a list() request. (routes.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SecurityPolicies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SecurityPolicies.php new file mode 100644 index 00000000..227b8c03 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SecurityPolicies.php @@ -0,0 +1,247 @@ + + * $computeService = new Google_Service_Compute(...); + * $securityPolicies = $computeService->securityPolicies; + * + */ +class Google_Service_Compute_Resource_SecurityPolicies extends Google_Service_Resource +{ + /** + * Inserts a rule into a security policy. (securityPolicies.addRule) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to update. + * @param Google_Service_Compute_SecurityPolicyRule $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function addRule($project, $securityPolicy, Google_Service_Compute_SecurityPolicyRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addRule', array($params), "Google_Service_Compute_Operation"); + } + /** + * Deletes the specified policy. (securityPolicies.delete) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function delete($project, $securityPolicy, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + /** + * List all of the ordered rules present in a single specified policy. + * (securityPolicies.get) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_SecurityPolicy + */ + public function get($project, $securityPolicy, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_SecurityPolicy"); + } + /** + * Gets a rule at the specified priority. (securityPolicies.getRule) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to which the + * queried rule belongs. + * @param array $optParams Optional parameters. + * + * @opt_param int priority The priority of the rule to get from the security + * policy. + * @return Google_Service_Compute_SecurityPolicyRule + */ + public function getRule($project, $securityPolicy, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy); + $params = array_merge($params, $optParams); + return $this->call('getRule', array($params), "Google_Service_Compute_SecurityPolicyRule"); + } + /** + * Creates a new policy in the specified project using the data included in the + * request. (securityPolicies.insert) + * + * @param string $project Project ID for this request. + * @param Google_Service_Compute_SecurityPolicy $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function insert($project, Google_Service_Compute_SecurityPolicy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + /** + * List all the policies that have been configured for the specified project. + * (securityPolicies.listSecurityPolicies) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_SecurityPolicyList + */ + public function listSecurityPolicies($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_SecurityPolicyList"); + } + /** + * Patches the specified policy with the data included in the request. + * (securityPolicies.patch) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to update. + * @param Google_Service_Compute_SecurityPolicy $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function patch($project, $securityPolicy, Google_Service_Compute_SecurityPolicy $postBody, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + } + /** + * Patches a rule at the specified priority. (securityPolicies.patchRule) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to update. + * @param Google_Service_Compute_SecurityPolicyRule $postBody + * @param array $optParams Optional parameters. + * + * @opt_param int priority The priority of the rule to patch. + * @return Google_Service_Compute_Operation + */ + public function patchRule($project, $securityPolicy, Google_Service_Compute_SecurityPolicyRule $postBody, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patchRule', array($params), "Google_Service_Compute_Operation"); + } + /** + * Deletes a rule at the specified priority. (securityPolicies.removeRule) + * + * @param string $project Project ID for this request. + * @param string $securityPolicy Name of the security policy to update. + * @param array $optParams Optional parameters. + * + * @opt_param int priority The priority of the rule to remove from the security + * policy. + * @return Google_Service_Compute_Operation + */ + public function removeRule($project, $securityPolicy, $optParams = array()) + { + $params = array('project' => $project, 'securityPolicy' => $securityPolicy); + $params = array_merge($params, $optParams); + return $this->call('removeRule', array($params), "Google_Service_Compute_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php index 4370218d..b3cd54e9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php @@ -31,7 +31,7 @@ class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource * data on the snapshot that is marked for deletion is needed for subsequent * snapshots, the data will be moved to the next corresponding snapshot. * - * For more information, see Deleting snaphots. (snapshots.delete) + * For more information, see Deleting snapshots. (snapshots.delete) * * @param string $project Project ID for this request. * @param string $snapshot Name of the Snapshot resource to delete. @@ -58,8 +58,8 @@ class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified Snapshot resource. Get a list of available snapshots by - * making a list() request. (snapshots.get) + * Returns the specified Snapshot resource. Gets a list of available snapshots + * by making a list() request. (snapshots.get) * * @param string $project Project ID for this request. * @param string $snapshot Name of the Snapshot resource to return. @@ -72,6 +72,21 @@ class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (snapshots.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $resource, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Retrieves the list of Snapshot resources contained within the specified * project. (snapshots.listSnapshots) @@ -125,12 +140,28 @@ class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (snapshots.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_GlobalSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $resource, Google_Service_Compute_GlobalSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Sets the labels on a snapshot. To learn more about labels, read the Labeling * Resources documentation. (snapshots.setLabels) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_Compute_GlobalSetLabelsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -141,4 +172,20 @@ class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('setLabels', array($params), "Google_Service_Compute_Operation"); } + /** + * Returns permissions that a caller has on the specified resource. + * (snapshots.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php index 0e7ea091..969ee16a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php @@ -53,7 +53,7 @@ class Google_Service_Compute_Resource_SslCertificates extends Google_Service_Res return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified SslCertificate resource. Get a list of available SSL + * Returns the specified SslCertificate resource. Gets a list of available SSL * certificates by making a list() request. (sslCertificates.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslPolicies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslPolicies.php index 929d4bab..ddd8d9d6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslPolicies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/SslPolicies.php @@ -72,7 +72,7 @@ class Google_Service_Compute_Resource_SslPolicies extends Google_Service_Resourc return $this->call('get', array($params), "Google_Service_Compute_SslPolicy"); } /** - * Returns the specified SSL policy resource. Get a list of available SSL + * Returns the specified SSL policy resource. Gets a list of available SSL * policies by making a list() request. (sslPolicies.insert) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php index 17ced48f..af4a1268 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php @@ -136,7 +136,7 @@ class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resourc return $this->call('expandIpCidrRange', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified subnetwork. Get a list of available subnetworks list() + * Returns the specified subnetwork. Gets a list of available subnetworks list() * request. (subnetworks.get) * * @param string $project Project ID for this request. @@ -151,6 +151,22 @@ class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resourc $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Compute_Subnetwork"); } + /** + * Gets the access control policy for a resource. May be empty if no such policy + * or resource exists. (subnetworks.getIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function getIamPolicy($project, $region, $resource, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Creates a subnetwork in the specified project using the data included in the * request. (subnetworks.insert) @@ -234,12 +250,63 @@ class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resourc $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_SubnetworkList"); } + /** + * Retrieves an aggregated list of usable subnetworks. (subnetworks.listUsable) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be either =, + * !=, >, or <. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named example-instance by specifying name != example-instance. + * + * You can also filter nested fields. For example, you could specify + * scheduling.automaticRestart = false to include instances only if they are not + * scheduled for automatic restarts. You can use filtering on nested fields to + * filter based on resource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = + * "Intel Skylake"). By default, each expression is an AND expression. However, + * you can include AND and OR expressions explicitly. For example, (cpuPlatform + * = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true). + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * maxResults, Compute Engine returns a nextPageToken that can be used to get + * the next page of results in subsequent list requests. Acceptable values are 0 + * to 500, inclusive. (Default: 500) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result first). + * Use this to sort resources like operations so that the newest operation is + * returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * @opt_param string pageToken Specifies a page token to use. Set pageToken to + * the nextPageToken returned by a previous list request to get the next page of + * results. + * @return Google_Service_Compute_UsableSubnetworksAggregatedList + */ + public function listUsable($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('listUsable', array($params), "Google_Service_Compute_UsableSubnetworksAggregatedList"); + } /** * Patches the specified subnetwork with the data included in the request. Only - * the following fields within the subnetwork resource can be specified in the - * request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is - * also mandatory to specify the current fingeprint of the subnetwork resource - * being patched. (subnetworks.patch) + * certain fields can up updated with a patch request as indicated in the field + * descriptions. You must specify the current fingeprint of the subnetwork + * resource being patched. (subnetworks.patch) * * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. @@ -267,6 +334,23 @@ class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resourc $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Compute_Operation"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (subnetworks.setIamPolicy) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_RegionSetPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Policy + */ + public function setIamPolicy($project, $region, $resource, Google_Service_Compute_RegionSetPolicyRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Compute_Policy"); + } /** * Set whether VMs in this subnet can access Google services without assigning * external IP addresses through Private Google Access. @@ -298,4 +382,21 @@ class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resourc $params = array_merge($params, $optParams); return $this->call('setPrivateIpGoogleAccess', array($params), "Google_Service_Compute_Operation"); } + /** + * Returns permissions that a caller has on the specified resource. + * (subnetworks.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_Compute_TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TestPermissionsResponse + */ + public function testIamPermissions($project, $region, $resource, Google_Service_Compute_TestPermissionsRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Compute_TestPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php index ab7c83b1..526b3837 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php @@ -54,7 +54,7 @@ class Google_Service_Compute_Resource_TargetHttpProxies extends Google_Service_R return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetHttpProxy resource. Get a list of available + * Returns the specified TargetHttpProxy resource. Gets a list of available * target HTTP proxies by making a list() request. (targetHttpProxies.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php index 0dd718d1..fb3a889e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php @@ -54,7 +54,7 @@ class Google_Service_Compute_Resource_TargetHttpsProxies extends Google_Service_ return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetHttpsProxy resource. Get a list of available + * Returns the specified TargetHttpsProxy resource. Gets a list of available * target HTTPS proxies by making a list() request. (targetHttpsProxies.get) * * @param string $project Project ID for this request. @@ -150,6 +150,36 @@ class Google_Service_Compute_Resource_TargetHttpsProxies extends Google_Service_ $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Compute_TargetHttpsProxyList"); } + /** + * Sets the QUIC override policy for TargetHttpsProxy. + * (targetHttpsProxies.setQuicOverride) + * + * @param string $project Project ID for this request. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set + * the QUIC override policy for. The name should conform to RFC1035. + * @param Google_Service_Compute_TargetHttpsProxiesSetQuicOverrideRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Google_Service_Compute_Operation + */ + public function setQuicOverride($project, $targetHttpsProxy, Google_Service_Compute_TargetHttpsProxiesSetQuicOverrideRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setQuicOverride', array($params), "Google_Service_Compute_Operation"); + } /** * Replaces SslCertificates for TargetHttpsProxy. * (targetHttpsProxies.setSslCertificates) diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php index 815581de..deddd70e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php @@ -107,8 +107,8 @@ class Google_Service_Compute_Resource_TargetInstances extends Google_Service_Res return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetInstance resource. Get a list of available target - * instances by making a list() request. (targetInstances.get) + * Returns the specified TargetInstance resource. Gets a list of available + * target instances by making a list() request. (targetInstances.get) * * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php index 13e9caa4..29b77e33 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php @@ -165,7 +165,7 @@ class Google_Service_Compute_Resource_TargetPools extends Google_Service_Resourc return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified target pool. Get a list of available target pools by + * Returns the specified target pool. Gets a list of available target pools by * making a list() request. (targetPools.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php index 793d76db..c3a85f19 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php @@ -53,8 +53,8 @@ class Google_Service_Compute_Resource_TargetSslProxies extends Google_Service_Re return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetSslProxy resource. Get a list of available target - * SSL proxies by making a list() request. (targetSslProxies.get) + * Returns the specified TargetSslProxy resource. Gets a list of available + * target SSL proxies by making a list() request. (targetSslProxies.get) * * @param string $project Project ID for this request. * @param string $targetSslProxy Name of the TargetSslProxy resource to return. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetTcpProxies.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetTcpProxies.php index f6d73422..f53094cb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetTcpProxies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetTcpProxies.php @@ -53,8 +53,8 @@ class Google_Service_Compute_Resource_TargetTcpProxies extends Google_Service_Re return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified TargetTcpProxy resource. Get a list of available target - * TCP proxies by making a list() request. (targetTcpProxies.get) + * Returns the specified TargetTcpProxy resource. Gets a list of available + * target TCP proxies by making a list() request. (targetTcpProxies.get) * * @param string $project Project ID for this request. * @param string $targetTcpProxy Name of the TargetTcpProxy resource to return. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php index 9b04c427..ae3a242f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php @@ -107,7 +107,7 @@ class Google_Service_Compute_Resource_TargetVpnGateways extends Google_Service_R return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified target VPN gateway. Get a list of available target VPN + * Returns the specified target VPN gateway. Gets a list of available target VPN * gateways by making a list() request. (targetVpnGateways.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php index 6a37f11a..e62b5d3b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php @@ -53,7 +53,7 @@ class Google_Service_Compute_Resource_UrlMaps extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified UrlMap resource. Get a list of available URL maps by + * Returns the specified UrlMap resource. Gets a list of available URL maps by * making a list() request. (urlMaps.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php index 587ff041..375acde7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php @@ -106,8 +106,8 @@ class Google_Service_Compute_Resource_VpnTunnels extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified VpnTunnel resource. Get a list of available VPN tunnels - * by making a list() request. (vpnTunnels.get) + * Returns the specified VpnTunnel resource. Gets a list of available VPN + * tunnels by making a list() request. (vpnTunnels.get) * * @param string $project Project ID for this request. * @param string $region Name of the region for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php index 37bdd088..b4b61f8d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php @@ -26,7 +26,7 @@ class Google_Service_Compute_Resource_Zones extends Google_Service_Resource { /** - * Returns the specified Zone resource. Get a list of available zones by making + * Returns the specified Zone resource. Gets a list of available zones by making * a list() request. (zones.get) * * @param string $project Project ID for this request. diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Router.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Router.php index 7372cf42..96ec068d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Router.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Router.php @@ -17,7 +17,7 @@ class Google_Service_Compute_Router extends Google_Collection { - protected $collection_key = 'interfaces'; + protected $collection_key = 'nats'; protected $bgpType = 'Google_Service_Compute_RouterBgp'; protected $bgpDataType = ''; protected $bgpPeersType = 'Google_Service_Compute_RouterBgpPeer'; @@ -29,6 +29,8 @@ class Google_Service_Compute_Router extends Google_Collection protected $interfacesDataType = 'array'; public $kind; public $name; + protected $natsType = 'Google_Service_Compute_RouterNat'; + protected $natsDataType = 'array'; public $network; public $region; public $selfLink; @@ -115,6 +117,20 @@ class Google_Service_Compute_Router extends Google_Collection { return $this->name; } + /** + * @param Google_Service_Compute_RouterNat + */ + public function setNats($nats) + { + $this->nats = $nats; + } + /** + * @return Google_Service_Compute_RouterNat + */ + public function getNats() + { + return $this->nats; + } public function setNetwork($network) { $this->network = $network; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php index 02906eb6..e4d71cc0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php @@ -25,6 +25,7 @@ class Google_Service_Compute_RouterBgpPeer extends Google_Collection public $advertisedRoutePriority; public $interfaceName; public $ipAddress; + public $managementType; public $name; public $peerAsn; public $peerIpAddress; @@ -83,6 +84,14 @@ class Google_Service_Compute_RouterBgpPeer extends Google_Collection { return $this->ipAddress; } + public function setManagementType($managementType) + { + $this->managementType = $managementType; + } + public function getManagementType() + { + return $this->managementType; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php index ee55d059..d39f8d4c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php @@ -20,6 +20,7 @@ class Google_Service_Compute_RouterInterface extends Google_Model public $ipRange; public $linkedInterconnectAttachment; public $linkedVpnTunnel; + public $managementType; public $name; public function setIpRange($ipRange) @@ -46,6 +47,14 @@ class Google_Service_Compute_RouterInterface extends Google_Model { return $this->linkedVpnTunnel; } + public function setManagementType($managementType) + { + $this->managementType = $managementType; + } + public function getManagementType() + { + return $this->managementType; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNat.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNat.php new file mode 100644 index 00000000..a2e89683 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNat.php @@ -0,0 +1,119 @@ +icmpIdleTimeoutSec = $icmpIdleTimeoutSec; + } + public function getIcmpIdleTimeoutSec() + { + return $this->icmpIdleTimeoutSec; + } + public function setMinPortsPerVm($minPortsPerVm) + { + $this->minPortsPerVm = $minPortsPerVm; + } + public function getMinPortsPerVm() + { + return $this->minPortsPerVm; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNatIpAllocateOption($natIpAllocateOption) + { + $this->natIpAllocateOption = $natIpAllocateOption; + } + public function getNatIpAllocateOption() + { + return $this->natIpAllocateOption; + } + public function setNatIps($natIps) + { + $this->natIps = $natIps; + } + public function getNatIps() + { + return $this->natIps; + } + public function setSourceSubnetworkIpRangesToNat($sourceSubnetworkIpRangesToNat) + { + $this->sourceSubnetworkIpRangesToNat = $sourceSubnetworkIpRangesToNat; + } + public function getSourceSubnetworkIpRangesToNat() + { + return $this->sourceSubnetworkIpRangesToNat; + } + /** + * @param Google_Service_Compute_RouterNatSubnetworkToNat + */ + public function setSubnetworks($subnetworks) + { + $this->subnetworks = $subnetworks; + } + /** + * @return Google_Service_Compute_RouterNatSubnetworkToNat + */ + public function getSubnetworks() + { + return $this->subnetworks; + } + public function setTcpEstablishedIdleTimeoutSec($tcpEstablishedIdleTimeoutSec) + { + $this->tcpEstablishedIdleTimeoutSec = $tcpEstablishedIdleTimeoutSec; + } + public function getTcpEstablishedIdleTimeoutSec() + { + return $this->tcpEstablishedIdleTimeoutSec; + } + public function setTcpTransitoryIdleTimeoutSec($tcpTransitoryIdleTimeoutSec) + { + $this->tcpTransitoryIdleTimeoutSec = $tcpTransitoryIdleTimeoutSec; + } + public function getTcpTransitoryIdleTimeoutSec() + { + return $this->tcpTransitoryIdleTimeoutSec; + } + public function setUdpIdleTimeoutSec($udpIdleTimeoutSec) + { + $this->udpIdleTimeoutSec = $udpIdleTimeoutSec; + } + public function getUdpIdleTimeoutSec() + { + return $this->udpIdleTimeoutSec; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNatSubnetworkToNat.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNatSubnetworkToNat.php new file mode 100644 index 00000000..e9de8a88 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterNatSubnetworkToNat.php @@ -0,0 +1,49 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setSecondaryIpRangeNames($secondaryIpRangeNames) + { + $this->secondaryIpRangeNames = $secondaryIpRangeNames; + } + public function getSecondaryIpRangeNames() + { + return $this->secondaryIpRangeNames; + } + public function setSourceIpRangesToNat($sourceIpRangesToNat) + { + $this->sourceIpRangesToNat = $sourceIpRangesToNat; + } + public function getSourceIpRangesToNat() + { + return $this->sourceIpRangesToNat; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php index 60cb5279..b8d62ef1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php @@ -17,13 +17,15 @@ class Google_Service_Compute_RouterStatus extends Google_Collection { - protected $collection_key = 'bgpPeerStatus'; + protected $collection_key = 'natStatus'; protected $bestRoutesType = 'Google_Service_Compute_Route'; protected $bestRoutesDataType = 'array'; protected $bestRoutesForRouterType = 'Google_Service_Compute_Route'; protected $bestRoutesForRouterDataType = 'array'; protected $bgpPeerStatusType = 'Google_Service_Compute_RouterStatusBgpPeerStatus'; protected $bgpPeerStatusDataType = 'array'; + protected $natStatusType = 'Google_Service_Compute_RouterStatusNatStatus'; + protected $natStatusDataType = 'array'; public $network; /** @@ -68,6 +70,20 @@ class Google_Service_Compute_RouterStatus extends Google_Collection { return $this->bgpPeerStatus; } + /** + * @param Google_Service_Compute_RouterStatusNatStatus + */ + public function setNatStatus($natStatus) + { + $this->natStatus = $natStatus; + } + /** + * @return Google_Service_Compute_RouterStatusNatStatus + */ + public function getNatStatus() + { + return $this->natStatus; + } public function setNetwork($network) { $this->network = $network; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatusNatStatus.php b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatusNatStatus.php new file mode 100644 index 00000000..3a4349de --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/RouterStatusNatStatus.php @@ -0,0 +1,76 @@ +autoAllocatedNatIps = $autoAllocatedNatIps; + } + public function getAutoAllocatedNatIps() + { + return $this->autoAllocatedNatIps; + } + public function setMinExtraNatIpsNeeded($minExtraNatIpsNeeded) + { + $this->minExtraNatIpsNeeded = $minExtraNatIpsNeeded; + } + public function getMinExtraNatIpsNeeded() + { + return $this->minExtraNatIpsNeeded; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNumVmEndpointsWithNatMappings($numVmEndpointsWithNatMappings) + { + $this->numVmEndpointsWithNatMappings = $numVmEndpointsWithNatMappings; + } + public function getNumVmEndpointsWithNatMappings() + { + return $this->numVmEndpointsWithNatMappings; + } + public function setUserAllocatedNatIpResources($userAllocatedNatIpResources) + { + $this->userAllocatedNatIpResources = $userAllocatedNatIpResources; + } + public function getUserAllocatedNatIpResources() + { + return $this->userAllocatedNatIpResources; + } + public function setUserAllocatedNatIps($userAllocatedNatIps) + { + $this->userAllocatedNatIps = $userAllocatedNatIps; + } + public function getUserAllocatedNatIps() + { + return $this->userAllocatedNatIps; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Rule.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Rule.php new file mode 100644 index 00000000..4b9b41ab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Rule.php @@ -0,0 +1,99 @@ +action = $action; + } + public function getAction() + { + return $this->action; + } + /** + * @param Google_Service_Compute_Condition + */ + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + /** + * @return Google_Service_Compute_Condition + */ + public function getConditions() + { + return $this->conditions; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIns($ins) + { + $this->ins = $ins; + } + public function getIns() + { + return $this->ins; + } + /** + * @param Google_Service_Compute_LogConfig + */ + public function setLogConfigs($logConfigs) + { + $this->logConfigs = $logConfigs; + } + /** + * @return Google_Service_Compute_LogConfig + */ + public function getLogConfigs() + { + return $this->logConfigs; + } + public function setNotIns($notIns) + { + $this->notIns = $notIns; + } + public function getNotIns() + { + return $this->notIns; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Scheduling.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Scheduling.php index dcdb77ef..a08fda49 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Scheduling.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Scheduling.php @@ -15,9 +15,12 @@ * the License. */ -class Google_Service_Compute_Scheduling extends Google_Model +class Google_Service_Compute_Scheduling extends Google_Collection { + protected $collection_key = 'nodeAffinities'; public $automaticRestart; + protected $nodeAffinitiesType = 'Google_Service_Compute_SchedulingNodeAffinity'; + protected $nodeAffinitiesDataType = 'array'; public $onHostMaintenance; public $preemptible; @@ -29,6 +32,20 @@ class Google_Service_Compute_Scheduling extends Google_Model { return $this->automaticRestart; } + /** + * @param Google_Service_Compute_SchedulingNodeAffinity + */ + public function setNodeAffinities($nodeAffinities) + { + $this->nodeAffinities = $nodeAffinities; + } + /** + * @return Google_Service_Compute_SchedulingNodeAffinity + */ + public function getNodeAffinities() + { + return $this->nodeAffinities; + } public function setOnHostMaintenance($onHostMaintenance) { $this->onHostMaintenance = $onHostMaintenance; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SchedulingNodeAffinity.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SchedulingNodeAffinity.php new file mode 100644 index 00000000..af793801 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SchedulingNodeAffinity.php @@ -0,0 +1,49 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicy.php similarity index 50% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php rename to vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicy.php index b48f5876..1c7ed616 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicy.php @@ -15,47 +15,19 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection +class Google_Service_Compute_SecurityPolicy extends Google_Collection { - protected $collection_key = 'targetPools'; - protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy'; - protected $autoHealingPoliciesDataType = 'array'; - public $baseInstanceName; + protected $collection_key = 'rules'; public $creationTimestamp; - public $currentSize; public $description; public $fingerprint; - public $group; public $id; - public $instanceTemplate; public $kind; public $name; + protected $rulesType = 'Google_Service_Compute_SecurityPolicyRule'; + protected $rulesDataType = 'array'; public $selfLink; - public $targetPools; - public $targetSize; - /** - * @param Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy - */ - public function setAutoHealingPolicies($autoHealingPolicies) - { - $this->autoHealingPolicies = $autoHealingPolicies; - } - /** - * @return Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy - */ - public function getAutoHealingPolicies() - { - return $this->autoHealingPolicies; - } - public function setBaseInstanceName($baseInstanceName) - { - $this->baseInstanceName = $baseInstanceName; - } - public function getBaseInstanceName() - { - return $this->baseInstanceName; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -64,14 +36,6 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { return $this->creationTimestamp; } - public function setCurrentSize($currentSize) - { - $this->currentSize = $currentSize; - } - public function getCurrentSize() - { - return $this->currentSize; - } public function setDescription($description) { $this->description = $description; @@ -88,14 +52,6 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { return $this->fingerprint; } - public function setGroup($group) - { - $this->group = $group; - } - public function getGroup() - { - return $this->group; - } public function setId($id) { $this->id = $id; @@ -104,14 +60,6 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { return $this->id; } - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } public function setKind($kind) { $this->kind = $kind; @@ -128,6 +76,20 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { return $this->name; } + /** + * @param Google_Service_Compute_SecurityPolicyRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_Compute_SecurityPolicyRule + */ + public function getRules() + { + return $this->rules; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -136,20 +98,4 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection { return $this->selfLink; } - public function setTargetPools($targetPools) - { - $this->targetPools = $targetPools; - } - public function getTargetPools() - { - return $this->targetPools; - } - public function setTargetSize($targetSize) - { - $this->targetSize = $targetSize; - } - public function getTargetSize() - { - return $this->targetSize; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyList.php new file mode 100644 index 00000000..1b5cea5d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyList.php @@ -0,0 +1,81 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_SecurityPolicy + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_SecurityPolicy + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Compute_SecurityPolicyListWarning + */ + public function setWarning(Google_Service_Compute_SecurityPolicyListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_SecurityPolicyListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarning.php new file mode 100644 index 00000000..e096bfd7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_SecurityPolicyListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_SecurityPolicyListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarningData.php new file mode 100644 index 00000000..47cf3c06 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyReference.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyReference.php new file mode 100644 index 00000000..c77eb596 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyReference.php @@ -0,0 +1,30 @@ +securityPolicy = $securityPolicy; + } + public function getSecurityPolicy() + { + return $this->securityPolicy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRule.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRule.php new file mode 100644 index 00000000..508765f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRule.php @@ -0,0 +1,82 @@ +action = $action; + } + public function getAction() + { + return $this->action; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + /** + * @param Google_Service_Compute_SecurityPolicyRuleMatcher + */ + public function setMatch(Google_Service_Compute_SecurityPolicyRuleMatcher $match) + { + $this->match = $match; + } + /** + * @return Google_Service_Compute_SecurityPolicyRuleMatcher + */ + public function getMatch() + { + return $this->match; + } + public function setPreview($preview) + { + $this->preview = $preview; + } + public function getPreview() + { + return $this->preview; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcher.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcher.php new file mode 100644 index 00000000..eb11787f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcher.php @@ -0,0 +1,46 @@ +config = $config; + } + /** + * @return Google_Service_Compute_SecurityPolicyRuleMatcherConfig + */ + public function getConfig() + { + return $this->config; + } + public function setVersionedExpr($versionedExpr) + { + $this->versionedExpr = $versionedExpr; + } + public function getVersionedExpr() + { + return $this->versionedExpr; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcherConfig.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcherConfig.php new file mode 100644 index 00000000..3975c37c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SecurityPolicyRuleMatcherConfig.php @@ -0,0 +1,31 @@ +srcIpRanges = $srcIpRanges; + } + public function getSrcIpRanges() + { + return $this->srcIpRanges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SignedUrlKey.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SignedUrlKey.php new file mode 100644 index 00000000..fd32efff --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SignedUrlKey.php @@ -0,0 +1,39 @@ +keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + public function setKeyValue($keyValue) + { + $this->keyValue = $keyValue; + } + public function getKeyValue() + { + return $this->keyValue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/SourceInstanceParams.php b/vendor/google/apiclient-services/src/Google/Service/Compute/SourceInstanceParams.php new file mode 100644 index 00000000..0dd513df --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/SourceInstanceParams.php @@ -0,0 +1,38 @@ +diskConfigs = $diskConfigs; + } + /** + * @return Google_Service_Compute_DiskInstantiationConfig + */ + public function getDiskConfigs() + { + return $this->diskConfigs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php b/vendor/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php index dff05a74..2130e60a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php @@ -20,6 +20,7 @@ class Google_Service_Compute_Subnetwork extends Google_Collection protected $collection_key = 'secondaryIpRanges'; public $creationTimestamp; public $description; + public $enableFlowLogs; public $fingerprint; public $gatewayAddress; public $id; @@ -49,6 +50,14 @@ class Google_Service_Compute_Subnetwork extends Google_Collection { return $this->description; } + public function setEnableFlowLogs($enableFlowLogs) + { + $this->enableFlowLogs = $enableFlowLogs; + } + public function getEnableFlowLogs() + { + return $this->enableFlowLogs; + } public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetQuicOverrideRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetQuicOverrideRequest.php new file mode 100644 index 00000000..74953669 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetQuicOverrideRequest.php @@ -0,0 +1,30 @@ +quicOverride = $quicOverride; + } + public function getQuicOverride() + { + return $this->quicOverride; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php b/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php index 46ce606a..87294028 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php @@ -23,6 +23,7 @@ class Google_Service_Compute_TargetHttpsProxy extends Google_Collection public $id; public $kind; public $name; + public $quicOverride; public $selfLink; public $sslCertificates; public $sslPolicy; @@ -68,6 +69,14 @@ class Google_Service_Compute_TargetHttpsProxy extends Google_Collection { return $this->name; } + public function setQuicOverride($quicOverride) + { + $this->quicOverride = $quicOverride; + } + public function getQuicOverride() + { + return $this->quicOverride; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetwork.php b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetwork.php new file mode 100644 index 00000000..5124a454 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetwork.php @@ -0,0 +1,65 @@ +ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + /** + * @param Google_Service_Compute_UsableSubnetworkSecondaryRange + */ + public function setSecondaryIpRanges($secondaryIpRanges) + { + $this->secondaryIpRanges = $secondaryIpRanges; + } + /** + * @return Google_Service_Compute_UsableSubnetworkSecondaryRange + */ + public function getSecondaryIpRanges() + { + return $this->secondaryIpRanges; + } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworkSecondaryRange.php b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworkSecondaryRange.php new file mode 100644 index 00000000..e7403a25 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworkSecondaryRange.php @@ -0,0 +1,39 @@ +ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } + public function setRangeName($rangeName) + { + $this->rangeName = $rangeName; + } + public function getRangeName() + { + return $this->rangeName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedList.php new file mode 100644 index 00000000..28ac4685 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedList.php @@ -0,0 +1,90 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Compute_UsableSubnetwork + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Compute_UsableSubnetwork + */ + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_UsableSubnetworksAggregatedListWarning + */ + public function setWarning(Google_Service_Compute_UsableSubnetworksAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_UsableSubnetworksAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarning.php new file mode 100644 index 00000000..0b8858cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_UsableSubnetworksAggregatedListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_UsableSubnetworksAggregatedListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarningData.php new file mode 100644 index 00000000..16bb6556 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/UsableSubnetworksAggregatedListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappings.php b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappings.php new file mode 100644 index 00000000..fdaf6253 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappings.php @@ -0,0 +1,47 @@ +instanceName = $instanceName; + } + public function getInstanceName() + { + return $this->instanceName; + } + /** + * @param Google_Service_Compute_VmEndpointNatMappingsInterfaceNatMappings + */ + public function setInterfaceNatMappings($interfaceNatMappings) + { + $this->interfaceNatMappings = $interfaceNatMappings; + } + /** + * @return Google_Service_Compute_VmEndpointNatMappingsInterfaceNatMappings + */ + public function getInterfaceNatMappings() + { + return $this->interfaceNatMappings; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsInterfaceNatMappings.php b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsInterfaceNatMappings.php new file mode 100644 index 00000000..8a7aab97 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsInterfaceNatMappings.php @@ -0,0 +1,58 @@ +natIpPortRanges = $natIpPortRanges; + } + public function getNatIpPortRanges() + { + return $this->natIpPortRanges; + } + public function setNumTotalNatPorts($numTotalNatPorts) + { + $this->numTotalNatPorts = $numTotalNatPorts; + } + public function getNumTotalNatPorts() + { + return $this->numTotalNatPorts; + } + public function setSourceAliasIpRange($sourceAliasIpRange) + { + $this->sourceAliasIpRange = $sourceAliasIpRange; + } + public function getSourceAliasIpRange() + { + return $this->sourceAliasIpRange; + } + public function setSourceVirtualIp($sourceVirtualIp) + { + $this->sourceVirtualIp = $sourceVirtualIp; + } + public function getSourceVirtualIp() + { + return $this->sourceVirtualIp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsList.php b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsList.php new file mode 100644 index 00000000..94bfef86 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsList.php @@ -0,0 +1,90 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Compute_VmEndpointNatMappings + */ + public function setResult($result) + { + $this->result = $result; + } + /** + * @return Google_Service_Compute_VmEndpointNatMappings + */ + public function getResult() + { + return $this->result; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Compute_VmEndpointNatMappingsListWarning + */ + public function setWarning(Google_Service_Compute_VmEndpointNatMappingsListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return Google_Service_Compute_VmEndpointNatMappingsListWarning + */ + public function getWarning() + { + return $this->warning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarning.php b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarning.php new file mode 100644 index 00000000..901ee68b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarning.php @@ -0,0 +1,56 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + /** + * @param Google_Service_Compute_VmEndpointNatMappingsListWarningData + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return Google_Service_Compute_VmEndpointNatMappingsListWarningData + */ + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarningData.php b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarningData.php new file mode 100644 index 00000000..11e6edd6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/VmEndpointNatMappingsListWarningData.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Compute/ZoneSetPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Compute/ZoneSetPolicyRequest.php new file mode 100644 index 00000000..05c3f96d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Compute/ZoneSetPolicyRequest.php @@ -0,0 +1,63 @@ +bindings = $bindings; + } + /** + * @return Google_Service_Compute_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_Compute_Policy + */ + public function setPolicy(Google_Service_Compute_Policy $policy) + { + $this->policy = $policy; + } + /** + * @return Google_Service_Compute_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container.php b/vendor/google/apiclient-services/src/Google/Service/Container.php index bd4addc9..c811c1bb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container.php @@ -19,8 +19,8 @@ * Service definition for Container (v1). * *
- * The Google Kubernetes Engine API is used for building and managing container - * based applications, powered by the open source Kubernetes technology.
+ * Builds and manages container-based applications, powered by the open source + * Kubernetes technology. * ** For more information about this service, see the API @@ -38,6 +38,7 @@ class Google_Service_Container extends Google_Service public $projects_locations; public $projects_locations_clusters; public $projects_locations_clusters_nodePools; + public $projects_locations_clusters_well_known; public $projects_locations_operations; public $projects_zones; public $projects_zones_clusters; @@ -54,6 +55,7 @@ class Google_Service_Container extends Google_Service parent::__construct($client); $this->rootUrl = 'https://container.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'container'; @@ -120,6 +122,10 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'zone' => array( 'location' => 'query', 'type' => 'string', @@ -128,10 +134,6 @@ class Google_Service_Container extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'get' => array( 'path' => 'v1/{+name}', @@ -155,6 +157,16 @@ class Google_Service_Container extends Google_Service 'type' => 'string', ), ), + ),'getJwks' => array( + 'path' => 'v1/{+parent}/jwks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/{+parent}/clusters', 'httpMethod' => 'GET', @@ -322,14 +334,6 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'clusterId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'nodePoolId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -338,6 +342,14 @@ class Google_Service_Container extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'clusterId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'nodePoolId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => 'v1/{+name}', @@ -348,14 +360,6 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'clusterId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'nodePoolId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -364,6 +368,14 @@ class Google_Service_Container extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'clusterId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'nodePoolId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => 'v1/{+parent}/nodePools', @@ -374,10 +386,6 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'clusterId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'projectId' => array( 'location' => 'query', 'type' => 'string', @@ -386,6 +394,10 @@ class Google_Service_Container extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'clusterId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'rollback' => array( 'path' => 'v1/{+name}:rollback', @@ -441,6 +453,26 @@ class Google_Service_Container extends Google_Service ) ) ); + $this->projects_locations_clusters_well_known = new Google_Service_Container_Resource_ProjectsLocationsClustersWellKnown( + $this, + $this->serviceName, + 'well_known', + array( + 'methods' => array( + 'getOpenid-configuration' => array( + 'path' => 'v1/{+parent}/.well-known/openid-configuration', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects_locations_operations = new Google_Service_Container_Resource_ProjectsLocationsOperations( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Cluster.php b/vendor/google/apiclient-services/src/Google/Service/Container/Cluster.php index 8d030d32..9bab0a35 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Cluster.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Cluster.php @@ -21,6 +21,8 @@ class Google_Service_Container_Cluster extends Google_Collection protected $addonsConfigType = 'Google_Service_Container_AddonsConfig'; protected $addonsConfigDataType = ''; public $clusterIpv4Cidr; + protected $conditionsType = 'Google_Service_Container_StatusCondition'; + protected $conditionsDataType = 'array'; public $createTime; public $currentMasterVersion; public $currentNodeCount; @@ -49,6 +51,8 @@ class Google_Service_Container_Cluster extends Google_Collection public $monitoringService; public $name; public $network; + protected $networkConfigType = 'Google_Service_Container_NetworkConfig'; + protected $networkConfigDataType = ''; protected $networkPolicyType = 'Google_Service_Container_NetworkPolicy'; protected $networkPolicyDataType = ''; protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; @@ -56,6 +60,8 @@ class Google_Service_Container_Cluster extends Google_Collection public $nodeIpv4CidrSize; protected $nodePoolsType = 'Google_Service_Container_NodePool'; protected $nodePoolsDataType = 'array'; + protected $privateClusterConfigType = 'Google_Service_Container_PrivateClusterConfig'; + protected $privateClusterConfigDataType = ''; public $resourceLabels; public $selfLink; public $servicesIpv4Cidr; @@ -86,6 +92,20 @@ class Google_Service_Container_Cluster extends Google_Collection { return $this->clusterIpv4Cidr; } + /** + * @param Google_Service_Container_StatusCondition + */ + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + /** + * @return Google_Service_Container_StatusCondition + */ + public function getConditions() + { + return $this->conditions; + } public function setCreateTime($createTime) { $this->createTime = $createTime; @@ -300,6 +320,20 @@ class Google_Service_Container_Cluster extends Google_Collection { return $this->network; } + /** + * @param Google_Service_Container_NetworkConfig + */ + public function setNetworkConfig(Google_Service_Container_NetworkConfig $networkConfig) + { + $this->networkConfig = $networkConfig; + } + /** + * @return Google_Service_Container_NetworkConfig + */ + public function getNetworkConfig() + { + return $this->networkConfig; + } /** * @param Google_Service_Container_NetworkPolicy */ @@ -350,6 +384,20 @@ class Google_Service_Container_Cluster extends Google_Collection { return $this->nodePools; } + /** + * @param Google_Service_Container_PrivateClusterConfig + */ + public function setPrivateClusterConfig(Google_Service_Container_PrivateClusterConfig $privateClusterConfig) + { + $this->privateClusterConfig = $privateClusterConfig; + } + /** + * @return Google_Service_Container_PrivateClusterConfig + */ + public function getPrivateClusterConfig() + { + return $this->privateClusterConfig; + } public function setResourceLabels($resourceLabels) { $this->resourceLabels = $resourceLabels; diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/GetJSONWebKeysResponse.php b/vendor/google/apiclient-services/src/Google/Service/Container/GetJSONWebKeysResponse.php new file mode 100644 index 00000000..f80bc713 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/GetJSONWebKeysResponse.php @@ -0,0 +1,38 @@ +keys = $keys; + } + /** + * @return Google_Service_Container_Jwk + */ + public function getKeys() + { + return $this->keys; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/GetOpenIDConfigResponse.php b/vendor/google/apiclient-services/src/Google/Service/Container/GetOpenIDConfigResponse.php new file mode 100644 index 00000000..e1e04534 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/GetOpenIDConfigResponse.php @@ -0,0 +1,93 @@ + "claims_supported", + "grantTypes" => "grant_types", + "idTokenSigningAlgValuesSupported" => "id_token_signing_alg_values_supported", + "jwksUri" => "jwks_uri", + "responseTypesSupported" => "response_types_supported", + "subjectTypesSupported" => "subject_types_supported", + ); + public $claimsSupported; + public $grantTypes; + public $idTokenSigningAlgValuesSupported; + public $issuer; + public $jwksUri; + public $responseTypesSupported; + public $subjectTypesSupported; + + public function setClaimsSupported($claimsSupported) + { + $this->claimsSupported = $claimsSupported; + } + public function getClaimsSupported() + { + return $this->claimsSupported; + } + public function setGrantTypes($grantTypes) + { + $this->grantTypes = $grantTypes; + } + public function getGrantTypes() + { + return $this->grantTypes; + } + public function setIdTokenSigningAlgValuesSupported($idTokenSigningAlgValuesSupported) + { + $this->idTokenSigningAlgValuesSupported = $idTokenSigningAlgValuesSupported; + } + public function getIdTokenSigningAlgValuesSupported() + { + return $this->idTokenSigningAlgValuesSupported; + } + public function setIssuer($issuer) + { + $this->issuer = $issuer; + } + public function getIssuer() + { + return $this->issuer; + } + public function setJwksUri($jwksUri) + { + $this->jwksUri = $jwksUri; + } + public function getJwksUri() + { + return $this->jwksUri; + } + public function setResponseTypesSupported($responseTypesSupported) + { + $this->responseTypesSupported = $responseTypesSupported; + } + public function getResponseTypesSupported() + { + return $this->responseTypesSupported; + } + public function setSubjectTypesSupported($subjectTypesSupported) + { + $this->subjectTypesSupported = $subjectTypesSupported; + } + public function getSubjectTypesSupported() + { + return $this->subjectTypesSupported; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Jwk.php b/vendor/google/apiclient-services/src/Google/Service/Container/Jwk.php new file mode 100644 index 00000000..74de6078 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Jwk.php @@ -0,0 +1,102 @@ +alg = $alg; + } + public function getAlg() + { + return $this->alg; + } + public function setCrv($crv) + { + $this->crv = $crv; + } + public function getCrv() + { + return $this->crv; + } + public function setE($e) + { + $this->e = $e; + } + public function getE() + { + return $this->e; + } + public function setKid($kid) + { + $this->kid = $kid; + } + public function getKid() + { + return $this->kid; + } + public function setKty($kty) + { + $this->kty = $kty; + } + public function getKty() + { + return $this->kty; + } + public function setN($n) + { + $this->n = $n; + } + public function getN() + { + return $this->n; + } + public function setUse($use) + { + $this->use = $use; + } + public function getUse() + { + return $this->use; + } + public function setX($x) + { + $this->x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/NetworkConfig.php b/vendor/google/apiclient-services/src/Google/Service/Container/NetworkConfig.php new file mode 100644 index 00000000..dc2d9376 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/NetworkConfig.php @@ -0,0 +1,39 @@ +network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/NodeConfig.php b/vendor/google/apiclient-services/src/Google/Service/Container/NodeConfig.php index a6da1952..69586218 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/NodeConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/NodeConfig.php @@ -17,10 +17,11 @@ class Google_Service_Container_NodeConfig extends Google_Collection { - protected $collection_key = 'tags'; + protected $collection_key = 'taints'; protected $acceleratorsType = 'Google_Service_Container_AcceleratorConfig'; protected $acceleratorsDataType = 'array'; public $diskSizeGb; + public $diskType; public $imageType; public $labels; public $localSsdCount; @@ -31,6 +32,8 @@ class Google_Service_Container_NodeConfig extends Google_Collection public $preemptible; public $serviceAccount; public $tags; + protected $taintsType = 'Google_Service_Container_NodeTaint'; + protected $taintsDataType = 'array'; /** * @param Google_Service_Container_AcceleratorConfig @@ -54,6 +57,14 @@ class Google_Service_Container_NodeConfig extends Google_Collection { return $this->diskSizeGb; } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } public function setImageType($imageType) { $this->imageType = $imageType; @@ -134,4 +145,18 @@ class Google_Service_Container_NodeConfig extends Google_Collection { return $this->tags; } + /** + * @param Google_Service_Container_NodeTaint + */ + public function setTaints($taints) + { + $this->taints = $taints; + } + /** + * @return Google_Service_Container_NodeTaint + */ + public function getTaints() + { + return $this->taints; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/NodePool.php b/vendor/google/apiclient-services/src/Google/Service/Container/NodePool.php index 8021030e..4fec90f0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/NodePool.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/NodePool.php @@ -20,6 +20,8 @@ class Google_Service_Container_NodePool extends Google_Collection protected $collection_key = 'instanceGroupUrls'; protected $autoscalingType = 'Google_Service_Container_NodePoolAutoscaling'; protected $autoscalingDataType = ''; + protected $conditionsType = 'Google_Service_Container_StatusCondition'; + protected $conditionsDataType = 'array'; protected $configType = 'Google_Service_Container_NodeConfig'; protected $configDataType = ''; public $initialNodeCount; @@ -46,6 +48,20 @@ class Google_Service_Container_NodePool extends Google_Collection { return $this->autoscaling; } + /** + * @param Google_Service_Container_StatusCondition + */ + public function setConditions($conditions) + { + $this->conditions = $conditions; + } + /** + * @return Google_Service_Container_StatusCondition + */ + public function getConditions() + { + return $this->conditions; + } /** * @param Google_Service_Container_NodeConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/NodeTaint.php b/vendor/google/apiclient-services/src/Google/Service/Container/NodeTaint.php new file mode 100644 index 00000000..7332d4a7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/NodeTaint.php @@ -0,0 +1,48 @@ +effect = $effect; + } + public function getEffect() + { + return $this->effect; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Operation.php b/vendor/google/apiclient-services/src/Google/Service/Container/Operation.php index a41554ee..8353f5db 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Operation.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Operation.php @@ -15,12 +15,17 @@ * the License. */ -class Google_Service_Container_Operation extends Google_Model +class Google_Service_Container_Operation extends Google_Collection { + protected $collection_key = 'nodepoolConditions'; + protected $clusterConditionsType = 'Google_Service_Container_StatusCondition'; + protected $clusterConditionsDataType = 'array'; public $detail; public $endTime; public $location; public $name; + protected $nodepoolConditionsType = 'Google_Service_Container_StatusCondition'; + protected $nodepoolConditionsDataType = 'array'; public $operationType; public $selfLink; public $startTime; @@ -29,6 +34,20 @@ class Google_Service_Container_Operation extends Google_Model public $targetLink; public $zone; + /** + * @param Google_Service_Container_StatusCondition + */ + public function setClusterConditions($clusterConditions) + { + $this->clusterConditions = $clusterConditions; + } + /** + * @return Google_Service_Container_StatusCondition + */ + public function getClusterConditions() + { + return $this->clusterConditions; + } public function setDetail($detail) { $this->detail = $detail; @@ -61,6 +80,20 @@ class Google_Service_Container_Operation extends Google_Model { return $this->name; } + /** + * @param Google_Service_Container_StatusCondition + */ + public function setNodepoolConditions($nodepoolConditions) + { + $this->nodepoolConditions = $nodepoolConditions; + } + /** + * @return Google_Service_Container_StatusCondition + */ + public function getNodepoolConditions() + { + return $this->nodepoolConditions; + } public function setOperationType($operationType) { $this->operationType = $operationType; diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/PrivateClusterConfig.php b/vendor/google/apiclient-services/src/Google/Service/Container/PrivateClusterConfig.php new file mode 100644 index 00000000..a25840ff --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/PrivateClusterConfig.php @@ -0,0 +1,66 @@ +enablePrivateEndpoint = $enablePrivateEndpoint; + } + public function getEnablePrivateEndpoint() + { + return $this->enablePrivateEndpoint; + } + public function setEnablePrivateNodes($enablePrivateNodes) + { + $this->enablePrivateNodes = $enablePrivateNodes; + } + public function getEnablePrivateNodes() + { + return $this->enablePrivateNodes; + } + public function setMasterIpv4CidrBlock($masterIpv4CidrBlock) + { + $this->masterIpv4CidrBlock = $masterIpv4CidrBlock; + } + public function getMasterIpv4CidrBlock() + { + return $this->masterIpv4CidrBlock; + } + public function setPrivateEndpoint($privateEndpoint) + { + $this->privateEndpoint = $privateEndpoint; + } + public function getPrivateEndpoint() + { + return $this->privateEndpoint; + } + public function setPublicEndpoint($publicEndpoint) + { + $this->publicEndpoint = $publicEndpoint; + } + public function getPublicEndpoint() + { + return $this->publicEndpoint; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocations.php index 28ad6112..b96fec2e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocations.php @@ -30,7 +30,7 @@ class Google_Service_Container_Resource_ProjectsLocations extends Google_Service * (locations.getServerConfig) * * @param string $name The name (project and location) of the server config to - * get Specified in the format 'projects/locations'. + * get, specified in the format 'projects/locations'. * @param array $optParams Optional parameters. * * @opt_param string projectId Deprecated. The Google Developers Console diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClusters.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClusters.php index df9d360c..857fc856 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClusters.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClusters.php @@ -81,15 +81,15 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google * delete. Specified in the format 'projects/locations/clusters'. * @param array $optParams Optional parameters. * + * @opt_param string projectId Deprecated. The Google Developers Console + * [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has been + * deprecated and replaced by the name field. * @opt_param string zone Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. * @opt_param string clusterId Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. - * @opt_param string projectId Deprecated. The Google Developers Console - * [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been - * deprecated and replaced by the name field. * @return Google_Service_Container_Operation */ public function delete($name, $optParams = array()) @@ -122,6 +122,22 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Cluster"); } + /** + * GetJSONWebKeys gets the public component of the cluster signing keys in JSON + * Web Key format. This API is not yet intended for general use, and is not + * available for all clusters. (clusters.getJwks) + * + * @param string $parent The cluster (project, location, cluster id) to get keys + * for. Specified in the format 'projects/locations/clusters'. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_GetJSONWebKeysResponse + */ + public function getJwks($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('getJwks', array($params), "Google_Service_Container_GetJSONWebKeysResponse"); + } /** * Lists all clusters owned by a project in either the specified zone or all * zones. (clusters.listProjectsLocationsClusters) @@ -148,7 +164,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); } /** - * Sets the addons of a specific cluster. (clusters.setAddons) + * Sets the addons for a specific cluster. (clusters.setAddons) * * @param string $name The name (project, location, cluster) of the cluster to * set addons. Specified in the format 'projects/locations/clusters'. @@ -179,7 +195,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google return $this->call('setLegacyAbac', array($params), "Google_Service_Container_Operation"); } /** - * Sets the locations of a specific cluster. (clusters.setLocations) + * Sets the locations for a specific cluster. (clusters.setLocations) * * @param string $name The name (project, location, cluster) of the cluster to * set locations. Specified in the format 'projects/locations/clusters'. @@ -194,7 +210,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google return $this->call('setLocations', array($params), "Google_Service_Container_Operation"); } /** - * Sets the logging service of a specific cluster. (clusters.setLogging) + * Sets the logging service for a specific cluster. (clusters.setLogging) * * @param string $name The name (project, location, cluster) of the cluster to * set logging. Specified in the format 'projects/locations/clusters'. @@ -226,8 +242,8 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google } /** * Used to set master auth materials. Currently supports :- Changing the admin - * password of a specific cluster. This can be either via password generation or - * explicitly set the password. (clusters.setMasterAuth) + * password for a specific cluster. This can be either via password generation + * or explicitly set the password. (clusters.setMasterAuth) * * @param string $name The name (project, location, cluster) of the cluster to * set auth. Specified in the format 'projects/locations/clusters'. @@ -242,7 +258,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google return $this->call('setMasterAuth', array($params), "Google_Service_Container_Operation"); } /** - * Sets the monitoring service of a specific cluster. (clusters.setMonitoring) + * Sets the monitoring service for a specific cluster. (clusters.setMonitoring) * * @param string $name The name (project, location, cluster) of the cluster to * set monitoring. Specified in the format 'projects/locations/clusters'. @@ -318,7 +334,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClusters extends Google return $this->call('update', array($params), "Google_Service_Container_Operation"); } /** - * Updates the master of a specific cluster. (clusters.updateMaster) + * Updates the master for a specific cluster. (clusters.updateMaster) * * @param string $name The name (project, location, cluster) of the cluster to * update. Specified in the format 'projects/locations/clusters'. diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersNodePools.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersNodePools.php index c1e2c427..6e473438 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersNodePools.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersNodePools.php @@ -30,7 +30,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * * @param string $parent The parent (project, location, cluster id) where the * node pool will be created. Specified in the format - * 'projects/locations/clusters/nodePools'. + * 'projects/locations/clusters'. * @param Google_Service_Container_CreateNodePoolRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation @@ -49,10 +49,6 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * 'projects/locations/clusters/nodePools'. * @param array $optParams Optional parameters. * - * @opt_param string clusterId Deprecated. The name of the cluster. This field - * has been deprecated and replaced by the name field. - * @opt_param string nodePoolId Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. * @opt_param string projectId Deprecated. The Google Developers Console * [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This @@ -60,6 +56,10 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * @opt_param string zone Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. + * @opt_param string clusterId Deprecated. The name of the cluster. This field + * has been deprecated and replaced by the name field. + * @opt_param string nodePoolId Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. * @return Google_Service_Container_Operation */ public function delete($name, $optParams = array()) @@ -76,10 +76,6 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * 'projects/locations/clusters/nodePools'. * @param array $optParams Optional parameters. * - * @opt_param string clusterId Deprecated. The name of the cluster. This field - * has been deprecated and replaced by the name field. - * @opt_param string nodePoolId Deprecated. The name of the node pool. This - * field has been deprecated and replaced by the name field. * @opt_param string projectId Deprecated. The Google Developers Console * [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This @@ -87,6 +83,10 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * @opt_param string zone Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. + * @opt_param string clusterId Deprecated. The name of the cluster. This field + * has been deprecated and replaced by the name field. + * @opt_param string nodePoolId Deprecated. The name of the node pool. This + * field has been deprecated and replaced by the name field. * @return Google_Service_Container_NodePool */ public function get($name, $optParams = array()) @@ -104,8 +104,6 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * 'projects/locations/clusters'. * @param array $optParams Optional parameters. * - * @opt_param string clusterId Deprecated. The name of the cluster. This field - * has been deprecated and replaced by the parent field. * @opt_param string projectId Deprecated. The Google Developers Console * [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This @@ -113,6 +111,8 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten * @opt_param string zone Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the parent field. + * @opt_param string clusterId Deprecated. The name of the cluster. This field + * has been deprecated and replaced by the parent field. * @return Google_Service_Container_ListNodePoolsResponse */ public function listProjectsLocationsClustersNodePools($parent, $optParams = array()) @@ -139,7 +139,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten return $this->call('rollback', array($params), "Google_Service_Container_Operation"); } /** - * Sets the autoscaling settings of a specific node pool. + * Sets the autoscaling settings for a specific node pool. * (nodePools.setAutoscaling) * * @param string $name The name (project, location, cluster, node pool) of the @@ -172,7 +172,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten return $this->call('setManagement', array($params), "Google_Service_Container_Operation"); } /** - * Sets the size of a specific node pool. (nodePools.setSize) + * Sets the size for a specific node pool. (nodePools.setSize) * * @param string $name The name (project, location, cluster, node pool id) of * the node pool to set size. Specified in the format @@ -188,7 +188,7 @@ class Google_Service_Container_Resource_ProjectsLocationsClustersNodePools exten return $this->call('setSize', array($params), "Google_Service_Container_Operation"); } /** - * Updates the version and/or image type of a specific node pool. + * Updates the version and/or image type for a specific node pool. * (nodePools.update) * * @param string $name The name (project, location, cluster, node pool) of the diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersWellKnown.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersWellKnown.php new file mode 100644 index 00000000..2dacfee4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsLocationsClustersWellKnown.php @@ -0,0 +1,47 @@ + + * $containerService = new Google_Service_Container(...); + * $well_known = $containerService->well_known; + * + */ +class Google_Service_Container_Resource_ProjectsLocationsClustersWellKnown extends Google_Service_Resource +{ + /** + * GetOpenIDConfig gets the OIDC discovery document for the cluster. See the + * OpenID Connect Discovery 1.0 specification for details. + * https://openid.net/specs/openid-connect-discovery-1_0.html This API is not + * yet intended for general use, and is not available for all clusters. (well- + * known.getOpenidConfiguration) + * + * @param string $parent The cluster (project, location, cluster id) to get the + * discovery document for. Specified in the format + * 'projects/locations/clusters'. + * @param array $optParams Optional parameters. + * @return Google_Service_Container_GetOpenIDConfigResponse + */ + public function getOpenidConfiguration($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('getOpenid-configuration', array($params), "Google_Service_Container_GetOpenIDConfigResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php index 6e9a5345..bedef1c8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php @@ -38,7 +38,7 @@ class Google_Service_Container_Resource_ProjectsZones extends Google_Service_Res * @param array $optParams Optional parameters. * * @opt_param string name The name (project and location) of the server config - * to get Specified in the format 'projects/locations'. + * to get, specified in the format 'projects/locations'. * @return Google_Service_Container_ServerConfig */ public function getServerconfig($projectId, $zone, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php index 1726b024..40c3a05d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php @@ -26,7 +26,7 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Service_Resource { /** - * Sets the addons of a specific cluster. (clusters.addons) + * Sets the addons for a specific cluster. (clusters.addons) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -198,7 +198,7 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Ser return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); } /** - * Sets the locations of a specific cluster. (clusters.locations) + * Sets the locations for a specific cluster. (clusters.locations) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -219,7 +219,7 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Ser return $this->call('locations', array($params), "Google_Service_Container_Operation"); } /** - * Sets the logging service of a specific cluster. (clusters.logging) + * Sets the logging service for a specific cluster. (clusters.logging) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -240,7 +240,7 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Ser return $this->call('logging', array($params), "Google_Service_Container_Operation"); } /** - * Updates the master of a specific cluster. (clusters.master) + * Updates the master for a specific cluster. (clusters.master) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -261,7 +261,7 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Ser return $this->call('master', array($params), "Google_Service_Container_Operation"); } /** - * Sets the monitoring service of a specific cluster. (clusters.monitoring) + * Sets the monitoring service for a specific cluster. (clusters.monitoring) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -323,8 +323,8 @@ class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Ser } /** * Used to set master auth materials. Currently supports :- Changing the admin - * password of a specific cluster. This can be either via password generation or - * explicitly set the password. (clusters.setMasterAuth) + * password for a specific cluster. This can be either via password generation + * or explicitly set the password. (clusters.setMasterAuth) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php index ad6bd527..0755b848 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php +++ b/vendor/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php @@ -26,7 +26,7 @@ class Google_Service_Container_Resource_ProjectsZonesClustersNodePools extends Google_Service_Resource { /** - * Sets the autoscaling settings of a specific node pool. + * Sets the autoscaling settings for a specific node pool. * (nodePools.autoscaling) * * @param string $projectId Deprecated. The Google Developers Console [project @@ -199,7 +199,7 @@ class Google_Service_Container_Resource_ProjectsZonesClustersNodePools extends G return $this->call('setManagement', array($params), "Google_Service_Container_Operation"); } /** - * Sets the size of a specific node pool. (nodePools.setSize) + * Sets the size for a specific node pool. (nodePools.setSize) * * @param string $projectId Deprecated. The Google Developers Console [project * ID or project number](https://support.google.com/cloud/answer/6158840). This @@ -222,7 +222,7 @@ class Google_Service_Container_Resource_ProjectsZonesClustersNodePools extends G return $this->call('setSize', array($params), "Google_Service_Container_Operation"); } /** - * Updates the version and/or image type of a specific node pool. + * Updates the version and/or image type for a specific node pool. * (nodePools.update) * * @param string $projectId Deprecated. The Google Developers Console [project diff --git a/vendor/google/apiclient-services/src/Google/Service/Container/StatusCondition.php b/vendor/google/apiclient-services/src/Google/Service/Container/StatusCondition.php new file mode 100644 index 00000000..9d51d118 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Container/StatusCondition.php @@ -0,0 +1,39 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis.php new file mode 100644 index 00000000..b79cf941 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis.php @@ -0,0 +1,589 @@ + + * An implementation of the Grafeas API, which stores, and enables querying and + * retrieval of critical metadata about all of your software artifacts.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_ContainerAnalysis extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_notes; + public $projects_notes_occurrences; + public $projects_occurrences; + public $projects_operations; + public $projects_scanConfigs; + public $providers_notes; + public $providers_notes_occurrences; + + /** + * Constructs the internal representation of the ContainerAnalysis service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://containeranalysis.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1alpha1'; + $this->serviceName = 'containeranalysis'; + + $this->projects_notes = new Google_Service_ContainerAnalysis_Resource_ProjectsNotes( + $this, + $this->serviceName, + 'notes', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1alpha1/{+parent}/notes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'noteId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1alpha1/{+parent}/notes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1alpha1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_notes_occurrences = new Google_Service_ContainerAnalysis_Resource_ProjectsNotesOccurrences( + $this, + $this->serviceName, + 'occurrences', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1alpha1/{+name}/occurrences', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_occurrences = new Google_Service_ContainerAnalysis_Resource_ProjectsOccurrences( + $this, + $this->serviceName, + 'occurrences', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1alpha1/{+parent}/occurrences', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getNotes' => array( + 'path' => 'v1alpha1/{+name}/notes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getVulnerabilitySummary' => array( + 'path' => 'v1alpha1/{+parent}/occurrences:vulnerabilitySummary', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1alpha1/{+parent}/occurrences', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'kind' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1alpha1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_operations = new Google_Service_ContainerAnalysis_Resource_ProjectsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1alpha1/{+parent}/operations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_scanConfigs = new Google_Service_ContainerAnalysis_Resource_ProjectsScanConfigs( + $this, + $this->serviceName, + 'scanConfigs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1alpha1/{+parent}/scanConfigs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->providers_notes = new Google_Service_ContainerAnalysis_Resource_ProvidersNotes( + $this, + $this->serviceName, + 'notes', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1alpha1/{+name}/notes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'parent' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'noteId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1alpha1/{+name}/notes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'parent' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'v1alpha1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1alpha1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1alpha1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->providers_notes_occurrences = new Google_Service_ContainerAnalysis_Resource_ProvidersNotesOccurrences( + $this, + $this->serviceName, + 'occurrences', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1alpha1/{+name}/occurrences', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Artifact.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Artifact.php new file mode 100644 index 00000000..16d363c9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Artifact.php @@ -0,0 +1,58 @@ +checksum = $checksum; + } + public function getChecksum() + { + return $this->checksum; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNames($names) + { + $this->names = $names; + } + public function getNames() + { + return $this->names; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Attestation.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Attestation.php new file mode 100644 index 00000000..0fe1b152 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Attestation.php @@ -0,0 +1,37 @@ +pgpSignedAttestation = $pgpSignedAttestation; + } + /** + * @return Google_Service_ContainerAnalysis_PgpSignedAttestation + */ + public function getPgpSignedAttestation() + { + return $this->pgpSignedAttestation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthority.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthority.php new file mode 100644 index 00000000..a543fe03 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthority.php @@ -0,0 +1,37 @@ +hint = $hint; + } + /** + * @return Google_Service_ContainerAnalysis_AttestationAuthorityHint + */ + public function getHint() + { + return $this->hint; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthorityHint.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthorityHint.php new file mode 100644 index 00000000..f956c0a9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AttestationAuthorityHint.php @@ -0,0 +1,30 @@ +humanReadableName = $humanReadableName; + } + public function getHumanReadableName() + { + return $this->humanReadableName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditConfig.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditConfig.php new file mode 100644 index 00000000..b5c01f59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditConfig.php @@ -0,0 +1,47 @@ +auditLogConfigs = $auditLogConfigs; + } + /** + * @return Google_Service_ContainerAnalysis_AuditLogConfig + */ + public function getAuditLogConfigs() + { + return $this->auditLogConfigs; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditLogConfig.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditLogConfig.php new file mode 100644 index 00000000..43680b00 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/AuditLogConfig.php @@ -0,0 +1,40 @@ +exemptedMembers = $exemptedMembers; + } + public function getExemptedMembers() + { + return $this->exemptedMembers; + } + public function setLogType($logType) + { + $this->logType = $logType; + } + public function getLogType() + { + return $this->logType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Basis.php similarity index 55% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php rename to vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Basis.php index 088deb6f..40b9d075 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Basis.php @@ -15,26 +15,32 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection +class Google_Service_ContainerAnalysis_Basis extends Google_Model { - protected $collection_key = 'targetPools'; - public $fingerprint; - public $targetPools; + protected $fingerprintType = 'Google_Service_ContainerAnalysis_Fingerprint'; + protected $fingerprintDataType = ''; + public $resourceUrl; - public function setFingerprint($fingerprint) + /** + * @param Google_Service_ContainerAnalysis_Fingerprint + */ + public function setFingerprint(Google_Service_ContainerAnalysis_Fingerprint $fingerprint) { $this->fingerprint = $fingerprint; } + /** + * @return Google_Service_ContainerAnalysis_Fingerprint + */ public function getFingerprint() { return $this->fingerprint; } - public function setTargetPools($targetPools) + public function setResourceUrl($resourceUrl) { - $this->targetPools = $targetPools; + $this->resourceUrl = $resourceUrl; } - public function getTargetPools() + public function getResourceUrl() { - return $this->targetPools; + return $this->resourceUrl; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Binding.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Binding.php new file mode 100644 index 00000000..af1ed52b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_ContainerAnalysis_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildDetails.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildDetails.php new file mode 100644 index 00000000..9517a907 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildDetails.php @@ -0,0 +1,46 @@ +provenance = $provenance; + } + /** + * @return Google_Service_ContainerAnalysis_BuildProvenance + */ + public function getProvenance() + { + return $this->provenance; + } + public function setProvenanceBytes($provenanceBytes) + { + $this->provenanceBytes = $provenanceBytes; + } + public function getProvenanceBytes() + { + return $this->provenanceBytes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildProvenance.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildProvenance.php new file mode 100644 index 00000000..1f0c9e45 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildProvenance.php @@ -0,0 +1,160 @@ +buildOptions = $buildOptions; + } + public function getBuildOptions() + { + return $this->buildOptions; + } + public function setBuilderVersion($builderVersion) + { + $this->builderVersion = $builderVersion; + } + public function getBuilderVersion() + { + return $this->builderVersion; + } + /** + * @param Google_Service_ContainerAnalysis_Artifact + */ + public function setBuiltArtifacts($builtArtifacts) + { + $this->builtArtifacts = $builtArtifacts; + } + /** + * @return Google_Service_ContainerAnalysis_Artifact + */ + public function getBuiltArtifacts() + { + return $this->builtArtifacts; + } + /** + * @param Google_Service_ContainerAnalysis_Command + */ + public function setCommands($commands) + { + $this->commands = $commands; + } + /** + * @return Google_Service_ContainerAnalysis_Command + */ + public function getCommands() + { + return $this->commands; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setCreator($creator) + { + $this->creator = $creator; + } + public function getCreator() + { + return $this->creator; + } + public function setFinishTime($finishTime) + { + $this->finishTime = $finishTime; + } + public function getFinishTime() + { + return $this->finishTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLogsBucket($logsBucket) + { + $this->logsBucket = $logsBucket; + } + public function getLogsBucket() + { + return $this->logsBucket; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + /** + * @param Google_Service_ContainerAnalysis_Source + */ + public function setSourceProvenance(Google_Service_ContainerAnalysis_Source $sourceProvenance) + { + $this->sourceProvenance = $sourceProvenance; + } + /** + * @return Google_Service_ContainerAnalysis_Source + */ + public function getSourceProvenance() + { + return $this->sourceProvenance; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setTriggerId($triggerId) + { + $this->triggerId = $triggerId; + } + public function getTriggerId() + { + return $this->triggerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildSignature.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildSignature.php new file mode 100644 index 00000000..ae1411de --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildSignature.php @@ -0,0 +1,57 @@ +keyId = $keyId; + } + public function getKeyId() + { + return $this->keyId; + } + public function setKeyType($keyType) + { + $this->keyType = $keyType; + } + public function getKeyType() + { + return $this->keyType; + } + public function setPublicKey($publicKey) + { + $this->publicKey = $publicKey; + } + public function getPublicKey() + { + return $this->publicKey; + } + public function setSignature($signature) + { + $this->signature = $signature; + } + public function getSignature() + { + return $this->signature; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildType.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildType.php new file mode 100644 index 00000000..bacf45ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/BuildType.php @@ -0,0 +1,46 @@ +builderVersion = $builderVersion; + } + public function getBuilderVersion() + { + return $this->builderVersion; + } + /** + * @param Google_Service_ContainerAnalysis_BuildSignature + */ + public function setSignature(Google_Service_ContainerAnalysis_BuildSignature $signature) + { + $this->signature = $signature; + } + /** + * @return Google_Service_ContainerAnalysis_BuildSignature + */ + public function getSignature() + { + return $this->signature; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Command.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Command.php new file mode 100644 index 00000000..2f1af7e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Command.php @@ -0,0 +1,76 @@ +args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setDir($dir) + { + $this->dir = $dir; + } + public function getDir() + { + return $this->dir; + } + public function setEnv($env) + { + $this->env = $env; + } + public function getEnv() + { + return $this->env; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setWaitFor($waitFor) + { + $this->waitFor = $waitFor; + } + public function getWaitFor() + { + return $this->waitFor; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ContaineranalysisEmpty.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ContaineranalysisEmpty.php new file mode 100644 index 00000000..ea0fc471 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ContaineranalysisEmpty.php @@ -0,0 +1,20 @@ +contentHash = $contentHash; + } + /** + * @return Google_Service_ContainerAnalysis_Hash + */ + public function getContentHash() + { + return $this->contentHash; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeLimit.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/CreateOperationRequest.php similarity index 50% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeLimit.php rename to vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/CreateOperationRequest.php index 97f2abbf..ceef12f3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InfoTypeLimit.php +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/CreateOperationRequest.php @@ -15,32 +15,32 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeLimit extends Google_Model +class Google_Service_ContainerAnalysis_CreateOperationRequest extends Google_Model { - protected $infoTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType'; - protected $infoTypeDataType = ''; - public $maxFindings; + protected $operationType = 'Google_Service_ContainerAnalysis_Operation'; + protected $operationDataType = ''; + public $operationId; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @param Google_Service_ContainerAnalysis_Operation */ - public function setInfoType(Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType $infoType) + public function setOperation(Google_Service_ContainerAnalysis_Operation $operation) { - $this->infoType = $infoType; + $this->operation = $operation; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @return Google_Service_ContainerAnalysis_Operation */ - public function getInfoType() + public function getOperation() { - return $this->infoType; + return $this->operation; } - public function setMaxFindings($maxFindings) + public function setOperationId($operationId) { - $this->maxFindings = $maxFindings; + $this->operationId = $operationId; } - public function getMaxFindings() + public function getOperationId() { - return $this->maxFindings; + return $this->operationId; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployable.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployable.php new file mode 100644 index 00000000..703fcfc0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployable.php @@ -0,0 +1,31 @@ +resourceUri = $resourceUri; + } + public function getResourceUri() + { + return $this->resourceUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployment.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployment.php new file mode 100644 index 00000000..da7da8ea --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Deployment.php @@ -0,0 +1,85 @@ +address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setConfig($config) + { + $this->config = $config; + } + public function getConfig() + { + return $this->config; + } + public function setDeployTime($deployTime) + { + $this->deployTime = $deployTime; + } + public function getDeployTime() + { + return $this->deployTime; + } + public function setPlatform($platform) + { + $this->platform = $platform; + } + public function getPlatform() + { + return $this->platform; + } + public function setResourceUri($resourceUri) + { + $this->resourceUri = $resourceUri; + } + public function getResourceUri() + { + return $this->resourceUri; + } + public function setUndeployTime($undeployTime) + { + $this->undeployTime = $undeployTime; + } + public function getUndeployTime() + { + return $this->undeployTime; + } + public function setUserEmail($userEmail) + { + $this->userEmail = $userEmail; + } + public function getUserEmail() + { + return $this->userEmail; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Derived.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Derived.php new file mode 100644 index 00000000..57b2c15f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Derived.php @@ -0,0 +1,72 @@ +baseResourceUrl = $baseResourceUrl; + } + public function getBaseResourceUrl() + { + return $this->baseResourceUrl; + } + public function setDistance($distance) + { + $this->distance = $distance; + } + public function getDistance() + { + return $this->distance; + } + /** + * @param Google_Service_ContainerAnalysis_Fingerprint + */ + public function setFingerprint(Google_Service_ContainerAnalysis_Fingerprint $fingerprint) + { + $this->fingerprint = $fingerprint; + } + /** + * @return Google_Service_ContainerAnalysis_Fingerprint + */ + public function getFingerprint() + { + return $this->fingerprint; + } + /** + * @param Google_Service_ContainerAnalysis_Layer + */ + public function setLayerInfo($layerInfo) + { + $this->layerInfo = $layerInfo; + } + /** + * @return Google_Service_ContainerAnalysis_Layer + */ + public function getLayerInfo() + { + return $this->layerInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Detail.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Detail.php new file mode 100644 index 00000000..4a1ea409 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Detail.php @@ -0,0 +1,123 @@ +cpeUri = $cpeUri; + } + public function getCpeUri() + { + return $this->cpeUri; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_ContainerAnalysis_VulnerabilityLocation + */ + public function setFixedLocation(Google_Service_ContainerAnalysis_VulnerabilityLocation $fixedLocation) + { + $this->fixedLocation = $fixedLocation; + } + /** + * @return Google_Service_ContainerAnalysis_VulnerabilityLocation + */ + public function getFixedLocation() + { + return $this->fixedLocation; + } + public function setIsObsolete($isObsolete) + { + $this->isObsolete = $isObsolete; + } + public function getIsObsolete() + { + return $this->isObsolete; + } + /** + * @param Google_Service_ContainerAnalysis_Version + */ + public function setMaxAffectedVersion(Google_Service_ContainerAnalysis_Version $maxAffectedVersion) + { + $this->maxAffectedVersion = $maxAffectedVersion; + } + /** + * @return Google_Service_ContainerAnalysis_Version + */ + public function getMaxAffectedVersion() + { + return $this->maxAffectedVersion; + } + /** + * @param Google_Service_ContainerAnalysis_Version + */ + public function setMinAffectedVersion(Google_Service_ContainerAnalysis_Version $minAffectedVersion) + { + $this->minAffectedVersion = $minAffectedVersion; + } + /** + * @return Google_Service_ContainerAnalysis_Version + */ + public function getMinAffectedVersion() + { + return $this->minAffectedVersion; + } + public function setPackage($package) + { + $this->package = $package; + } + public function getPackage() + { + return $this->package; + } + public function setPackageType($packageType) + { + $this->packageType = $packageType; + } + public function getPackageType() + { + return $this->packageType; + } + public function setSeverityName($severityName) + { + $this->severityName = $severityName; + } + public function getSeverityName() + { + return $this->severityName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovered.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovered.php new file mode 100644 index 00000000..60dbae4a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovered.php @@ -0,0 +1,71 @@ +analysisStatus = $analysisStatus; + } + public function getAnalysisStatus() + { + return $this->analysisStatus; + } + /** + * @param Google_Service_ContainerAnalysis_Status + */ + public function setAnalysisStatusError(Google_Service_ContainerAnalysis_Status $analysisStatusError) + { + $this->analysisStatusError = $analysisStatusError; + } + /** + * @return Google_Service_ContainerAnalysis_Status + */ + public function getAnalysisStatusError() + { + return $this->analysisStatusError; + } + public function setContinuousAnalysis($continuousAnalysis) + { + $this->continuousAnalysis = $continuousAnalysis; + } + public function getContinuousAnalysis() + { + return $this->continuousAnalysis; + } + /** + * @param Google_Service_ContainerAnalysis_Operation + */ + public function setOperation(Google_Service_ContainerAnalysis_Operation $operation) + { + $this->operation = $operation; + } + /** + * @return Google_Service_ContainerAnalysis_Operation + */ + public function getOperation() + { + return $this->operation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovery.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovery.php new file mode 100644 index 00000000..ae50fd59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Discovery.php @@ -0,0 +1,30 @@ +analysisKind = $analysisKind; + } + public function getAnalysisKind() + { + return $this->analysisKind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Distribution.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Distribution.php new file mode 100644 index 00000000..a92eaadf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Distribution.php @@ -0,0 +1,82 @@ +architecture = $architecture; + } + public function getArchitecture() + { + return $this->architecture; + } + public function setCpeUri($cpeUri) + { + $this->cpeUri = $cpeUri; + } + public function getCpeUri() + { + return $this->cpeUri; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_ContainerAnalysis_Version + */ + public function setLatestVersion(Google_Service_ContainerAnalysis_Version $latestVersion) + { + $this->latestVersion = $latestVersion; + } + /** + * @return Google_Service_ContainerAnalysis_Version + */ + public function getLatestVersion() + { + return $this->latestVersion; + } + public function setMaintainer($maintainer) + { + $this->maintainer = $maintainer; + } + public function getMaintainer() + { + return $this->maintainer; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Expr.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Expr.php new file mode 100644 index 00000000..6607c7a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/FileHashes.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/FileHashes.php new file mode 100644 index 00000000..ceb85cba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/FileHashes.php @@ -0,0 +1,38 @@ +fileHash = $fileHash; + } + /** + * @return Google_Service_ContainerAnalysis_Hash + */ + public function getFileHash() + { + return $this->fileHash; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Fingerprint.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Fingerprint.php new file mode 100644 index 00000000..3f78d20b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Fingerprint.php @@ -0,0 +1,49 @@ +v1Name = $v1Name; + } + public function getV1Name() + { + return $this->v1Name; + } + public function setV2Blob($v2Blob) + { + $this->v2Blob = $v2Blob; + } + public function getV2Blob() + { + return $this->v2Blob; + } + public function setV2Name($v2Name) + { + $this->v2Name = $v2Name; + } + public function getV2Name() + { + return $this->v2Name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GetIamPolicyRequest.php new file mode 100644 index 00000000..6951bd17 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GetIamPolicyRequest.php @@ -0,0 +1,20 @@ +counts = $counts; + } + /** + * @return Google_Service_ContainerAnalysis_SeverityCount + */ + public function getCounts() + { + return $this->counts; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1AliasContext.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1AliasContext.php new file mode 100644 index 00000000..a0090eca --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1AliasContext.php @@ -0,0 +1,39 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext.php new file mode 100644 index 00000000..d6075dae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext.php @@ -0,0 +1,62 @@ +aliasContext = $aliasContext; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1AliasContext + */ + public function getAliasContext() + { + return $this->aliasContext; + } + /** + * @param Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1RepoId + */ + public function setRepoId(Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1RepoId $repoId) + { + $this->repoId = $repoId; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1RepoId + */ + public function getRepoId() + { + return $this->repoId; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext.php new file mode 100644 index 00000000..ceb4b969 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext.php @@ -0,0 +1,64 @@ +aliasContext = $aliasContext; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1AliasContext + */ + public function getAliasContext() + { + return $this->aliasContext; + } + public function setGerritProject($gerritProject) + { + $this->gerritProject = $gerritProject; + } + public function getGerritProject() + { + return $this->gerritProject; + } + public function setHostUri($hostUri) + { + $this->hostUri = $hostUri; + } + public function getHostUri() + { + return $this->hostUri; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext.php new file mode 100644 index 00000000..ccd1b2e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext.php @@ -0,0 +1,39 @@ +revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata.php new file mode 100644 index 00000000..f8030edc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata.php @@ -0,0 +1,39 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId.php new file mode 100644 index 00000000..22228e81 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId.php @@ -0,0 +1,39 @@ +projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRepoName($repoName) + { + $this->repoName = $repoName; + } + public function getRepoName() + { + return $this->repoName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1RepoId.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1RepoId.php new file mode 100644 index 00000000..b1ddcc8f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1RepoId.php @@ -0,0 +1,46 @@ +projectRepoId = $projectRepoId; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId + */ + public function getProjectRepoId() + { + return $this->projectRepoId; + } + public function setUid($uid) + { + $this->uid = $uid; + } + public function getUid() + { + return $this->uid; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1SourceContext.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1SourceContext.php new file mode 100644 index 00000000..bd201b11 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/GoogleDevtoolsContaineranalysisV1alpha1SourceContext.php @@ -0,0 +1,78 @@ +cloudRepo = $cloudRepo; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext + */ + public function getCloudRepo() + { + return $this->cloudRepo; + } + /** + * @param Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext + */ + public function setGerrit(Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext $gerrit) + { + $this->gerrit = $gerrit; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext + */ + public function getGerrit() + { + return $this->gerrit; + } + /** + * @param Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext + */ + public function setGit(Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext $git) + { + $this->git = $git; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext + */ + public function getGit() + { + return $this->git; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Hash.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Hash.php new file mode 100644 index 00000000..ceaafa23 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Hash.php @@ -0,0 +1,39 @@ +type = $type; + } + public function getType() + { + return $this->type; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Installation.php similarity index 59% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php rename to vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Installation.php index 0f3dbedf..d6d2183d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Installation.php @@ -15,26 +15,26 @@ * the License. */ -class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection +class Google_Service_ContainerAnalysis_Installation extends Google_Collection { - protected $collection_key = 'attributes'; - protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; - protected $attributesDataType = 'array'; + protected $collection_key = 'location'; + protected $locationType = 'Google_Service_ContainerAnalysis_Location'; + protected $locationDataType = 'array'; public $name; /** - * @param Google_Service_ShoppingContent_ProductCustomAttribute + * @param Google_Service_ContainerAnalysis_Location */ - public function setAttributes($attributes) + public function setLocation($location) { - $this->attributes = $attributes; + $this->location = $location; } /** - * @return Google_Service_ShoppingContent_ProductCustomAttribute + * @return Google_Service_ContainerAnalysis_Location */ - public function getAttributes() + public function getLocation() { - return $this->attributes; + return $this->location; } public function setName($name) { diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Layer.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Layer.php new file mode 100644 index 00000000..6be08d46 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Layer.php @@ -0,0 +1,39 @@ +arguments = $arguments; + } + public function getArguments() + { + return $this->arguments; + } + public function setDirective($directive) + { + $this->directive = $directive; + } + public function getDirective() + { + return $this->directive; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNoteOccurrencesResponse.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNoteOccurrencesResponse.php new file mode 100644 index 00000000..a83fbcae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNoteOccurrencesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ContainerAnalysis_Occurrence + */ + public function setOccurrences($occurrences) + { + $this->occurrences = $occurrences; + } + /** + * @return Google_Service_ContainerAnalysis_Occurrence + */ + public function getOccurrences() + { + return $this->occurrences; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNotesResponse.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNotesResponse.php new file mode 100644 index 00000000..3a618ca6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListNotesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ContainerAnalysis_Note + */ + public function setNotes($notes) + { + $this->notes = $notes; + } + /** + * @return Google_Service_ContainerAnalysis_Note + */ + public function getNotes() + { + return $this->notes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListOccurrencesResponse.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListOccurrencesResponse.php new file mode 100644 index 00000000..a997a1d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListOccurrencesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ContainerAnalysis_Occurrence + */ + public function setOccurrences($occurrences) + { + $this->occurrences = $occurrences; + } + /** + * @return Google_Service_ContainerAnalysis_Occurrence + */ + public function getOccurrences() + { + return $this->occurrences; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListScanConfigsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListScanConfigsResponse.php new file mode 100644 index 00000000..08c70b17 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ListScanConfigsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ContainerAnalysis_ScanConfig + */ + public function setScanConfigs($scanConfigs) + { + $this->scanConfigs = $scanConfigs; + } + /** + * @return Google_Service_ContainerAnalysis_ScanConfig + */ + public function getScanConfigs() + { + return $this->scanConfigs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Location.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Location.php new file mode 100644 index 00000000..faaf2394 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Location.php @@ -0,0 +1,55 @@ +cpeUri = $cpeUri; + } + public function getCpeUri() + { + return $this->cpeUri; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + /** + * @param Google_Service_ContainerAnalysis_Version + */ + public function setVersion(Google_Service_ContainerAnalysis_Version $version) + { + $this->version = $version; + } + /** + * @return Google_Service_ContainerAnalysis_Version + */ + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Note.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Note.php new file mode 100644 index 00000000..9feb8d96 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Note.php @@ -0,0 +1,213 @@ +attestationAuthority = $attestationAuthority; + } + /** + * @return Google_Service_ContainerAnalysis_AttestationAuthority + */ + public function getAttestationAuthority() + { + return $this->attestationAuthority; + } + /** + * @param Google_Service_ContainerAnalysis_Basis + */ + public function setBaseImage(Google_Service_ContainerAnalysis_Basis $baseImage) + { + $this->baseImage = $baseImage; + } + /** + * @return Google_Service_ContainerAnalysis_Basis + */ + public function getBaseImage() + { + return $this->baseImage; + } + /** + * @param Google_Service_ContainerAnalysis_BuildType + */ + public function setBuildType(Google_Service_ContainerAnalysis_BuildType $buildType) + { + $this->buildType = $buildType; + } + /** + * @return Google_Service_ContainerAnalysis_BuildType + */ + public function getBuildType() + { + return $this->buildType; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_ContainerAnalysis_Deployable + */ + public function setDeployable(Google_Service_ContainerAnalysis_Deployable $deployable) + { + $this->deployable = $deployable; + } + /** + * @return Google_Service_ContainerAnalysis_Deployable + */ + public function getDeployable() + { + return $this->deployable; + } + /** + * @param Google_Service_ContainerAnalysis_Discovery + */ + public function setDiscovery(Google_Service_ContainerAnalysis_Discovery $discovery) + { + $this->discovery = $discovery; + } + /** + * @return Google_Service_ContainerAnalysis_Discovery + */ + public function getDiscovery() + { + return $this->discovery; + } + public function setExpirationTime($expirationTime) + { + $this->expirationTime = $expirationTime; + } + public function getExpirationTime() + { + return $this->expirationTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLongDescription($longDescription) + { + $this->longDescription = $longDescription; + } + public function getLongDescription() + { + return $this->longDescription; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_ContainerAnalysis_Package + */ + public function setPackage(Google_Service_ContainerAnalysis_Package $package) + { + $this->package = $package; + } + /** + * @return Google_Service_ContainerAnalysis_Package + */ + public function getPackage() + { + return $this->package; + } + /** + * @param Google_Service_ContainerAnalysis_RelatedUrl + */ + public function setRelatedUrl($relatedUrl) + { + $this->relatedUrl = $relatedUrl; + } + /** + * @return Google_Service_ContainerAnalysis_RelatedUrl + */ + public function getRelatedUrl() + { + return $this->relatedUrl; + } + public function setShortDescription($shortDescription) + { + $this->shortDescription = $shortDescription; + } + public function getShortDescription() + { + return $this->shortDescription; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * @param Google_Service_ContainerAnalysis_VulnerabilityType + */ + public function setVulnerabilityType(Google_Service_ContainerAnalysis_VulnerabilityType $vulnerabilityType) + { + $this->vulnerabilityType = $vulnerabilityType; + } + /** + * @return Google_Service_ContainerAnalysis_VulnerabilityType + */ + public function getVulnerabilityType() + { + return $this->vulnerabilityType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Occurrence.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Occurrence.php new file mode 100644 index 00000000..6853bfc8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Occurrence.php @@ -0,0 +1,212 @@ +attestation = $attestation; + } + /** + * @return Google_Service_ContainerAnalysis_Attestation + */ + public function getAttestation() + { + return $this->attestation; + } + /** + * @param Google_Service_ContainerAnalysis_BuildDetails + */ + public function setBuildDetails(Google_Service_ContainerAnalysis_BuildDetails $buildDetails) + { + $this->buildDetails = $buildDetails; + } + /** + * @return Google_Service_ContainerAnalysis_BuildDetails + */ + public function getBuildDetails() + { + return $this->buildDetails; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_ContainerAnalysis_Deployment + */ + public function setDeployment(Google_Service_ContainerAnalysis_Deployment $deployment) + { + $this->deployment = $deployment; + } + /** + * @return Google_Service_ContainerAnalysis_Deployment + */ + public function getDeployment() + { + return $this->deployment; + } + /** + * @param Google_Service_ContainerAnalysis_Derived + */ + public function setDerivedImage(Google_Service_ContainerAnalysis_Derived $derivedImage) + { + $this->derivedImage = $derivedImage; + } + /** + * @return Google_Service_ContainerAnalysis_Derived + */ + public function getDerivedImage() + { + return $this->derivedImage; + } + /** + * @param Google_Service_ContainerAnalysis_Discovered + */ + public function setDiscovered(Google_Service_ContainerAnalysis_Discovered $discovered) + { + $this->discovered = $discovered; + } + /** + * @return Google_Service_ContainerAnalysis_Discovered + */ + public function getDiscovered() + { + return $this->discovered; + } + /** + * @param Google_Service_ContainerAnalysis_Installation + */ + public function setInstallation(Google_Service_ContainerAnalysis_Installation $installation) + { + $this->installation = $installation; + } + /** + * @return Google_Service_ContainerAnalysis_Installation + */ + public function getInstallation() + { + return $this->installation; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNoteName($noteName) + { + $this->noteName = $noteName; + } + public function getNoteName() + { + return $this->noteName; + } + public function setRemediation($remediation) + { + $this->remediation = $remediation; + } + public function getRemediation() + { + return $this->remediation; + } + /** + * @param Google_Service_ContainerAnalysis_ContaineranalysisResource + */ + public function setResource(Google_Service_ContainerAnalysis_ContaineranalysisResource $resource) + { + $this->resource = $resource; + } + /** + * @return Google_Service_ContainerAnalysis_ContaineranalysisResource + */ + public function getResource() + { + return $this->resource; + } + public function setResourceUrl($resourceUrl) + { + $this->resourceUrl = $resourceUrl; + } + public function getResourceUrl() + { + return $this->resourceUrl; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * @param Google_Service_ContainerAnalysis_VulnerabilityDetails + */ + public function setVulnerabilityDetails(Google_Service_ContainerAnalysis_VulnerabilityDetails $vulnerabilityDetails) + { + $this->vulnerabilityDetails = $vulnerabilityDetails; + } + /** + * @return Google_Service_ContainerAnalysis_VulnerabilityDetails + */ + public function getVulnerabilityDetails() + { + return $this->vulnerabilityDetails; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Operation.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Operation.php new file mode 100644 index 00000000..181939ce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_ContainerAnalysis_Status + */ + public function setError(Google_Service_ContainerAnalysis_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_ContainerAnalysis_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Package.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Package.php new file mode 100644 index 00000000..9d7a323b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Package.php @@ -0,0 +1,47 @@ +distribution = $distribution; + } + /** + * @return Google_Service_ContainerAnalysis_Distribution + */ + public function getDistribution() + { + return $this->distribution; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PackageIssue.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PackageIssue.php new file mode 100644 index 00000000..f520f42c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PackageIssue.php @@ -0,0 +1,62 @@ +affectedLocation = $affectedLocation; + } + /** + * @return Google_Service_ContainerAnalysis_VulnerabilityLocation + */ + public function getAffectedLocation() + { + return $this->affectedLocation; + } + /** + * @param Google_Service_ContainerAnalysis_VulnerabilityLocation + */ + public function setFixedLocation(Google_Service_ContainerAnalysis_VulnerabilityLocation $fixedLocation) + { + $this->fixedLocation = $fixedLocation; + } + /** + * @return Google_Service_ContainerAnalysis_VulnerabilityLocation + */ + public function getFixedLocation() + { + return $this->fixedLocation; + } + public function setSeverityName($severityName) + { + $this->severityName = $severityName; + } + public function getSeverityName() + { + return $this->severityName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PgpSignedAttestation.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PgpSignedAttestation.php new file mode 100644 index 00000000..bcb44250 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/PgpSignedAttestation.php @@ -0,0 +1,48 @@ +contentType = $contentType; + } + public function getContentType() + { + return $this->contentType; + } + public function setPgpKeyId($pgpKeyId) + { + $this->pgpKeyId = $pgpKeyId; + } + public function getPgpKeyId() + { + return $this->pgpKeyId; + } + public function setSignature($signature) + { + $this->signature = $signature; + } + public function getSignature() + { + return $this->signature; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Policy.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Policy.php new file mode 100644 index 00000000..9110b4aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Policy.php @@ -0,0 +1,72 @@ +auditConfigs = $auditConfigs; + } + /** + * @return Google_Service_ContainerAnalysis_AuditConfig + */ + public function getAuditConfigs() + { + return $this->auditConfigs; + } + /** + * @param Google_Service_ContainerAnalysis_Binding + */ + public function setBindings($bindings) + { + $this->bindings = $bindings; + } + /** + * @return Google_Service_ContainerAnalysis_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RelatedUrl.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RelatedUrl.php new file mode 100644 index 00000000..75ed244c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RelatedUrl.php @@ -0,0 +1,39 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RepoSource.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RepoSource.php new file mode 100644 index 00000000..1d60d9be --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/RepoSource.php @@ -0,0 +1,66 @@ +branchName = $branchName; + } + public function getBranchName() + { + return $this->branchName; + } + public function setCommitSha($commitSha) + { + $this->commitSha = $commitSha; + } + public function getCommitSha() + { + return $this->commitSha; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRepoName($repoName) + { + $this->repoName = $repoName; + } + public function getRepoName() + { + return $this->repoName; + } + public function setTagName($tagName) + { + $this->tagName = $tagName; + } + public function getTagName() + { + return $this->tagName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Projects.php new file mode 100644 index 00000000..7a9a8f13 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $projects = $containeranalysisService->projects; + * + */ +class Google_Service_ContainerAnalysis_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotes.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotes.php new file mode 100644 index 00000000..ec9aa528 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotes.php @@ -0,0 +1,188 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $notes = $containeranalysisService->notes; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProjectsNotes extends Google_Service_Resource +{ + /** + * Creates a new `Note`. (notes.create) + * + * @param string $parent This field contains the project Id for example: + * "projects/{project_id} + * @param Google_Service_ContainerAnalysis_Note $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string noteId The ID to use for this note. + * @opt_param string name The name of the project. Should be of the form + * "providers/{provider_id}". @Deprecated + * @return Google_Service_ContainerAnalysis_Note + */ + public function create($parent, Google_Service_ContainerAnalysis_Note $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Deletes the given `Note` from the system. (notes.delete) + * + * @param string $name The name of the note in the form of + * "providers/{provider_id}/notes/{NOTE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_ContaineranalysisEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ContainerAnalysis_ContaineranalysisEmpty"); + } + /** + * Returns the requested `Note`. (notes.get) + * + * @param string $name The name of the note in the form of + * "providers/{provider_id}/notes/{NOTE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Note + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Gets the access control policy for a note or an `Occurrence` resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * note or occurrence, respectively. Attempting to call this method on a + * resource without the required permission will result in a `PERMISSION_DENIED` + * error. Attempting to call this method on a non-existent resource will result + * in a `NOT_FOUND` error if the user has list permission on the project, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences + * and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes (notes.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function getIamPolicy($resource, Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Lists all `Notes` for a given project. (notes.listProjectsNotes) + * + * @param string $parent This field contains the project Id for example: + * "projects/{PROJECT_ID}". + * @param array $optParams Optional parameters. + * + * @opt_param string name The name field will contain the project Id for + * example: "providers/{provider_id} @Deprecated + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @opt_param int pageSize Number of notes to return in the list. + * @opt_param string filter The filter expression. + * @return Google_Service_ContainerAnalysis_ListNotesResponse + */ + public function listProjectsNotes($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListNotesResponse"); + } + /** + * Updates an existing `Note`. (notes.patch) + * + * @param string $name The name of the note. Should be of the form + * "projects/{provider_id}/notes/{note_id}". + * @param Google_Service_ContainerAnalysis_Note $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The fields to update. + * @return Google_Service_ContainerAnalysis_Note + */ + public function patch($name, Google_Service_ContainerAnalysis_Note $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Sets the access control policy on the specified `Note` or `Occurrence`. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * `Note` or an `Occurrence`, respectively. Attempting to call this method + * without these permissions will result in a ` `PERMISSION_DENIED` error. + * Attempting to call this method on a non-existent resource will result in a + * `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission + * on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences + * and projects/{projectid}/notes/{noteid} for notes (notes.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function setIamPolicy($resource, Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Returns the permissions that a caller has on the specified note or occurrence + * resource. Requires list permission on the project (for example, + * "storage.objects.list" on the containing bucket for testing permission of an + * object). Attempting to call this method on a non-existent resource will + * result in a `NOT_FOUND` error if the user has list permission on the project, + * or a `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for + * `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` + * (notes.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_ContainerAnalysis_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotesOccurrences.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotesOccurrences.php new file mode 100644 index 00000000..61ac7e6c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsNotesOccurrences.php @@ -0,0 +1,49 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $occurrences = $containeranalysisService->occurrences; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProjectsNotesOccurrences extends Google_Service_Resource +{ + /** + * Lists `Occurrences` referencing the specified `Note`. Use this method to get + * all occurrences referencing your `Note` across all your customer projects. + * (occurrences.listProjectsNotesOccurrences) + * + * @param string $name The name field will contain the note name for example: + * "provider/{provider_id}/notes/{note_id}" + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter expression. + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @opt_param int pageSize Number of notes to return in the list. + * @return Google_Service_ContainerAnalysis_ListNoteOccurrencesResponse + */ + public function listProjectsNotesOccurrences($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListNoteOccurrencesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOccurrences.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOccurrences.php new file mode 100644 index 00000000..3946fc0c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOccurrences.php @@ -0,0 +1,223 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $occurrences = $containeranalysisService->occurrences; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProjectsOccurrences extends Google_Service_Resource +{ + /** + * Creates a new `Occurrence`. Use this method to create `Occurrences` for a + * resource. (occurrences.create) + * + * @param string $parent This field contains the project Id for example: + * "projects/{project_id}" + * @param Google_Service_ContainerAnalysis_Occurrence $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string name The name of the project. Should be of the form + * "projects/{project_id}". @Deprecated + * @return Google_Service_ContainerAnalysis_Occurrence + */ + public function create($parent, Google_Service_ContainerAnalysis_Occurrence $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_ContainerAnalysis_Occurrence"); + } + /** + * Deletes the given `Occurrence` from the system. Use this when an `Occurrence` + * is no longer applicable for the given resource. (occurrences.delete) + * + * @param string $name The name of the occurrence in the form of + * "projects/{project_id}/occurrences/{OCCURRENCE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_ContaineranalysisEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ContainerAnalysis_ContaineranalysisEmpty"); + } + /** + * Returns the requested `Occurrence`. (occurrences.get) + * + * @param string $name The name of the occurrence of the form + * "projects/{project_id}/occurrences/{OCCURRENCE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Occurrence + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ContainerAnalysis_Occurrence"); + } + /** + * Gets the access control policy for a note or an `Occurrence` resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * note or occurrence, respectively. Attempting to call this method on a + * resource without the required permission will result in a `PERMISSION_DENIED` + * error. Attempting to call this method on a non-existent resource will result + * in a `NOT_FOUND` error if the user has list permission on the project, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences + * and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes + * (occurrences.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function getIamPolicy($resource, Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Gets the `Note` attached to the given `Occurrence`. (occurrences.getNotes) + * + * @param string $name The name of the occurrence in the form + * "projects/{project_id}/occurrences/{OCCURRENCE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Note + */ + public function getNotes($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getNotes', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Gets a summary of the number and severity of occurrences. + * (occurrences.getVulnerabilitySummary) + * + * @param string $parent This contains the project Id for example: + * projects/{project_id} + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter expression. + * @return Google_Service_ContainerAnalysis_GetVulnzOccurrencesSummaryResponse + */ + public function getVulnerabilitySummary($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('getVulnerabilitySummary', array($params), "Google_Service_ContainerAnalysis_GetVulnzOccurrencesSummaryResponse"); + } + /** + * Lists active `Occurrences` for a given project matching the filters. + * (occurrences.listProjectsOccurrences) + * + * @param string $parent This contains the project Id for example: + * projects/{project_id}. + * @param array $optParams Optional parameters. + * + * @opt_param string name The name field contains the project Id. For example: + * "projects/{project_id} @Deprecated + * @opt_param string filter The filter expression. + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @opt_param string kind The kind of occurrences to filter on. + * @opt_param int pageSize Number of occurrences to return in the list. + * @return Google_Service_ContainerAnalysis_ListOccurrencesResponse + */ + public function listProjectsOccurrences($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListOccurrencesResponse"); + } + /** + * Updates an existing occurrence. (occurrences.patch) + * + * @param string $name The name of the occurrence. Should be of the form + * "projects/{project_id}/occurrences/{OCCURRENCE_ID}". + * @param Google_Service_ContainerAnalysis_Occurrence $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The fields to update. + * @return Google_Service_ContainerAnalysis_Occurrence + */ + public function patch($name, Google_Service_ContainerAnalysis_Occurrence $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ContainerAnalysis_Occurrence"); + } + /** + * Sets the access control policy on the specified `Note` or `Occurrence`. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * `Note` or an `Occurrence`, respectively. Attempting to call this method + * without these permissions will result in a ` `PERMISSION_DENIED` error. + * Attempting to call this method on a non-existent resource will result in a + * `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission + * on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences + * and projects/{projectid}/notes/{noteid} for notes (occurrences.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function setIamPolicy($resource, Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Returns the permissions that a caller has on the specified note or occurrence + * resource. Requires list permission on the project (for example, + * "storage.objects.list" on the containing bucket for testing permission of an + * object). Attempting to call this method on a non-existent resource will + * result in a `NOT_FOUND` error if the user has list permission on the project, + * or a `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for + * `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` + * (occurrences.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_ContainerAnalysis_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOperations.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOperations.php new file mode 100644 index 00000000..260a7d68 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsOperations.php @@ -0,0 +1,60 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $operations = $containeranalysisService->operations; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProjectsOperations extends Google_Service_Resource +{ + /** + * Creates a new `Operation`. (operations.create) + * + * @param string $parent The project Id that this operation should be created + * under. + * @param Google_Service_ContainerAnalysis_CreateOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Operation + */ + public function create($parent, Google_Service_ContainerAnalysis_CreateOperationRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_ContainerAnalysis_Operation"); + } + /** + * Updates an existing operation returns an error if operation does not exist. + * The only valid operations are to update mark the done bit change the result. + * (operations.patch) + * + * @param string $name The name of the Operation. Should be of the form + * "projects/{provider_id}/operations/{operation_id}". + * @param Google_Service_ContainerAnalysis_UpdateOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Operation + */ + public function patch($name, Google_Service_ContainerAnalysis_UpdateOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ContainerAnalysis_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsScanConfigs.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsScanConfigs.php new file mode 100644 index 00000000..05de9f2a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProjectsScanConfigs.php @@ -0,0 +1,78 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $scanConfigs = $containeranalysisService->scanConfigs; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProjectsScanConfigs extends Google_Service_Resource +{ + /** + * Gets a specific scan configuration for a project. (scanConfigs.get) + * + * @param string $name The name of the ScanConfig in the form + * projects/{project_id}/scanConfigs/{scan_config_id} + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_ScanConfig + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ContainerAnalysis_ScanConfig"); + } + /** + * Lists scan configurations for a project. + * (scanConfigs.listProjectsScanConfigs) + * + * @param string $parent This containers the project Id i.e.: + * projects/{project_id} + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The number of items to return. + * @opt_param string filter The filter expression. + * @opt_param string pageToken The page token to use for the next request. + * @return Google_Service_ContainerAnalysis_ListScanConfigsResponse + */ + public function listProjectsScanConfigs($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListScanConfigsResponse"); + } + /** + * Updates the scan configuration to a new value. (scanConfigs.patch) + * + * @param string $name The scan config to update of the form + * projects/{project_id}/scanConfigs/{scan_config_id}. + * @param Google_Service_ContainerAnalysis_ScanConfig $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The fields to update. + * @return Google_Service_ContainerAnalysis_ScanConfig + */ + public function patch($name, Google_Service_ContainerAnalysis_ScanConfig $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ContainerAnalysis_ScanConfig"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Providers.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Providers.php new file mode 100644 index 00000000..99b3b476 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/Providers.php @@ -0,0 +1,28 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $providers = $containeranalysisService->providers; + * + */ +class Google_Service_ContainerAnalysis_Resource_Providers extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotes.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotes.php new file mode 100644 index 00000000..b92de94a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotes.php @@ -0,0 +1,188 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $notes = $containeranalysisService->notes; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProvidersNotes extends Google_Service_Resource +{ + /** + * Creates a new `Note`. (notes.create) + * + * @param string $name The name of the project. Should be of the form + * "providers/{provider_id}". @Deprecated + * @param Google_Service_ContainerAnalysis_Note $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string parent This field contains the project Id for example: + * "projects/{project_id} + * @opt_param string noteId The ID to use for this note. + * @return Google_Service_ContainerAnalysis_Note + */ + public function create($name, Google_Service_ContainerAnalysis_Note $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Deletes the given `Note` from the system. (notes.delete) + * + * @param string $name The name of the note in the form of + * "providers/{provider_id}/notes/{NOTE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_ContaineranalysisEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ContainerAnalysis_ContaineranalysisEmpty"); + } + /** + * Returns the requested `Note`. (notes.get) + * + * @param string $name The name of the note in the form of + * "providers/{provider_id}/notes/{NOTE_ID}" + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Note + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Gets the access control policy for a note or an `Occurrence` resource. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * note or occurrence, respectively. Attempting to call this method on a + * resource without the required permission will result in a `PERMISSION_DENIED` + * error. Attempting to call this method on a non-existent resource will result + * in a `NOT_FOUND` error if the user has list permission on the project, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences + * and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes (notes.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function getIamPolicy($resource, Google_Service_ContainerAnalysis_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Lists all `Notes` for a given project. (notes.listProvidersNotes) + * + * @param string $name The name field will contain the project Id for example: + * "providers/{provider_id} @Deprecated + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter expression. + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @opt_param int pageSize Number of notes to return in the list. + * @opt_param string parent This field contains the project Id for example: + * "projects/{PROJECT_ID}". + * @return Google_Service_ContainerAnalysis_ListNotesResponse + */ + public function listProvidersNotes($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListNotesResponse"); + } + /** + * Updates an existing `Note`. (notes.patch) + * + * @param string $name The name of the note. Should be of the form + * "projects/{provider_id}/notes/{note_id}". + * @param Google_Service_ContainerAnalysis_Note $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The fields to update. + * @return Google_Service_ContainerAnalysis_Note + */ + public function patch($name, Google_Service_ContainerAnalysis_Note $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ContainerAnalysis_Note"); + } + /** + * Sets the access control policy on the specified `Note` or `Occurrence`. + * Requires `containeranalysis.notes.setIamPolicy` or + * `containeranalysis.occurrences.setIamPolicy` permission if the resource is a + * `Note` or an `Occurrence`, respectively. Attempting to call this method + * without these permissions will result in a ` `PERMISSION_DENIED` error. + * Attempting to call this method on a non-existent resource will result in a + * `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission + * on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a + * `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences + * and projects/{projectid}/notes/{noteid} for notes (notes.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_Policy + */ + public function setIamPolicy($resource, Google_Service_ContainerAnalysis_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_ContainerAnalysis_Policy"); + } + /** + * Returns the permissions that a caller has on the specified note or occurrence + * resource. Requires list permission on the project (for example, + * "storage.objects.list" on the containing bucket for testing permission of an + * object). Attempting to call this method on a non-existent resource will + * result in a `NOT_FOUND` error if the user has list permission on the project, + * or a `PERMISSION_DENIED` error otherwise. The resource takes the following + * formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for + * `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` + * (notes.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ContainerAnalysis_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_ContainerAnalysis_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_ContainerAnalysis_TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotesOccurrences.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotesOccurrences.php new file mode 100644 index 00000000..a03a7581 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Resource/ProvidersNotesOccurrences.php @@ -0,0 +1,49 @@ + + * $containeranalysisService = new Google_Service_ContainerAnalysis(...); + * $occurrences = $containeranalysisService->occurrences; + * + */ +class Google_Service_ContainerAnalysis_Resource_ProvidersNotesOccurrences extends Google_Service_Resource +{ + /** + * Lists `Occurrences` referencing the specified `Note`. Use this method to get + * all occurrences referencing your `Note` across all your customer projects. + * (occurrences.listProvidersNotesOccurrences) + * + * @param string $name The name field will contain the note name for example: + * "provider/{provider_id}/notes/{note_id}" + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter expression. + * @opt_param string pageToken Token to provide to skip to a particular spot in + * the list. + * @opt_param int pageSize Number of notes to return in the list. + * @return Google_Service_ContainerAnalysis_ListNoteOccurrencesResponse + */ + public function listProvidersNotesOccurrences($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ContainerAnalysis_ListNoteOccurrencesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ScanConfig.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ScanConfig.php new file mode 100644 index 00000000..1fd30a34 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/ScanConfig.php @@ -0,0 +1,66 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SetIamPolicyRequest.php new file mode 100644 index 00000000..7e582e4e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SetIamPolicyRequest.php @@ -0,0 +1,46 @@ +policy = $policy; + } + /** + * @return Google_Service_ContainerAnalysis_Policy + */ + public function getPolicy() + { + return $this->policy; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SeverityCount.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SeverityCount.php new file mode 100644 index 00000000..18eca50a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/SeverityCount.php @@ -0,0 +1,39 @@ +count = $count; + } + public function getCount() + { + return $this->count; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Source.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Source.php new file mode 100644 index 00000000..b80c5ad4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Source.php @@ -0,0 +1,118 @@ +additionalContexts = $additionalContexts; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1SourceContext + */ + public function getAdditionalContexts() + { + return $this->additionalContexts; + } + /** + * @param Google_Service_ContainerAnalysis_StorageSource + */ + public function setArtifactStorageSource(Google_Service_ContainerAnalysis_StorageSource $artifactStorageSource) + { + $this->artifactStorageSource = $artifactStorageSource; + } + /** + * @return Google_Service_ContainerAnalysis_StorageSource + */ + public function getArtifactStorageSource() + { + return $this->artifactStorageSource; + } + /** + * @param Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1SourceContext + */ + public function setContext(Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1SourceContext $context) + { + $this->context = $context; + } + /** + * @return Google_Service_ContainerAnalysis_GoogleDevtoolsContaineranalysisV1alpha1SourceContext + */ + public function getContext() + { + return $this->context; + } + /** + * @param Google_Service_ContainerAnalysis_FileHashes + */ + public function setFileHashes($fileHashes) + { + $this->fileHashes = $fileHashes; + } + /** + * @return Google_Service_ContainerAnalysis_FileHashes + */ + public function getFileHashes() + { + return $this->fileHashes; + } + /** + * @param Google_Service_ContainerAnalysis_RepoSource + */ + public function setRepoSource(Google_Service_ContainerAnalysis_RepoSource $repoSource) + { + $this->repoSource = $repoSource; + } + /** + * @return Google_Service_ContainerAnalysis_RepoSource + */ + public function getRepoSource() + { + return $this->repoSource; + } + /** + * @param Google_Service_ContainerAnalysis_StorageSource + */ + public function setStorageSource(Google_Service_ContainerAnalysis_StorageSource $storageSource) + { + $this->storageSource = $storageSource; + } + /** + * @return Google_Service_ContainerAnalysis_StorageSource + */ + public function getStorageSource() + { + return $this->storageSource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Status.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Status.php new file mode 100644 index 00000000..8847b229 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/StorageSource.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/StorageSource.php new file mode 100644 index 00000000..eecc6168 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/StorageSource.php @@ -0,0 +1,48 @@ +bucket = $bucket; + } + public function getBucket() + { + return $this->bucket; + } + public function setGeneration($generation) + { + $this->generation = $generation; + } + public function getGeneration() + { + return $this->generation; + } + public function setObject($object) + { + $this->object = $object; + } + public function getObject() + { + return $this->object; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsRequest.php new file mode 100644 index 00000000..d8567c06 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsResponse.php new file mode 100644 index 00000000..7854a3d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/UpdateOperationRequest.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/UpdateOperationRequest.php new file mode 100644 index 00000000..4debc9ba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/UpdateOperationRequest.php @@ -0,0 +1,46 @@ +operation = $operation; + } + /** + * @return Google_Service_ContainerAnalysis_Operation + */ + public function getOperation() + { + return $this->operation; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Version.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Version.php new file mode 100644 index 00000000..c3dae707 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/Version.php @@ -0,0 +1,57 @@ +epoch = $epoch; + } + public function getEpoch() + { + return $this->epoch; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRevision($revision) + { + $this->revision = $revision; + } + public function getRevision() + { + return $this->revision; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityDetails.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityDetails.php new file mode 100644 index 00000000..fae87dd9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityDetails.php @@ -0,0 +1,65 @@ +cvssScore = $cvssScore; + } + public function getCvssScore() + { + return $this->cvssScore; + } + /** + * @param Google_Service_ContainerAnalysis_PackageIssue + */ + public function setPackageIssue($packageIssue) + { + $this->packageIssue = $packageIssue; + } + /** + * @return Google_Service_ContainerAnalysis_PackageIssue + */ + public function getPackageIssue() + { + return $this->packageIssue; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityLocation.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityLocation.php new file mode 100644 index 00000000..d713561e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityLocation.php @@ -0,0 +1,55 @@ +cpeUri = $cpeUri; + } + public function getCpeUri() + { + return $this->cpeUri; + } + public function setPackage($package) + { + $this->package = $package; + } + public function getPackage() + { + return $this->package; + } + /** + * @param Google_Service_ContainerAnalysis_Version + */ + public function setVersion(Google_Service_ContainerAnalysis_Version $version) + { + $this->version = $version; + } + /** + * @return Google_Service_ContainerAnalysis_Version + */ + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls.php b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityType.php similarity index 50% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls.php rename to vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityType.php index 34910f90..96da8193 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls.php +++ b/vendor/google/apiclient-services/src/Google/Service/ContainerAnalysis/VulnerabilityType.php @@ -15,40 +15,42 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection +class Google_Service_ContainerAnalysis_VulnerabilityType extends Google_Collection { protected $collection_key = 'details'; - protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV4'; + public $cvssScore; + protected $detailsType = 'Google_Service_ContainerAnalysis_Detail'; protected $detailsDataType = 'array'; - protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV4'; - protected $resultDataType = ''; + public $severity; + public function setCvssScore($cvssScore) + { + $this->cvssScore = $cvssScore; + } + public function getCvssScore() + { + return $this->cvssScore; + } /** - * @param Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 + * @param Google_Service_ContainerAnalysis_Detail */ public function setDetails($details) { $this->details = $details; } /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 + * @return Google_Service_ContainerAnalysis_Detail */ public function getDetails() { return $this->details; } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 - */ - public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 $result) + public function setSeverity($severity) { - $this->result = $result; + $this->severity = $severity; } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 - */ - public function getResult() + public function getSeverity() { - return $this->result; + return $this->severity; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Customsearch.php b/vendor/google/apiclient-services/src/Google/Service/Customsearch.php index ca46e1ca..e31358b7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Customsearch.php +++ b/vendor/google/apiclient-services/src/Google/Service/Customsearch.php @@ -45,6 +45,7 @@ class Google_Service_Customsearch extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'customsearch/'; + $this->batchPath = 'batch/customsearch/v1'; $this->version = 'v1'; $this->serviceName = 'customsearch'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php b/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php index 63bd38c7..40b84802 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php @@ -55,7 +55,8 @@ class Google_Service_Customsearch_Resource_Cse extends Google_Service_Resource * @opt_param string imgColorType Returns black and white, grayscale, or color * images: mono, gray, and color. * @opt_param string imgDominantColor Returns images of a specific dominant - * color: yellow, green, teal, blue, purple, pink, white, gray, black and brown. + * color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, + * black and brown. * @opt_param string imgSize Returns images of a specified size, where size can * be one of: icon, small, medium, large, xlarge, xxlarge, and huge. * @opt_param string imgType Returns images of a type, which can be one of: diff --git a/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/CseSiterestrict.php b/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/CseSiterestrict.php index 1e6e86df..e24cf904 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/CseSiterestrict.php +++ b/vendor/google/apiclient-services/src/Google/Service/Customsearch/Resource/CseSiterestrict.php @@ -26,9 +26,9 @@ class Google_Service_Customsearch_Resource_CseSiterestrict extends Google_Service_Resource { /** - * (Closed Beta API) Returns metadata about the search performed, metadata about - * the custom search engine used for the search, and the search results only for - * site-restrict cses. (siterestrict.listCseSiterestrict) + * Returns metadata about the search performed, metadata about the custom search + * engine used for the search, and the search results. Uses a small set of url + * patterns. (siterestrict.listCseSiterestrict) * * @param string $q Query * @param array $optParams Optional parameters. @@ -56,7 +56,8 @@ class Google_Service_Customsearch_Resource_CseSiterestrict extends Google_Servic * @opt_param string imgColorType Returns black and white, grayscale, or color * images: mono, gray, and color. * @opt_param string imgDominantColor Returns images of a specific dominant - * color: yellow, green, teal, blue, purple, pink, white, gray, black and brown. + * color: red, orange, yellow, green, teal, blue, purple, pink, white, gray, + * black and brown. * @opt_param string imgSize Returns images of a specified size, where size can * be one of: icon, small, medium, large, xlarge, xxlarge, and huge. * @opt_param string imgType Returns images of a type, which can be one of: diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP.php b/vendor/google/apiclient-services/src/Google/Service/DLP.php index 09d64ce2..327283d6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP.php @@ -39,12 +39,14 @@ class Google_Service_DLP extends Google_Service public $infoTypes; public $organizations_deidentifyTemplates; public $organizations_inspectTemplates; + public $organizations_storedInfoTypes; public $projects_content; public $projects_deidentifyTemplates; public $projects_dlpJobs; public $projects_image; public $projects_inspectTemplates; public $projects_jobTriggers; + public $projects_storedInfoTypes; /** * Constructs the internal representation of the DLP service. @@ -56,6 +58,7 @@ class Google_Service_DLP extends Google_Service parent::__construct($client); $this->rootUrl = 'https://dlp.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'dlp'; @@ -131,6 +134,10 @@ class Google_Service_DLP extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -199,6 +206,82 @@ class Google_Service_DLP extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->organizations_storedInfoTypes = new Google_Service_DLP_Resource_OrganizationsStoredInfoTypes( + $this, + $this->serviceName, + 'storedInfoTypes', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/storedInfoTypes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/storedInfoTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -303,13 +386,17 @@ class Google_Service_DLP extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( + 'orderBy' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), ), ),'patch' => array( @@ -381,6 +468,10 @@ class Google_Service_DLP extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -389,11 +480,11 @@ class Google_Service_DLP extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'type' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), - 'filter' => array( + 'type' => array( 'location' => 'query', 'type' => 'string', ), @@ -471,6 +562,10 @@ class Google_Service_DLP extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -496,7 +591,17 @@ class Google_Service_DLP extends Google_Service 'jobTriggers', array( 'methods' => array( - 'create' => array( + 'activate' => array( + 'path' => 'v2/{+name}:activate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'v2/{+parent}/jobTriggers', 'httpMethod' => 'POST', 'parameters' => array( @@ -535,9 +640,9 @@ class Google_Service_DLP extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( + 'filter' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', @@ -547,6 +652,82 @@ class Google_Service_DLP extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_storedInfoTypes = new Google_Service_DLP_Resource_ProjectsStoredInfoTypes( + $this, + $this->serviceName, + 'storedInfoTypes', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/{+parent}/storedInfoTypes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/{+parent}/storedInfoTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'patch' => array( 'path' => 'v2/{+name}', diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Action.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Action.php index bac639a9..258fcb81 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Action.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Action.php @@ -17,6 +17,8 @@ class Google_Service_DLP_GooglePrivacyDlpV2Action extends Google_Model { + protected $jobNotificationEmailsType = 'Google_Service_DLP_GooglePrivacyDlpV2JobNotificationEmails'; + protected $jobNotificationEmailsDataType = ''; protected $pubSubType = 'Google_Service_DLP_GooglePrivacyDlpV2PublishToPubSub'; protected $pubSubDataType = ''; protected $publishSummaryToCsccType = 'Google_Service_DLP_GooglePrivacyDlpV2PublishSummaryToCscc'; @@ -24,6 +26,20 @@ class Google_Service_DLP_GooglePrivacyDlpV2Action extends Google_Model protected $saveFindingsType = 'Google_Service_DLP_GooglePrivacyDlpV2SaveFindings'; protected $saveFindingsDataType = ''; + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2JobNotificationEmails + */ + public function setJobNotificationEmails(Google_Service_DLP_GooglePrivacyDlpV2JobNotificationEmails $jobNotificationEmails) + { + $this->jobNotificationEmails = $jobNotificationEmails; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2JobNotificationEmails + */ + public function getJobNotificationEmails() + { + return $this->jobNotificationEmails; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2PublishToPubSub */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ActivateJobTriggerRequest.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ActivateJobTriggerRequest.php new file mode 100644 index 00000000..a840e000 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ActivateJobTriggerRequest.php @@ -0,0 +1,20 @@ +categoricalStatsResult; } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationResult + */ + public function setDeltaPresenceEstimationResult(Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationResult $deltaPresenceEstimationResult) + { + $this->deltaPresenceEstimationResult = $deltaPresenceEstimationResult; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationResult + */ + public function getDeltaPresenceEstimationResult() + { + return $this->deltaPresenceEstimationResult; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2KAnonymityResult */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryField.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryField.php new file mode 100644 index 00000000..6819d4cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryField.php @@ -0,0 +1,53 @@ +field = $field; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId + */ + public function getField() + { + return $this->field; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable + */ + public function setTable(Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable $table) + { + $this->table = $table; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable + */ + public function getTable() + { + return $this->table; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryOptions.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryOptions.php index 52743860..d67ec17b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2BigQueryOptions.php @@ -18,12 +18,30 @@ class Google_Service_DLP_GooglePrivacyDlpV2BigQueryOptions extends Google_Collection { protected $collection_key = 'identifyingFields'; + protected $excludedFieldsType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; + protected $excludedFieldsDataType = 'array'; protected $identifyingFieldsType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; protected $identifyingFieldsDataType = 'array'; public $rowsLimit; + public $rowsLimitPercent; + public $sampleMethod; protected $tableReferenceType = 'Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable'; protected $tableReferenceDataType = ''; + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId + */ + public function setExcludedFields($excludedFields) + { + $this->excludedFields = $excludedFields; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId + */ + public function getExcludedFields() + { + return $this->excludedFields; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ @@ -46,6 +64,22 @@ class Google_Service_DLP_GooglePrivacyDlpV2BigQueryOptions extends Google_Collec { return $this->rowsLimit; } + public function setRowsLimitPercent($rowsLimitPercent) + { + $this->rowsLimitPercent = $rowsLimitPercent; + } + public function getRowsLimitPercent() + { + return $this->rowsLimitPercent; + } + public function setSampleMethod($sampleMethod) + { + $this->sampleMethod = $sampleMethod; + } + public function getSampleMethod() + { + return $this->sampleMethod; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageFileSet.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageFileSet.php new file mode 100644 index 00000000..1deca8e6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageFileSet.php @@ -0,0 +1,30 @@ +url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageOptions.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageOptions.php index 6859f944..c38ddc7b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageOptions.php @@ -19,9 +19,12 @@ class Google_Service_DLP_GooglePrivacyDlpV2CloudStorageOptions extends Google_Co { protected $collection_key = 'fileTypes'; public $bytesLimitPerFile; + public $bytesLimitPerFilePercent; protected $fileSetType = 'Google_Service_DLP_GooglePrivacyDlpV2FileSet'; protected $fileSetDataType = ''; public $fileTypes; + public $filesLimitPercent; + public $sampleMethod; public function setBytesLimitPerFile($bytesLimitPerFile) { @@ -31,6 +34,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2CloudStorageOptions extends Google_Co { return $this->bytesLimitPerFile; } + public function setBytesLimitPerFilePercent($bytesLimitPerFilePercent) + { + $this->bytesLimitPerFilePercent = $bytesLimitPerFilePercent; + } + public function getBytesLimitPerFilePercent() + { + return $this->bytesLimitPerFilePercent; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2FileSet */ @@ -53,4 +64,20 @@ class Google_Service_DLP_GooglePrivacyDlpV2CloudStorageOptions extends Google_Co { return $this->fileTypes; } + public function setFilesLimitPercent($filesLimitPercent) + { + $this->filesLimitPercent = $filesLimitPercent; + } + public function getFilesLimitPercent() + { + return $this->filesLimitPercent; + } + public function setSampleMethod($sampleMethod) + { + $this->sampleMethod = $sampleMethod; + } + public function getSampleMethod() + { + return $this->sampleMethod; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageRegexFileSet.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageRegexFileSet.php new file mode 100644 index 00000000..a072ad76 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CloudStorageRegexFileSet.php @@ -0,0 +1,49 @@ +bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } + public function setExcludeRegex($excludeRegex) + { + $this->excludeRegex = $excludeRegex; + } + public function getExcludeRegex() + { + return $this->excludeRegex; + } + public function setIncludeRegex($includeRegex) + { + $this->includeRegex = $includeRegex; + } + public function getIncludeRegex() + { + return $this->includeRegex; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CreateStoredInfoTypeRequest.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CreateStoredInfoTypeRequest.php new file mode 100644 index 00000000..2e4d3193 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CreateStoredInfoTypeRequest.php @@ -0,0 +1,46 @@ +config = $config; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeConfig + */ + public function getConfig() + { + return $this->config; + } + public function setStoredInfoTypeId($storedInfoTypeId) + { + $this->storedInfoTypeId = $storedInfoTypeId; + } + public function getStoredInfoTypeId() + { + return $this->storedInfoTypeId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CustomInfoType.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CustomInfoType.php index c60cdfe2..9ce9c8ca 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CustomInfoType.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2CustomInfoType.php @@ -22,11 +22,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2CustomInfoType extends Google_Collect protected $detectionRulesDataType = 'array'; protected $dictionaryType = 'Google_Service_DLP_GooglePrivacyDlpV2Dictionary'; protected $dictionaryDataType = ''; + public $exclusionType; protected $infoTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2InfoType'; protected $infoTypeDataType = ''; public $likelihood; protected $regexType = 'Google_Service_DLP_GooglePrivacyDlpV2Regex'; protected $regexDataType = ''; + protected $storedTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2StoredType'; + protected $storedTypeDataType = ''; protected $surrogateTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2SurrogateType'; protected $surrogateTypeDataType = ''; @@ -58,6 +61,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2CustomInfoType extends Google_Collect { return $this->dictionary; } + public function setExclusionType($exclusionType) + { + $this->exclusionType = $exclusionType; + } + public function getExclusionType() + { + return $this->exclusionType; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2InfoType */ @@ -94,6 +105,20 @@ class Google_Service_DLP_GooglePrivacyDlpV2CustomInfoType extends Google_Collect { return $this->regex; } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2StoredType + */ + public function setStoredType(Google_Service_DLP_GooglePrivacyDlpV2StoredType $storedType) + { + $this->storedType = $storedType; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredType + */ + public function getStoredType() + { + return $this->storedType; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2SurrogateType */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationConfig.php similarity index 77% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationConfig.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationConfig.php index 472e8827..4cf39919 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationConfig.php @@ -15,38 +15,38 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationConfig extends Google_Collection +class Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationConfig extends Google_Collection { protected $collection_key = 'quasiIds'; - protected $auxiliaryTablesType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1AuxiliaryTable'; + protected $auxiliaryTablesType = 'Google_Service_DLP_GooglePrivacyDlpV2StatisticalTable'; protected $auxiliaryTablesDataType = 'array'; - protected $quasiIdsType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField'; + protected $quasiIdsType = 'Google_Service_DLP_GooglePrivacyDlpV2QuasiId'; protected $quasiIdsDataType = 'array'; public $regionCode; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1AuxiliaryTable + * @param Google_Service_DLP_GooglePrivacyDlpV2StatisticalTable */ public function setAuxiliaryTables($auxiliaryTables) { $this->auxiliaryTables = $auxiliaryTables; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1AuxiliaryTable + * @return Google_Service_DLP_GooglePrivacyDlpV2StatisticalTable */ public function getAuxiliaryTables() { return $this->auxiliaryTables; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField + * @param Google_Service_DLP_GooglePrivacyDlpV2QuasiId */ public function setQuasiIds($quasiIds) { $this->quasiIds = $quasiIds; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField + * @return Google_Service_DLP_GooglePrivacyDlpV2QuasiId */ public function getQuasiIds() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket.php similarity index 55% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket.php index caf819d9..23d15f68 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket.php @@ -15,14 +15,15 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket extends Google_Collection +class Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket extends Google_Collection { protected $collection_key = 'bucketValues'; public $bucketSize; - protected $bucketValuesType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency'; + public $bucketValueCount; + protected $bucketValuesType = 'Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues'; protected $bucketValuesDataType = 'array'; - public $valueFrequencyLowerBound; - public $valueFrequencyUpperBound; + public $maxProbability; + public $minProbability; public function setBucketSize($bucketSize) { @@ -32,34 +33,42 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket { return $this->bucketSize; } + public function setBucketValueCount($bucketValueCount) + { + $this->bucketValueCount = $bucketValueCount; + } + public function getBucketValueCount() + { + return $this->bucketValueCount; + } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency + * @param Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues */ public function setBucketValues($bucketValues) { $this->bucketValues = $bucketValues; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency + * @return Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues */ public function getBucketValues() { return $this->bucketValues; } - public function setValueFrequencyLowerBound($valueFrequencyLowerBound) + public function setMaxProbability($maxProbability) { - $this->valueFrequencyLowerBound = $valueFrequencyLowerBound; + $this->maxProbability = $maxProbability; } - public function getValueFrequencyLowerBound() + public function getMaxProbability() { - return $this->valueFrequencyLowerBound; + return $this->maxProbability; } - public function setValueFrequencyUpperBound($valueFrequencyUpperBound) + public function setMinProbability($minProbability) { - $this->valueFrequencyUpperBound = $valueFrequencyUpperBound; + $this->minProbability = $minProbability; } - public function getValueFrequencyUpperBound() + public function getMinProbability() { - return $this->valueFrequencyUpperBound; + return $this->minProbability; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues.php similarity index 67% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues.php index f6054c33..ffec8dab 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues.php @@ -15,30 +15,30 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues extends Google_Collection +class Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues extends Google_Collection { protected $collection_key = 'quasiIdsValues'; - public $estimatedAnonymity; - protected $quasiIdsValuesType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1Value'; + public $estimatedProbability; + protected $quasiIdsValuesType = 'Google_Service_DLP_GooglePrivacyDlpV2Value'; protected $quasiIdsValuesDataType = 'array'; - public function setEstimatedAnonymity($estimatedAnonymity) + public function setEstimatedProbability($estimatedProbability) { - $this->estimatedAnonymity = $estimatedAnonymity; + $this->estimatedProbability = $estimatedProbability; } - public function getEstimatedAnonymity() + public function getEstimatedProbability() { - return $this->estimatedAnonymity; + return $this->estimatedProbability; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value + * @param Google_Service_DLP_GooglePrivacyDlpV2Value */ public function setQuasiIdsValues($quasiIdsValues) { $this->quasiIdsValues = $quasiIdsValues; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value + * @return Google_Service_DLP_GooglePrivacyDlpV2Value */ public function getQuasiIdsValues() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationResult.php new file mode 100644 index 00000000..862283f8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2DeltaPresenceEstimationResult.php @@ -0,0 +1,38 @@ +deltaPresenceEstimationHistogram = $deltaPresenceEstimationHistogram; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket + */ + public function getDeltaPresenceEstimationHistogram() + { + return $this->deltaPresenceEstimationHistogram; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1EntityId.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2EntityId.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1EntityId.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2EntityId.php index 421f3675..c38e6b3d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1EntityId.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2EntityId.php @@ -15,20 +15,20 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1EntityId extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2EntityId extends Google_Model { - protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; + protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; protected $fieldDataType = ''; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ - public function setField(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $field) + public function setField(Google_Service_DLP_GooglePrivacyDlpV2FieldId $field) { $this->field = $field; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId */ public function getField() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExcludeInfoTypes.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExcludeInfoTypes.php new file mode 100644 index 00000000..b308ab3e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExcludeInfoTypes.php @@ -0,0 +1,38 @@ +infoTypes = $infoTypes; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2InfoType + */ + public function getInfoTypes() + { + return $this->infoTypes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExclusionRule.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExclusionRule.php new file mode 100644 index 00000000..d55e28ce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ExclusionRule.php @@ -0,0 +1,78 @@ +dictionary = $dictionary; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2Dictionary + */ + public function getDictionary() + { + return $this->dictionary; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2ExcludeInfoTypes + */ + public function setExcludeInfoTypes(Google_Service_DLP_GooglePrivacyDlpV2ExcludeInfoTypes $excludeInfoTypes) + { + $this->excludeInfoTypes = $excludeInfoTypes; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2ExcludeInfoTypes + */ + public function getExcludeInfoTypes() + { + return $this->excludeInfoTypes; + } + public function setMatchingType($matchingType) + { + $this->matchingType = $matchingType; + } + public function getMatchingType() + { + return $this->matchingType; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2Regex + */ + public function setRegex(Google_Service_DLP_GooglePrivacyDlpV2Regex $regex) + { + $this->regex = $regex; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2Regex + */ + public function getRegex() + { + return $this->regex; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2FileSet.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2FileSet.php index f54e6ced..f309d652 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2FileSet.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2FileSet.php @@ -17,8 +17,24 @@ class Google_Service_DLP_GooglePrivacyDlpV2FileSet extends Google_Model { + protected $regexFileSetType = 'Google_Service_DLP_GooglePrivacyDlpV2CloudStorageRegexFileSet'; + protected $regexFileSetDataType = ''; public $url; + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2CloudStorageRegexFileSet + */ + public function setRegexFileSet(Google_Service_DLP_GooglePrivacyDlpV2CloudStorageRegexFileSet $regexFileSet) + { + $this->regexFileSet = $regexFileSet; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2CloudStorageRegexFileSet + */ + public function getRegexFileSet() + { + return $this->regexFileSet; + } public function setUrl($url) { $this->url = $url; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InfoTypeDescription.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InfoTypeDescription.php index 5221f87c..20c62eb4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InfoTypeDescription.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InfoTypeDescription.php @@ -18,10 +18,19 @@ class Google_Service_DLP_GooglePrivacyDlpV2InfoTypeDescription extends Google_Collection { protected $collection_key = 'supportedBy'; + public $description; public $displayName; public $name; public $supportedBy; + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } public function setDisplayName($displayName) { $this->displayName = $displayName; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectConfig.php index 903002b9..59a2d102 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectConfig.php @@ -17,7 +17,7 @@ class Google_Service_DLP_GooglePrivacyDlpV2InspectConfig extends Google_Collection { - protected $collection_key = 'infoTypes'; + protected $collection_key = 'ruleSet'; public $contentOptions; protected $customInfoTypesType = 'Google_Service_DLP_GooglePrivacyDlpV2CustomInfoType'; protected $customInfoTypesDataType = 'array'; @@ -28,6 +28,8 @@ class Google_Service_DLP_GooglePrivacyDlpV2InspectConfig extends Google_Collecti protected $limitsType = 'Google_Service_DLP_GooglePrivacyDlpV2FindingLimits'; protected $limitsDataType = ''; public $minLikelihood; + protected $ruleSetType = 'Google_Service_DLP_GooglePrivacyDlpV2InspectionRuleSet'; + protected $ruleSetDataType = 'array'; public function setContentOptions($contentOptions) { @@ -103,4 +105,18 @@ class Google_Service_DLP_GooglePrivacyDlpV2InspectConfig extends Google_Collecti { return $this->minLikelihood; } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2InspectionRuleSet + */ + public function setRuleSet($ruleSet) + { + $this->ruleSet = $ruleSet; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2InspectionRuleSet + */ + public function getRuleSet() + { + return $this->ruleSet; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRule.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRule.php new file mode 100644 index 00000000..940e9221 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRule.php @@ -0,0 +1,53 @@ +exclusionRule = $exclusionRule; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2ExclusionRule + */ + public function getExclusionRule() + { + return $this->exclusionRule; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2HotwordRule + */ + public function setHotwordRule(Google_Service_DLP_GooglePrivacyDlpV2HotwordRule $hotwordRule) + { + $this->hotwordRule = $hotwordRule; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2HotwordRule + */ + public function getHotwordRule() + { + return $this->hotwordRule; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRuleSet.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRuleSet.php new file mode 100644 index 00000000..0ba50523 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2InspectionRuleSet.php @@ -0,0 +1,54 @@ +infoTypes = $infoTypes; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2InfoType + */ + public function getInfoTypes() + { + return $this->infoTypes; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2InspectionRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2InspectionRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2JobNotificationEmails.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2JobNotificationEmails.php new file mode 100644 index 00000000..0cde0321 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2JobNotificationEmails.php @@ -0,0 +1,20 @@ +entityId = $entityId; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2EntityId + */ + public function getEntityId() + { + return $this->entityId; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2LargeCustomDictionaryConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2LargeCustomDictionaryConfig.php new file mode 100644 index 00000000..07b313e6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2LargeCustomDictionaryConfig.php @@ -0,0 +1,69 @@ +bigQueryField = $bigQueryField; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2BigQueryField + */ + public function getBigQueryField() + { + return $this->bigQueryField; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2CloudStorageFileSet + */ + public function setCloudStorageFileSet(Google_Service_DLP_GooglePrivacyDlpV2CloudStorageFileSet $cloudStorageFileSet) + { + $this->cloudStorageFileSet = $cloudStorageFileSet; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2CloudStorageFileSet + */ + public function getCloudStorageFileSet() + { + return $this->cloudStorageFileSet; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2CloudStoragePath + */ + public function setOutputPath(Google_Service_DLP_GooglePrivacyDlpV2CloudStoragePath $outputPath) + { + $this->outputPath = $outputPath; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2CloudStoragePath + */ + public function getOutputPath() + { + return $this->outputPath; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ListStoredInfoTypesResponse.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ListStoredInfoTypesResponse.php new file mode 100644 index 00000000..d3003da5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2ListStoredInfoTypesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function setStoredInfoTypes($storedInfoTypes) + { + $this->storedInfoTypes = $storedInfoTypes; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function getStoredInfoTypes() + { + return $this->storedInfoTypes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2PrivacyMetric.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2PrivacyMetric.php index 73b5f24a..0843d82b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2PrivacyMetric.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2PrivacyMetric.php @@ -19,6 +19,8 @@ class Google_Service_DLP_GooglePrivacyDlpV2PrivacyMetric extends Google_Model { protected $categoricalStatsConfigType = 'Google_Service_DLP_GooglePrivacyDlpV2CategoricalStatsConfig'; protected $categoricalStatsConfigDataType = ''; + protected $deltaPresenceEstimationConfigType = 'Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationConfig'; + protected $deltaPresenceEstimationConfigDataType = ''; protected $kAnonymityConfigType = 'Google_Service_DLP_GooglePrivacyDlpV2KAnonymityConfig'; protected $kAnonymityConfigDataType = ''; protected $kMapEstimationConfigType = 'Google_Service_DLP_GooglePrivacyDlpV2KMapEstimationConfig'; @@ -42,6 +44,20 @@ class Google_Service_DLP_GooglePrivacyDlpV2PrivacyMetric extends Google_Model { return $this->categoricalStatsConfig; } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationConfig + */ + public function setDeltaPresenceEstimationConfig(Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationConfig $deltaPresenceEstimationConfig) + { + $this->deltaPresenceEstimationConfig = $deltaPresenceEstimationConfig; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2DeltaPresenceEstimationConfig + */ + public function getDeltaPresenceEstimationConfig() + { + return $this->deltaPresenceEstimationConfig; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2KAnonymityConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1TaggedField.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiId.php similarity index 78% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1TaggedField.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiId.php index 607f9efe..b3202a5e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1TaggedField.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiId.php @@ -15,14 +15,14 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2QuasiId extends Google_Model { public $customTag; - protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; + protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; protected $fieldDataType = ''; protected $inferredType = 'Google_Service_DLP_GoogleProtobufEmpty'; protected $inferredDataType = ''; - protected $infoTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType'; + protected $infoTypeType = 'Google_Service_DLP_GooglePrivacyDlpV2InfoType'; protected $infoTypeDataType = ''; public function setCustomTag($customTag) @@ -34,14 +34,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField extends Google_Model return $this->customTag; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ - public function setField(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $field) + public function setField(Google_Service_DLP_GooglePrivacyDlpV2FieldId $field) { $this->field = $field; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId */ public function getField() { @@ -62,14 +62,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1TaggedField extends Google_Model return $this->inferred; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @param Google_Service_DLP_GooglePrivacyDlpV2InfoType */ - public function setInfoType(Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType $infoType) + public function setInfoType(Google_Service_DLP_GooglePrivacyDlpV2InfoType $infoType) { $this->infoType = $infoType; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType + * @return Google_Service_DLP_GooglePrivacyDlpV2InfoType */ public function getInfoType() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1QuasiIdField.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiIdentifierField.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1QuasiIdField.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiIdentifierField.php index c11d0e41..896c8921 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1QuasiIdField.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2QuasiIdentifierField.php @@ -15,10 +15,10 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1QuasiIdField extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2QuasiIdentifierField extends Google_Model { public $customTag; - protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; + protected $fieldType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; protected $fieldDataType = ''; public function setCustomTag($customTag) @@ -30,14 +30,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2beta1QuasiIdField extends Google_Mode return $this->customTag; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ - public function setField(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $field) + public function setField(Google_Service_DLP_GooglePrivacyDlpV2FieldId $field) { $this->field = $field; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId */ public function getField() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RecordKey.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RecordKey.php index 1264b626..b57e7658 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RecordKey.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RecordKey.php @@ -15,12 +15,14 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2RecordKey extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2RecordKey extends Google_Collection { + protected $collection_key = 'idValues'; protected $bigQueryKeyType = 'Google_Service_DLP_GooglePrivacyDlpV2BigQueryKey'; protected $bigQueryKeyDataType = ''; protected $datastoreKeyType = 'Google_Service_DLP_GooglePrivacyDlpV2DatastoreKey'; protected $datastoreKeyDataType = ''; + public $idValues; /** * @param Google_Service_DLP_GooglePrivacyDlpV2BigQueryKey @@ -50,4 +52,12 @@ class Google_Service_DLP_GooglePrivacyDlpV2RecordKey extends Google_Model { return $this->datastoreKey; } + public function setIdValues($idValues) + { + $this->idValues = $idValues; + } + public function getIdValues() + { + return $this->idValues; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageRequest.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageRequest.php index cd5e87da..97c2257f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageRequest.php @@ -22,6 +22,7 @@ class Google_Service_DLP_GooglePrivacyDlpV2RedactImageRequest extends Google_Col protected $byteItemDataType = ''; protected $imageRedactionConfigsType = 'Google_Service_DLP_GooglePrivacyDlpV2ImageRedactionConfig'; protected $imageRedactionConfigsDataType = 'array'; + public $includeFindings; protected $inspectConfigType = 'Google_Service_DLP_GooglePrivacyDlpV2InspectConfig'; protected $inspectConfigDataType = ''; @@ -53,6 +54,14 @@ class Google_Service_DLP_GooglePrivacyDlpV2RedactImageRequest extends Google_Col { return $this->imageRedactionConfigs; } + public function setIncludeFindings($includeFindings) + { + $this->includeFindings = $includeFindings; + } + public function getIncludeFindings() + { + return $this->includeFindings; + } /** * @param Google_Service_DLP_GooglePrivacyDlpV2InspectConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageResponse.php index d87458aa..c6612fb2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2RedactImageResponse.php @@ -18,6 +18,8 @@ class Google_Service_DLP_GooglePrivacyDlpV2RedactImageResponse extends Google_Model { public $extractedText; + protected $inspectResultType = 'Google_Service_DLP_GooglePrivacyDlpV2InspectResult'; + protected $inspectResultDataType = ''; public $redactedImage; public function setExtractedText($extractedText) @@ -28,6 +30,20 @@ class Google_Service_DLP_GooglePrivacyDlpV2RedactImageResponse extends Google_Mo { return $this->extractedText; } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2InspectResult + */ + public function setInspectResult(Google_Service_DLP_GooglePrivacyDlpV2InspectResult $inspectResult) + { + $this->inspectResult = $inspectResult; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2InspectResult + */ + public function getInspectResult() + { + return $this->inspectResult; + } public function setRedactedImage($redactedImage) { $this->redactedImage = $redactedImage; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Regex.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Regex.php index 9ae81806..7594f87a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Regex.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2Regex.php @@ -15,10 +15,20 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2Regex extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2Regex extends Google_Collection { + protected $collection_key = 'groupIndexes'; + public $groupIndexes; public $pattern; + public function setGroupIndexes($groupIndexes) + { + $this->groupIndexes = $groupIndexes; + } + public function getGroupIndexes() + { + return $this->groupIndexes; + } public function setPattern($pattern) { $this->pattern = $pattern; diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1AuxiliaryTable.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StatisticalTable.php similarity index 68% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1AuxiliaryTable.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StatisticalTable.php index 95245cac..252f592f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1AuxiliaryTable.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StatisticalTable.php @@ -15,53 +15,53 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1AuxiliaryTable extends Google_Collection +class Google_Service_DLP_GooglePrivacyDlpV2StatisticalTable extends Google_Collection { protected $collection_key = 'quasiIds'; - protected $quasiIdsType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1QuasiIdField'; + protected $quasiIdsType = 'Google_Service_DLP_GooglePrivacyDlpV2QuasiIdentifierField'; protected $quasiIdsDataType = 'array'; - protected $relativeFrequencyType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId'; + protected $relativeFrequencyType = 'Google_Service_DLP_GooglePrivacyDlpV2FieldId'; protected $relativeFrequencyDataType = ''; - protected $tableType = 'Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable'; + protected $tableType = 'Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable'; protected $tableDataType = ''; /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1QuasiIdField + * @param Google_Service_DLP_GooglePrivacyDlpV2QuasiIdentifierField */ public function setQuasiIds($quasiIds) { $this->quasiIds = $quasiIds; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1QuasiIdField + * @return Google_Service_DLP_GooglePrivacyDlpV2QuasiIdentifierField */ public function getQuasiIds() { return $this->quasiIds; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @param Google_Service_DLP_GooglePrivacyDlpV2FieldId */ - public function setRelativeFrequency(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $relativeFrequency) + public function setRelativeFrequency(Google_Service_DLP_GooglePrivacyDlpV2FieldId $relativeFrequency) { $this->relativeFrequency = $relativeFrequency; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId + * @return Google_Service_DLP_GooglePrivacyDlpV2FieldId */ public function getRelativeFrequency() { return $this->relativeFrequency; } /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable + * @param Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable */ - public function setTable(Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable $table) + public function setTable(Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable $table) { $this->table = $table; } /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable + * @return Google_Service_DLP_GooglePrivacyDlpV2BigQueryTable */ public function getTable() { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoType.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoType.php new file mode 100644 index 00000000..80f3f037 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoType.php @@ -0,0 +1,63 @@ +currentVersion = $currentVersion; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeVersion + */ + public function getCurrentVersion() + { + return $this->currentVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeVersion + */ + public function setPendingVersions($pendingVersions) + { + $this->pendingVersions = $pendingVersions; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeVersion + */ + public function getPendingVersions() + { + return $this->pendingVersions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeConfig.php new file mode 100644 index 00000000..fdc91468 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeConfig.php @@ -0,0 +1,55 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2LargeCustomDictionaryConfig + */ + public function setLargeCustomDictionary(Google_Service_DLP_GooglePrivacyDlpV2LargeCustomDictionaryConfig $largeCustomDictionary) + { + $this->largeCustomDictionary = $largeCustomDictionary; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2LargeCustomDictionaryConfig + */ + public function getLargeCustomDictionary() + { + return $this->largeCustomDictionary; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeVersion.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeVersion.php new file mode 100644 index 00000000..4db49b5e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredInfoTypeVersion.php @@ -0,0 +1,72 @@ +config = $config; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeConfig + */ + public function getConfig() + { + return $this->config; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_DLP_GooglePrivacyDlpV2Error + */ + public function setErrors($errors) + { + $this->errors = $errors; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2Error + */ + public function getErrors() + { + return $this->errors; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScope.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredType.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScope.php rename to vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredType.php index 9308f984..5390e308 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/GoogleAppsScriptTypeScope.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2StoredType.php @@ -15,18 +15,18 @@ * the License. */ -class Google_Service_Script_GoogleAppsScriptTypeScope extends Google_Model +class Google_Service_DLP_GooglePrivacyDlpV2StoredType extends Google_Model { - public $authorizer; + public $createTime; public $name; - public function setAuthorizer($authorizer) + public function setCreateTime($createTime) { - $this->authorizer = $authorizer; + $this->createTime = $createTime; } - public function getAuthorizer() + public function getCreateTime() { - return $this->authorizer; + return $this->createTime; } public function setName($name) { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest.php new file mode 100644 index 00000000..bbb08ecb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2UpdateStoredInfoTypeRequest.php @@ -0,0 +1,46 @@ +config = $config; + } + /** + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoTypeConfig + */ + public function getConfig() + { + return $this->config; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryOptions.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryOptions.php deleted file mode 100644 index 3cd80423..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryOptions.php +++ /dev/null @@ -1,54 +0,0 @@ -identifyingFields = $identifyingFields; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function getIdentifyingFields() - { - return $this->identifyingFields; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function setTableReference(Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable $tableReference) - { - $this->tableReference = $tableReference; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function getTableReference() - { - return $this->tableReference; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsResult.php deleted file mode 100644 index cc8ae233..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CategoricalStatsResult.php +++ /dev/null @@ -1,38 +0,0 @@ -valueFrequencyHistogramBuckets = $valueFrequencyHistogramBuckets; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket - */ - public function getValueFrequencyHistogramBuckets() - { - return $this->valueFrequencyHistogramBuckets; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CustomInfoType.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CustomInfoType.php deleted file mode 100644 index d2b07c52..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CustomInfoType.php +++ /dev/null @@ -1,69 +0,0 @@ -dictionary = $dictionary; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Dictionary - */ - public function getDictionary() - { - return $this->dictionary; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType - */ - public function setInfoType(Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType $infoType) - { - $this->infoType = $infoType; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType - */ - public function getInfoType() - { - return $this->infoType; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1SurrogateType - */ - public function setSurrogateType(Google_Service_DLP_GooglePrivacyDlpV2beta1SurrogateType $surrogateType) - { - $this->surrogateType = $surrogateType; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1SurrogateType - */ - public function getSurrogateType() - { - return $this->surrogateType; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1DatastoreOptions.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1DatastoreOptions.php deleted file mode 100644 index f62d657c..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1DatastoreOptions.php +++ /dev/null @@ -1,70 +0,0 @@ -kind = $kind; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KindExpression - */ - public function getKind() - { - return $this->kind; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1PartitionId - */ - public function setPartitionId(Google_Service_DLP_GooglePrivacyDlpV2beta1PartitionId $partitionId) - { - $this->partitionId = $partitionId; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1PartitionId - */ - public function getPartitionId() - { - return $this->partitionId; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Projection - */ - public function setProjection($projection) - { - $this->projection = $projection; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Projection - */ - public function getProjection() - { - return $this->projection; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectConfig.php deleted file mode 100644 index c904c9c9..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectConfig.php +++ /dev/null @@ -1,106 +0,0 @@ -customInfoTypes = $customInfoTypes; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CustomInfoType - */ - public function getCustomInfoTypes() - { - return $this->customInfoTypes; - } - public function setExcludeTypes($excludeTypes) - { - $this->excludeTypes = $excludeTypes; - } - public function getExcludeTypes() - { - return $this->excludeTypes; - } - public function setIncludeQuote($includeQuote) - { - $this->includeQuote = $includeQuote; - } - public function getIncludeQuote() - { - return $this->includeQuote; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeLimit - */ - public function setInfoTypeLimits($infoTypeLimits) - { - $this->infoTypeLimits = $infoTypeLimits; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeLimit - */ - public function getInfoTypeLimits() - { - return $this->infoTypeLimits; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType - */ - public function setInfoTypes($infoTypes) - { - $this->infoTypes = $infoTypes; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoType - */ - public function getInfoTypes() - { - return $this->infoTypes; - } - public function setMaxFindings($maxFindings) - { - $this->maxFindings = $maxFindings; - } - public function getMaxFindings() - { - return $this->maxFindings; - } - public function setMinLikelihood($minLikelihood) - { - $this->minLikelihood = $minLikelihood; - } - public function getMinLikelihood() - { - return $this->minLikelihood; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationMetadata.php deleted file mode 100644 index 93502728..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1InspectOperationMetadata.php +++ /dev/null @@ -1,113 +0,0 @@ -createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeStatistics - */ - public function setInfoTypeStats($infoTypeStats) - { - $this->infoTypeStats = $infoTypeStats; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InfoTypeStatistics - */ - public function getInfoTypeStats() - { - return $this->infoTypeStats; - } - public function setProcessedBytes($processedBytes) - { - $this->processedBytes = $processedBytes; - } - public function getProcessedBytes() - { - return $this->processedBytes; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1InspectConfig - */ - public function setRequestInspectConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1InspectConfig $requestInspectConfig) - { - $this->requestInspectConfig = $requestInspectConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1InspectConfig - */ - public function getRequestInspectConfig() - { - return $this->requestInspectConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1OutputStorageConfig - */ - public function setRequestOutputConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1OutputStorageConfig $requestOutputConfig) - { - $this->requestOutputConfig = $requestOutputConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1OutputStorageConfig - */ - public function getRequestOutputConfig() - { - return $this->requestOutputConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1StorageConfig - */ - public function setRequestStorageConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1StorageConfig $requestStorageConfig) - { - $this->requestStorageConfig = $requestStorageConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1StorageConfig - */ - public function getRequestStorageConfig() - { - return $this->requestStorageConfig; - } - public function setTotalEstimatedBytes($totalEstimatedBytes) - { - $this->totalEstimatedBytes = $totalEstimatedBytes; - } - public function getTotalEstimatedBytes() - { - return $this->totalEstimatedBytes; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityConfig.php deleted file mode 100644 index 156a27bf..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityConfig.php +++ /dev/null @@ -1,54 +0,0 @@ -entityId = $entityId; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1EntityId - */ - public function getEntityId() - { - return $this->entityId; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function setQuasiIds($quasiIds) - { - $this->quasiIds = $quasiIds; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function getQuasiIds() - { - return $this->quasiIds; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass.php deleted file mode 100644 index 111312b8..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass.php +++ /dev/null @@ -1,47 +0,0 @@ -equivalenceClassSize = $equivalenceClassSize; - } - public function getEquivalenceClassSize() - { - return $this->equivalenceClassSize; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function setQuasiIdsValues($quasiIdsValues) - { - $this->quasiIdsValues = $quasiIdsValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function getQuasiIdsValues() - { - return $this->quasiIdsValues; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityHistogramBucket.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityHistogramBucket.php deleted file mode 100644 index e20f8a5e..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityHistogramBucket.php +++ /dev/null @@ -1,65 +0,0 @@ -bucketSize = $bucketSize; - } - public function getBucketSize() - { - return $this->bucketSize; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass - */ - public function setBucketValues($bucketValues) - { - $this->bucketValues = $bucketValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass - */ - public function getBucketValues() - { - return $this->bucketValues; - } - public function setEquivalenceClassSizeLowerBound($equivalenceClassSizeLowerBound) - { - $this->equivalenceClassSizeLowerBound = $equivalenceClassSizeLowerBound; - } - public function getEquivalenceClassSizeLowerBound() - { - return $this->equivalenceClassSizeLowerBound; - } - public function setEquivalenceClassSizeUpperBound($equivalenceClassSizeUpperBound) - { - $this->equivalenceClassSizeUpperBound = $equivalenceClassSizeUpperBound; - } - public function getEquivalenceClassSizeUpperBound() - { - return $this->equivalenceClassSizeUpperBound; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityResult.php deleted file mode 100644 index 79c5a14a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KAnonymityResult.php +++ /dev/null @@ -1,38 +0,0 @@ -equivalenceClassHistogramBuckets = $equivalenceClassHistogramBuckets; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityHistogramBucket - */ - public function getEquivalenceClassHistogramBuckets() - { - return $this->equivalenceClassHistogramBuckets; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket.php deleted file mode 100644 index ecb985a8..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket.php +++ /dev/null @@ -1,65 +0,0 @@ -bucketSize = $bucketSize; - } - public function getBucketSize() - { - return $this->bucketSize; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues - */ - public function setBucketValues($bucketValues) - { - $this->bucketValues = $bucketValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues - */ - public function getBucketValues() - { - return $this->bucketValues; - } - public function setMaxAnonymity($maxAnonymity) - { - $this->maxAnonymity = $maxAnonymity; - } - public function getMaxAnonymity() - { - return $this->maxAnonymity; - } - public function setMinAnonymity($minAnonymity) - { - $this->minAnonymity = $minAnonymity; - } - public function getMinAnonymity() - { - return $this->minAnonymity; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationResult.php deleted file mode 100644 index be180bf4..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1KMapEstimationResult.php +++ /dev/null @@ -1,38 +0,0 @@ -kMapEstimationHistogram = $kMapEstimationHistogram; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket - */ - public function getKMapEstimationHistogram() - { - return $this->kMapEstimationHistogram; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityConfig.php deleted file mode 100644 index e8332063..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityConfig.php +++ /dev/null @@ -1,54 +0,0 @@ -quasiIds = $quasiIds; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function getQuasiIds() - { - return $this->quasiIds; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function setSensitiveAttribute(Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId $sensitiveAttribute) - { - $this->sensitiveAttribute = $sensitiveAttribute; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1FieldId - */ - public function getSensitiveAttribute() - { - return $this->sensitiveAttribute; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityEquivalenceClass.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityEquivalenceClass.php deleted file mode 100644 index 09e0d96e..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityEquivalenceClass.php +++ /dev/null @@ -1,72 +0,0 @@ -equivalenceClassSize = $equivalenceClassSize; - } - public function getEquivalenceClassSize() - { - return $this->equivalenceClassSize; - } - public function setNumDistinctSensitiveValues($numDistinctSensitiveValues) - { - $this->numDistinctSensitiveValues = $numDistinctSensitiveValues; - } - public function getNumDistinctSensitiveValues() - { - return $this->numDistinctSensitiveValues; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function setQuasiIdsValues($quasiIdsValues) - { - $this->quasiIdsValues = $quasiIdsValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function getQuasiIdsValues() - { - return $this->quasiIdsValues; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency - */ - public function setTopSensitiveValues($topSensitiveValues) - { - $this->topSensitiveValues = $topSensitiveValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1ValueFrequency - */ - public function getTopSensitiveValues() - { - return $this->topSensitiveValues; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityHistogramBucket.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityHistogramBucket.php deleted file mode 100644 index 094cb3a9..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityHistogramBucket.php +++ /dev/null @@ -1,65 +0,0 @@ -bucketSize = $bucketSize; - } - public function getBucketSize() - { - return $this->bucketSize; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityEquivalenceClass - */ - public function setBucketValues($bucketValues) - { - $this->bucketValues = $bucketValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityEquivalenceClass - */ - public function getBucketValues() - { - return $this->bucketValues; - } - public function setSensitiveValueFrequencyLowerBound($sensitiveValueFrequencyLowerBound) - { - $this->sensitiveValueFrequencyLowerBound = $sensitiveValueFrequencyLowerBound; - } - public function getSensitiveValueFrequencyLowerBound() - { - return $this->sensitiveValueFrequencyLowerBound; - } - public function setSensitiveValueFrequencyUpperBound($sensitiveValueFrequencyUpperBound) - { - $this->sensitiveValueFrequencyUpperBound = $sensitiveValueFrequencyUpperBound; - } - public function getSensitiveValueFrequencyUpperBound() - { - return $this->sensitiveValueFrequencyUpperBound; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityResult.php deleted file mode 100644 index ea29f82b..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1LDiversityResult.php +++ /dev/null @@ -1,38 +0,0 @@ -sensitiveValueFrequencyHistogramBuckets = $sensitiveValueFrequencyHistogramBuckets; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityHistogramBucket - */ - public function getSensitiveValueFrequencyHistogramBuckets() - { - return $this->sensitiveValueFrequencyHistogramBuckets; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsResult.php deleted file mode 100644 index d6ae9ff9..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1NumericalStatsResult.php +++ /dev/null @@ -1,70 +0,0 @@ -maxValue = $maxValue; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function getMaxValue() - { - return $this->maxValue; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function setMinValue(Google_Service_DLP_GooglePrivacyDlpV2beta1Value $minValue) - { - $this->minValue = $minValue; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function getMinValue() - { - return $this->minValue; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function setQuantileValues($quantileValues) - { - $this->quantileValues = $quantileValues; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1Value - */ - public function getQuantileValues() - { - return $this->quantileValues; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1OutputStorageConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1OutputStorageConfig.php deleted file mode 100644 index b9cd5bbb..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1OutputStorageConfig.php +++ /dev/null @@ -1,53 +0,0 @@ -storagePath = $storagePath; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStoragePath - */ - public function getStoragePath() - { - return $this->storagePath; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function setTable(Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable $table) - { - $this->table = $table; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function getTable() - { - return $this->table; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PrivacyMetric.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PrivacyMetric.php deleted file mode 100644 index 6dcb5810..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PrivacyMetric.php +++ /dev/null @@ -1,101 +0,0 @@ -categoricalStatsConfig = $categoricalStatsConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsConfig - */ - public function getCategoricalStatsConfig() - { - return $this->categoricalStatsConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityConfig - */ - public function setKAnonymityConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityConfig $kAnonymityConfig) - { - $this->kAnonymityConfig = $kAnonymityConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityConfig - */ - public function getKAnonymityConfig() - { - return $this->kAnonymityConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationConfig - */ - public function setKMapEstimationConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationConfig $kMapEstimationConfig) - { - $this->kMapEstimationConfig = $kMapEstimationConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationConfig - */ - public function getKMapEstimationConfig() - { - return $this->kMapEstimationConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityConfig - */ - public function setLDiversityConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityConfig $lDiversityConfig) - { - $this->lDiversityConfig = $lDiversityConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityConfig - */ - public function getLDiversityConfig() - { - return $this->lDiversityConfig; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsConfig - */ - public function setNumericalStatsConfig(Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsConfig $numericalStatsConfig) - { - $this->numericalStatsConfig = $numericalStatsConfig; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsConfig - */ - public function getNumericalStatsConfig() - { - return $this->numericalStatsConfig; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata.php deleted file mode 100644 index 23a6b6ad..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata.php +++ /dev/null @@ -1,62 +0,0 @@ -createTime = $createTime; - } - public function getCreateTime() - { - return $this->createTime; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1PrivacyMetric - */ - public function setRequestedPrivacyMetric(Google_Service_DLP_GooglePrivacyDlpV2beta1PrivacyMetric $requestedPrivacyMetric) - { - $this->requestedPrivacyMetric = $requestedPrivacyMetric; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1PrivacyMetric - */ - public function getRequestedPrivacyMetric() - { - return $this->requestedPrivacyMetric; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function setRequestedSourceTable(Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable $requestedSourceTable) - { - $this->requestedSourceTable = $requestedSourceTable; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable - */ - public function getRequestedSourceTable() - { - return $this->requestedSourceTable; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult.php deleted file mode 100644 index 631fca3a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1RiskAnalysisOperationResult.php +++ /dev/null @@ -1,101 +0,0 @@ -categoricalStatsResult = $categoricalStatsResult; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CategoricalStatsResult - */ - public function getCategoricalStatsResult() - { - return $this->categoricalStatsResult; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityResult - */ - public function setKAnonymityResult(Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityResult $kAnonymityResult) - { - $this->kAnonymityResult = $kAnonymityResult; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KAnonymityResult - */ - public function getKAnonymityResult() - { - return $this->kAnonymityResult; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationResult - */ - public function setKMapEstimationResult(Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationResult $kMapEstimationResult) - { - $this->kMapEstimationResult = $kMapEstimationResult; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1KMapEstimationResult - */ - public function getKMapEstimationResult() - { - return $this->kMapEstimationResult; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityResult - */ - public function setLDiversityResult(Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityResult $lDiversityResult) - { - $this->lDiversityResult = $lDiversityResult; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1LDiversityResult - */ - public function getLDiversityResult() - { - return $this->lDiversityResult; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsResult - */ - public function setNumericalStatsResult(Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsResult $numericalStatsResult) - { - $this->numericalStatsResult = $numericalStatsResult; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1NumericalStatsResult - */ - public function getNumericalStatsResult() - { - return $this->numericalStatsResult; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1StorageConfig.php b/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1StorageConfig.php deleted file mode 100644 index 424acbbd..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1StorageConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -bigQueryOptions = $bigQueryOptions; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryOptions - */ - public function getBigQueryOptions() - { - return $this->bigQueryOptions; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStorageOptions - */ - public function setCloudStorageOptions(Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStorageOptions $cloudStorageOptions) - { - $this->cloudStorageOptions = $cloudStorageOptions; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStorageOptions - */ - public function getCloudStorageOptions() - { - return $this->cloudStorageOptions; - } - /** - * @param Google_Service_DLP_GooglePrivacyDlpV2beta1DatastoreOptions - */ - public function setDatastoreOptions(Google_Service_DLP_GooglePrivacyDlpV2beta1DatastoreOptions $datastoreOptions) - { - $this->datastoreOptions = $datastoreOptions; - } - /** - * @return Google_Service_DLP_GooglePrivacyDlpV2beta1DatastoreOptions - */ - public function getDatastoreOptions() - { - return $this->datastoreOptions; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/InfoTypes.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/InfoTypes.php index 01891ed0..25f5eab8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/InfoTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/InfoTypes.php @@ -27,8 +27,8 @@ class Google_Service_DLP_Resource_InfoTypes extends Google_Service_Resource { /** * Returns a list of the sensitive information types that the DLP API supports. - * For more information, see [Listing supported predefined infoTypes](/dlp/docs - * /listing-infotypes). (infoTypes.listInfoTypes) + * See https://cloud.google.com/dlp/docs/infotypes-reference to learn more. + * (infoTypes.listInfoTypes) * * @param array $optParams Optional parameters. * diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsDeidentifyTemplates.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsDeidentifyTemplates.php index e5b36c7a..c8e05cd6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsDeidentifyTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsDeidentifyTemplates.php @@ -27,7 +27,9 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl { /** * Creates a DeidentifyTemplate for re-using frequently used configuration for - * de-identifying content, images, and storage. (deidentifyTemplates.create) + * de-identifying content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * (deidentifyTemplates.create) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -42,7 +44,8 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DeidentifyTemplate"); } /** - * Deletes a DeidentifyTemplate. (deidentifyTemplates.delete) + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. (deidentifyTemplates.delete) * * @param string $name Resource name of the organization and deidentify template * to be deleted, for example @@ -58,7 +61,8 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets a DeidentifyTemplate. (deidentifyTemplates.get) + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. (deidentifyTemplates.get) * * @param string $name Resource name of the organization and deidentify template * to be read, for example @@ -74,7 +78,8 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DeidentifyTemplate"); } /** - * Lists DeidentifyTemplates. + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. * (deidentifyTemplates.listOrganizationsDeidentifyTemplates) * * @param string $parent The parent resource name, for example projects/my- @@ -83,6 +88,19 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl * * @opt_param string pageToken Optional page token to continue retrieval. Comes * from previous call to `ListDeidentifyTemplates`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc,update_time, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the template was created. - + * `update_time`: corresponds to time the template was last updated. - `name`: + * corresponds to template's name. - `display_name`: corresponds to template's + * display name. * @opt_param int pageSize Optional size of the page, can be limited by server. * If zero server returns a page of max size 100. * @return Google_Service_DLP_GooglePrivacyDlpV2ListDeidentifyTemplatesResponse @@ -94,7 +112,8 @@ class Google_Service_DLP_Resource_OrganizationsDeidentifyTemplates extends Googl return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListDeidentifyTemplatesResponse"); } /** - * Updates the DeidentifyTemplate. (deidentifyTemplates.patch) + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs + * /creating-templates-deid to learn more. (deidentifyTemplates.patch) * * @param string $name Resource name of organization and deidentify template to * be updated, for example diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsInspectTemplates.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsInspectTemplates.php index 0b36982c..7c3db6e6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsInspectTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsInspectTemplates.php @@ -27,7 +27,9 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S { /** * Creates an InspectTemplate for re-using frequently used configuration for - * inspecting content, images, and storage. (inspectTemplates.create) + * inspecting content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. + * (inspectTemplates.create) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -42,7 +44,8 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2InspectTemplate"); } /** - * Deletes an InspectTemplate. (inspectTemplates.delete) + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.delete) * * @param string $name Resource name of the organization and inspectTemplate to * be deleted, for example `organizations/433245324/inspectTemplates/432452342` @@ -57,7 +60,8 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets an InspectTemplate. (inspectTemplates.get) + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.get) * * @param string $name Resource name of the organization and inspectTemplate to * be read, for example `organizations/433245324/inspectTemplates/432452342` or @@ -72,7 +76,8 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2InspectTemplate"); } /** - * Lists InspectTemplates. (inspectTemplates.listOrganizationsInspectTemplates) + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.listOrganizationsInspectTemplates) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -80,6 +85,19 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S * * @opt_param string pageToken Optional page token to continue retrieval. Comes * from previous call to `ListInspectTemplates`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc,update_time, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the template was created. - + * `update_time`: corresponds to time the template was last updated. - `name`: + * corresponds to template's name. - `display_name`: corresponds to template's + * display name. * @opt_param int pageSize Optional size of the page, can be limited by server. * If zero server returns a page of max size 100. * @return Google_Service_DLP_GooglePrivacyDlpV2ListInspectTemplatesResponse @@ -91,7 +109,8 @@ class Google_Service_DLP_Resource_OrganizationsInspectTemplates extends Google_S return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListInspectTemplatesResponse"); } /** - * Updates the InspectTemplate. (inspectTemplates.patch) + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.patch) * * @param string $name Resource name of organization and inspectTemplate to be * updated, for example `organizations/433245324/inspectTemplates/432452342` or diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsStoredInfoTypes.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsStoredInfoTypes.php new file mode 100644 index 00000000..31aef02a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/OrganizationsStoredInfoTypes.php @@ -0,0 +1,130 @@ + + * $dlpService = new Google_Service_DLP(...); + * $storedInfoTypes = $dlpService->storedInfoTypes; + * + */ +class Google_Service_DLP_Resource_OrganizationsStoredInfoTypes extends Google_Service_Resource +{ + /** + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * (storedInfoTypes.create) + * + * @param string $parent The parent resource name, for example projects/my- + * project-id or organizations/my-org-id. + * @param Google_Service_DLP_GooglePrivacyDlpV2CreateStoredInfoTypeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function create($parent, Google_Service_DLP_GooglePrivacyDlpV2CreateStoredInfoTypeRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } + /** + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. (storedInfoTypes.delete) + * + * @param string $name Resource name of the organization and storedInfoType to + * be deleted, for example `organizations/433245324/storedInfoTypes/432452342` + * or projects/project-id/storedInfoTypes/432452342. + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GoogleProtobufEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); + } + /** + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. (storedInfoTypes.get) + * + * @param string $name Resource name of the organization and storedInfoType to + * be read, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } + /** + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. + * (storedInfoTypes.listOrganizationsStoredInfoTypes) + * + * @param string $parent The parent resource name, for example projects/my- + * project-id or organizations/my-org-id. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional page token to continue retrieval. Comes + * from previous call to `ListStoredInfoTypes`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc, display_name, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the most recent version of the resource + * was created. - `state`: corresponds to the state of the resource. - `name`: + * corresponds to resource name. - `display_name`: corresponds to info type's + * display name. + * @opt_param int pageSize Optional size of the page, can be limited by server. + * If zero server returns a page of max size 100. + * @return Google_Service_DLP_GooglePrivacyDlpV2ListStoredInfoTypesResponse + */ + public function listOrganizationsStoredInfoTypes($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListStoredInfoTypesResponse"); + } + /** + * Updates the stored infoType by creating a new version. The existing version + * will continue to be used until the new version is ready. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * (storedInfoTypes.patch) + * + * @param string $name Resource name of organization and storedInfoType to be + * updated, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param Google_Service_DLP_GooglePrivacyDlpV2UpdateStoredInfoTypeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function patch($name, Google_Service_DLP_GooglePrivacyDlpV2UpdateStoredInfoTypeRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsContent.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsContent.php index 25f6034b..a1036240 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsContent.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsContent.php @@ -27,8 +27,13 @@ class Google_Service_DLP_Resource_ProjectsContent extends Google_Service_Resourc { /** * De-identifies potentially sensitive info from a ContentItem. This method has - * limits on input size and output size. [How-to guide](/dlp/docs/deidentify- - * sensitive-data) (content.deidentify) + * limits on input size and output size. See https://cloud.google.com/dlp/docs + * /deidentify-sensitive-data to learn more. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * (content.deidentify) * * @param string $parent The parent resource name, for example projects/my- * project-id. @@ -44,9 +49,14 @@ class Google_Service_DLP_Resource_ProjectsContent extends Google_Service_Resourc } /** * Finds potentially sensitive info in content. This method has limits on input - * size, processing time, and output size. [How-to guide for text](/dlp/docs - * /inspecting-text), [How-to guide for images](/dlp/docs/inspecting-images) - * (content.inspect) + * size, processing time, and output size. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * + * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images + * and https://cloud.google.com/dlp/docs/inspecting-text, (content.inspect) * * @param string $parent The parent resource name, for example projects/my- * project-id. @@ -61,7 +71,9 @@ class Google_Service_DLP_Resource_ProjectsContent extends Google_Service_Resourc return $this->call('inspect', array($params), "Google_Service_DLP_GooglePrivacyDlpV2InspectContentResponse"); } /** - * Re-identifies content that has been de-identified. (content.reidentify) + * Re-identifies content that has been de-identified. See + * https://cloud.google.com/dlp/docs/pseudonymization#re- + * identification_in_free_text_code_example to learn more. (content.reidentify) * * @param string $parent The parent resource name. * @param Google_Service_DLP_GooglePrivacyDlpV2ReidentifyContentRequest $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDeidentifyTemplates.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDeidentifyTemplates.php index 79f2033c..67b7dd99 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDeidentifyTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDeidentifyTemplates.php @@ -27,7 +27,9 @@ class Google_Service_DLP_Resource_ProjectsDeidentifyTemplates extends Google_Ser { /** * Creates a DeidentifyTemplate for re-using frequently used configuration for - * de-identifying content, images, and storage. (deidentifyTemplates.create) + * de-identifying content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * (deidentifyTemplates.create) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -42,7 +44,8 @@ class Google_Service_DLP_Resource_ProjectsDeidentifyTemplates extends Google_Ser return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DeidentifyTemplate"); } /** - * Deletes a DeidentifyTemplate. (deidentifyTemplates.delete) + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. (deidentifyTemplates.delete) * * @param string $name Resource name of the organization and deidentify template * to be deleted, for example @@ -58,7 +61,8 @@ class Google_Service_DLP_Resource_ProjectsDeidentifyTemplates extends Google_Ser return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets a DeidentifyTemplate. (deidentifyTemplates.get) + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. (deidentifyTemplates.get) * * @param string $name Resource name of the organization and deidentify template * to be read, for example @@ -74,17 +78,31 @@ class Google_Service_DLP_Resource_ProjectsDeidentifyTemplates extends Google_Ser return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DeidentifyTemplate"); } /** - * Lists DeidentifyTemplates. + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating- + * templates-deid to learn more. * (deidentifyTemplates.listProjectsDeidentifyTemplates) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional page token to continue retrieval. Comes - * from previous call to `ListDeidentifyTemplates`. * @opt_param int pageSize Optional size of the page, can be limited by server. * If zero server returns a page of max size 100. + * @opt_param string pageToken Optional page token to continue retrieval. Comes + * from previous call to `ListDeidentifyTemplates`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc,update_time, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the template was created. - + * `update_time`: corresponds to time the template was last updated. - `name`: + * corresponds to template's name. - `display_name`: corresponds to template's + * display name. * @return Google_Service_DLP_GooglePrivacyDlpV2ListDeidentifyTemplatesResponse */ public function listProjectsDeidentifyTemplates($parent, $optParams = array()) @@ -94,7 +112,8 @@ class Google_Service_DLP_Resource_ProjectsDeidentifyTemplates extends Google_Ser return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListDeidentifyTemplatesResponse"); } /** - * Updates the DeidentifyTemplate. (deidentifyTemplates.patch) + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs + * /creating-templates-deid to learn more. (deidentifyTemplates.patch) * * @param string $name Resource name of organization and deidentify template to * be updated, for example diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDlpJobs.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDlpJobs.php index ba4b6c81..14db4660 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDlpJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsDlpJobs.php @@ -27,7 +27,9 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc { /** * Starts asynchronous cancellation on a long-running DlpJob. The server makes a - * best effort to cancel the DlpJob, but success is not guaranteed. + * best effort to cancel the DlpJob, but success is not guaranteed. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * (dlpJobs.cancel) * * @param string $name The name of the DlpJob resource to be cancelled. @@ -42,8 +44,14 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc return $this->call('cancel', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Creates a new job to inspect storage or calculate risk metrics. [How-to - * guide](/dlp/docs/compute-risk-analysis). (dlpJobs.create) + * Creates a new job to inspect storage or calculate risk metrics. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * + * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * (dlpJobs.create) * * @param string $parent The parent resource name, for example projects/my- * project-id. @@ -60,7 +68,9 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc /** * Deletes a long-running DlpJob. This method indicates that the client is no * longer interested in the DlpJob result. The job will be cancelled if - * possible. (dlpJobs.delete) + * possible. See https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * (dlpJobs.delete) * * @param string $name The name of the DlpJob resource to be deleted. * @param array $optParams Optional parameters. @@ -73,7 +83,10 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets the latest state of a long-running DlpJob. (dlpJobs.get) + * Gets the latest state of a long-running DlpJob. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * (dlpJobs.get) * * @param string $name The name of the DlpJob resource. * @param array $optParams Optional parameters. @@ -86,16 +99,15 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DlpJob"); } /** - * Lists DlpJobs that match the specified filter in the request. + * Lists DlpJobs that match the specified filter in the request. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * (dlpJobs.listProjectsDlpJobs) * * @param string $parent The parent resource name, for example projects/my- * project-id. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The standard list page token. - * @opt_param int pageSize The standard list page size. - * @opt_param string type The type of job. Defaults to `DlpJobType.INSPECT` * @opt_param string filter Optional. Allows filtering. * * Supported syntax: @@ -117,6 +129,21 @@ class Google_Service_DLP_Resource_ProjectsDlpJobs extends Google_Service_Resourc * cloud_storage AND (state = done OR state = canceled) * * The length of this field should be no more than 500 characters. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc, end_time asc, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the job was created. - `end_time`: + * corresponds to time the job ended. - `name`: corresponds to job's name. - + * `state`: corresponds to `state` + * @opt_param string type The type of job. Defaults to `DlpJobType.INSPECT` * @return Google_Service_DLP_GooglePrivacyDlpV2ListDlpJobsResponse */ public function listProjectsDlpJobs($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsImage.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsImage.php index 2d9325d5..5fb4d633 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsImage.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsImage.php @@ -27,8 +27,14 @@ class Google_Service_DLP_Resource_ProjectsImage extends Google_Service_Resource { /** * Redacts potentially sensitive info from an image. This method has limits on - * input size, processing time, and output size. [How-to guide](/dlp/docs - * /redacting-sensitive-data-images) (image.redact) + * input size, processing time, and output size. See + * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn + * more. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * (image.redact) * * @param string $parent The parent resource name, for example projects/my- * project-id. diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsInspectTemplates.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsInspectTemplates.php index 55f31d08..32ff9b29 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsInspectTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsInspectTemplates.php @@ -27,7 +27,9 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic { /** * Creates an InspectTemplate for re-using frequently used configuration for - * inspecting content, images, and storage. (inspectTemplates.create) + * inspecting content, images, and storage. See + * https://cloud.google.com/dlp/docs/creating-templates to learn more. + * (inspectTemplates.create) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -42,7 +44,8 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2InspectTemplate"); } /** - * Deletes an InspectTemplate. (inspectTemplates.delete) + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.delete) * * @param string $name Resource name of the organization and inspectTemplate to * be deleted, for example `organizations/433245324/inspectTemplates/432452342` @@ -57,7 +60,8 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets an InspectTemplate. (inspectTemplates.get) + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.get) * * @param string $name Resource name of the organization and inspectTemplate to * be read, for example `organizations/433245324/inspectTemplates/432452342` or @@ -72,7 +76,8 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2InspectTemplate"); } /** - * Lists InspectTemplates. (inspectTemplates.listProjectsInspectTemplates) + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.listProjectsInspectTemplates) * * @param string $parent The parent resource name, for example projects/my- * project-id or organizations/my-org-id. @@ -80,6 +85,19 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic * * @opt_param string pageToken Optional page token to continue retrieval. Comes * from previous call to `ListInspectTemplates`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc,update_time, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the template was created. - + * `update_time`: corresponds to time the template was last updated. - `name`: + * corresponds to template's name. - `display_name`: corresponds to template's + * display name. * @opt_param int pageSize Optional size of the page, can be limited by server. * If zero server returns a page of max size 100. * @return Google_Service_DLP_GooglePrivacyDlpV2ListInspectTemplatesResponse @@ -91,7 +109,8 @@ class Google_Service_DLP_Resource_ProjectsInspectTemplates extends Google_Servic return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListInspectTemplatesResponse"); } /** - * Updates the InspectTemplate. (inspectTemplates.patch) + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating- + * templates to learn more. (inspectTemplates.patch) * * @param string $name Resource name of organization and inspectTemplate to be * updated, for example `organizations/433245324/inspectTemplates/432452342` or diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsJobTriggers.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsJobTriggers.php index b4410243..ead7ae43 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsJobTriggers.php +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsJobTriggers.php @@ -25,9 +25,27 @@ */ class Google_Service_DLP_Resource_ProjectsJobTriggers extends Google_Service_Resource { + /** + * Activate a job trigger. Causes the immediate execute of a trigger instead of + * waiting on the trigger event to occur. (jobTriggers.activate) + * + * @param string $name Resource name of the trigger to activate, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @param Google_Service_DLP_GooglePrivacyDlpV2ActivateJobTriggerRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2DlpJob + */ + public function activate($name, Google_Service_DLP_GooglePrivacyDlpV2ActivateJobTriggerRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('activate', array($params), "Google_Service_DLP_GooglePrivacyDlpV2DlpJob"); + } /** * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. (jobTriggers.create) + * sensitive information on a set schedule. See + * https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * (jobTriggers.create) * * @param string $parent The parent resource name, for example projects/my- * project-id. @@ -42,7 +60,8 @@ class Google_Service_DLP_Resource_ProjectsJobTriggers extends Google_Service_Res return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2JobTrigger"); } /** - * Deletes a job trigger. (jobTriggers.delete) + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job- + * triggers to learn more. (jobTriggers.delete) * * @param string $name Resource name of the project and the triggeredJob, for * example `projects/dlp-test-project/jobTriggers/53234423`. @@ -56,7 +75,8 @@ class Google_Service_DLP_Resource_ProjectsJobTriggers extends Google_Service_Res return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); } /** - * Gets a job trigger. (jobTriggers.get) + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job- + * triggers to learn more. (jobTriggers.get) * * @param string $name Resource name of the project and the triggeredJob, for * example `projects/dlp-test-project/jobTriggers/53234423`. @@ -70,29 +90,54 @@ class Google_Service_DLP_Resource_ProjectsJobTriggers extends Google_Service_Res return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2JobTrigger"); } /** - * Lists job triggers. (jobTriggers.listProjectsJobTriggers) + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job- + * triggers to learn more. (jobTriggers.listProjectsJobTriggers) * - * @param string $parent The parent resource name, for example projects/my- - * project-id. + * @param string $parent The parent resource name, for example `projects/my- + * project-id`. * @param array $optParams Optional parameters. * + * @opt_param string filter Optional. Allows filtering. + * + * Supported syntax: + * + * * Filter expressions are made up of one or more restrictions. * Restrictions + * can be combined by `AND` or `OR` logical operators. A sequence of + * restrictions implicitly uses `AND`. * A restriction has the form of ` `. * + * Supported fields/values for inspect jobs: - `status` - + * HEALTHY|PAUSED|CANCELLED - `inspected_storage` - + * DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted + * timestamp, surrounded by quotation marks. Nanoseconds are ignored. - + * 'error_count' - Number of errors that have occurred while running. * The + * operator must be `=` or `!=` for status and inspected_storage. + * + * Examples: + * + * * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage + * = cloud_storage OR inspected_storage = bigquery * inspected_storage = + * cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > + * \"2017-12-12T00:00:00+00:00\" + * + * The length of this field should be no more than 500 characters. + * @opt_param string pageToken Optional page token to continue retrieval. Comes + * from previous call to ListJobTriggers. `order_by` field must not change for + * subsequent calls. + * @opt_param string orderBy Optional comma separated list of triggeredJob + * fields to order by, followed by `asc` or `desc` postfix. This list is case- + * insensitive, default sorting order is ascending, redundant space characters + * are insignificant. + * + * Example: `name asc,update_time, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the JobTrigger was created. - + * `update_time`: corresponds to time the JobTrigger was last updated. - + * `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: + * corresponds to JobTrigger's name. - `display_name`: corresponds to + * JobTrigger's display name. - `status`: corresponds to JobTrigger's status. * @opt_param int pageSize Optional size of the page, can be limited by a * server. - * @opt_param string pageToken Optional page token to continue retrieval. Comes - * from previous call to ListJobTriggers. `order_by` and `filter` should not - * change for subsequent calls, but can be omitted if token is specified. - * @opt_param string orderBy Optional comma separated list of triggeredJob - * fields to order by, followed by 'asc/desc' postfix, i.e. `"create_time - * asc,name desc,schedule_mode asc"`. This list is case-insensitive. - * - * Example: `"name asc,schedule_mode desc, status desc"` - * - * Supported filters keys and values are: - * - * - `create_time`: corresponds to time the triggeredJob was created. - - * `update_time`: corresponds to time the triggeredJob was last updated. - - * `name`: corresponds to JobTrigger's display name. - `status`: corresponds to - * the triggeredJob status. * @return Google_Service_DLP_GooglePrivacyDlpV2ListJobTriggersResponse */ public function listProjectsJobTriggers($parent, $optParams = array()) @@ -102,7 +147,8 @@ class Google_Service_DLP_Resource_ProjectsJobTriggers extends Google_Service_Res return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListJobTriggersResponse"); } /** - * Updates a job trigger. (jobTriggers.patch) + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job- + * triggers to learn more. (jobTriggers.patch) * * @param string $name Resource name of the project and the triggeredJob, for * example `projects/dlp-test-project/jobTriggers/53234423`. diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsStoredInfoTypes.php b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsStoredInfoTypes.php new file mode 100644 index 00000000..b53acd67 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DLP/Resource/ProjectsStoredInfoTypes.php @@ -0,0 +1,129 @@ + + * $dlpService = new Google_Service_DLP(...); + * $storedInfoTypes = $dlpService->storedInfoTypes; + * + */ +class Google_Service_DLP_Resource_ProjectsStoredInfoTypes extends Google_Service_Resource +{ + /** + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * (storedInfoTypes.create) + * + * @param string $parent The parent resource name, for example projects/my- + * project-id or organizations/my-org-id. + * @param Google_Service_DLP_GooglePrivacyDlpV2CreateStoredInfoTypeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function create($parent, Google_Service_DLP_GooglePrivacyDlpV2CreateStoredInfoTypeRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } + /** + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. (storedInfoTypes.delete) + * + * @param string $name Resource name of the organization and storedInfoType to + * be deleted, for example `organizations/433245324/storedInfoTypes/432452342` + * or projects/project-id/storedInfoTypes/432452342. + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GoogleProtobufEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_DLP_GoogleProtobufEmpty"); + } + /** + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. (storedInfoTypes.get) + * + * @param string $name Resource name of the organization and storedInfoType to + * be read, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } + /** + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating- + * stored-infotypes to learn more. (storedInfoTypes.listProjectsStoredInfoTypes) + * + * @param string $parent The parent resource name, for example projects/my- + * project-id or organizations/my-org-id. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional page token to continue retrieval. Comes + * from previous call to `ListStoredInfoTypes`. + * @opt_param string orderBy Optional comma separated list of fields to order + * by, followed by `asc` or `desc` postfix. This list is case-insensitive, + * default sorting order is ascending, redundant space characters are + * insignificant. + * + * Example: `name asc, display_name, create_time desc` + * + * Supported fields are: + * + * - `create_time`: corresponds to time the most recent version of the resource + * was created. - `state`: corresponds to the state of the resource. - `name`: + * corresponds to resource name. - `display_name`: corresponds to info type's + * display name. + * @opt_param int pageSize Optional size of the page, can be limited by server. + * If zero server returns a page of max size 100. + * @return Google_Service_DLP_GooglePrivacyDlpV2ListStoredInfoTypesResponse + */ + public function listProjectsStoredInfoTypes($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_DLP_GooglePrivacyDlpV2ListStoredInfoTypesResponse"); + } + /** + * Updates the stored infoType by creating a new version. The existing version + * will continue to be used until the new version is ready. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * (storedInfoTypes.patch) + * + * @param string $name Resource name of organization and storedInfoType to be + * updated, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param Google_Service_DLP_GooglePrivacyDlpV2UpdateStoredInfoTypeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType + */ + public function patch($name, Google_Service_DLP_GooglePrivacyDlpV2UpdateStoredInfoTypeRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_DLP_GooglePrivacyDlpV2StoredInfoType"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DataTransfer.php b/vendor/google/apiclient-services/src/Google/Service/DataTransfer.php index d012230e..832febb7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DataTransfer.php +++ b/vendor/google/apiclient-services/src/Google/Service/DataTransfer.php @@ -50,6 +50,7 @@ class Google_Service_DataTransfer extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/datatransfer/v1/'; + $this->batchPath = 'batch/admin/datatransfer_v1'; $this->version = 'datatransfer_v1'; $this->serviceName = 'admin'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow.php index 73531dd5..b5ca5a1f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow.php @@ -66,6 +66,7 @@ class Google_Service_Dataflow extends Google_Service parent::__construct($client); $this->rootUrl = 'https://dataflow.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1b3'; $this->serviceName = 'dataflow'; @@ -134,10 +135,6 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'view' => array( - 'location' => 'query', - 'type' => 'string', - ), 'location' => array( 'location' => 'query', 'type' => 'string', @@ -146,6 +143,10 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}', @@ -202,6 +203,14 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'location' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -214,13 +223,20 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'filter' => array( - 'location' => 'query', + ), + ),'snapshot' => array( + 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}:snapshot', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'location' => array( - 'location' => 'query', + 'jobId' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), ), ),'update' => array( @@ -306,15 +322,11 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), 'endTime' => array( 'location' => 'query', 'type' => 'string', ), - 'startTime' => array( + 'location' => array( 'location' => 'query', 'type' => 'string', ), @@ -322,6 +334,10 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -508,6 +524,26 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', ), ), + ),'snapshot' => array( + 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'location' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', 'httpMethod' => 'PUT', @@ -611,11 +647,11 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'startTime' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'startTime' => array( 'location' => 'query', 'type' => 'string', ), @@ -740,7 +776,11 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'gcsPath' => array( + 'dynamicTemplate.gcsPath' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dynamicTemplate.stagingLocation' => array( 'location' => 'query', 'type' => 'string', ), @@ -748,6 +788,10 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'gcsPath' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -778,6 +822,10 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), + 'gcsPath' => array( + 'location' => 'query', + 'type' => 'string', + ), 'location' => array( 'location' => 'query', 'type' => 'string', @@ -786,10 +834,6 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'gcsPath' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'launch' => array( 'path' => 'v1b3/projects/{projectId}/templates:launch', @@ -800,10 +844,6 @@ class Google_Service_Dataflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'location' => array( - 'location' => 'query', - 'type' => 'string', - ), 'validateOnly' => array( 'location' => 'query', 'type' => 'boolean', @@ -812,6 +852,18 @@ class Google_Service_Dataflow extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'location' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dynamicTemplate.gcsPath' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dynamicTemplate.stagingLocation' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php index 8d2c3037..16d9f6ce 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php @@ -18,6 +18,7 @@ class Google_Service_Dataflow_ApproximateSplitRequest extends Google_Model { public $fractionConsumed; + public $fractionOfRemainder; protected $positionType = 'Google_Service_Dataflow_Position'; protected $positionDataType = ''; @@ -29,6 +30,14 @@ class Google_Service_Dataflow_ApproximateSplitRequest extends Google_Model { return $this->fractionConsumed; } + public function setFractionOfRemainder($fractionOfRemainder) + { + $this->fractionOfRemainder = $fractionOfRemainder; + } + public function getFractionOfRemainder() + { + return $this->fractionOfRemainder; + } /** * @param Google_Service_Dataflow_Position */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/BigQueryIODetails.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/BigQueryIODetails.php new file mode 100644 index 00000000..0911e610 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/BigQueryIODetails.php @@ -0,0 +1,57 @@ +dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + public function setTable($table) + { + $this->table = $table; + } + public function getTable() + { + return $this->table; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryTable.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/BigTableIODetails.php similarity index 79% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryTable.php rename to vendor/google/apiclient-services/src/Google/Service/Dataflow/BigTableIODetails.php index 62f955fb..67bc5408 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1BigQueryTable.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/BigTableIODetails.php @@ -15,19 +15,19 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1BigQueryTable extends Google_Model +class Google_Service_Dataflow_BigTableIODetails extends Google_Model { - public $datasetId; + public $instanceId; public $projectId; public $tableId; - public function setDatasetId($datasetId) + public function setInstanceId($instanceId) { - $this->datasetId = $datasetId; + $this->instanceId = $instanceId; } - public function getDatasetId() + public function getInstanceId() { - return $this->datasetId; + return $this->instanceId; } public function setProjectId($projectId) { diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PartitionId.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/DatastoreIODetails.php similarity index 75% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PartitionId.php rename to vendor/google/apiclient-services/src/Google/Service/Dataflow/DatastoreIODetails.php index e64b10af..22cd1e3b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1PartitionId.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/DatastoreIODetails.php @@ -15,18 +15,18 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1PartitionId extends Google_Model +class Google_Service_Dataflow_DatastoreIODetails extends Google_Model { - public $namespaceId; + public $namespace; public $projectId; - public function setNamespaceId($namespaceId) + public function setNamespace($namespace) { - $this->namespaceId = $namespaceId; + $this->namespace = $namespace; } - public function getNamespaceId() + public function getNamespace() { - return $this->namespaceId; + return $this->namespace; } public function setProjectId($projectId) { diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Environment.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Environment.php index d133253e..c5e402e6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Environment.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Environment.php @@ -21,6 +21,7 @@ class Google_Service_Dataflow_Environment extends Google_Collection public $clusterManagerApiService; public $dataset; public $experiments; + public $flexResourceSchedulingGoal; public $internalExperiments; public $sdkPipelineOptions; public $serviceAccountEmail; @@ -54,6 +55,14 @@ class Google_Service_Dataflow_Environment extends Google_Collection { return $this->experiments; } + public function setFlexResourceSchedulingGoal($flexResourceSchedulingGoal) + { + $this->flexResourceSchedulingGoal = $flexResourceSchedulingGoal; + } + public function getFlexResourceSchedulingGoal() + { + return $this->flexResourceSchedulingGoal; + } public function setInternalExperiments($internalExperiments) { $this->internalExperiments = $internalExperiments; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/FileIODetails.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/FileIODetails.php new file mode 100644 index 00000000..920bb387 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/FileIODetails.php @@ -0,0 +1,30 @@ +filePattern = $filePattern; + } + public function getFilePattern() + { + return $this->filePattern; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Job.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Job.php index aa765219..14616f10 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Job.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Job.php @@ -20,6 +20,7 @@ class Google_Service_Dataflow_Job extends Google_Collection protected $collection_key = 'tempFiles'; public $clientRequestId; public $createTime; + public $createdFromSnapshotId; public $currentState; public $currentStateTime; protected $environmentType = 'Google_Service_Dataflow_Environment'; @@ -27,6 +28,8 @@ class Google_Service_Dataflow_Job extends Google_Collection protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; protected $executionInfoDataType = ''; public $id; + protected $jobMetadataType = 'Google_Service_Dataflow_JobMetadata'; + protected $jobMetadataDataType = ''; public $labels; public $location; public $name; @@ -38,8 +41,10 @@ class Google_Service_Dataflow_Job extends Google_Collection public $requestedState; protected $stageStatesType = 'Google_Service_Dataflow_ExecutionStageState'; protected $stageStatesDataType = 'array'; + public $startTime; protected $stepsType = 'Google_Service_Dataflow_Step'; protected $stepsDataType = 'array'; + public $stepsLocation; public $tempFiles; public $transformNameMapping; public $type; @@ -60,6 +65,14 @@ class Google_Service_Dataflow_Job extends Google_Collection { return $this->createTime; } + public function setCreatedFromSnapshotId($createdFromSnapshotId) + { + $this->createdFromSnapshotId = $createdFromSnapshotId; + } + public function getCreatedFromSnapshotId() + { + return $this->createdFromSnapshotId; + } public function setCurrentState($currentState) { $this->currentState = $currentState; @@ -112,6 +125,20 @@ class Google_Service_Dataflow_Job extends Google_Collection { return $this->id; } + /** + * @param Google_Service_Dataflow_JobMetadata + */ + public function setJobMetadata(Google_Service_Dataflow_JobMetadata $jobMetadata) + { + $this->jobMetadata = $jobMetadata; + } + /** + * @return Google_Service_Dataflow_JobMetadata + */ + public function getJobMetadata() + { + return $this->jobMetadata; + } public function setLabels($labels) { $this->labels = $labels; @@ -196,6 +223,14 @@ class Google_Service_Dataflow_Job extends Google_Collection { return $this->stageStates; } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } /** * @param Google_Service_Dataflow_Step */ @@ -210,6 +245,14 @@ class Google_Service_Dataflow_Job extends Google_Collection { return $this->steps; } + public function setStepsLocation($stepsLocation) + { + $this->stepsLocation = $stepsLocation; + } + public function getStepsLocation() + { + return $this->stepsLocation; + } public function setTempFiles($tempFiles) { $this->tempFiles = $tempFiles; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/JobMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/JobMetadata.php new file mode 100644 index 00000000..6477832d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/JobMetadata.php @@ -0,0 +1,134 @@ +bigTableDetails = $bigTableDetails; + } + /** + * @return Google_Service_Dataflow_BigTableIODetails + */ + public function getBigTableDetails() + { + return $this->bigTableDetails; + } + /** + * @param Google_Service_Dataflow_BigQueryIODetails + */ + public function setBigqueryDetails($bigqueryDetails) + { + $this->bigqueryDetails = $bigqueryDetails; + } + /** + * @return Google_Service_Dataflow_BigQueryIODetails + */ + public function getBigqueryDetails() + { + return $this->bigqueryDetails; + } + /** + * @param Google_Service_Dataflow_DatastoreIODetails + */ + public function setDatastoreDetails($datastoreDetails) + { + $this->datastoreDetails = $datastoreDetails; + } + /** + * @return Google_Service_Dataflow_DatastoreIODetails + */ + public function getDatastoreDetails() + { + return $this->datastoreDetails; + } + /** + * @param Google_Service_Dataflow_FileIODetails + */ + public function setFileDetails($fileDetails) + { + $this->fileDetails = $fileDetails; + } + /** + * @return Google_Service_Dataflow_FileIODetails + */ + public function getFileDetails() + { + return $this->fileDetails; + } + /** + * @param Google_Service_Dataflow_PubSubIODetails + */ + public function setPubsubDetails($pubsubDetails) + { + $this->pubsubDetails = $pubsubDetails; + } + /** + * @return Google_Service_Dataflow_PubSubIODetails + */ + public function getPubsubDetails() + { + return $this->pubsubDetails; + } + /** + * @param Google_Service_Dataflow_SdkVersion + */ + public function setSdkVersion(Google_Service_Dataflow_SdkVersion $sdkVersion) + { + $this->sdkVersion = $sdkVersion; + } + /** + * @return Google_Service_Dataflow_SdkVersion + */ + public function getSdkVersion() + { + return $this->sdkVersion; + } + /** + * @param Google_Service_Dataflow_SpannerIODetails + */ + public function setSpannerDetails($spannerDetails) + { + $this->spannerDetails = $spannerDetails; + } + /** + * @return Google_Service_Dataflow_SpannerIODetails + */ + public function getSpannerDetails() + { + return $this->spannerDetails; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php index 25fbd658..8cb67d13 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php @@ -21,6 +21,7 @@ class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection public $currentWorkerTime; public $location; public $requestedLeaseDuration; + public $unifiedWorkerRequest; public $workItemTypes; public $workerCapabilities; public $workerId; @@ -49,6 +50,14 @@ class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection { return $this->requestedLeaseDuration; } + public function setUnifiedWorkerRequest($unifiedWorkerRequest) + { + $this->unifiedWorkerRequest = $unifiedWorkerRequest; + } + public function getUnifiedWorkerRequest() + { + return $this->unifiedWorkerRequest; + } public function setWorkItemTypes($workItemTypes) { $this->workItemTypes = $workItemTypes; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php index 4bad97fe..70cf471c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php @@ -18,9 +18,18 @@ class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection { protected $collection_key = 'workItems'; + public $unifiedWorkerResponse; protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; protected $workItemsDataType = 'array'; + public function setUnifiedWorkerResponse($unifiedWorkerResponse) + { + $this->unifiedWorkerResponse = $unifiedWorkerResponse; + } + public function getUnifiedWorkerResponse() + { + return $this->unifiedWorkerResponse; + } /** * @param Google_Service_Dataflow_WorkItem */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php index 433cde5c..387129fe 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php @@ -18,11 +18,20 @@ class Google_Service_Dataflow_MapTask extends Google_Collection { protected $collection_key = 'instructions'; + public $counterPrefix; protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; protected $instructionsDataType = 'array'; public $stageName; public $systemName; + public function setCounterPrefix($counterPrefix) + { + $this->counterPrefix = $counterPrefix; + } + public function getCounterPrefix() + { + return $this->counterPrefix; + } /** * @param Google_Service_Dataflow_ParallelInstruction */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/PubSubIODetails.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/PubSubIODetails.php new file mode 100644 index 00000000..f0be5a9b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/PubSubIODetails.php @@ -0,0 +1,39 @@ +subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php index 9e02e758..f5b5b599 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php @@ -20,6 +20,7 @@ class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collect protected $collection_key = 'workItemStatuses'; public $currentWorkerTime; public $location; + public $unifiedWorkerRequest; protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; protected $workItemStatusesDataType = 'array'; public $workerId; @@ -40,6 +41,14 @@ class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collect { return $this->location; } + public function setUnifiedWorkerRequest($unifiedWorkerRequest) + { + $this->unifiedWorkerRequest = $unifiedWorkerRequest; + } + public function getUnifiedWorkerRequest() + { + return $this->unifiedWorkerRequest; + } /** * @param Google_Service_Dataflow_WorkItemStatus */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php index 9fc4df0f..b3f11051 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php @@ -18,9 +18,18 @@ class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection { protected $collection_key = 'workItemServiceStates'; + public $unifiedWorkerResponse; protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; protected $workItemServiceStatesDataType = 'array'; + public function setUnifiedWorkerResponse($unifiedWorkerResponse) + { + $this->unifiedWorkerResponse = $unifiedWorkerResponse; + } + public function getUnifiedWorkerResponse() + { + return $this->unifiedWorkerResponse; + } /** * @param Google_Service_Dataflow_WorkItemServiceState */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php index 68340041..2d5b333b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php @@ -32,7 +32,9 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou * @param array $optParams Optional parameters. * * @opt_param string filter The kind of filter to use. - * @opt_param string location The location that contains this job. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @opt_param string pageToken Set this to the 'next_page_token' field of a * previous response to request additional results in a long list. * @opt_param int pageSize If there are many jobs, limit response to at most @@ -49,17 +51,24 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou return $this->call('aggregated', array($params), "Google_Service_Dataflow_ListJobsResponse"); } /** - * Creates a Cloud Dataflow job. (jobs.create) + * Creates a Cloud Dataflow job. + * + * To create a job, we recommend using `projects.locations.jobs.create` with a + * [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts + * /regional-endpoints). Using `projects.jobs.create` is not recommended, as + * your job will always start in `us-central1`. (jobs.create) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. * @param Google_Service_Dataflow_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string view The level of information requested in response. - * @opt_param string location The location that contains this job. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @opt_param string replaceJobId Deprecated. This field is now in the Job * message. + * @opt_param string view The level of information requested in response. * @return Google_Service_Dataflow_Job */ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) @@ -69,7 +78,12 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou return $this->call('create', array($params), "Google_Service_Dataflow_Job"); } /** - * Gets the state of the specified Cloud Dataflow job. (jobs.get) + * Gets the state of the specified Cloud Dataflow job. + * + * To get the state of a job, we recommend using `projects.locations.jobs.get` + * with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts + * /regional-endpoints). Using `projects.jobs.get` is not recommended, as you + * can only get the state of jobs that are running in `us-central1`. (jobs.get) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. @@ -77,7 +91,9 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou * @param array $optParams Optional parameters. * * @opt_param string view The level of information requested in response. - * @opt_param string location The location that contains this job. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @return Google_Service_Dataflow_Job */ public function get($projectId, $jobId, $optParams = array()) @@ -87,14 +103,21 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou return $this->call('get', array($params), "Google_Service_Dataflow_Job"); } /** - * Request the job status. (jobs.getMetrics) + * Request the job status. + * + * To request the status of a job, we recommend using + * `projects.locations.jobs.getMetrics` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.getMetrics` is not recommended, as you can only request the + * status of jobs that are running in `us-central1`. (jobs.getMetrics) * * @param string $projectId A project id. * @param string $jobId The job to get messages for. * @param array $optParams Optional parameters. * - * @opt_param string location The location which contains the job specified by - * job_id. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @opt_param string startTime Return only metric data that has changed since * this time. Default is to return all information about all metrics for the * job. @@ -107,11 +130,22 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); } /** - * List the jobs of a project in a given region. (jobs.listProjectsJobs) + * List the jobs of a project. + * + * To list the jobs of a project in a region, we recommend using + * `projects.locations.jobs.get` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list + * the all jobs across all regions, use `projects.jobs.aggregated`. Using + * `projects.jobs.list` is not recommended, as you can only get the list of jobs + * that are running in `us-central1`. (jobs.listProjectsJobs) * * @param string $projectId The project which owns the jobs. * @param array $optParams Optional parameters. * + * @opt_param string filter The kind of filter to use. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @opt_param string pageToken Set this to the 'next_page_token' field of a * previous response to request additional results in a long list. * @opt_param int pageSize If there are many jobs, limit response to at most @@ -119,8 +153,6 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou * max_responses and an unspecified server-defined limit. * @opt_param string view Level of information requested in response. Default is * `JOB_VIEW_SUMMARY`. - * @opt_param string filter The kind of filter to use. - * @opt_param string location The location that contains this job. * @return Google_Service_Dataflow_ListJobsResponse */ public function listProjectsJobs($projectId, $optParams = array()) @@ -130,7 +162,28 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); } /** - * Updates the state of an existing Cloud Dataflow job. (jobs.update) + * Snapshot the state of a streaming job. (jobs.snapshot) + * + * @param string $projectId The project which owns the job to be snapshotted. + * @param string $jobId The job to be snapshotted. + * @param Google_Service_Dataflow_SnapshotJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Snapshot + */ + public function snapshot($projectId, $jobId, Google_Service_Dataflow_SnapshotJobRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('snapshot', array($params), "Google_Service_Dataflow_Snapshot"); + } + /** + * Updates the state of an existing Cloud Dataflow job. + * + * To update the state of an existing job, we recommend using + * `projects.locations.jobs.update` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.update` is not recommended, as you can only update the state + * of jobs that are running in `us-central1`. (jobs.update) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. @@ -138,7 +191,9 @@ class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resou * @param Google_Service_Dataflow_Job $postBody * @param array $optParams Optional parameters. * - * @opt_param string location The location that contains this job. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @return Google_Service_Dataflow_Job */ public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php index d3244e00..7107f118 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php @@ -26,22 +26,30 @@ class Google_Service_Dataflow_Resource_ProjectsJobsMessages extends Google_Service_Resource { /** - * Request the job status. (messages.listProjectsJobsMessages) + * Request the job status. + * + * To request the status of a job, we recommend using + * `projects.locations.jobs.messages.list` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.messages.list` is not recommended, as you can only request the + * status of jobs that are running in `us-central1`. + * (messages.listProjectsJobsMessages) * * @param string $projectId A project id. * @param string $jobId The job to get messages about. * @param array $optParams Optional parameters. * - * @opt_param string location The location which contains the job specified by - * job_id. * @opt_param string endTime Return only messages with timestamps < end_time. * The default is now (i.e. return up to the latest messages available). - * @opt_param string startTime If specified, return only messages with - * timestamps >= start_time. The default is the job creation time (i.e. - * beginning of messages). + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @opt_param string pageToken If supplied, this should be the value of * next_page_token returned by an earlier call. This will cause the next page of * results to be returned. + * @opt_param string startTime If specified, return only messages with + * timestamps >= start_time. The default is the job creation time (i.e. + * beginning of messages). * @opt_param int pageSize If specified, determines the maximum number of * messages to return. If unspecified, the service may choose an appropriate * default, or may return an arbitrarily large number of results. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php index 95d29862..9e91255d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php @@ -29,7 +29,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocations extends Google_Service_ * Send a worker_message to the service. (locations.workerMessages) * * @param string $projectId The project to send the WorkerMessages to. - * @param string $location The location which contains the job + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job. * @param Google_Service_Dataflow_SendWorkerMessagesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataflow_SendWorkerMessagesResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php index 7898656c..6cc8d689 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php @@ -26,11 +26,18 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Service_Resource { /** - * Creates a Cloud Dataflow job. (jobs.create) + * Creates a Cloud Dataflow job. + * + * To create a job, we recommend using `projects.locations.jobs.create` with a + * [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts + * /regional-endpoints). Using `projects.jobs.create` is not recommended, as + * your job will always start in `us-central1`. (jobs.create) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. - * @param string $location The location that contains this job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @param Google_Service_Dataflow_Job $postBody * @param array $optParams Optional parameters. * @@ -46,11 +53,18 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Serv return $this->call('create', array($params), "Google_Service_Dataflow_Job"); } /** - * Gets the state of the specified Cloud Dataflow job. (jobs.get) + * Gets the state of the specified Cloud Dataflow job. + * + * To get the state of a job, we recommend using `projects.locations.jobs.get` + * with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts + * /regional-endpoints). Using `projects.jobs.get` is not recommended, as you + * can only get the state of jobs that are running in `us-central1`. (jobs.get) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. - * @param string $location The location that contains this job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @param string $jobId The job ID. * @param array $optParams Optional parameters. * @@ -64,11 +78,18 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Serv return $this->call('get', array($params), "Google_Service_Dataflow_Job"); } /** - * Request the job status. (jobs.getMetrics) + * Request the job status. + * + * To request the status of a job, we recommend using + * `projects.locations.jobs.getMetrics` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.getMetrics` is not recommended, as you can only request the + * status of jobs that are running in `us-central1`. (jobs.getMetrics) * * @param string $projectId A project id. - * @param string $location The location which contains the job specified by - * job_id. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @param string $jobId The job to get messages for. * @param array $optParams Optional parameters. * @@ -84,11 +105,19 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Serv return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); } /** - * List the jobs of a project in a given region. - * (jobs.listProjectsLocationsJobs) + * List the jobs of a project. + * + * To list the jobs of a project in a region, we recommend using + * `projects.locations.jobs.get` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list + * the all jobs across all regions, use `projects.jobs.aggregated`. Using + * `projects.jobs.list` is not recommended, as you can only get the list of jobs + * that are running in `us-central1`. (jobs.listProjectsLocationsJobs) * * @param string $projectId The project which owns the jobs. - * @param string $location The location that contains this job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @param array $optParams Optional parameters. * * @opt_param string filter The kind of filter to use. @@ -108,11 +137,35 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Serv return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); } /** - * Updates the state of an existing Cloud Dataflow job. (jobs.update) + * Snapshot the state of a streaming job. (jobs.snapshot) + * + * @param string $projectId The project which owns the job to be snapshotted. + * @param string $location The location that contains this job. + * @param string $jobId The job to be snapshotted. + * @param Google_Service_Dataflow_SnapshotJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Snapshot + */ + public function snapshot($projectId, $location, $jobId, Google_Service_Dataflow_SnapshotJobRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('snapshot', array($params), "Google_Service_Dataflow_Snapshot"); + } + /** + * Updates the state of an existing Cloud Dataflow job. + * + * To update the state of an existing job, we recommend using + * `projects.locations.jobs.update` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.update` is not recommended, as you can only update the state + * of jobs that are running in `us-central1`. (jobs.update) * * @param string $projectId The ID of the Cloud Platform project that the job * belongs to. - * @param string $location The location that contains this job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains this job. * @param string $jobId The job ID. * @param Google_Service_Dataflow_Job $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsDebug.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsDebug.php index d34bc970..488db6c9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsDebug.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsDebug.php @@ -30,8 +30,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobsDebug extends Google * (debug.getConfig) * * @param string $projectId The project id. - * @param string $location The location which contains the job specified by - * job_id. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @param string $jobId The job id. * @param Google_Service_Dataflow_GetDebugConfigRequest $postBody * @param array $optParams Optional parameters. @@ -47,8 +48,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobsDebug extends Google * Send encoded debug capture data for component. (debug.sendCapture) * * @param string $projectId The project id. - * @param string $location The location which contains the job specified by - * job_id. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @param string $jobId The job id. * @param Google_Service_Dataflow_SendDebugCaptureRequest $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php index 0ff1839b..f37cf422 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php @@ -26,22 +26,30 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobsMessages extends Google_Service_Resource { /** - * Request the job status. (messages.listProjectsLocationsJobsMessages) + * Request the job status. + * + * To request the status of a job, we recommend using + * `projects.locations.jobs.messages.list` with a [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + * `projects.jobs.messages.list` is not recommended, as you can only request the + * status of jobs that are running in `us-central1`. + * (messages.listProjectsLocationsJobsMessages) * * @param string $projectId A project id. - * @param string $location The location which contains the job specified by - * job_id. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the job specified by job_id. * @param string $jobId The job to get messages about. * @param array $optParams Optional parameters. * * @opt_param string endTime Return only messages with timestamps < end_time. * The default is now (i.e. return up to the latest messages available). - * @opt_param string startTime If specified, return only messages with - * timestamps >= start_time. The default is the job creation time (i.e. - * beginning of messages). * @opt_param string pageToken If supplied, this should be the value of * next_page_token returned by an earlier call. This will cause the next page of * results to be returned. + * @opt_param string startTime If specified, return only messages with + * timestamps >= start_time. The default is the job creation time (i.e. + * beginning of messages). * @opt_param int pageSize If specified, determines the maximum number of * messages to return. If unspecified, the service may choose an appropriate * default, or may return an arbitrarily large number of results. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php index c353dc0a..d060be28 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php @@ -29,7 +29,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobsWorkItems extends Go * Leases a dataflow WorkItem to run. (workItems.lease) * * @param string $projectId Identifies the project this worker belongs to. - * @param string $location The location which contains the WorkItem's job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the WorkItem's job. * @param string $jobId Identifies the workflow job this worker belongs to. * @param Google_Service_Dataflow_LeaseWorkItemRequest $postBody * @param array $optParams Optional parameters. @@ -46,7 +48,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsJobsWorkItems extends Go * (workItems.reportStatus) * * @param string $projectId The project which owns the WorkItem's job. - * @param string $location The location which contains the WorkItem's job. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + * contains the WorkItem's job. * @param string $jobId The job which the WorkItem is part of. * @param Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsTemplates.php index 438936ea..37c6151e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsTemplates.php @@ -30,7 +30,9 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsTemplates extends Google * * @param string $projectId Required. The ID of the Cloud Platform project that * the job belongs to. - * @param string $location The location to which to direct the request. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which + * to direct the request. * @param Google_Service_Dataflow_CreateJobFromTemplateRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dataflow_Job @@ -46,13 +48,15 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsTemplates extends Google * * @param string $projectId Required. The ID of the Cloud Platform project that * the job belongs to. - * @param string $location The location to which to direct the request. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which + * to direct the request. * @param array $optParams Optional parameters. * * @opt_param string view The view to retrieve. Defaults to METADATA_ONLY. * @opt_param string gcsPath Required. A Cloud Storage path to the template from - * which to create the job. Must be a valid Cloud Storage URL, beginning with - * `gs://`. + * which to create the job. Must be valid Cloud Storage URL, beginning with + * 'gs://'. * @return Google_Service_Dataflow_GetTemplateResponse */ public function get($projectId, $location, $optParams = array()) @@ -66,15 +70,21 @@ class Google_Service_Dataflow_Resource_ProjectsLocationsTemplates extends Google * * @param string $projectId Required. The ID of the Cloud Platform project that * the job belongs to. - * @param string $location The location to which to direct the request. + * @param string $location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which + * to direct the request. * @param Google_Service_Dataflow_LaunchTemplateParameters $postBody * @param array $optParams Optional parameters. * - * @opt_param string gcsPath Required. A Cloud Storage path to the template from - * which to create the job. Must be valid Cloud Storage URL, beginning with - * 'gs://'. + * @opt_param string dynamicTemplate.gcsPath Path to dynamic template spec file + * on GCS. The file must be a Json serialized DynamicTemplateFieSpec object. + * @opt_param string dynamicTemplate.stagingLocation Cloud Storage path for + * staging dependencies. Must be a valid Cloud Storage URL, beginning with + * `gs://`. * @opt_param bool validateOnly If true, the request is validated but not * actually executed. Defaults to false. + * @opt_param string gcsPath A Cloud Storage path to the template from which to + * create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. * @return Google_Service_Dataflow_LaunchTemplateResponse */ public function launch($projectId, $location, Google_Service_Dataflow_LaunchTemplateParameters $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php index 8230c410..e99e2260 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php @@ -47,11 +47,13 @@ class Google_Service_Dataflow_Resource_ProjectsTemplates extends Google_Service_ * the job belongs to. * @param array $optParams Optional parameters. * - * @opt_param string location The location to which to direct the request. - * @opt_param string view The view to retrieve. Defaults to METADATA_ONLY. * @opt_param string gcsPath Required. A Cloud Storage path to the template from - * which to create the job. Must be a valid Cloud Storage URL, beginning with - * `gs://`. + * which to create the job. Must be valid Cloud Storage URL, beginning with + * 'gs://'. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which + * to direct the request. + * @opt_param string view The view to retrieve. Defaults to METADATA_ONLY. * @return Google_Service_Dataflow_GetTemplateResponse */ public function get($projectId, $optParams = array()) @@ -68,12 +70,18 @@ class Google_Service_Dataflow_Resource_ProjectsTemplates extends Google_Service_ * @param Google_Service_Dataflow_LaunchTemplateParameters $postBody * @param array $optParams Optional parameters. * - * @opt_param string location The location to which to direct the request. * @opt_param bool validateOnly If true, the request is validated but not * actually executed. Defaults to false. - * @opt_param string gcsPath Required. A Cloud Storage path to the template from - * which to create the job. Must be valid Cloud Storage URL, beginning with - * 'gs://'. + * @opt_param string gcsPath A Cloud Storage path to the template from which to + * create the job. Must be valid Cloud Storage URL, beginning with 'gs://'. + * @opt_param string location The [regional endpoint] + * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which + * to direct the request. + * @opt_param string dynamicTemplate.gcsPath Path to dynamic template spec file + * on GCS. The file must be a Json serialized DynamicTemplateFieSpec object. + * @opt_param string dynamicTemplate.stagingLocation Cloud Storage path for + * staging dependencies. Must be a valid Cloud Storage URL, beginning with + * `gs://`. * @return Google_Service_Dataflow_LaunchTemplateResponse */ public function launch($projectId, Google_Service_Dataflow_LaunchTemplateParameters $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php index 83c0cca8..b85b1073 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php @@ -19,10 +19,12 @@ class Google_Service_Dataflow_RuntimeEnvironment extends Google_Collection { protected $collection_key = 'additionalExperiments'; public $additionalExperiments; + public $additionalUserLabels; public $bypassTempDirValidation; public $machineType; public $maxWorkers; public $network; + public $numWorkers; public $serviceAccountEmail; public $subnetwork; public $tempLocation; @@ -36,6 +38,14 @@ class Google_Service_Dataflow_RuntimeEnvironment extends Google_Collection { return $this->additionalExperiments; } + public function setAdditionalUserLabels($additionalUserLabels) + { + $this->additionalUserLabels = $additionalUserLabels; + } + public function getAdditionalUserLabels() + { + return $this->additionalUserLabels; + } public function setBypassTempDirValidation($bypassTempDirValidation) { $this->bypassTempDirValidation = $bypassTempDirValidation; @@ -68,6 +78,14 @@ class Google_Service_Dataflow_RuntimeEnvironment extends Google_Collection { return $this->network; } + public function setNumWorkers($numWorkers) + { + $this->numWorkers = $numWorkers; + } + public function getNumWorkers() + { + return $this->numWorkers; + } public function setServiceAccountEmail($serviceAccountEmail) { $this->serviceAccountEmail = $serviceAccountEmail; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/SdkVersion.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SdkVersion.php new file mode 100644 index 00000000..d60f2ed8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SdkVersion.php @@ -0,0 +1,48 @@ +sdkSupportStatus = $sdkSupportStatus; + } + public function getSdkSupportStatus() + { + return $this->sdkSupportStatus; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setVersionDisplayName($versionDisplayName) + { + $this->versionDisplayName = $versionDisplayName; + } + public function getVersionDisplayName() + { + return $this->versionDisplayName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/Snapshot.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Snapshot.php new file mode 100644 index 00000000..f71c1112 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/Snapshot.php @@ -0,0 +1,66 @@ +creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSourceJobId($sourceJobId) + { + $this->sourceJobId = $sourceJobId; + } + public function getSourceJobId() + { + return $this->sourceJobId; + } + public function setTtl($ttl) + { + $this->ttl = $ttl; + } + public function getTtl() + { + return $this->ttl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/SnapshotJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SnapshotJobRequest.php new file mode 100644 index 00000000..08e0dc46 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SnapshotJobRequest.php @@ -0,0 +1,39 @@ +location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTtl($ttl) + { + $this->ttl = $ttl; + } + public function getTtl() + { + return $this->ttl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/SpannerIODetails.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SpannerIODetails.php new file mode 100644 index 00000000..8c02b57a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/SpannerIODetails.php @@ -0,0 +1,48 @@ +databaseId = $databaseId; + } + public function getDatabaseId() + { + return $this->databaseId; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Publisher.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingApplianceSnapshotConfig.php similarity index 56% rename from vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Publisher.php rename to vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingApplianceSnapshotConfig.php index 284cf995..d32bd59e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Publisher.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingApplianceSnapshotConfig.php @@ -15,25 +15,25 @@ * the License. */ -class Google_Service_AdExchangeBuyerII_Publisher extends Google_Model +class Google_Service_Dataflow_StreamingApplianceSnapshotConfig extends Google_Model { - public $publisherDisplayName; - public $publisherId; + public $importStateEndpoint; + public $snapshotId; - public function setPublisherDisplayName($publisherDisplayName) + public function setImportStateEndpoint($importStateEndpoint) { - $this->publisherDisplayName = $publisherDisplayName; + $this->importStateEndpoint = $importStateEndpoint; } - public function getPublisherDisplayName() + public function getImportStateEndpoint() { - return $this->publisherDisplayName; + return $this->importStateEndpoint; } - public function setPublisherId($publisherId) + public function setSnapshotId($snapshotId) { - $this->publisherId = $publisherId; + $this->snapshotId = $snapshotId; } - public function getPublisherId() + public function getSnapshotId() { - return $this->publisherId; + return $this->snapshotId; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php index b59efca7..fe04ac75 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php @@ -23,6 +23,7 @@ class Google_Service_Dataflow_StreamingComputationConfig extends Google_Collecti protected $instructionsDataType = 'array'; public $stageName; public $systemName; + public $transformUserNameToStateFamily; public function setComputationId($computationId) { @@ -62,4 +63,12 @@ class Google_Service_Dataflow_StreamingComputationConfig extends Google_Collecti { return $this->systemName; } + public function setTransformUserNameToStateFamily($transformUserNameToStateFamily) + { + $this->transformUserNameToStateFamily = $transformUserNameToStateFamily; + } + public function getTransformUserNameToStateFamily() + { + return $this->transformUserNameToStateFamily; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php index e2723d4d..8f6561b6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php @@ -18,12 +18,21 @@ class Google_Service_Dataflow_StreamingConfigTask extends Google_Collection { protected $collection_key = 'streamingComputationConfigs'; + public $maxWorkItemCommitBytes; protected $streamingComputationConfigsType = 'Google_Service_Dataflow_StreamingComputationConfig'; protected $streamingComputationConfigsDataType = 'array'; public $userStepToStateFamilyNameMap; public $windmillServiceEndpoint; public $windmillServicePort; + public function setMaxWorkItemCommitBytes($maxWorkItemCommitBytes) + { + $this->maxWorkItemCommitBytes = $maxWorkItemCommitBytes; + } + public function getMaxWorkItemCommitBytes() + { + return $this->maxWorkItemCommitBytes; + } /** * @param Google_Service_Dataflow_StreamingComputationConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php index c8bacaeb..1f36551c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php @@ -19,6 +19,8 @@ class Google_Service_Dataflow_StreamingSetupTask extends Google_Model { public $drain; public $receiveWorkPort; + protected $snapshotConfigType = 'Google_Service_Dataflow_StreamingApplianceSnapshotConfig'; + protected $snapshotConfigDataType = ''; protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; protected $streamingComputationTopologyDataType = ''; public $workerHarnessPort; @@ -39,6 +41,20 @@ class Google_Service_Dataflow_StreamingSetupTask extends Google_Model { return $this->receiveWorkPort; } + /** + * @param Google_Service_Dataflow_StreamingApplianceSnapshotConfig + */ + public function setSnapshotConfig(Google_Service_Dataflow_StreamingApplianceSnapshotConfig $snapshotConfig) + { + $this->snapshotConfig = $snapshotConfig; + } + /** + * @return Google_Service_Dataflow_StreamingApplianceSnapshotConfig + */ + public function getSnapshotConfig() + { + return $this->snapshotConfig; + } /** * @param Google_Service_Dataflow_TopologyConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc.php index 11687f77..c505e855 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc.php @@ -34,9 +34,11 @@ class Google_Service_Dataproc extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + public $projects_locations_workflowTemplates; public $projects_regions_clusters; public $projects_regions_jobs; public $projects_regions_operations; + public $projects_regions_workflowTemplates; /** * Constructs the internal representation of the Dataproc service. @@ -48,9 +50,140 @@ class Google_Service_Dataproc extends Google_Service parent::__construct($client); $this->rootUrl = 'https://dataproc.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'dataproc'; + $this->projects_locations_workflowTemplates = new Google_Service_Dataproc_Resource_ProjectsLocationsWorkflowTemplates( + $this, + $this->serviceName, + 'workflowTemplates', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/workflowTemplates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'instantiate' => array( + 'path' => 'v1/{+name}:instantiate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'instantiateInline' => array( + 'path' => 'v1/{+parent}/workflowTemplates:instantiateInline', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/workflowTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->projects_regions_clusters = new Google_Service_Dataproc_Resource_ProjectsRegionsClusters( $this, $this->serviceName, @@ -144,6 +277,16 @@ class Google_Service_Dataproc extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/projects/{projectId}/regions/{region}/clusters', 'httpMethod' => 'GET', @@ -158,6 +301,10 @@ class Google_Service_Dataproc extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -166,10 +313,6 @@ class Google_Service_Dataproc extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', @@ -203,6 +346,26 @@ class Google_Service_Dataproc extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -273,6 +436,16 @@ class Google_Service_Dataproc extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/projects/{projectId}/regions/{region}/jobs', 'httpMethod' => 'GET', @@ -287,6 +460,14 @@ class Google_Service_Dataproc extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'clusterName' => array( 'location' => 'query', 'type' => 'string', @@ -299,14 +480,6 @@ class Google_Service_Dataproc extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'patch' => array( 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', @@ -332,6 +505,16 @@ class Google_Service_Dataproc extends Google_Service 'type' => 'string', ), ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'submit' => array( 'path' => 'v1/projects/{projectId}/regions/{region}/jobs:submit', 'httpMethod' => 'POST', @@ -347,6 +530,16 @@ class Google_Service_Dataproc extends Google_Service 'required' => true, ), ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -387,6 +580,16 @@ class Google_Service_Dataproc extends Google_Service 'required' => true, ), ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'list' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', @@ -396,6 +599,10 @@ class Google_Service_Dataproc extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -404,10 +611,156 @@ class Google_Service_Dataproc extends Google_Service 'location' => 'query', 'type' => 'string', ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_regions_workflowTemplates = new Google_Service_Dataproc_Resource_ProjectsRegionsWorkflowTemplates( + $this, + $this->serviceName, + 'workflowTemplates', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/workflowTemplates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'version' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'instantiate' => array( + 'path' => 'v1/{+name}:instantiate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'instantiateInline' => array( + 'path' => 'v1/{+parent}/workflowTemplates:instantiateInline', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'requestId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/workflowTemplates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Binding.php new file mode 100644 index 00000000..add33131 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_Dataproc_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php index 95756ba9..0a5a1fdc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php @@ -19,6 +19,8 @@ class Google_Service_Dataproc_ClusterConfig extends Google_Collection { protected $collection_key = 'initializationActions'; public $configBucket; + protected $encryptionConfigType = 'Google_Service_Dataproc_EncryptionConfig'; + protected $encryptionConfigDataType = ''; protected $gceClusterConfigType = 'Google_Service_Dataproc_GceClusterConfig'; protected $gceClusterConfigDataType = ''; protected $initializationActionsType = 'Google_Service_Dataproc_NodeInitializationAction'; @@ -40,6 +42,20 @@ class Google_Service_Dataproc_ClusterConfig extends Google_Collection { return $this->configBucket; } + /** + * @param Google_Service_Dataproc_EncryptionConfig + */ + public function setEncryptionConfig(Google_Service_Dataproc_EncryptionConfig $encryptionConfig) + { + $this->encryptionConfig = $encryptionConfig; + } + /** + * @return Google_Service_Dataproc_EncryptionConfig + */ + public function getEncryptionConfig() + { + return $this->encryptionConfig; + } /** * @param Google_Service_Dataproc_GceClusterConfig */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperation.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperation.php new file mode 100644 index 00000000..9b5f284b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperation.php @@ -0,0 +1,48 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError($error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterSelector.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterSelector.php new file mode 100644 index 00000000..45892423 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ClusterSelector.php @@ -0,0 +1,39 @@ +clusterLabels = $clusterLabels; + } + public function getClusterLabels() + { + return $this->clusterLabels; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php index 332bba01..1aa52b9f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php @@ -18,6 +18,7 @@ class Google_Service_Dataproc_DiskConfig extends Google_Model { public $bootDiskSizeGb; + public $bootDiskType; public $numLocalSsds; public function setBootDiskSizeGb($bootDiskSizeGb) @@ -28,6 +29,14 @@ class Google_Service_Dataproc_DiskConfig extends Google_Model { return $this->bootDiskSizeGb; } + public function setBootDiskType($bootDiskType) + { + $this->bootDiskType = $bootDiskType; + } + public function getBootDiskType() + { + return $this->bootDiskType; + } public function setNumLocalSsds($numLocalSsds) { $this->numLocalSsds = $numLocalSsds; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/EncryptionConfig.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/EncryptionConfig.php new file mode 100644 index 00000000..0222fa0b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/EncryptionConfig.php @@ -0,0 +1,30 @@ +gcePdKmsKeyName = $gcePdKmsKeyName; + } + public function getGcePdKmsKeyName() + { + return $this->gcePdKmsKeyName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Expr.php new file mode 100644 index 00000000..b785b5c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/GetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/GetIamPolicyRequest.php new file mode 100644 index 00000000..6ff1ce97 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/GetIamPolicyRequest.php @@ -0,0 +1,20 @@ +contactId = $contactId; + $this->parameters = $parameters; } - public function getContactId() + public function getParameters() { - return $this->contactId; + return $this->parameters; } - public function setVisibility($visibility) + public function setRequestId($requestId) { - $this->visibility = $visibility; + $this->requestId = $requestId; } - public function getVisibility() + public function getRequestId() { - return $this->visibility; + return $this->requestId; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Job.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Job.php index 3de84144..b09849b7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Job.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Job.php @@ -24,6 +24,7 @@ class Google_Service_Dataproc_Job extends Google_Collection protected $hadoopJobDataType = ''; protected $hiveJobType = 'Google_Service_Dataproc_HiveJob'; protected $hiveJobDataType = ''; + public $jobUuid; public $labels; protected $pigJobType = 'Google_Service_Dataproc_PigJob'; protected $pigJobDataType = ''; @@ -90,6 +91,14 @@ class Google_Service_Dataproc_Job extends Google_Collection { return $this->hiveJob; } + public function setJobUuid($jobUuid) + { + $this->jobUuid = $jobUuid; + } + public function getJobUuid() + { + return $this->jobUuid; + } public function setLabels($labels) { $this->labels = $labels; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ListWorkflowTemplatesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ListWorkflowTemplatesResponse.php new file mode 100644 index 00000000..27fe06ab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ListWorkflowTemplatesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Dataproc_WorkflowTemplate + */ + public function setTemplates($templates) + { + $this->templates = $templates; + } + /** + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function getTemplates() + { + return $this->templates; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ManagedCluster.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ManagedCluster.php new file mode 100644 index 00000000..5a903ffd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ManagedCluster.php @@ -0,0 +1,55 @@ +clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + /** + * @param Google_Service_Dataproc_ClusterConfig + */ + public function setConfig(Google_Service_Dataproc_ClusterConfig $config) + { + $this->config = $config; + } + /** + * @return Google_Service_Dataproc_ClusterConfig + */ + public function getConfig() + { + return $this->config; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/OrderedJob.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/OrderedJob.php new file mode 100644 index 00000000..43083ba9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/OrderedJob.php @@ -0,0 +1,161 @@ +hadoopJob = $hadoopJob; + } + /** + * @return Google_Service_Dataproc_HadoopJob + */ + public function getHadoopJob() + { + return $this->hadoopJob; + } + /** + * @param Google_Service_Dataproc_HiveJob + */ + public function setHiveJob(Google_Service_Dataproc_HiveJob $hiveJob) + { + $this->hiveJob = $hiveJob; + } + /** + * @return Google_Service_Dataproc_HiveJob + */ + public function getHiveJob() + { + return $this->hiveJob; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + /** + * @param Google_Service_Dataproc_PigJob + */ + public function setPigJob(Google_Service_Dataproc_PigJob $pigJob) + { + $this->pigJob = $pigJob; + } + /** + * @return Google_Service_Dataproc_PigJob + */ + public function getPigJob() + { + return $this->pigJob; + } + public function setPrerequisiteStepIds($prerequisiteStepIds) + { + $this->prerequisiteStepIds = $prerequisiteStepIds; + } + public function getPrerequisiteStepIds() + { + return $this->prerequisiteStepIds; + } + /** + * @param Google_Service_Dataproc_PySparkJob + */ + public function setPysparkJob(Google_Service_Dataproc_PySparkJob $pysparkJob) + { + $this->pysparkJob = $pysparkJob; + } + /** + * @return Google_Service_Dataproc_PySparkJob + */ + public function getPysparkJob() + { + return $this->pysparkJob; + } + /** + * @param Google_Service_Dataproc_JobScheduling + */ + public function setScheduling(Google_Service_Dataproc_JobScheduling $scheduling) + { + $this->scheduling = $scheduling; + } + /** + * @return Google_Service_Dataproc_JobScheduling + */ + public function getScheduling() + { + return $this->scheduling; + } + /** + * @param Google_Service_Dataproc_SparkJob + */ + public function setSparkJob(Google_Service_Dataproc_SparkJob $sparkJob) + { + $this->sparkJob = $sparkJob; + } + /** + * @return Google_Service_Dataproc_SparkJob + */ + public function getSparkJob() + { + return $this->sparkJob; + } + /** + * @param Google_Service_Dataproc_SparkSqlJob + */ + public function setSparkSqlJob(Google_Service_Dataproc_SparkSqlJob $sparkSqlJob) + { + $this->sparkSqlJob = $sparkSqlJob; + } + /** + * @return Google_Service_Dataproc_SparkSqlJob + */ + public function getSparkSqlJob() + { + return $this->sparkSqlJob; + } + public function setStepId($stepId) + { + $this->stepId = $stepId; + } + public function getStepId() + { + return $this->stepId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ParameterValidation.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ParameterValidation.php new file mode 100644 index 00000000..8dda2235 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ParameterValidation.php @@ -0,0 +1,53 @@ +regex = $regex; + } + /** + * @return Google_Service_Dataproc_RegexValidation + */ + public function getRegex() + { + return $this->regex; + } + /** + * @param Google_Service_Dataproc_ValueValidation + */ + public function setValues(Google_Service_Dataproc_ValueValidation $values) + { + $this->values = $values; + } + /** + * @return Google_Service_Dataproc_ValueValidation + */ + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Policy.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Policy.php new file mode 100644 index 00000000..054f6f37 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Policy.php @@ -0,0 +1,56 @@ +bindings = $bindings; + } + /** + * @return Google_Service_Dataproc_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/RegexValidation.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/RegexValidation.php new file mode 100644 index 00000000..8ddc0cdb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/RegexValidation.php @@ -0,0 +1,31 @@ +regexes = $regexes; + } + public function getRegexes() + { + return $this->regexes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocations.php new file mode 100644 index 00000000..9f0ac4ec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocations.php @@ -0,0 +1,28 @@ + + * $dataprocService = new Google_Service_Dataproc(...); + * $locations = $dataprocService->locations; + * + */ +class Google_Service_Dataproc_Resource_ProjectsLocations extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocationsWorkflowTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocationsWorkflowTemplates.php new file mode 100644 index 00000000..bf2dd509 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsLocationsWorkflowTemplates.php @@ -0,0 +1,232 @@ + + * $dataprocService = new Google_Service_Dataproc(...); + * $workflowTemplates = $dataprocService->workflowTemplates; + * + */ +class Google_Service_Dataproc_Resource_ProjectsLocationsWorkflowTemplates extends Google_Service_Resource +{ + /** + * Creates new workflow template. (workflowTemplates.create) + * + * @param string $parent Required. The "resource name" of the region, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function create($parent, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } + /** + * Deletes a workflow template. It does not cancel in-progress workflows. + * (workflowTemplates.delete) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param array $optParams Optional parameters. + * + * @opt_param int version Optional. The version of workflow template to delete. + * If specified, will only delete the template if the current server version + * matches specified version. + * @return Google_Service_Dataproc_DataprocEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Dataproc_DataprocEmpty"); + } + /** + * Retrieves the latest workflow template.Can retrieve previously instantiated + * template by specifying optional version parameter. (workflowTemplates.get) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param array $optParams Optional parameters. + * + * @opt_param int version Optional. The version of workflow template to + * retrieve. Only previously instatiated versions can be retrieved.If + * unspecified, retrieves the current version. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. + * (workflowTemplates.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function getIamPolicy($resource, Google_Service_Dataproc_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Instantiates a template and begins execution.The returned Operation can be + * used to track execution of workflow by polling operations.get. The Operation + * will complete when entire workflow is finished.The running workflow can be + * aborted via operations.cancel. This will cause any inflight jobs to be + * cancelled and workflow-owned clusters to be deleted.The Operation.metadata + * will be WorkflowMetadata.On successful completion, Operation.response will be + * Empty. (workflowTemplates.instantiate) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param Google_Service_Dataproc_InstantiateWorkflowTemplateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function instantiate($name, Google_Service_Dataproc_InstantiateWorkflowTemplateRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('instantiate', array($params), "Google_Service_Dataproc_Operation"); + } + /** + * Instantiates a template and begins execution.This method is equivalent to + * executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, + * DeleteWorkflowTemplate.The returned Operation can be used to track execution + * of workflow by polling operations.get. The Operation will complete when + * entire workflow is finished.The running workflow can be aborted via + * operations.cancel. This will cause any inflight jobs to be cancelled and + * workflow-owned clusters to be deleted.The Operation.metadata will be + * WorkflowMetadata.On successful completion, Operation.response will be Empty. + * (workflowTemplates.instantiateInline) + * + * @param string $parent Required. The "resource name" of the workflow template + * region, as described in https://cloud.google.com/apis/design/resource_names + * of the form projects/{project_id}/regions/{region} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId Optional. A tag that prevents multiple concurrent + * workflow instances with the same tag from running. This mitigates risk of + * concurrent instances started due to retries.It is recommended to always set + * this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). The maximum length is 40 characters. + * @return Google_Service_Dataproc_Operation + */ + public function instantiateInline($parent, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('instantiateInline', array($params), "Google_Service_Dataproc_Operation"); + } + /** + * Lists workflows that match the specified filter in the request. + * (workflowTemplates.listProjectsLocationsWorkflowTemplates) + * + * @param string $parent Required. The "resource name" of the region, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Optional. The page token, returned by a previous + * call, to request the next page of results. + * @opt_param int pageSize Optional. The maximum number of results to return in + * each response. + * @return Google_Service_Dataproc_ListWorkflowTemplatesResponse + */ + public function listProjectsLocationsWorkflowTemplates($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataproc_ListWorkflowTemplatesResponse"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (workflowTemplates.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function setIamPolicy($resource, Google_Service_Dataproc_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error.Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization checking. + * This operation may "fail open" without warning. + * (workflowTemplates.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_Dataproc_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Dataproc_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Dataproc_TestIamPermissionsResponse"); + } + /** + * Updates (replaces) workflow template. The updated template must contain + * version that matches the current server version. (workflowTemplates.update) + * + * @param string $name Output only. The "resource name" of the template, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function update($name, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php index fe998ad3..74690ab4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php @@ -117,6 +117,23 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsClusters extends Google_Se $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dataproc_Cluster"); } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (clusters.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function getIamPolicy($resource, Google_Service_Dataproc_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } /** * Lists all regions/{region}/clusters in a project. * (clusters.listProjectsRegionsClusters) @@ -127,8 +144,6 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsClusters extends Google_Se * the request. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional. The standard List page token. - * @opt_param int pageSize Optional. The standard List page size. * @opt_param string filter Optional. A filter constraining the clusters to * list. Filters are case-sensitive and have the following syntax:field = value * AND field = value ...where field is one of status.state, clusterName, or @@ -140,6 +155,8 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsClusters extends Google_Se * Only the logical AND operator is supported; space-separated items are treated * as having an implicit AND operator.Example filter:status.state = ACTIVE AND * clusterName = mycluster AND labels.env = staging AND labels.starred = * + * @opt_param string pageToken Optional. The standard List page token. + * @opt_param int pageSize Optional. The standard List page size. * @return Google_Service_Dataproc_ListClustersResponse */ public function listProjectsRegionsClusters($projectId, $region, $optParams = array()) @@ -195,4 +212,41 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsClusters extends Google_Se $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Dataproc_Operation"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (clusters.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function setIamPolicy($resource, Google_Service_Dataproc_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error.Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization checking. + * This operation may "fail open" without warning. (clusters.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_Dataproc_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Dataproc_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Dataproc_TestIamPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php index 5f82c478..8093c62a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php @@ -80,6 +80,23 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Servic $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dataproc_Job"); } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (jobs.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function getIamPolicy($resource, Google_Service_Dataproc_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } /** * Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs) * @@ -89,6 +106,10 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Servic * the request. * @param array $optParams Optional parameters. * + * @opt_param string pageToken Optional. The page token, returned by a previous + * call, to request the next page of results. + * @opt_param int pageSize Optional. The number of results to return in each + * response. * @opt_param string clusterName Optional. If set, the returned jobs list * includes only jobs that were submitted to the named cluster. * @opt_param string filter Optional. A filter constraining the jobs to list. @@ -101,10 +122,6 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Servic * @opt_param string jobStateMatcher Optional. Specifies enumerated categories * of jobs to list. (default = match ALL jobs).If filter is provided, * jobStateMatcher will be ignored. - * @opt_param string pageToken Optional. The page token, returned by a previous - * call, to request the next page of results. - * @opt_param int pageSize Optional. The number of results to return in each - * response. * @return Google_Service_Dataproc_ListJobsResponse */ public function listProjectsRegionsJobs($projectId, $region, $optParams = array()) @@ -137,6 +154,23 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Servic $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Dataproc_Job"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (jobs.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function setIamPolicy($resource, Google_Service_Dataproc_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } /** * Submits a job to a cluster. (jobs.submit) * @@ -154,4 +188,24 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Servic $params = array_merge($params, $optParams); return $this->call('submit', array($params), "Google_Service_Dataproc_Job"); } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error.Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization checking. + * This operation may "fail open" without warning. (jobs.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_Dataproc_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Dataproc_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Dataproc_TestIamPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php index be3a0ec9..a91bbcff 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php @@ -77,6 +77,23 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsOperations extends Google_ $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dataproc_Operation"); } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (operations.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function getIamPolicy($resource, Google_Service_Dataproc_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name @@ -91,9 +108,9 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsOperations extends Google_ * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. - * @opt_param int pageSize The standard list page size. * @return Google_Service_Dataproc_ListOperationsResponse */ public function listProjectsRegionsOperations($name, $optParams = array()) @@ -102,4 +119,42 @@ class Google_Service_Dataproc_Resource_ProjectsRegionsOperations extends Google_ $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Dataproc_ListOperationsResponse"); } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (operations.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function setIamPolicy($resource, Google_Service_Dataproc_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error.Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization checking. + * This operation may "fail open" without warning. + * (operations.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_Dataproc_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Dataproc_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Dataproc_TestIamPermissionsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsWorkflowTemplates.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsWorkflowTemplates.php new file mode 100644 index 00000000..b7fe3f42 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsWorkflowTemplates.php @@ -0,0 +1,232 @@ + + * $dataprocService = new Google_Service_Dataproc(...); + * $workflowTemplates = $dataprocService->workflowTemplates; + * + */ +class Google_Service_Dataproc_Resource_ProjectsRegionsWorkflowTemplates extends Google_Service_Resource +{ + /** + * Creates new workflow template. (workflowTemplates.create) + * + * @param string $parent Required. The "resource name" of the region, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function create($parent, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } + /** + * Deletes a workflow template. It does not cancel in-progress workflows. + * (workflowTemplates.delete) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param array $optParams Optional parameters. + * + * @opt_param int version Optional. The version of workflow template to delete. + * If specified, will only delete the template if the current server version + * matches specified version. + * @return Google_Service_Dataproc_DataprocEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Dataproc_DataprocEmpty"); + } + /** + * Retrieves the latest workflow template.Can retrieve previously instantiated + * template by specifying optional version parameter. (workflowTemplates.get) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param array $optParams Optional parameters. + * + * @opt_param int version Optional. The version of workflow template to + * retrieve. Only previously instatiated versions can be retrieved.If + * unspecified, retrieves the current version. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. + * (workflowTemplates.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_GetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function getIamPolicy($resource, Google_Service_Dataproc_GetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Instantiates a template and begins execution.The returned Operation can be + * used to track execution of workflow by polling operations.get. The Operation + * will complete when entire workflow is finished.The running workflow can be + * aborted via operations.cancel. This will cause any inflight jobs to be + * cancelled and workflow-owned clusters to be deleted.The Operation.metadata + * will be WorkflowMetadata.On successful completion, Operation.response will be + * Empty. (workflowTemplates.instantiate) + * + * @param string $name Required. The "resource name" of the workflow template, + * as described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param Google_Service_Dataproc_InstantiateWorkflowTemplateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Operation + */ + public function instantiate($name, Google_Service_Dataproc_InstantiateWorkflowTemplateRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('instantiate', array($params), "Google_Service_Dataproc_Operation"); + } + /** + * Instantiates a template and begins execution.This method is equivalent to + * executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, + * DeleteWorkflowTemplate.The returned Operation can be used to track execution + * of workflow by polling operations.get. The Operation will complete when + * entire workflow is finished.The running workflow can be aborted via + * operations.cancel. This will cause any inflight jobs to be cancelled and + * workflow-owned clusters to be deleted.The Operation.metadata will be + * WorkflowMetadata.On successful completion, Operation.response will be Empty. + * (workflowTemplates.instantiateInline) + * + * @param string $parent Required. The "resource name" of the workflow template + * region, as described in https://cloud.google.com/apis/design/resource_names + * of the form projects/{project_id}/regions/{region} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId Optional. A tag that prevents multiple concurrent + * workflow instances with the same tag from running. This mitigates risk of + * concurrent instances started due to retries.It is recommended to always set + * this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). The maximum length is 40 characters. + * @return Google_Service_Dataproc_Operation + */ + public function instantiateInline($parent, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('instantiateInline', array($params), "Google_Service_Dataproc_Operation"); + } + /** + * Lists workflows that match the specified filter in the request. + * (workflowTemplates.listProjectsRegionsWorkflowTemplates) + * + * @param string $parent Required. The "resource name" of the region, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Optional. The maximum number of results to return in + * each response. + * @opt_param string pageToken Optional. The page token, returned by a previous + * call, to request the next page of results. + * @return Google_Service_Dataproc_ListWorkflowTemplatesResponse + */ + public function listProjectsRegionsWorkflowTemplates($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataproc_ListWorkflowTemplatesResponse"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (workflowTemplates.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_Dataproc_SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_Policy + */ + public function setIamPolicy($resource, Google_Service_Dataproc_SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_Dataproc_Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error.Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization checking. + * This operation may "fail open" without warning. + * (workflowTemplates.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_Dataproc_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Dataproc_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Dataproc_TestIamPermissionsResponse"); + } + /** + * Updates (replaces) workflow template. The updated template must contain + * version that matches the current server version. (workflowTemplates.update) + * + * @param string $name Output only. The "resource name" of the template, as + * described in https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + * @param Google_Service_Dataproc_WorkflowTemplate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataproc_WorkflowTemplate + */ + public function update($name, Google_Service_Dataproc_WorkflowTemplate $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dataproc_WorkflowTemplate"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/SetIamPolicyRequest.php new file mode 100644 index 00000000..0ed7559c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/SetIamPolicyRequest.php @@ -0,0 +1,37 @@ +policy = $policy; + } + /** + * @return Google_Service_Dataproc_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/TemplateParameter.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TemplateParameter.php new file mode 100644 index 00000000..efffc86d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TemplateParameter.php @@ -0,0 +1,65 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setFields($fields) + { + $this->fields = $fields; + } + public function getFields() + { + return $this->fields; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Dataproc_ParameterValidation + */ + public function setValidation(Google_Service_Dataproc_ParameterValidation $validation) + { + $this->validation = $validation; + } + /** + * @return Google_Service_Dataproc_ParameterValidation + */ + public function getValidation() + { + return $this->validation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsRequest.php new file mode 100644 index 00000000..9a127070 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsResponse.php new file mode 100644 index 00000000..67152f7d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/ValueValidation.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ValueValidation.php new file mode 100644 index 00000000..f6bde28b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/ValueValidation.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowGraph.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowGraph.php new file mode 100644 index 00000000..6054bca6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowGraph.php @@ -0,0 +1,38 @@ +nodes = $nodes; + } + /** + * @return Google_Service_Dataproc_WorkflowNode + */ + public function getNodes() + { + return $this->nodes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowMetadata.php new file mode 100644 index 00000000..07322ee3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowMetadata.php @@ -0,0 +1,141 @@ +clusterName = $clusterName; + } + public function getClusterName() + { + return $this->clusterName; + } + public function setClusterUuid($clusterUuid) + { + $this->clusterUuid = $clusterUuid; + } + public function getClusterUuid() + { + return $this->clusterUuid; + } + /** + * @param Google_Service_Dataproc_ClusterOperation + */ + public function setCreateCluster(Google_Service_Dataproc_ClusterOperation $createCluster) + { + $this->createCluster = $createCluster; + } + /** + * @return Google_Service_Dataproc_ClusterOperation + */ + public function getCreateCluster() + { + return $this->createCluster; + } + /** + * @param Google_Service_Dataproc_ClusterOperation + */ + public function setDeleteCluster(Google_Service_Dataproc_ClusterOperation $deleteCluster) + { + $this->deleteCluster = $deleteCluster; + } + /** + * @return Google_Service_Dataproc_ClusterOperation + */ + public function getDeleteCluster() + { + return $this->deleteCluster; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + /** + * @param Google_Service_Dataproc_WorkflowGraph + */ + public function setGraph(Google_Service_Dataproc_WorkflowGraph $graph) + { + $this->graph = $graph; + } + /** + * @return Google_Service_Dataproc_WorkflowGraph + */ + public function getGraph() + { + return $this->graph; + } + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + public function getParameters() + { + return $this->parameters; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setTemplate($template) + { + $this->template = $template; + } + public function getTemplate() + { + return $this->template; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowNode.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowNode.php new file mode 100644 index 00000000..c54aa2ba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowNode.php @@ -0,0 +1,67 @@ +error = $error; + } + public function getError() + { + return $this->error; + } + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() + { + return $this->jobId; + } + public function setPrerequisiteStepIds($prerequisiteStepIds) + { + $this->prerequisiteStepIds = $prerequisiteStepIds; + } + public function getPrerequisiteStepIds() + { + return $this->prerequisiteStepIds; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setStepId($stepId) + { + $this->stepId = $stepId; + } + public function getStepId() + { + return $this->stepId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplate.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplate.php new file mode 100644 index 00000000..59bbf292 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplate.php @@ -0,0 +1,124 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Dataproc_OrderedJob + */ + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + /** + * @return Google_Service_Dataproc_OrderedJob + */ + public function getJobs() + { + return $this->jobs; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Dataproc_TemplateParameter + */ + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + /** + * @return Google_Service_Dataproc_TemplateParameter + */ + public function getParameters() + { + return $this->parameters; + } + /** + * @param Google_Service_Dataproc_WorkflowTemplatePlacement + */ + public function setPlacement(Google_Service_Dataproc_WorkflowTemplatePlacement $placement) + { + $this->placement = $placement; + } + /** + * @return Google_Service_Dataproc_WorkflowTemplatePlacement + */ + public function getPlacement() + { + return $this->placement; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplatePlacement.php b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplatePlacement.php new file mode 100644 index 00000000..1c264133 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dataproc/WorkflowTemplatePlacement.php @@ -0,0 +1,53 @@ +clusterSelector = $clusterSelector; + } + /** + * @return Google_Service_Dataproc_ClusterSelector + */ + public function getClusterSelector() + { + return $this->clusterSelector; + } + /** + * @param Google_Service_Dataproc_ManagedCluster + */ + public function setManagedCluster(Google_Service_Dataproc_ManagedCluster $managedCluster) + { + $this->managedCluster = $managedCluster; + } + /** + * @return Google_Service_Dataproc_ManagedCluster + */ + public function getManagedCluster() + { + return $this->managedCluster; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Datastore.php b/vendor/google/apiclient-services/src/Google/Service/Datastore.php index f0f61c0b..7a3ede0f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Datastore.php +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore.php @@ -39,6 +39,7 @@ class Google_Service_Datastore extends Google_Service "https://www.googleapis.com/auth/datastore"; public $projects; + public $projects_indexes; public $projects_operations; /** @@ -51,6 +52,7 @@ class Google_Service_Datastore extends Google_Service parent::__construct($client); $this->rootUrl = 'https://datastore.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'datastore'; @@ -154,6 +156,53 @@ class Google_Service_Datastore extends Google_Service ) ) ); + $this->projects_indexes = new Google_Service_Datastore_Resource_ProjectsIndexes( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->projects_operations = new Google_Service_Datastore_Resource_ProjectsOperations( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1Index.php b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1Index.php new file mode 100644 index 00000000..662454bf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1Index.php @@ -0,0 +1,83 @@ +ancestor = $ancestor; + } + public function getAncestor() + { + return $this->ancestor; + } + public function setIndexId($indexId) + { + $this->indexId = $indexId; + } + public function getIndexId() + { + return $this->indexId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + /** + * @param Google_Service_Datastore_GoogleDatastoreAdminV1IndexedProperty + */ + public function setProperties($properties) + { + $this->properties = $properties; + } + /** + * @return Google_Service_Datastore_GoogleDatastoreAdminV1IndexedProperty + */ + public function getProperties() + { + return $this->properties; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexOperationMetadata.php new file mode 100644 index 00000000..417874ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexOperationMetadata.php @@ -0,0 +1,62 @@ +common = $common; + } + /** + * @return Google_Service_Datastore_GoogleDatastoreAdminV1CommonMetadata + */ + public function getCommon() + { + return $this->common; + } + public function setIndexId($indexId) + { + $this->indexId = $indexId; + } + public function getIndexId() + { + return $this->indexId; + } + /** + * @param Google_Service_Datastore_GoogleDatastoreAdminV1Progress + */ + public function setProgressEntities(Google_Service_Datastore_GoogleDatastoreAdminV1Progress $progressEntities) + { + $this->progressEntities = $progressEntities; + } + /** + * @return Google_Service_Datastore_GoogleDatastoreAdminV1Progress + */ + public function getProgressEntities() + { + return $this->progressEntities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexedProperty.php b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexedProperty.php new file mode 100644 index 00000000..c86e737f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1IndexedProperty.php @@ -0,0 +1,39 @@ +direction = $direction; + } + public function getDirection() + { + return $this->direction; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/ListIndexesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1ListIndexesResponse.php similarity index 77% rename from vendor/google/apiclient-services/src/Google/Service/Firestore/ListIndexesResponse.php rename to vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1ListIndexesResponse.php index 322ba42f..b8e46036 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/ListIndexesResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore/GoogleDatastoreAdminV1ListIndexesResponse.php @@ -15,22 +15,22 @@ * the License. */ -class Google_Service_Firestore_ListIndexesResponse extends Google_Collection +class Google_Service_Datastore_GoogleDatastoreAdminV1ListIndexesResponse extends Google_Collection { protected $collection_key = 'indexes'; - protected $indexesType = 'Google_Service_Firestore_Index'; + protected $indexesType = 'Google_Service_Datastore_GoogleDatastoreAdminV1Index'; protected $indexesDataType = 'array'; public $nextPageToken; /** - * @param Google_Service_Firestore_Index + * @param Google_Service_Datastore_GoogleDatastoreAdminV1Index */ public function setIndexes($indexes) { $this->indexes = $indexes; } /** - * @return Google_Service_Firestore_Index + * @return Google_Service_Datastore_GoogleDatastoreAdminV1Index */ public function getIndexes() { diff --git a/vendor/google/apiclient-services/src/Google/Service/Datastore/Resource/ProjectsIndexes.php b/vendor/google/apiclient-services/src/Google/Service/Datastore/Resource/ProjectsIndexes.php new file mode 100644 index 00000000..a2df5137 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Datastore/Resource/ProjectsIndexes.php @@ -0,0 +1,63 @@ + + * $datastoreService = new Google_Service_Datastore(...); + * $indexes = $datastoreService->indexes; + * + */ +class Google_Service_Datastore_Resource_ProjectsIndexes extends Google_Service_Resource +{ + /** + * Gets an index. (indexes.get) + * + * @param string $projectId Project ID against which to make the request. + * @param string $indexId The resource ID of the index to get. + * @param array $optParams Optional parameters. + * @return Google_Service_Datastore_GoogleDatastoreAdminV1Index + */ + public function get($projectId, $indexId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'indexId' => $indexId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Datastore_GoogleDatastoreAdminV1Index"); + } + /** + * Lists the indexes that match the specified filters. Datastore uses an + * eventually consistent query to fetch the list of indexes and may occasionally + * return stale results. (indexes.listProjectsIndexes) + * + * @param string $projectId Project ID against which to make the request. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token value returned from a + * previous List request, if any. + * @opt_param int pageSize The maximum number of items to return. If zero, then + * all results will be returned. + * @opt_param string filter + * @return Google_Service_Datastore_GoogleDatastoreAdminV1ListIndexesResponse + */ + public function listProjectsIndexes($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Datastore_GoogleDatastoreAdminV1ListIndexesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager.php b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager.php index e49bd6e1..e93127d5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager.php @@ -59,6 +59,7 @@ class Google_Service_DeploymentManager extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'deploymentmanager/v2/projects/'; + $this->batchPath = 'batch/deploymentmanager/v2'; $this->version = 'v2'; $this->serviceName = 'deploymentmanager'; diff --git a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php index c5e64cc6..32840f9c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php +++ b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php @@ -33,6 +33,7 @@ class Google_Service_DeploymentManager_Deployment extends Google_Collection protected $targetDataType = ''; protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate'; protected $updateDataType = ''; + public $updateTime; public function setDescription($description) { @@ -146,4 +147,12 @@ class Google_Service_DeploymentManager_Deployment extends Google_Collection { return $this->update; } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/GlobalSetPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/GlobalSetPolicyRequest.php new file mode 100644 index 00000000..536695a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/GlobalSetPolicyRequest.php @@ -0,0 +1,63 @@ +bindings = $bindings; + } + /** + * @return Google_Service_DeploymentManager_Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + /** + * @param Google_Service_DeploymentManager_Policy + */ + public function setPolicy(Google_Service_DeploymentManager_Policy $policy) + { + $this->policy = $policy; + } + /** + * @return Google_Service_DeploymentManager_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php index 81c77299..cb383472 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php +++ b/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php @@ -77,7 +77,7 @@ class Google_Service_DeploymentManager_Resource_Deployments extends Google_Servi * or resource exists. (deployments.getIamPolicy) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param array $optParams Optional parameters. * @return Google_Service_DeploymentManager_Policy */ @@ -200,12 +200,12 @@ class Google_Service_DeploymentManager_Resource_Deployments extends Google_Servi * existing policy. (deployments.setIamPolicy) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. - * @param Google_Service_DeploymentManager_Policy $postBody + * @param string $resource Name or id of the resource for this request. + * @param Google_Service_DeploymentManager_GlobalSetPolicyRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_DeploymentManager_Policy */ - public function setIamPolicy($project, $resource, Google_Service_DeploymentManager_Policy $postBody, $optParams = array()) + public function setIamPolicy($project, $resource, Google_Service_DeploymentManager_GlobalSetPolicyRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); @@ -233,7 +233,7 @@ class Google_Service_DeploymentManager_Resource_Deployments extends Google_Servi * (deployments.testIamPermissions) * * @param string $project Project ID for this request. - * @param string $resource Name of the resource for this request. + * @param string $resource Name or id of the resource for this request. * @param Google_Service_DeploymentManager_TestPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_DeploymentManager_TestPermissionsResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting.php index 2e10ec55..6f854ef6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dfareporting (v3.0). + * Service definition for Dfareporting (v3.3). * ** Manages your DoubleClick Campaign Manager ad campaigns and reports.
@@ -64,7 +64,6 @@ class Google_Service_Dfareporting extends Google_Service public $creativeGroups; public $creatives; public $dimensionValues; - public $directorySiteContacts; public $directorySites; public $dynamicTargetingKeys; public $eventTags; @@ -75,6 +74,7 @@ class Google_Service_Dfareporting extends Google_Service public $inventoryItems; public $languages; public $metros; + public $mobileApps; public $mobileCarriers; public $operatingSystemVersions; public $operatingSystems; @@ -112,8 +112,9 @@ class Google_Service_Dfareporting extends Google_Service { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'dfareporting/v3.0/'; - $this->version = 'v3.0'; + $this->servicePath = 'dfareporting/v3.3/'; + $this->batchPath = 'batch/dfareporting/v3.3'; + $this->version = 'v3.3'; $this->serviceName = 'dfareporting'; $this->accountActiveAdSummaries = new Google_Service_Dfareporting_Resource_AccountActiveAdSummaries( @@ -738,6 +739,11 @@ class Google_Service_Dfareporting extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'ids' => array( 'location' => 'query', 'type' => 'string', @@ -1995,71 +2001,6 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); - $this->directorySiteContacts = new Google_Service_Dfareporting_Resource_DirectorySiteContacts( - $this, - $this->serviceName, - 'directorySiteContacts', - array( - 'methods' => array( - 'get' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'userprofiles/{profileId}/directorySiteContacts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'profileId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'directorySiteIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'searchString' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortField' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); $this->directorySites = new Google_Service_Dfareporting_Resource_DirectorySites( $this, $this->serviceName, @@ -2116,10 +2057,6 @@ class Google_Service_Dfareporting extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'countryId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'dfpNetworkCode' => array( 'location' => 'query', 'type' => 'string', @@ -2137,10 +2074,6 @@ class Google_Service_Dfareporting extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'parentId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'searchString' => array( 'location' => 'query', 'type' => 'string', @@ -2861,6 +2794,63 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); + $this->mobileApps = new Google_Service_Dfareporting_Resource_MobileApps( + $this, + $this->serviceName, + 'mobileApps', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/mobileApps/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/mobileApps', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'directories' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->mobileCarriers = new Google_Service_Dfareporting_Resource_MobileCarriers( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php index 5617c4ce..ec7ad675 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php @@ -52,8 +52,6 @@ class Google_Service_Dfareporting_Campaign extends Google_Collection public $kind; protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; protected $lastModifiedInfoDataType = ''; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; public $name; public $nielsenOcrEnabled; public $startDate; @@ -310,20 +308,6 @@ class Google_Service_Dfareporting_Campaign extends Google_Collection { return $this->lastModifiedInfo; } - /** - * @param Google_Service_Dfareporting_LookbackConfiguration - */ - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - /** - * @return Google_Service_Dfareporting_LookbackConfiguration - */ - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php index 4ad7a5bd..e3e1b1b7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php @@ -29,9 +29,11 @@ class Google_Service_Dfareporting_Conversion extends Google_Collection public $kind; public $limitAdTracking; public $mobileDeviceId; + public $nonPersonalizedAd; public $ordinal; public $quantity; public $timestampMicros; + public $treatmentForUnderage; public $value; public function setChildDirectedTreatment($childDirectedTreatment) @@ -120,6 +122,14 @@ class Google_Service_Dfareporting_Conversion extends Google_Collection { return $this->mobileDeviceId; } + public function setNonPersonalizedAd($nonPersonalizedAd) + { + $this->nonPersonalizedAd = $nonPersonalizedAd; + } + public function getNonPersonalizedAd() + { + return $this->nonPersonalizedAd; + } public function setOrdinal($ordinal) { $this->ordinal = $ordinal; @@ -144,6 +154,14 @@ class Google_Service_Dfareporting_Conversion extends Google_Collection { return $this->timestampMicros; } + public function setTreatmentForUnderage($treatmentForUnderage) + { + $this->treatmentForUnderage = $treatmentForUnderage; + } + public function getTreatmentForUnderage() + { + return $this->treatmentForUnderage; + } public function setValue($value) { $this->value = $value; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php index adcc90b3..288c093f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php @@ -22,6 +22,8 @@ class Google_Service_Dfareporting_Creative extends Google_Collection public $active; public $adParameters; public $adTagKeys; + protected $additionalSizesType = 'Google_Service_Dfareporting_Size'; + protected $additionalSizesDataType = 'array'; public $advertiserId; public $allowScriptAccess; public $archived; @@ -65,9 +67,10 @@ class Google_Service_Dfareporting_Creative extends Google_Collection protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; protected $lastModifiedInfoDataType = ''; public $latestTraffickedCreativeId; + public $mediaDescription; + public $mediaDuration; public $name; public $overrideCss; - public $politeLoadAssetId; protected $progressOffsetType = 'Google_Service_Dfareporting_VideoOffset'; protected $progressOffsetDataType = ''; public $redirectUrl; @@ -98,8 +101,6 @@ class Google_Service_Dfareporting_Creative extends Google_Collection protected $universalAdIdType = 'Google_Service_Dfareporting_UniversalAdId'; protected $universalAdIdDataType = ''; public $version; - public $videoDescription; - public $videoDuration; public function setAccountId($accountId) { @@ -133,6 +134,20 @@ class Google_Service_Dfareporting_Creative extends Google_Collection { return $this->adTagKeys; } + /** + * @param Google_Service_Dfareporting_Size + */ + public function setAdditionalSizes($additionalSizes) + { + $this->additionalSizes = $additionalSizes; + } + /** + * @return Google_Service_Dfareporting_Size + */ + public function getAdditionalSizes() + { + return $this->additionalSizes; + } public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; @@ -455,6 +470,22 @@ class Google_Service_Dfareporting_Creative extends Google_Collection { return $this->latestTraffickedCreativeId; } + public function setMediaDescription($mediaDescription) + { + $this->mediaDescription = $mediaDescription; + } + public function getMediaDescription() + { + return $this->mediaDescription; + } + public function setMediaDuration($mediaDuration) + { + $this->mediaDuration = $mediaDuration; + } + public function getMediaDuration() + { + return $this->mediaDuration; + } public function setName($name) { $this->name = $name; @@ -471,14 +502,6 @@ class Google_Service_Dfareporting_Creative extends Google_Collection { return $this->overrideCss; } - public function setPoliteLoadAssetId($politeLoadAssetId) - { - $this->politeLoadAssetId = $politeLoadAssetId; - } - public function getPoliteLoadAssetId() - { - return $this->politeLoadAssetId; - } /** * @param Google_Service_Dfareporting_VideoOffset */ @@ -705,20 +728,4 @@ class Google_Service_Dfareporting_Creative extends Google_Collection { return $this->version; } - public function setVideoDescription($videoDescription) - { - $this->videoDescription = $videoDescription; - } - public function getVideoDescription() - { - return $this->videoDescription; - } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php index 15e68787..d78958e6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php @@ -20,10 +20,14 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection protected $collection_key = 'detectedFeatures'; public $actionScript3; public $active; + protected $additionalSizesType = 'Google_Service_Dfareporting_Size'; + protected $additionalSizesDataType = 'array'; public $alignment; public $artworkType; protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; protected $assetIdentifierDataType = ''; + public $audioBitRate; + public $audioSampleRate; protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; protected $backupImageExitDataType = ''; public $bitRate; @@ -40,17 +44,20 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection protected $expandedDimensionDataType = ''; public $fileSize; public $flashVersion; + public $frameRate; public $hideFlashObjects; public $hideSelectionBoxes; public $horizontallyLocked; public $id; protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $idDimensionValueDataType = ''; + public $mediaDuration; public $mimeType; protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; protected $offsetDataType = ''; public $orientation; public $originalBackup; + public $politeLoad; protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; protected $positionDataType = ''; public $positionLeftUnit; @@ -66,7 +73,6 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection public $streamingServingUrl; public $transparency; public $verticallyLocked; - public $videoDuration; public $windowMode; public $zIndex; public $zipFilename; @@ -88,6 +94,20 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->active; } + /** + * @param Google_Service_Dfareporting_Size + */ + public function setAdditionalSizes($additionalSizes) + { + $this->additionalSizes = $additionalSizes; + } + /** + * @return Google_Service_Dfareporting_Size + */ + public function getAdditionalSizes() + { + return $this->additionalSizes; + } public function setAlignment($alignment) { $this->alignment = $alignment; @@ -118,6 +138,22 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->assetIdentifier; } + public function setAudioBitRate($audioBitRate) + { + $this->audioBitRate = $audioBitRate; + } + public function getAudioBitRate() + { + return $this->audioBitRate; + } + public function setAudioSampleRate($audioSampleRate) + { + $this->audioSampleRate = $audioSampleRate; + } + public function getAudioSampleRate() + { + return $this->audioSampleRate; + } /** * @param Google_Service_Dfareporting_CreativeCustomEvent */ @@ -240,6 +276,14 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->flashVersion; } + public function setFrameRate($frameRate) + { + $this->frameRate = $frameRate; + } + public function getFrameRate() + { + return $this->frameRate; + } public function setHideFlashObjects($hideFlashObjects) { $this->hideFlashObjects = $hideFlashObjects; @@ -286,6 +330,14 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->idDimensionValue; } + public function setMediaDuration($mediaDuration) + { + $this->mediaDuration = $mediaDuration; + } + public function getMediaDuration() + { + return $this->mediaDuration; + } public function setMimeType($mimeType) { $this->mimeType = $mimeType; @@ -324,6 +376,14 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->originalBackup; } + public function setPoliteLoad($politeLoad) + { + $this->politeLoad = $politeLoad; + } + public function getPoliteLoad() + { + return $this->politeLoad; + } /** * @param Google_Service_Dfareporting_OffsetPosition */ @@ -440,14 +500,6 @@ class Google_Service_Dfareporting_CreativeAsset extends Google_Collection { return $this->verticallyLocked; } - public function setVideoDuration($videoDuration) - { - $this->videoDuration = $videoDuration; - } - public function getVideoDuration() - { - return $this->videoDuration; - } public function setWindowMode($windowMode) { $this->windowMode = $windowMode; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetric.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetric.php new file mode 100644 index 00000000..66adfb09 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetric.php @@ -0,0 +1,55 @@ +configuration = $configuration; + } + /** + * @return Google_Service_Dfareporting_CustomViewabilityMetricConfiguration + */ + public function getConfiguration() + { + return $this->configuration; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetricConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetricConfiguration.php new file mode 100644 index 00000000..58e448ac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CustomViewabilityMetricConfiguration.php @@ -0,0 +1,57 @@ +audible = $audible; + } + public function getAudible() + { + return $this->audible; + } + public function setTimeMillis($timeMillis) + { + $this->timeMillis = $timeMillis; + } + public function getTimeMillis() + { + return $this->timeMillis; + } + public function setTimePercent($timePercent) + { + $this->timePercent = $timePercent; + } + public function getTimePercent() + { + return $this->timePercent; + } + public function setViewabilityPercent($viewabilityPercent) + { + $this->viewabilityPercent = $viewabilityPercent; + } + public function getViewabilityPercent() + { + return $this->viewabilityPercent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DeepLink.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DeepLink.php new file mode 100644 index 00000000..5c406ab0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DeepLink.php @@ -0,0 +1,74 @@ +appUrl = $appUrl; + } + public function getAppUrl() + { + return $this->appUrl; + } + public function setFallbackUrl($fallbackUrl) + { + $this->fallbackUrl = $fallbackUrl; + } + public function getFallbackUrl() + { + return $this->fallbackUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + /** + * @param Google_Service_Dfareporting_MobileApp + */ + public function setMobileApp(Google_Service_Dfareporting_MobileApp $mobileApp) + { + $this->mobileApp = $mobileApp; + } + /** + * @return Google_Service_Dfareporting_MobileApp + */ + public function getMobileApp() + { + return $this->mobileApp; + } + public function setRemarketingListIds($remarketingListIds) + { + $this->remarketingListIds = $remarketingListIds; + } + public function getRemarketingListIds() + { + return $this->remarketingListIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php index 77854eec..64bbcbac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php @@ -19,11 +19,6 @@ class Google_Service_Dfareporting_DirectorySite extends Google_Collection { protected $collection_key = 'interstitialTagFormats'; public $active; - protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; - protected $contactAssignmentsDataType = 'array'; - public $countryId; - public $currencyId; - public $description; public $id; protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $idDimensionValueDataType = ''; @@ -31,7 +26,6 @@ class Google_Service_Dfareporting_DirectorySite extends Google_Collection public $interstitialTagFormats; public $kind; public $name; - public $parentId; protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; protected $settingsDataType = ''; public $url; @@ -44,44 +38,6 @@ class Google_Service_Dfareporting_DirectorySite extends Google_Collection { return $this->active; } - /** - * @param Google_Service_Dfareporting_DirectorySiteContactAssignment - */ - public function setContactAssignments($contactAssignments) - { - $this->contactAssignments = $contactAssignments; - } - /** - * @return Google_Service_Dfareporting_DirectorySiteContactAssignment - */ - public function getContactAssignments() - { - return $this->contactAssignments; - } - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - public function getCountryId() - { - return $this->countryId; - } - public function setCurrencyId($currencyId) - { - $this->currencyId = $currencyId; - } - public function getCurrencyId() - { - return $this->currencyId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } public function setId($id) { $this->id = $id; @@ -136,14 +92,6 @@ class Google_Service_Dfareporting_DirectorySite extends Google_Collection { return $this->name; } - public function setParentId($parentId) - { - $this->parentId = $parentId; - } - public function getParentId() - { - return $this->parentId; - } /** * @param Google_Service_Dfareporting_DirectorySiteSettings */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php deleted file mode 100644 index ae40b387..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php +++ /dev/null @@ -1,111 +0,0 @@ -address = $address; - } - public function getAddress() - { - return $this->address; - } - public function setEmail($email) - { - $this->email = $email; - } - public function getEmail() - { - return $this->email; - } - public function setFirstName($firstName) - { - $this->firstName = $firstName; - } - public function getFirstName() - { - return $this->firstName; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setLastName($lastName) - { - $this->lastName = $lastName; - } - public function getLastName() - { - return $this->lastName; - } - public function setPhone($phone) - { - $this->phone = $phone; - } - public function getPhone() - { - return $this->phone; - } - public function setRole($role) - { - $this->role = $role; - } - public function getRole() - { - return $this->role; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php index 334b6ea0..be20bcee 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php @@ -22,9 +22,6 @@ class Google_Service_Dfareporting_DirectorySiteSettings extends Google_Model protected $dfpSettingsDataType = ''; public $instreamVideoPlacementAccepted; public $interstitialPlacementAccepted; - public $nielsenOcrOptOut; - public $verificationTagOptOut; - public $videoActiveViewOptOut; public function setActiveViewOptOut($activeViewOptOut) { @@ -64,28 +61,4 @@ class Google_Service_Dfareporting_DirectorySiteSettings extends Google_Model { return $this->interstitialPlacementAccepted; } - public function setNielsenOcrOptOut($nielsenOcrOptOut) - { - $this->nielsenOcrOptOut = $nielsenOcrOptOut; - } - public function getNielsenOcrOptOut() - { - return $this->nielsenOcrOptOut; - } - public function setVerificationTagOptOut($verificationTagOptOut) - { - $this->verificationTagOptOut = $verificationTagOptOut; - } - public function getVerificationTagOptOut() - { - return $this->verificationTagOptOut; - } - public function setVideoActiveViewOptOut($videoActiveViewOptOut) - { - $this->videoActiveViewOptOut = $videoActiveViewOptOut; - } - public function getVideoActiveViewOptOut() - { - return $this->videoActiveViewOptOut; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php index ab17f9f4..cfa3c2b7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php @@ -23,6 +23,8 @@ class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collect protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $advertiserIdDimensionValueDataType = ''; public $analyticsDataSharingEnabled; + protected $customViewabilityMetricType = 'Google_Service_Dfareporting_CustomViewabilityMetric'; + protected $customViewabilityMetricDataType = ''; public $exposureToConversionEnabled; public $firstDayOfWeek; public $id; @@ -81,6 +83,20 @@ class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collect { return $this->analyticsDataSharingEnabled; } + /** + * @param Google_Service_Dfareporting_CustomViewabilityMetric + */ + public function setCustomViewabilityMetric(Google_Service_Dfareporting_CustomViewabilityMetric $customViewabilityMetric) + { + $this->customViewabilityMetric = $customViewabilityMetric; + } + /** + * @return Google_Service_Dfareporting_CustomViewabilityMetric + */ + public function getCustomViewabilityMetric() + { + return $this->customViewabilityMetric; + } public function setExposureToConversionEnabled($exposureToConversionEnabled) { $this->exposureToConversionEnabled = $exposureToConversionEnabled; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php index 01fb0198..65a73bab 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php @@ -15,10 +15,13 @@ * the License. */ -class Google_Service_Dfareporting_LandingPage extends Google_Model +class Google_Service_Dfareporting_LandingPage extends Google_Collection { + protected $collection_key = 'deepLinks'; public $advertiserId; public $archived; + protected $deepLinksType = 'Google_Service_Dfareporting_DeepLink'; + protected $deepLinksDataType = 'array'; public $id; public $kind; public $name; @@ -40,6 +43,20 @@ class Google_Service_Dfareporting_LandingPage extends Google_Model { return $this->archived; } + /** + * @param Google_Service_Dfareporting_DeepLink + */ + public function setDeepLinks($deepLinks) + { + $this->deepLinks = $deepLinks; + } + /** + * @return Google_Service_Dfareporting_DeepLink + */ + public function getDeepLinks() + { + return $this->deepLinks; + } public function setId($id) { $this->id = $id; diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileApp.php similarity index 59% rename from vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php rename to vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileApp.php index ab5ce402..f90cced2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileApp.php @@ -15,21 +15,21 @@ * the License. */ -class Google_Service_YouTube_FanFundingEvent extends Google_Model +class Google_Service_Dfareporting_MobileApp extends Google_Model { - public $etag; + public $directory; public $id; public $kind; - protected $snippetType = 'Google_Service_YouTube_FanFundingEventSnippet'; - protected $snippetDataType = ''; + public $publisherName; + public $title; - public function setEtag($etag) + public function setDirectory($directory) { - $this->etag = $etag; + $this->directory = $directory; } - public function getEtag() + public function getDirectory() { - return $this->etag; + return $this->directory; } public function setId($id) { @@ -47,18 +47,20 @@ class Google_Service_YouTube_FanFundingEvent extends Google_Model { return $this->kind; } - /** - * @param Google_Service_YouTube_FanFundingEventSnippet - */ - public function setSnippet(Google_Service_YouTube_FanFundingEventSnippet $snippet) + public function setPublisherName($publisherName) { - $this->snippet = $snippet; + $this->publisherName = $publisherName; } - /** - * @return Google_Service_YouTube_FanFundingEventSnippet - */ - public function getSnippet() + public function getPublisherName() { - return $this->snippet; + return $this->publisherName; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileAppsListResponse.php similarity index 61% rename from vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php rename to vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileAppsListResponse.php index fd250969..e680d5ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/MobileAppsListResponse.php @@ -15,28 +15,14 @@ * the License. */ -class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection +class Google_Service_Dfareporting_MobileAppsListResponse extends Google_Collection { - protected $collection_key = 'directorySiteContacts'; - protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; - protected $directorySiteContactsDataType = 'array'; + protected $collection_key = 'mobileApps'; public $kind; + protected $mobileAppsType = 'Google_Service_Dfareporting_MobileApp'; + protected $mobileAppsDataType = 'array'; public $nextPageToken; - /** - * @param Google_Service_Dfareporting_DirectorySiteContact - */ - public function setDirectorySiteContacts($directorySiteContacts) - { - $this->directorySiteContacts = $directorySiteContacts; - } - /** - * @return Google_Service_Dfareporting_DirectorySiteContact - */ - public function getDirectorySiteContacts() - { - return $this->directorySiteContacts; - } public function setKind($kind) { $this->kind = $kind; @@ -45,6 +31,20 @@ class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Goog { return $this->kind; } + /** + * @param Google_Service_Dfareporting_MobileApp + */ + public function setMobileApps($mobileApps) + { + $this->mobileApps = $mobileApps; + } + /** + * @return Google_Service_Dfareporting_MobileApp + */ + public function getMobileApps() + { + return $this->mobileApps; + } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php index 6a130602..62d31256 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php @@ -20,6 +20,8 @@ class Google_Service_Dfareporting_Placement extends Google_Collection protected $collection_key = 'tagFormats'; public $accountId; public $adBlockingOptOut; + protected $additionalSizesType = 'Google_Service_Dfareporting_Size'; + protected $additionalSizesDataType = 'array'; public $advertiserId; protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; protected $advertiserIdDimensionValueDataType = ''; @@ -89,6 +91,20 @@ class Google_Service_Dfareporting_Placement extends Google_Collection { return $this->adBlockingOptOut; } + /** + * @param Google_Service_Dfareporting_Size + */ + public function setAdditionalSizes($additionalSizes) + { + $this->additionalSizes = $additionalSizes; + } + /** + * @return Google_Service_Dfareporting_Size + */ + public function getAdditionalSizes() + { + return $this->additionalSizes; + } public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserLandingPages.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserLandingPages.php index 9ca37dfd..c2f569e6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserLandingPages.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserLandingPages.php @@ -64,6 +64,8 @@ class Google_Service_Dfareporting_Resource_AdvertiserLandingPages extends Google * these advertisers. * @opt_param bool archived Select only archived landing pages. Don't set this * field to select both archived and non-archived landing pages. + * @opt_param string campaignIds Select only landing pages that are associated + * with these campaigns. * @opt_param string ids Select only landing pages with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php deleted file mode 100644 index 48483859..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php +++ /dev/null @@ -1,73 +0,0 @@ - - * $dfareportingService = new Google_Service_Dfareporting(...); - * $directorySiteContacts = $dfareportingService->directorySiteContacts; - * - */ -class Google_Service_Dfareporting_Resource_DirectorySiteContacts extends Google_Service_Resource -{ - /** - * Gets one directory site contact by ID. (directorySiteContacts.get) - * - * @param string $profileId User profile ID associated with this request. - * @param string $id Directory site contact ID. - * @param array $optParams Optional parameters. - * @return Google_Service_Dfareporting_DirectorySiteContact - */ - public function get($profileId, $id, $optParams = array()) - { - $params = array('profileId' => $profileId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); - } - /** - * Retrieves a list of directory site contacts, possibly filtered. This method - * supports paging. (directorySiteContacts.listDirectorySiteContacts) - * - * @param string $profileId User profile ID associated with this request. - * @param array $optParams Optional parameters. - * - * @opt_param string directorySiteIds Select only directory site contacts with - * these directory site IDs. This is a required field. - * @opt_param string ids Select only directory site contacts with these IDs. - * @opt_param int maxResults Maximum number of results to return. - * @opt_param string pageToken Value of the nextPageToken from the previous - * result page. - * @opt_param string searchString Allows searching for objects by name, ID or - * email. Wildcards (*) are allowed. For example, "directory site contact*2015" - * will return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "directory site - * contact" will match objects with name "my directory site contact", "directory - * site contact 2015", or simply "directory site contact". - * @opt_param string sortField Field by which to sort the list. - * @opt_param string sortOrder Order of sorted results. - * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse - */ - public function listDirectorySiteContacts($profileId, $optParams = array()) - { - $params = array('profileId' => $profileId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php index 85ef5a1e..d32831aa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php @@ -68,14 +68,12 @@ class Google_Service_Dfareporting_Resource_DirectorySites extends Google_Service * that accept publisher paid placements. This field can be left blank. * @opt_param bool active Select only active directory sites. Leave blank to * retrieve both active and inactive directory sites. - * @opt_param string countryId Select only directory sites with this country ID. - * @opt_param string dfpNetworkCode Select only directory sites with this DFP - * network code. + * @opt_param string dfpNetworkCode Select only directory sites with this Ad + * Manager network code. * @opt_param string ids Select only directory sites with these IDs. * @opt_param int maxResults Maximum number of results to return. * @opt_param string pageToken Value of the nextPageToken from the previous * result page. - * @opt_param string parentId Select only directory sites with this parent ID. * @opt_param string searchString Allows searching for objects by name, ID or * URL. Wildcards (*) are allowed. For example, "directory site*2015" will * return objects with names like "directory site June 2015", "directory site diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileApps.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileApps.php new file mode 100644 index 00000000..20221a8c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileApps.php @@ -0,0 +1,67 @@ + + * $dfareportingService = new Google_Service_Dfareporting(...); + * $mobileApps = $dfareportingService->mobileApps; + * + */ +class Google_Service_Dfareporting_Resource_MobileApps extends Google_Service_Resource +{ + /** + * Gets one mobile app by ID. (mobileApps.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Mobile app ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileApp + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_MobileApp"); + } + /** + * Retrieves list of available mobile apps. (mobileApps.listMobileApps) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string directories Select only apps from these directories. + * @opt_param string ids Select only apps with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "app*2015" will return objects with + * names like "app Jan 2018", "app Jan 2018", or simply "app 2018". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "app" will match objects with name + * "my app", "app 2018", or simply "app". + * @return Google_Service_Dfareporting_MobileAppsListResponse + */ + public function listMobileApps($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MobileAppsListResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php index 6c960ef2..dad8f3a7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php @@ -54,7 +54,10 @@ class Google_Service_Dfareporting_Resource_Sizes extends Google_Service_Resource return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); } /** - * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) + * Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally + * unique and may include values not currently in use by your account. Due to + * this, the list of sizes returned by this method may differ from the list seen + * in the Trafficking UI. (sizes.listSizes) * * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Site.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Site.php index fa296756..0bf5c1ea 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Site.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Site.php @@ -34,6 +34,8 @@ class Google_Service_Dfareporting_Site extends Google_Collection protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; protected $siteSettingsDataType = ''; public $subaccountId; + protected $videoSettingsType = 'Google_Service_Dfareporting_SiteVideoSettings'; + protected $videoSettingsDataType = ''; public function setAccountId($accountId) { @@ -155,4 +157,18 @@ class Google_Service_Dfareporting_Site extends Google_Collection { return $this->subaccountId; } + /** + * @param Google_Service_Dfareporting_SiteVideoSettings + */ + public function setVideoSettings(Google_Service_Dfareporting_SiteVideoSettings $videoSettings) + { + $this->videoSettings = $videoSettings; + } + /** + * @return Google_Service_Dfareporting_SiteVideoSettings + */ + public function getVideoSettings() + { + return $this->videoSettings; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteCompanionSetting.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteCompanionSetting.php new file mode 100644 index 00000000..1b664551 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteCompanionSetting.php @@ -0,0 +1,65 @@ +companionsDisabled = $companionsDisabled; + } + public function getCompanionsDisabled() + { + return $this->companionsDisabled; + } + /** + * @param Google_Service_Dfareporting_Size + */ + public function setEnabledSizes($enabledSizes) + { + $this->enabledSizes = $enabledSizes; + } + /** + * @return Google_Service_Dfareporting_Size + */ + public function getEnabledSizes() + { + return $this->enabledSizes; + } + public function setImageOnly($imageOnly) + { + $this->imageOnly = $imageOnly; + } + public function getImageOnly() + { + return $this->imageOnly; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php index 0f246c3c..89523b31 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php @@ -19,11 +19,7 @@ class Google_Service_Dfareporting_SiteSettings extends Google_Model { public $activeViewOptOut; public $adBlockingOptOut; - protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; - protected $creativeSettingsDataType = ''; public $disableNewCookie; - protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; - protected $lookbackConfigurationDataType = ''; protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; protected $tagSettingDataType = ''; public $videoActiveViewOptOutTemplate; @@ -45,20 +41,6 @@ class Google_Service_Dfareporting_SiteSettings extends Google_Model { return $this->adBlockingOptOut; } - /** - * @param Google_Service_Dfareporting_CreativeSettings - */ - public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) - { - $this->creativeSettings = $creativeSettings; - } - /** - * @return Google_Service_Dfareporting_CreativeSettings - */ - public function getCreativeSettings() - { - return $this->creativeSettings; - } public function setDisableNewCookie($disableNewCookie) { $this->disableNewCookie = $disableNewCookie; @@ -67,20 +49,6 @@ class Google_Service_Dfareporting_SiteSettings extends Google_Model { return $this->disableNewCookie; } - /** - * @param Google_Service_Dfareporting_LookbackConfiguration - */ - public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) - { - $this->lookbackConfiguration = $lookbackConfiguration; - } - /** - * @return Google_Service_Dfareporting_LookbackConfiguration - */ - public function getLookbackConfiguration() - { - return $this->lookbackConfiguration; - } /** * @param Google_Service_Dfareporting_TagSetting */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSkippableSetting.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSkippableSetting.php new file mode 100644 index 00000000..407a9879 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteSkippableSetting.php @@ -0,0 +1,71 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + /** + * @param Google_Service_Dfareporting_VideoOffset + */ + public function setProgressOffset(Google_Service_Dfareporting_VideoOffset $progressOffset) + { + $this->progressOffset = $progressOffset; + } + /** + * @return Google_Service_Dfareporting_VideoOffset + */ + public function getProgressOffset() + { + return $this->progressOffset; + } + /** + * @param Google_Service_Dfareporting_VideoOffset + */ + public function setSkipOffset(Google_Service_Dfareporting_VideoOffset $skipOffset) + { + $this->skipOffset = $skipOffset; + } + /** + * @return Google_Service_Dfareporting_VideoOffset + */ + public function getSkipOffset() + { + return $this->skipOffset; + } + public function setSkippable($skippable) + { + $this->skippable = $skippable; + } + public function getSkippable() + { + return $this->skippable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteTranscodeSetting.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteTranscodeSetting.php new file mode 100644 index 00000000..94c283a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteTranscodeSetting.php @@ -0,0 +1,40 @@ +enabledVideoFormats = $enabledVideoFormats; + } + public function getEnabledVideoFormats() + { + return $this->enabledVideoFormats; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteVideoSettings.php b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteVideoSettings.php new file mode 100644 index 00000000..7f4fd5e2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dfareporting/SiteVideoSettings.php @@ -0,0 +1,87 @@ +companionSettings = $companionSettings; + } + /** + * @return Google_Service_Dfareporting_SiteCompanionSetting + */ + public function getCompanionSettings() + { + return $this->companionSettings; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrientation($orientation) + { + $this->orientation = $orientation; + } + public function getOrientation() + { + return $this->orientation; + } + /** + * @param Google_Service_Dfareporting_SiteSkippableSetting + */ + public function setSkippableSettings(Google_Service_Dfareporting_SiteSkippableSetting $skippableSettings) + { + $this->skippableSettings = $skippableSettings; + } + /** + * @return Google_Service_Dfareporting_SiteSkippableSetting + */ + public function getSkippableSettings() + { + return $this->skippableSettings; + } + /** + * @param Google_Service_Dfareporting_SiteTranscodeSetting + */ + public function setTranscodeSettings(Google_Service_Dfareporting_SiteTranscodeSetting $transcodeSettings) + { + $this->transcodeSettings = $transcodeSettings; + } + /** + * @return Google_Service_Dfareporting_SiteTranscodeSetting + */ + public function getTranscodeSettings() + { + return $this->transcodeSettings; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow.php index 13cfae24..91833c26 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow.php @@ -19,8 +19,8 @@ * Service definition for Dialogflow (v2). * *- * An end-to-end development suite for conversational interfaces (e.g., - * chatbots, voice-powered apps and devices).
+ * Builds conversational interfaces (for example, chatbots, and voice-powered + * apps and devices). * ** For more information about this service, see the API @@ -34,6 +34,9 @@ class Google_Service_Dialogflow extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View, manage and query your Dialogflow agents. */ + const DIALOGFLOW = + "https://www.googleapis.com/auth/dialogflow"; public $projects; public $projects_agent; @@ -55,6 +58,7 @@ class Google_Service_Dialogflow extends Google_Service parent::__construct($client); $this->rootUrl = 'https://dialogflow.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'dialogflow'; @@ -123,14 +127,14 @@ class Google_Service_Dialogflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'train' => array( 'path' => 'v2/{+parent}/agent:train', @@ -357,11 +361,11 @@ class Google_Service_Dialogflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'intentView' => array( + 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), - 'languageCode' => array( + 'intentView' => array( 'location' => 'query', 'type' => 'string', ), @@ -375,10 +379,6 @@ class Google_Service_Dialogflow extends Google_Service 'type' => 'string', 'required' => true, ), - 'intentView' => array( - 'location' => 'query', - 'type' => 'string', - ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', @@ -391,6 +391,10 @@ class Google_Service_Dialogflow extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'intentView' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v2/{+name}', diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2OriginalDetectIntentRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2OriginalDetectIntentRequest.php index 8ee5bb3d..e37009c5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2OriginalDetectIntentRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2OriginalDetectIntentRequest.php @@ -19,6 +19,7 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2OriginalDetectIntentReque { public $payload; public $source; + public $version; public function setPayload($payload) { @@ -36,4 +37,12 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2OriginalDetectIntentReque { return $this->source; } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Intent.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Intent.php index 5e9e35b8..5c33d410 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Intent.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Intent.php @@ -21,6 +21,7 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Intent extends Googl public $action; public $defaultResponsePlatforms; public $displayName; + public $endInteraction; public $events; protected $followupIntentInfoType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo'; protected $followupIntentInfoDataType = 'array'; @@ -67,6 +68,14 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Intent extends Googl { return $this->displayName; } + public function setEndInteraction($endInteraction) + { + $this->endInteraction = $endInteraction; + } + public function getEndInteraction() + { + return $this->endInteraction; + } public function setEvents($events) { $this->events = $events; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessage.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessage.php index 48b828ed..2408a1de 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessage.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessage.php @@ -37,6 +37,12 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessage extend protected $simpleResponsesDataType = ''; protected $suggestionsType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageSuggestions'; protected $suggestionsDataType = ''; + protected $telephonyPlayAudioType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio'; + protected $telephonyPlayAudioDataType = ''; + protected $telephonySynthesizeSpeechType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech'; + protected $telephonySynthesizeSpeechDataType = ''; + protected $telephonyTransferCallType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall'; + protected $telephonyTransferCallDataType = ''; protected $textType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageText'; protected $textDataType = ''; @@ -182,6 +188,48 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessage extend { return $this->suggestions; } + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + */ + public function setTelephonyPlayAudio(Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio $telephonyPlayAudio) + { + $this->telephonyPlayAudio = $telephonyPlayAudio; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio + */ + public function getTelephonyPlayAudio() + { + return $this->telephonyPlayAudio; + } + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + */ + public function setTelephonySynthesizeSpeech(Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech $telephonySynthesizeSpeech) + { + $this->telephonySynthesizeSpeech = $telephonySynthesizeSpeech; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech + */ + public function getTelephonySynthesizeSpeech() + { + return $this->telephonySynthesizeSpeech; + } + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + */ + public function setTelephonyTransferCall(Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall $telephonyTransferCall) + { + $this->telephonyTransferCall = $telephonyTransferCall; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall + */ + public function getTelephonyTransferCall() + { + return $this->telephonyTransferCall; + } /** * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessageText */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.php new file mode 100644 index 00000000..f8229259 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.php @@ -0,0 +1,30 @@ +audioUri = $audioUri; + } + public function getAudioUri() + { + return $this->audioUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.php new file mode 100644 index 00000000..56227fd0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.php @@ -0,0 +1,39 @@ +ssml = $ssml; + } + public function getSsml() + { + return $this->ssml; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall.php new file mode 100644 index 00000000..ec5fcc27 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall.php @@ -0,0 +1,30 @@ +phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswers.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswers.php new file mode 100644 index 00000000..555857b4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswers.php @@ -0,0 +1,38 @@ +answers = $answers; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer + */ + public function getAnswers() + { + return $this->answers; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.php new file mode 100644 index 00000000..51b7f853 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.php @@ -0,0 +1,66 @@ +answer = $answer; + } + public function getAnswer() + { + return $this->answer; + } + public function setFaqQuestion($faqQuestion) + { + $this->faqQuestion = $faqQuestion; + } + public function getFaqQuestion() + { + return $this->faqQuestion; + } + public function setMatchConfidence($matchConfidence) + { + $this->matchConfidence = $matchConfidence; + } + public function getMatchConfidence() + { + return $this->matchConfidence; + } + public function setMatchConfidenceLevel($matchConfidenceLevel) + { + $this->matchConfidenceLevel = $matchConfidenceLevel; + } + public function getMatchConfidenceLevel() + { + return $this->matchConfidenceLevel; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.php index 7cfefbb6..6b553565 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.php @@ -19,6 +19,7 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1OriginalDetectIntent { public $payload; public $source; + public $version; public function setPayload($payload) { @@ -36,4 +37,12 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1OriginalDetectIntent { return $this->source; } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1QueryResult.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1QueryResult.php index d1e61b66..30056ac9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1QueryResult.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1QueryResult.php @@ -27,11 +27,15 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult extends protected $intentType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Intent'; protected $intentDataType = ''; public $intentDetectionConfidence; + protected $knowledgeAnswersType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1KnowledgeAnswers'; + protected $knowledgeAnswersDataType = ''; public $languageCode; protected $outputContextsType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Context'; protected $outputContextsDataType = 'array'; public $parameters; public $queryText; + protected $sentimentAnalysisResultType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1SentimentAnalysisResult'; + protected $sentimentAnalysisResultDataType = ''; public $speechRecognitionConfidence; public $webhookPayload; public $webhookSource; @@ -104,6 +108,20 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult extends { return $this->intentDetectionConfidence; } + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1KnowledgeAnswers + */ + public function setKnowledgeAnswers(Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1KnowledgeAnswers $knowledgeAnswers) + { + $this->knowledgeAnswers = $knowledgeAnswers; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1KnowledgeAnswers + */ + public function getKnowledgeAnswers() + { + return $this->knowledgeAnswers; + } public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; @@ -142,6 +160,20 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult extends { return $this->queryText; } + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1SentimentAnalysisResult + */ + public function setSentimentAnalysisResult(Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1SentimentAnalysisResult $sentimentAnalysisResult) + { + $this->sentimentAnalysisResult = $sentimentAnalysisResult; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1SentimentAnalysisResult + */ + public function getSentimentAnalysisResult() + { + return $this->sentimentAnalysisResult; + } public function setSpeechRecognitionConfidence($speechRecognitionConfidence) { $this->speechRecognitionConfidence = $speechRecognitionConfidence; diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1EmotionAttribute.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Sentiment.php similarity index 74% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1EmotionAttribute.php rename to vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Sentiment.php index 53449601..5d631baf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p1beta1EmotionAttribute.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1Sentiment.php @@ -15,18 +15,18 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1EmotionAttribute extends Google_Model +class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Sentiment extends Google_Model { - public $emotion; + public $magnitude; public $score; - public function setEmotion($emotion) + public function setMagnitude($magnitude) { - $this->emotion = $emotion; + $this->magnitude = $magnitude; } - public function getEmotion() + public function getMagnitude() { - return $this->emotion; + return $this->magnitude; } public function setScore($score) { diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1SentimentAnalysisResult.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1SentimentAnalysisResult.php new file mode 100644 index 00000000..cc421caf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1SentimentAnalysisResult.php @@ -0,0 +1,37 @@ +queryTextSentiment = $queryTextSentiment; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Sentiment + */ + public function getQueryTextSentiment() + { + return $this->queryTextSentiment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookRequest.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookRequest.php index 4fff3c4b..4582607e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookRequest.php @@ -15,8 +15,11 @@ * the License. */ -class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookRequest extends Google_Model +class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookRequest extends Google_Collection { + protected $collection_key = 'alternativeQueryResults'; + protected $alternativeQueryResultsType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult'; + protected $alternativeQueryResultsDataType = 'array'; protected $originalDetectIntentRequestType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest'; protected $originalDetectIntentRequestDataType = ''; protected $queryResultType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult'; @@ -24,6 +27,20 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookRequest exten public $responseId; public $session; + /** + * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult + */ + public function setAlternativeQueryResults($alternativeQueryResults) + { + $this->alternativeQueryResults = $alternativeQueryResults; + } + /** + * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1QueryResult + */ + public function getAlternativeQueryResults() + { + return $this->alternativeQueryResults; + } /** * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookResponse.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookResponse.php index f57002f7..3049ea10 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2beta1WebhookResponse.php @@ -18,6 +18,7 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookResponse extends Google_Collection { protected $collection_key = 'outputContexts'; + public $endInteraction; protected $followupEventInputType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1EventInput'; protected $followupEventInputDataType = ''; protected $fulfillmentMessagesType = 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1IntentMessage'; @@ -28,6 +29,14 @@ class Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookResponse exte public $payload; public $source; + public function setEndInteraction($endInteraction) + { + $this->endInteraction = $endInteraction; + } + public function getEndInteraction() + { + return $this->endInteraction; + } /** * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1EventInput */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgent.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgent.php index 496e12e3..12e1ae99 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgent.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgent.php @@ -96,10 +96,10 @@ class Google_Service_Dialogflow_Resource_ProjectsAgent extends Google_Service_Re * `projects/`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional. The next_page_token value returned from - * a previous list request. * @opt_param int pageSize Optional. The maximum number of items to return in a * single page. By default 100 and at most 1000. + * @opt_param string pageToken Optional. The next_page_token value returned from + * a previous list request. * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2SearchAgentsResponse */ public function search($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypes.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypes.php index a34d6688..604a6318 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypes.php @@ -142,8 +142,8 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentEntityTypes extends Google /** * Updates the specified entity type. (entityTypes.patch) * - * @param string $name Required for all methods except `create` (`create` - * populates the name automatically. The unique identifier of the entity type. + * @param string $name The unique identifier of the entity type. Required for + * EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. * Format: `projects//agent/entityTypes/`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2EntityType $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypesEntities.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypesEntities.php index 7f8b9125..eb396f30 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypesEntities.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentEntityTypesEntities.php @@ -26,8 +26,7 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentEntityTypesEntities extends Google_Service_Resource { /** - * Creates multiple new entities in the specified entity type (extends the - * existing collection of entries). + * Creates multiple new entities in the specified entity type. * * Operation (entities.batchCreate) * @@ -61,13 +60,14 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentEntityTypesEntities extend return $this->call('batchDelete', array($params), "Google_Service_Dialogflow_GoogleLongrunningOperation"); } /** - * Updates entities in the specified entity type (replaces the existing - * collection of entries). + * Updates or creates multiple entities in the specified entity type. This + * method does not affect entities in the entity type that aren't explicitly + * specified in the request. * * Operation (entities.batchUpdate) * - * @param string $parent Required. The name of the entity type to update the - * entities in. Format: `projects//agent/entityTypes/`. + * @param string $parent Required. The name of the entity type to update or + * create entities in. Format: `projects//agent/entityTypes/`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2BatchUpdateEntitiesRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Dialogflow_GoogleLongrunningOperation diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentIntents.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentIntents.php index 411fb44c..8fb4fdc8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentIntents.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentIntents.php @@ -83,9 +83,11 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Ser return $this->call('create', array($params), "Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent"); } /** - * Deletes the specified intent. (intents.delete) + * Deletes the specified intent and its direct or indirect followup intents. + * (intents.delete) * - * @param string $name Required. The name of the intent to delete. Format: + * @param string $name Required. The name of the intent to delete. If this + * intent has direct or indirect followup intents, we also delete them. Format: * `projects//agent/intents/`. * @param array $optParams Optional parameters. * @return Google_Service_Dialogflow_GoogleProtobufEmpty @@ -103,13 +105,13 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Ser * `projects//agent/intents/`. * @param array $optParams Optional parameters. * - * @opt_param string intentView Optional. The resource view to apply to the - * returned intent. * @opt_param string languageCode Optional. The language to retrieve training * phrases, parameters and rich messages for. If not specified, the agent's * default language is used. [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. + * @opt_param string intentView Optional. The resource view to apply to the + * returned intent. * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent */ public function get($name, $optParams = array()) @@ -126,8 +128,6 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Ser * `projects//agent`. * @param array $optParams Optional parameters. * - * @opt_param string intentView Optional. The resource view to apply to the - * returned intent. * @opt_param string languageCode Optional. The language to list training * phrases, parameters and rich messages for. If not specified, the agent's * default language is used. [More than a dozen @@ -137,6 +137,8 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Ser * a previous list request. * @opt_param int pageSize Optional. The maximum number of items to return in a * single page. By default 100 and at most 1000. + * @opt_param string intentView Optional. The resource view to apply to the + * returned intent. * @return Google_Service_Dialogflow_GoogleCloudDialogflowV2ListIntentsResponse */ public function listProjectsAgentIntents($parent, $optParams = array()) @@ -148,9 +150,9 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentIntents extends Google_Ser /** * Updates the specified intent. (intents.patch) * - * @param string $name Required for all methods except `create` (`create` - * populates the name automatically. The unique identifier of this intent. - * Format: `projects//agent/intents/`. + * @param string $name The unique identifier of this intent. Required for + * Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: + * `projects//agent/intents/`. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2Intent $postBody * @param array $optParams Optional parameters. * diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsContexts.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsContexts.php index d9ff0182..77f03ba4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsContexts.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsContexts.php @@ -26,7 +26,10 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentSessionsContexts extends Google_Service_Resource { /** - * Creates a context. (contexts.create) + * Creates a context. + * + * If the specified context already exists, overrides the context. + * (contexts.create) * * @param string $parent Required. The session to create a context for. Format: * `projects//agent/sessions/`. @@ -93,6 +96,9 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentSessionsContexts extends G * * @param string $name Required. The unique identifier of the context. Format: * `projects//agent/sessions//contexts/`. + * + * The `Context ID` is always converted to lowercase, may only contain + * characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2Context $postBody * @param array $optParams Optional parameters. * diff --git a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsEntityTypes.php b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsEntityTypes.php index 1d8b645c..fdea8fbf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsEntityTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dialogflow/Resource/ProjectsAgentSessionsEntityTypes.php @@ -26,7 +26,10 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentSessionsEntityTypes extends Google_Service_Resource { /** - * Creates a session entity type. (entityTypes.create) + * Creates a session entity type. + * + * If the specified session entity type already exists, overrides the session + * entity type. (entityTypes.create) * * @param string $parent Required. The session to create a session entity type * for. Format: `projects//agent/sessions/`. @@ -93,6 +96,9 @@ class Google_Service_Dialogflow_Resource_ProjectsAgentSessionsEntityTypes extend * * @param string $name Required. The unique identifier of this session entity * type. Format: `projects//agent/sessions//entityTypes/`. + * + * `` must be the display name of an existing entity type in the same agent that + * will be overridden or supplemented. * @param Google_Service_Dialogflow_GoogleCloudDialogflowV2SessionEntityType $postBody * @param array $optParams Optional parameters. * diff --git a/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks.php b/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks.php index 59ac3f7d..e386cbad 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks.php @@ -19,8 +19,8 @@ * Service definition for Digitalassetlinks (v1). * *
- * API for discovering relationships between online assets such as web sites or - * mobile apps.
+ * Discovers relationships between online assets such as websites or mobile + * apps. * ** For more information about this service, see the API @@ -46,6 +46,7 @@ class Google_Service_Digitalassetlinks extends Google_Service parent::__construct($client); $this->rootUrl = 'https://digitalassetlinks.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'digitalassetlinks'; @@ -59,6 +60,10 @@ class Google_Service_Digitalassetlinks extends Google_Service 'path' => 'v1/assetlinks:check', 'httpMethod' => 'GET', 'parameters' => array( + 'target.web.site' => array( + 'location' => 'query', + 'type' => 'string', + ), 'target.androidApp.certificate.sha256Fingerprint' => array( 'location' => 'query', 'type' => 'string', @@ -83,10 +88,6 @@ class Google_Service_Digitalassetlinks extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'target.web.site' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks/Resource/Assetlinks.php b/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks/Resource/Assetlinks.php index 10af913f..79fce7f8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks/Resource/Assetlinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Digitalassetlinks/Resource/Assetlinks.php @@ -52,6 +52,35 @@ class Google_Service_Digitalassetlinks_Resource_Assetlinks extends Google_Servic * * @param array $optParams Optional parameters. * + * @opt_param string target.web.site Web assets are identified by a URL that + * contains only the scheme, hostname and port parts. The format is + * + * http[s]://[:] + * + * Hostnames must be fully qualified: they must end in a single period ("`.`"). + * + * Only the schemes "http" and "https" are currently allowed. + * + * Port numbers are given as a decimal number, and they must be omitted if the + * standard port numbers are used: 80 for http and 443 for https. + * + * We call this limited URL the "site". All URLs that share the same scheme, + * hostname and port are considered to be a part of the site and thus belong to + * the web asset. + * + * Example: the asset with the site `https://www.google.com` contains all these + * URLs: + * + * * `https://www.google.com/` * `https://www.google.com:443/` * + * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * + * `https://www.google.com/foo#bar` * + * `https://user@password:www.google.com/` + * + * But it does not contain these URLs: + * + * * `http://www.google.com/` (wrong scheme) * + * `https://google.com/` (hostname does not match) * + * `https://www.google.com:444/` (port does not match) REQUIRED * @opt_param string target.androidApp.certificate.sha256Fingerprint The * uppercase SHA-265 fingerprint of the certificate. From the PEM certificate, * it can be acquired like this: @@ -146,35 +175,6 @@ class Google_Service_Digitalassetlinks_Resource_Assetlinks extends Google_Servic * Example: A query with relation `delegate_permission/common.handle_all_urls` * matches an asset link with relation * `delegate_permission/common.handle_all_urls`. - * @opt_param string target.web.site Web assets are identified by a URL that - * contains only the scheme, hostname and port parts. The format is - * - * http[s]://[:] - * - * Hostnames must be fully qualified: they must end in a single period ("`.`"). - * - * Only the schemes "http" and "https" are currently allowed. - * - * Port numbers are given as a decimal number, and they must be omitted if the - * standard port numbers are used: 80 for http and 443 for https. - * - * We call this limited URL the "site". All URLs that share the same scheme, - * hostname and port are considered to be a part of the site and thus belong to - * the web asset. - * - * Example: the asset with the site `https://www.google.com` contains all these - * URLs: - * - * * `https://www.google.com/` * `https://www.google.com:443/` * - * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * - * `https://www.google.com/foo#bar` * - * `https://user@password:www.google.com/` - * - * But it does not contain these URLs: - * - * * `http://www.google.com/` (wrong scheme) * - * `https://google.com/` (hostname does not match) * - * `https://www.google.com:444/` (port does not match) REQUIRED * @return Google_Service_Digitalassetlinks_CheckResponse */ public function check($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory.php b/vendor/google/apiclient-services/src/Google/Service/Directory.php index b88f3e1d..165faf78 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory.php @@ -19,9 +19,8 @@ * Service definition for Directory (directory_v1). * *
- * The Admin SDK Directory API lets you view and manage enterprise resources - * such as users and groups, administrative notifications, security features, - * and more.
+ * Manages enterprise resources such as users and groups, administrative + * notifications, security features, and more. * ** For more information about this service, see the API @@ -150,6 +149,7 @@ class Google_Service_Directory extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/directory/v1/'; + $this->batchPath = 'batch/admin/directory_v1'; $this->version = 'directory_v1'; $this->serviceName = 'admin'; @@ -562,10 +562,22 @@ class Google_Service_Directory extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), 'userKey' => array( 'location' => 'query', 'type' => 'string', @@ -710,6 +722,10 @@ class Google_Service_Directory extends Google_Service 'type' => 'string', 'required' => true, ), + 'includeDerivedMembership' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1127,6 +1143,10 @@ class Google_Service_Directory extends Google_Service 'type' => 'string', 'required' => true, ), + 'coordinatesSource' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => 'customer/{customer}/resources/buildings', @@ -1160,6 +1180,10 @@ class Google_Service_Directory extends Google_Service 'type' => 'string', 'required' => true, ), + 'coordinatesSource' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'customer/{customer}/resources/buildings/{buildingId}', @@ -1175,6 +1199,10 @@ class Google_Service_Directory extends Google_Service 'type' => 'string', 'required' => true, ), + 'coordinatesSource' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Building.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Building.php index 3639f9fd..8b360121 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Building.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Building.php @@ -18,6 +18,8 @@ class Google_Service_Directory_Building extends Google_Collection { protected $collection_key = 'floorNames'; + protected $addressType = 'Google_Service_Directory_BuildingAddress'; + protected $addressDataType = ''; public $buildingId; public $buildingName; protected $coordinatesType = 'Google_Service_Directory_BuildingCoordinates'; @@ -27,6 +29,20 @@ class Google_Service_Directory_Building extends Google_Collection public $floorNames; public $kind; + /** + * @param Google_Service_Directory_BuildingAddress + */ + public function setAddress(Google_Service_Directory_BuildingAddress $address) + { + $this->address = $address; + } + /** + * @return Google_Service_Directory_BuildingAddress + */ + public function getAddress() + { + return $this->address; + } public function setBuildingId($buildingId) { $this->buildingId = $buildingId; diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/BuildingAddress.php b/vendor/google/apiclient-services/src/Google/Service/Directory/BuildingAddress.php new file mode 100644 index 00000000..ae18638c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/BuildingAddress.php @@ -0,0 +1,85 @@ +addressLines = $addressLines; + } + public function getAddressLines() + { + return $this->addressLines; + } + public function setAdministrativeArea($administrativeArea) + { + $this->administrativeArea = $administrativeArea; + } + public function getAdministrativeArea() + { + return $this->administrativeArea; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setLocality($locality) + { + $this->locality = $locality; + } + public function getLocality() + { + return $this->locality; + } + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + public function getPostalCode() + { + return $this->postalCode; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setSublocality($sublocality) + { + $this->sublocality = $sublocality; + } + public function getSublocality() + { + return $this->sublocality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php index 9e105bff..cfab63b8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php @@ -17,16 +17,20 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection { - protected $collection_key = 'recentUsers'; + protected $collection_key = 'systemRamFreeReports'; protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; protected $activeTimeRangesDataType = 'array'; public $annotatedAssetId; public $annotatedLocation; public $annotatedUser; public $bootMode; + protected $cpuStatusReportsType = 'Google_Service_Directory_ChromeOsDeviceCpuStatusReports'; + protected $cpuStatusReportsDataType = 'array'; protected $deviceFilesType = 'Google_Service_Directory_ChromeOsDeviceDeviceFiles'; protected $deviceFilesDataType = 'array'; public $deviceId; + protected $diskVolumeReportsType = 'Google_Service_Directory_ChromeOsDeviceDiskVolumeReports'; + protected $diskVolumeReportsDataType = 'array'; public $etag; public $ethernetMacAddress; public $firmwareVersion; @@ -46,6 +50,9 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection public $serialNumber; public $status; public $supportEndDate; + protected $systemRamFreeReportsType = 'Google_Service_Directory_ChromeOsDeviceSystemRamFreeReports'; + protected $systemRamFreeReportsDataType = 'array'; + public $systemRamTotal; protected $tpmVersionInfoType = 'Google_Service_Directory_ChromeOsDeviceTpmVersionInfo'; protected $tpmVersionInfoDataType = ''; public $willAutoRenew; @@ -96,6 +103,20 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection { return $this->bootMode; } + /** + * @param Google_Service_Directory_ChromeOsDeviceCpuStatusReports + */ + public function setCpuStatusReports($cpuStatusReports) + { + $this->cpuStatusReports = $cpuStatusReports; + } + /** + * @return Google_Service_Directory_ChromeOsDeviceCpuStatusReports + */ + public function getCpuStatusReports() + { + return $this->cpuStatusReports; + } /** * @param Google_Service_Directory_ChromeOsDeviceDeviceFiles */ @@ -118,6 +139,20 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection { return $this->deviceId; } + /** + * @param Google_Service_Directory_ChromeOsDeviceDiskVolumeReports + */ + public function setDiskVolumeReports($diskVolumeReports) + { + $this->diskVolumeReports = $diskVolumeReports; + } + /** + * @return Google_Service_Directory_ChromeOsDeviceDiskVolumeReports + */ + public function getDiskVolumeReports() + { + return $this->diskVolumeReports; + } public function setEtag($etag) { $this->etag = $etag; @@ -268,6 +303,28 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection { return $this->supportEndDate; } + /** + * @param Google_Service_Directory_ChromeOsDeviceSystemRamFreeReports + */ + public function setSystemRamFreeReports($systemRamFreeReports) + { + $this->systemRamFreeReports = $systemRamFreeReports; + } + /** + * @return Google_Service_Directory_ChromeOsDeviceSystemRamFreeReports + */ + public function getSystemRamFreeReports() + { + return $this->systemRamFreeReports; + } + public function setSystemRamTotal($systemRamTotal) + { + $this->systemRamTotal = $systemRamTotal; + } + public function getSystemRamTotal() + { + return $this->systemRamTotal; + } /** * @param Google_Service_Directory_ChromeOsDeviceTpmVersionInfo */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReports.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReports.php new file mode 100644 index 00000000..ea43fee0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReports.php @@ -0,0 +1,56 @@ +cpuTemperatureInfo = $cpuTemperatureInfo; + } + /** + * @return Google_Service_Directory_ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo + */ + public function getCpuTemperatureInfo() + { + return $this->cpuTemperatureInfo; + } + public function setCpuUtilizationPercentageInfo($cpuUtilizationPercentageInfo) + { + $this->cpuUtilizationPercentageInfo = $cpuUtilizationPercentageInfo; + } + public function getCpuUtilizationPercentageInfo() + { + return $this->cpuUtilizationPercentageInfo; + } + public function setReportTime($reportTime) + { + $this->reportTime = $reportTime; + } + public function getReportTime() + { + return $this->reportTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo.php new file mode 100644 index 00000000..0df536da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo.php @@ -0,0 +1,39 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setTemperature($temperature) + { + $this->temperature = $temperature; + } + public function getTemperature() + { + return $this->temperature; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReports.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReports.php new file mode 100644 index 00000000..f3cfac1f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReports.php @@ -0,0 +1,38 @@ +volumeInfo = $volumeInfo; + } + /** + * @return Google_Service_Directory_ChromeOsDeviceDiskVolumeReportsVolumeInfo + */ + public function getVolumeInfo() + { + return $this->volumeInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReportsVolumeInfo.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReportsVolumeInfo.php new file mode 100644 index 00000000..7a13c571 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceDiskVolumeReportsVolumeInfo.php @@ -0,0 +1,48 @@ +storageFree = $storageFree; + } + public function getStorageFree() + { + return $this->storageFree; + } + public function setStorageTotal($storageTotal) + { + $this->storageTotal = $storageTotal; + } + public function getStorageTotal() + { + return $this->storageTotal; + } + public function setVolumeId($volumeId) + { + $this->volumeId = $volumeId; + } + public function getVolumeId() + { + return $this->volumeId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceSystemRamFreeReports.php b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceSystemRamFreeReports.php new file mode 100644 index 00000000..437d88a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceSystemRamFreeReports.php @@ -0,0 +1,40 @@ +reportTime = $reportTime; + } + public function getReportTime() + { + return $this->reportTime; + } + public function setSystemRamFreeInfo($systemRamFreeInfo) + { + $this->systemRamFreeInfo = $systemRamFreeInfo; + } + public function getSystemRamFreeInfo() + { + return $this->systemRamFreeInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Member.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Member.php index 8a923d27..210fc2d9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Member.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Member.php @@ -17,6 +17,10 @@ class Google_Service_Directory_Member extends Google_Model { + protected $internal_gapi_mappings = array( + "deliverySettings" => "delivery_settings", + ); + public $deliverySettings; public $email; public $etag; public $id; @@ -25,6 +29,14 @@ class Google_Service_Directory_Member extends Google_Model public $status; public $type; + public function setDeliverySettings($deliverySettings) + { + $this->deliverySettings = $deliverySettings; + } + public function getDeliverySettings() + { + return $this->deliverySettings; + } public function setEmail($email) { $this->email = $email; diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php index c9b50bfe..a413509b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php @@ -70,7 +70,7 @@ class Google_Service_Directory_Resource_Chromeosdevices extends Google_Service_R * @opt_param string projection Restrict information returned to a set of * selected fields. * @opt_param string query Search string in the format given at - * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333 + * http://support.google.com/chromeos/a/bin/answer.py?answer=1698333 * @opt_param string sortOrder Whether to return results in ascending or * descending order. Only of use when orderBy is also used * @return Google_Service_Directory_ChromeOsDevices diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php index 8b9f840d..a177bde6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php @@ -64,7 +64,8 @@ class Google_Service_Directory_Resource_Groups extends Google_Service_Resource return $this->call('insert', array($params), "Google_Service_Directory_Group"); } /** - * Retrieve all groups in a domain (paginated) (groups.listGroups) + * Retrieve all groups of a domain or of a user given a userKey (paginated) + * (groups.listGroups) * * @param array $optParams Optional parameters. * @@ -75,9 +76,15 @@ class Google_Service_Directory_Resource_Groups extends Google_Service_Resource * from only this domain. To return all groups in a multi-domain fill customer * field instead. * @opt_param int maxResults Maximum number of results to return. Default is 200 + * @opt_param string orderBy Column to use for sorting results * @opt_param string pageToken Token to specify next page in the list - * @opt_param string userKey Email or immutable ID of the user if only those - * groups are to be listed, the given user is a member of. If ID, it should + * @opt_param string query Query string search. Should be of the form "". + * Complete documentation is at https://developers.google.com/admin- + * sdk/directory/v1/guides/search-groups + * @opt_param string sortOrder Whether to return results in ascending or + * descending order. Only of use when orderBy is also used + * @opt_param string userKey Email or immutable Id of the user if only those + * groups are to be listed, the given user is a member of. If Id, it should * match with id of user object * @return Google_Service_Directory_Groups */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php index e06831fe..8e64cea6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php @@ -89,6 +89,8 @@ class Google_Service_Directory_Resource_Members extends Google_Service_Resource * @param string $groupKey Email or immutable ID of the group * @param array $optParams Optional parameters. * + * @opt_param bool includeDerivedMembership Whether to list indirect + * memberships. Default: false. * @opt_param int maxResults Maximum number of results to return. Default is 200 * @opt_param string pageToken Token to specify next page in the list * @opt_param string roles Comma separated role values to filter list results diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php index be31d629..dbcfe3ad 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php @@ -82,7 +82,7 @@ class Google_Service_Directory_Resource_Mobiledevices extends Google_Service_Res * @opt_param string projection Restrict information returned to a set of * selected fields. * @opt_param string query Search string in the format given at - * http://support.google.com/a/bin/answer.py?hl=en=1408863#search + * http://support.google.com/a/bin/answer.py?answer=1408863#search * @opt_param string sortOrder Whether to return results in ascending or * descending order. Only of use when orderBy is also used * @return Google_Service_Directory_MobileDevices diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesBuildings.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesBuildings.php index dab62481..cf56c9e4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesBuildings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesBuildings.php @@ -64,6 +64,9 @@ class Google_Service_Directory_Resource_ResourcesBuildings extends Google_Servic * your account's customer ID. * @param Google_Service_Directory_Building $postBody * @param array $optParams Optional parameters. + * + * @opt_param string coordinatesSource Source from which Building.coordinates + * are derived. * @return Google_Service_Directory_Building */ public function insert($customer, Google_Service_Directory_Building $postBody, $optParams = array()) @@ -100,6 +103,9 @@ class Google_Service_Directory_Resource_ResourcesBuildings extends Google_Servic * @param string $buildingId The ID of the building to update. * @param Google_Service_Directory_Building $postBody * @param array $optParams Optional parameters. + * + * @opt_param string coordinatesSource Source from which Building.coordinates + * are derived. * @return Google_Service_Directory_Building */ public function patch($customer, $buildingId, Google_Service_Directory_Building $postBody, $optParams = array()) @@ -117,6 +123,9 @@ class Google_Service_Directory_Resource_ResourcesBuildings extends Google_Servic * @param string $buildingId The ID of the building to update. * @param Google_Service_Directory_Building $postBody * @param array $optParams Optional parameters. + * + * @opt_param string coordinatesSource Source from which Building.coordinates + * are derived. * @return Google_Service_Directory_Building */ public function update($customer, $buildingId, Google_Service_Directory_Building $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/Schema.php b/vendor/google/apiclient-services/src/Google/Service/Directory/Schema.php index 54135f8d..c051a7a7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/Schema.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/Schema.php @@ -18,6 +18,7 @@ class Google_Service_Directory_Schema extends Google_Collection { protected $collection_key = 'fields'; + public $displayName; public $etag; protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec'; protected $fieldsDataType = 'array'; @@ -25,6 +26,14 @@ class Google_Service_Directory_Schema extends Google_Collection public $schemaId; public $schemaName; + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } public function setEtag($etag) { $this->etag = $etag; diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php b/vendor/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php index 0b7c51c6..f9c8867c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php @@ -17,6 +17,7 @@ class Google_Service_Directory_SchemaFieldSpec extends Google_Model { + public $displayName; public $etag; public $fieldId; public $fieldName; @@ -28,6 +29,14 @@ class Google_Service_Directory_SchemaFieldSpec extends Google_Model protected $numericIndexingSpecDataType = ''; public $readAccessType; + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } public function setEtag($etag) { $this->etag = $etag; diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/User.php b/vendor/google/apiclient-services/src/Google/Service/Directory/User.php index 7d6acfd9..8670643d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/User.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/User.php @@ -21,6 +21,7 @@ class Google_Service_Directory_User extends Google_Collection public $addresses; public $agreedToTerms; public $aliases; + public $archived; public $changePasswordAtNextLogin; public $creationTime; public $customSchemas; @@ -87,6 +88,14 @@ class Google_Service_Directory_User extends Google_Collection { return $this->aliases; } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) { $this->changePasswordAtNextLogin = $changePasswordAtNextLogin; diff --git a/vendor/google/apiclient-services/src/Google/Service/Directory/UserPosixAccount.php b/vendor/google/apiclient-services/src/Google/Service/Directory/UserPosixAccount.php index 659d574b..99e6c498 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Directory/UserPosixAccount.php +++ b/vendor/google/apiclient-services/src/Google/Service/Directory/UserPosixAccount.php @@ -21,6 +21,7 @@ class Google_Service_Directory_UserPosixAccount extends Google_Model public $gecos; public $gid; public $homeDirectory; + public $operatingSystemType; public $primary; public $shell; public $systemId; @@ -59,6 +60,14 @@ class Google_Service_Directory_UserPosixAccount extends Google_Model { return $this->homeDirectory; } + public function setOperatingSystemType($operatingSystemType) + { + $this->operatingSystemType = $operatingSystemType; + } + public function getOperatingSystemType() + { + return $this->operatingSystemType; + } public function setPrimary($primary) { $this->primary = $primary; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns.php b/vendor/google/apiclient-services/src/Google/Service/Dns.php index 2c38ee7e..5295cff6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns.php @@ -60,6 +60,7 @@ class Google_Service_Dns extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'dns/v1/projects/'; + $this->batchPath = 'batch/dns/v1'; $this->version = 'v1'; $this->serviceName = 'dns'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Quota.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Quota.php index ff756d31..fbf51638 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Quota.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Quota.php @@ -18,7 +18,6 @@ class Google_Service_Dns_Quota extends Google_Collection { protected $collection_key = 'whitelistedKeySpecs'; - public $blackHoleHidesSystemZones; public $dnsKeysPerManagedZone; public $kind; public $managedZones; @@ -30,14 +29,6 @@ class Google_Service_Dns_Quota extends Google_Collection protected $whitelistedKeySpecsType = 'Google_Service_Dns_DnsKeySpec'; protected $whitelistedKeySpecsDataType = 'array'; - public function setBlackHoleHidesSystemZones($blackHoleHidesSystemZones) - { - $this->blackHoleHidesSystemZones = $blackHoleHidesSystemZones; - } - public function getBlackHoleHidesSystemZones() - { - return $this->blackHoleHidesSystemZones; - } public function setDnsKeysPerManagedZone($dnsKeysPerManagedZone) { $this->dnsKeysPerManagedZone = $dnsKeysPerManagedZone; diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php index d2f4e0cb..164c302f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php @@ -26,17 +26,14 @@ class Google_Service_Dns_Resource_Changes extends Google_Service_Resource { /** - * Atomically update the ResourceRecordSet collection. (changes.create) + * (changes.create) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param Google_Service_Dns_Change $postBody * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Change */ public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array()) @@ -46,18 +43,14 @@ class Google_Service_Dns_Resource_Changes extends Google_Service_Resource return $this->call('create', array($params), "Google_Service_Dns_Change"); } /** - * Fetch the representation of an existing Change. (changes.get) + * (changes.get) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param string $changeId The identifier of the requested change, from a - * previous ResourceRecordSetsChangeResponse. + * @param string $project + * @param string $managedZone + * @param string $changeId * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Change */ public function get($project, $managedZone, $changeId, $optParams = array()) @@ -67,22 +60,16 @@ class Google_Service_Dns_Resource_Changes extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_Dns_Change"); } /** - * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges) + * (changes.listChanges) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @opt_param string sortBy Sorting criterion. The only supported value is - * change sequence. - * @opt_param string sortOrder Sorting order direction: 'ascending' or - * 'descending'. + * @opt_param int maxResults + * @opt_param string pageToken + * @opt_param string sortBy + * @opt_param string sortOrder * @return Google_Service_Dns_ChangesListResponse */ public function listChanges($project, $managedZone, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/DnsKeys.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/DnsKeys.php index 4351929e..30ba5e31 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/DnsKeys.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/DnsKeys.php @@ -26,20 +26,15 @@ class Google_Service_Dns_Resource_DnsKeys extends Google_Service_Resource { /** - * Fetch the representation of an existing DnsKey. (dnsKeys.get) + * (dnsKeys.get) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. - * @param string $dnsKeyId The identifier of the requested DnsKey. + * @param string $project + * @param string $managedZone + * @param string $dnsKeyId * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. - * @opt_param string digestType An optional comma-separated list of digest types - * to compute and display for key signing keys. If omitted, the recommended - * digest type will be computed and displayed. + * @opt_param string clientOperationId + * @opt_param string digestType * @return Google_Service_Dns_DnsKey */ public function get($project, $managedZone, $dnsKeyId, $optParams = array()) @@ -49,21 +44,15 @@ class Google_Service_Dns_Resource_DnsKeys extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_Dns_DnsKey"); } /** - * Enumerate DnsKeys to a ResourceRecordSet collection. (dnsKeys.listDnsKeys) + * (dnsKeys.listDnsKeys) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param string digestType An optional comma-separated list of digest types - * to compute and display for key signing keys. If omitted, the recommended - * digest type will be computed and displayed. - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. + * @opt_param string digestType + * @opt_param int maxResults + * @opt_param string pageToken * @return Google_Service_Dns_DnsKeysListResponse */ public function listDnsKeys($project, $managedZone, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZoneOperations.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZoneOperations.php index db05d073..5fcc3022 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZoneOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZoneOperations.php @@ -26,18 +26,14 @@ class Google_Service_Dns_Resource_ManagedZoneOperations extends Google_Service_Resource { /** - * Fetch the representation of an existing Operation. * (managedZoneOperations.get) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. - * @param string $operation Identifies the operation addressed by this request. + * @param string $project + * @param string $managedZone + * @param string $operation * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Operation */ public function get($project, $managedZone, $operation, $optParams = array()) @@ -47,21 +43,15 @@ class Google_Service_Dns_Resource_ManagedZoneOperations extends Google_Service_R return $this->call('get', array($params), "Google_Service_Dns_Operation"); } /** - * Enumerate Operations for the given ManagedZone. * (managedZoneOperations.listManagedZoneOperations) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @opt_param string sortBy Sorting criterion. The only supported values are - * START_TIME and ID. + * @opt_param int maxResults + * @opt_param string pageToken + * @opt_param string sortBy * @return Google_Service_Dns_ManagedZoneOperationsListResponse */ public function listManagedZoneOperations($project, $managedZone, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php index 92669de2..3e2da378 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php @@ -26,15 +26,13 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource { /** - * Create a new ManagedZone. (managedZones.create) + * (managedZones.create) * - * @param string $project Identifies the project addressed by this request. + * @param string $project * @param Google_Service_Dns_ManagedZone $postBody * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_ManagedZone */ public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) @@ -44,16 +42,13 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource return $this->call('create', array($params), "Google_Service_Dns_ManagedZone"); } /** - * Delete a previously created ManagedZone. (managedZones.delete) + * (managedZones.delete) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId */ public function delete($project, $managedZone, $optParams = array()) { @@ -62,16 +57,13 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource return $this->call('delete', array($params)); } /** - * Fetch the representation of an existing ManagedZone. (managedZones.get) + * (managedZones.get) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_ManagedZone */ public function get($project, $managedZone, $optParams = array()) @@ -81,19 +73,14 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_Dns_ManagedZone"); } /** - * Enumerate ManagedZones that have been created but not yet deleted. * (managedZones.listManagedZones) * - * @param string $project Identifies the project addressed by this request. + * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string dnsName Restricts the list to return only zones with this - * domain name. - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. + * @opt_param string dnsName + * @opt_param int maxResults + * @opt_param string pageToken * @return Google_Service_Dns_ManagedZonesListResponse */ public function listManagedZones($project, $optParams = array()) @@ -103,18 +90,14 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse"); } /** - * Update an existing ManagedZone. This method supports patch semantics. * (managedZones.patch) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param Google_Service_Dns_ManagedZone $postBody * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Operation */ public function patch($project, $managedZone, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) @@ -124,17 +107,14 @@ class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource return $this->call('patch', array($params), "Google_Service_Dns_Operation"); } /** - * Update an existing ManagedZone. (managedZones.update) + * (managedZones.update) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param Google_Service_Dns_ManagedZone $postBody * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Operation */ public function update($project, $managedZone, Google_Service_Dns_ManagedZone $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php index 08cb559a..d2d06ca5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php @@ -26,14 +26,12 @@ class Google_Service_Dns_Resource_Projects extends Google_Service_Resource { /** - * Fetch the representation of an existing Project. (projects.get) + * (projects.get) * - * @param string $project Identifies the project addressed by this request. + * @param string $project * @param array $optParams Optional parameters. * - * @opt_param string clientOperationId For mutating operation requests only. An - * optional identifier specified by the client. Must be unique for operation - * resources in the Operations collection. + * @opt_param string clientOperationId * @return Google_Service_Dns_Project */ public function get($project, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php index 5bfaf77f..25350bbf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php +++ b/vendor/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php @@ -26,23 +26,16 @@ class Google_Service_Dns_Resource_ResourceRecordSets extends Google_Service_Resource { /** - * Enumerate ResourceRecordSets that have been created but not yet deleted. * (resourceRecordSets.listResourceRecordSets) * - * @param string $project Identifies the project addressed by this request. - * @param string $managedZone Identifies the managed zone addressed by this - * request. Can be the managed zone name or id. + * @param string $project + * @param string $managedZone * @param array $optParams Optional parameters. * - * @opt_param int maxResults Optional. Maximum number of results to be returned. - * If unspecified, the server will decide how many results to return. - * @opt_param string name Restricts the list to return only records with this - * fully qualified domain name. - * @opt_param string pageToken Optional. A tag returned by a previous list - * request that was truncated. Use this parameter to continue a previous list - * request. - * @opt_param string type Restricts the list to return only records of this - * type. If present, the "name" parameter must also be present. + * @opt_param int maxResults + * @opt_param string name + * @opt_param string pageToken + * @opt_param string type * @return Google_Service_Dns_ResourceRecordSetsListResponse */ public function listResourceRecordSets($project, $managedZone, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs.php b/vendor/google/apiclient-services/src/Google/Service/Docs.php new file mode 100644 index 00000000..4c0fcf4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs.php @@ -0,0 +1,104 @@ + + * Reads and writes Google Docs documents.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Docs extends Google_Service +{ + /** View and manage your Google Docs documents. */ + const DOCUMENTS = + "https://www.googleapis.com/auth/documents"; + /** View your Google Docs documents. */ + const DOCUMENTS_READONLY = + "https://www.googleapis.com/auth/documents.readonly"; + /** See, edit, create, and delete all of your Google Drive files. */ + const DRIVE = + "https://www.googleapis.com/auth/drive"; + /** View and manage Google Drive files and folders that you have opened or created with this app. */ + const DRIVE_FILE = + "https://www.googleapis.com/auth/drive.file"; + /** See and download all your Google Drive files. */ + const DRIVE_READONLY = + "https://www.googleapis.com/auth/drive.readonly"; + + public $documents; + + /** + * Constructs the internal representation of the Docs service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://docs.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'docs'; + + $this->documents = new Google_Service_Docs_Resource_Documents( + $this, + $this->serviceName, + 'documents', + array( + 'methods' => array( + 'batchUpdate' => array( + 'path' => 'v1/documents/{documentId}:batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'documentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v1/documents', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => 'v1/documents/{documentId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'documentId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'suggestionsViewMode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/AutoText.php b/vendor/google/apiclient-services/src/Google/Service/Docs/AutoText.php new file mode 100644 index 00000000..095dc0ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/AutoText.php @@ -0,0 +1,81 @@ +suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Background.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Background.php new file mode 100644 index 00000000..6522849d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Background.php @@ -0,0 +1,37 @@ +color = $color; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getColor() + { + return $this->color; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/BackgroundSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/BackgroundSuggestionState.php new file mode 100644 index 00000000..76a0cdfc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/BackgroundSuggestionState.php @@ -0,0 +1,30 @@ +backgroundColorSuggested = $backgroundColorSuggested; + } + public function getBackgroundColorSuggested() + { + return $this->backgroundColorSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentRequest.php new file mode 100644 index 00000000..f3ce8f40 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentRequest.php @@ -0,0 +1,54 @@ +requests = $requests; + } + /** + * @return Google_Service_Docs_Request + */ + public function getRequests() + { + return $this->requests; + } + /** + * @param Google_Service_Docs_WriteControl + */ + public function setWriteControl(Google_Service_Docs_WriteControl $writeControl) + { + $this->writeControl = $writeControl; + } + /** + * @return Google_Service_Docs_WriteControl + */ + public function getWriteControl() + { + return $this->writeControl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentResponse.php b/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentResponse.php new file mode 100644 index 00000000..284a4d09 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/BatchUpdateDocumentResponse.php @@ -0,0 +1,63 @@ +documentId = $documentId; + } + public function getDocumentId() + { + return $this->documentId; + } + /** + * @param Google_Service_Docs_Response + */ + public function setReplies($replies) + { + $this->replies = $replies; + } + /** + * @return Google_Service_Docs_Response + */ + public function getReplies() + { + return $this->replies; + } + /** + * @param Google_Service_Docs_WriteControl + */ + public function setWriteControl(Google_Service_Docs_WriteControl $writeControl) + { + $this->writeControl = $writeControl; + } + /** + * @return Google_Service_Docs_WriteControl + */ + public function getWriteControl() + { + return $this->writeControl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Body.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Body.php new file mode 100644 index 00000000..db1387a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Body.php @@ -0,0 +1,38 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Bullet.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Bullet.php new file mode 100644 index 00000000..63ea6d16 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Bullet.php @@ -0,0 +1,55 @@ +listId = $listId; + } + public function getListId() + { + return $this->listId; + } + public function setNestingLevel($nestingLevel) + { + $this->nestingLevel = $nestingLevel; + } + public function getNestingLevel() + { + return $this->nestingLevel; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/BulletSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/BulletSuggestionState.php new file mode 100644 index 00000000..af357d6c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/BulletSuggestionState.php @@ -0,0 +1,55 @@ +listIdSuggested = $listIdSuggested; + } + public function getListIdSuggested() + { + return $this->listIdSuggested; + } + public function setNestingLevelSuggested($nestingLevelSuggested) + { + $this->nestingLevelSuggested = $nestingLevelSuggested; + } + public function getNestingLevelSuggested() + { + return $this->nestingLevelSuggested; + } + /** + * @param Google_Service_Docs_TextStyleSuggestionState + */ + public function setTextStyleSuggestionState(Google_Service_Docs_TextStyleSuggestionState $textStyleSuggestionState) + { + $this->textStyleSuggestionState = $textStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TextStyleSuggestionState + */ + public function getTextStyleSuggestionState() + { + return $this->textStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Color.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Color.php new file mode 100644 index 00000000..84300125 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Color.php @@ -0,0 +1,37 @@ +rgbColor = $rgbColor; + } + /** + * @return Google_Service_Docs_RgbColor + */ + public function getRgbColor() + { + return $this->rgbColor; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ColumnBreak.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ColumnBreak.php new file mode 100644 index 00000000..31b194be --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ColumnBreak.php @@ -0,0 +1,72 @@ +suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeRequest.php new file mode 100644 index 00000000..82db189a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeRequest.php @@ -0,0 +1,46 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Docs_Range + */ + public function setRange(Google_Service_Docs_Range $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeResponse.php b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeResponse.php new file mode 100644 index 00000000..06d39520 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateNamedRangeResponse.php @@ -0,0 +1,30 @@ +namedRangeId = $namedRangeId; + } + public function getNamedRangeId() + { + return $this->namedRangeId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/CreateParagraphBulletsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateParagraphBulletsRequest.php new file mode 100644 index 00000000..51dce78c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/CreateParagraphBulletsRequest.php @@ -0,0 +1,46 @@ +bulletPreset = $bulletPreset; + } + public function getBulletPreset() + { + return $this->bulletPreset; + } + /** + * @param Google_Service_Docs_Range + */ + public function setRange(Google_Service_Docs_Range $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/CropProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/CropProperties.php new file mode 100644 index 00000000..ac365034 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/CropProperties.php @@ -0,0 +1,66 @@ +angle = $angle; + } + public function getAngle() + { + return $this->angle; + } + public function setOffsetBottom($offsetBottom) + { + $this->offsetBottom = $offsetBottom; + } + public function getOffsetBottom() + { + return $this->offsetBottom; + } + public function setOffsetLeft($offsetLeft) + { + $this->offsetLeft = $offsetLeft; + } + public function getOffsetLeft() + { + return $this->offsetLeft; + } + public function setOffsetRight($offsetRight) + { + $this->offsetRight = $offsetRight; + } + public function getOffsetRight() + { + return $this->offsetRight; + } + public function setOffsetTop($offsetTop) + { + $this->offsetTop = $offsetTop; + } + public function getOffsetTop() + { + return $this->offsetTop; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/CropPropertiesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/CropPropertiesSuggestionState.php new file mode 100644 index 00000000..57572478 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/CropPropertiesSuggestionState.php @@ -0,0 +1,66 @@ +angleSuggested = $angleSuggested; + } + public function getAngleSuggested() + { + return $this->angleSuggested; + } + public function setOffsetBottomSuggested($offsetBottomSuggested) + { + $this->offsetBottomSuggested = $offsetBottomSuggested; + } + public function getOffsetBottomSuggested() + { + return $this->offsetBottomSuggested; + } + public function setOffsetLeftSuggested($offsetLeftSuggested) + { + $this->offsetLeftSuggested = $offsetLeftSuggested; + } + public function getOffsetLeftSuggested() + { + return $this->offsetLeftSuggested; + } + public function setOffsetRightSuggested($offsetRightSuggested) + { + $this->offsetRightSuggested = $offsetRightSuggested; + } + public function getOffsetRightSuggested() + { + return $this->offsetRightSuggested; + } + public function setOffsetTopSuggested($offsetTopSuggested) + { + $this->offsetTopSuggested = $offsetTopSuggested; + } + public function getOffsetTopSuggested() + { + return $this->offsetTopSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteContentRangeRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteContentRangeRequest.php new file mode 100644 index 00000000..2c83ac1d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteContentRangeRequest.php @@ -0,0 +1,37 @@ +range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteNamedRangeRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteNamedRangeRequest.php new file mode 100644 index 00000000..d2788534 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteNamedRangeRequest.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setNamedRangeId($namedRangeId) + { + $this->namedRangeId = $namedRangeId; + } + public function getNamedRangeId() + { + return $this->namedRangeId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteParagraphBulletsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteParagraphBulletsRequest.php new file mode 100644 index 00000000..3b449bd2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteParagraphBulletsRequest.php @@ -0,0 +1,37 @@ +range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeletePositionedObjectRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeletePositionedObjectRequest.php new file mode 100644 index 00000000..21018be4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeletePositionedObjectRequest.php @@ -0,0 +1,30 @@ +objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableColumnRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableColumnRequest.php new file mode 100644 index 00000000..356ae3ef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableColumnRequest.php @@ -0,0 +1,37 @@ +tableCellLocation = $tableCellLocation; + } + /** + * @return Google_Service_Docs_TableCellLocation + */ + public function getTableCellLocation() + { + return $this->tableCellLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableRowRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableRowRequest.php new file mode 100644 index 00000000..84aebcc2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DeleteTableRowRequest.php @@ -0,0 +1,37 @@ +tableCellLocation = $tableCellLocation; + } + /** + * @return Google_Service_Docs_TableCellLocation + */ + public function getTableCellLocation() + { + return $this->tableCellLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Dimension.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Dimension.php new file mode 100644 index 00000000..bc28be6c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Dimension.php @@ -0,0 +1,39 @@ +magnitude = $magnitude; + } + public function getMagnitude() + { + return $this->magnitude; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DocsList.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DocsList.php new file mode 100644 index 00000000..410599bb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DocsList.php @@ -0,0 +1,72 @@ +listProperties = $listProperties; + } + /** + * @return Google_Service_Docs_ListProperties + */ + public function getListProperties() + { + return $this->listProperties; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionId($suggestedInsertionId) + { + $this->suggestedInsertionId = $suggestedInsertionId; + } + public function getSuggestedInsertionId() + { + return $this->suggestedInsertionId; + } + /** + * @param Google_Service_Docs_SuggestedListProperties + */ + public function setSuggestedListPropertiesChanges($suggestedListPropertiesChanges) + { + $this->suggestedListPropertiesChanges = $suggestedListPropertiesChanges; + } + /** + * @return Google_Service_Docs_SuggestedListProperties + */ + public function getSuggestedListPropertiesChanges() + { + return $this->suggestedListPropertiesChanges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Document.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Document.php new file mode 100644 index 00000000..4fb11391 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Document.php @@ -0,0 +1,249 @@ +body = $body; + } + /** + * @return Google_Service_Docs_Body + */ + public function getBody() + { + return $this->body; + } + public function setDocumentId($documentId) + { + $this->documentId = $documentId; + } + public function getDocumentId() + { + return $this->documentId; + } + /** + * @param Google_Service_Docs_DocumentStyle + */ + public function setDocumentStyle(Google_Service_Docs_DocumentStyle $documentStyle) + { + $this->documentStyle = $documentStyle; + } + /** + * @return Google_Service_Docs_DocumentStyle + */ + public function getDocumentStyle() + { + return $this->documentStyle; + } + /** + * @param Google_Service_Docs_Footer + */ + public function setFooters($footers) + { + $this->footers = $footers; + } + /** + * @return Google_Service_Docs_Footer + */ + public function getFooters() + { + return $this->footers; + } + /** + * @param Google_Service_Docs_Footnote + */ + public function setFootnotes($footnotes) + { + $this->footnotes = $footnotes; + } + /** + * @return Google_Service_Docs_Footnote + */ + public function getFootnotes() + { + return $this->footnotes; + } + /** + * @param Google_Service_Docs_Header + */ + public function setHeaders($headers) + { + $this->headers = $headers; + } + /** + * @return Google_Service_Docs_Header + */ + public function getHeaders() + { + return $this->headers; + } + /** + * @param Google_Service_Docs_InlineObject + */ + public function setInlineObjects($inlineObjects) + { + $this->inlineObjects = $inlineObjects; + } + /** + * @return Google_Service_Docs_InlineObject + */ + public function getInlineObjects() + { + return $this->inlineObjects; + } + /** + * @param Google_Service_Docs_DocsList + */ + public function setLists($lists) + { + $this->lists = $lists; + } + /** + * @return Google_Service_Docs_DocsList + */ + public function getLists() + { + return $this->lists; + } + /** + * @param Google_Service_Docs_NamedRanges + */ + public function setNamedRanges($namedRanges) + { + $this->namedRanges = $namedRanges; + } + /** + * @return Google_Service_Docs_NamedRanges + */ + public function getNamedRanges() + { + return $this->namedRanges; + } + /** + * @param Google_Service_Docs_NamedStyles + */ + public function setNamedStyles(Google_Service_Docs_NamedStyles $namedStyles) + { + $this->namedStyles = $namedStyles; + } + /** + * @return Google_Service_Docs_NamedStyles + */ + public function getNamedStyles() + { + return $this->namedStyles; + } + /** + * @param Google_Service_Docs_PositionedObject + */ + public function setPositionedObjects($positionedObjects) + { + $this->positionedObjects = $positionedObjects; + } + /** + * @return Google_Service_Docs_PositionedObject + */ + public function getPositionedObjects() + { + return $this->positionedObjects; + } + public function setRevisionId($revisionId) + { + $this->revisionId = $revisionId; + } + public function getRevisionId() + { + return $this->revisionId; + } + /** + * @param Google_Service_Docs_SuggestedDocumentStyle + */ + public function setSuggestedDocumentStyleChanges($suggestedDocumentStyleChanges) + { + $this->suggestedDocumentStyleChanges = $suggestedDocumentStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedDocumentStyle + */ + public function getSuggestedDocumentStyleChanges() + { + return $this->suggestedDocumentStyleChanges; + } + /** + * @param Google_Service_Docs_SuggestedNamedStyles + */ + public function setSuggestedNamedStylesChanges($suggestedNamedStylesChanges) + { + $this->suggestedNamedStylesChanges = $suggestedNamedStylesChanges; + } + /** + * @return Google_Service_Docs_SuggestedNamedStyles + */ + public function getSuggestedNamedStylesChanges() + { + return $this->suggestedNamedStylesChanges; + } + public function setSuggestionsViewMode($suggestionsViewMode) + { + $this->suggestionsViewMode = $suggestionsViewMode; + } + public function getSuggestionsViewMode() + { + return $this->suggestionsViewMode; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyle.php new file mode 100644 index 00000000..bd7315c8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyle.php @@ -0,0 +1,198 @@ +background = $background; + } + /** + * @return Google_Service_Docs_Background + */ + public function getBackground() + { + return $this->background; + } + public function setDefaultFooterId($defaultFooterId) + { + $this->defaultFooterId = $defaultFooterId; + } + public function getDefaultFooterId() + { + return $this->defaultFooterId; + } + public function setDefaultHeaderId($defaultHeaderId) + { + $this->defaultHeaderId = $defaultHeaderId; + } + public function getDefaultHeaderId() + { + return $this->defaultHeaderId; + } + public function setEvenPageFooterId($evenPageFooterId) + { + $this->evenPageFooterId = $evenPageFooterId; + } + public function getEvenPageFooterId() + { + return $this->evenPageFooterId; + } + public function setEvenPageHeaderId($evenPageHeaderId) + { + $this->evenPageHeaderId = $evenPageHeaderId; + } + public function getEvenPageHeaderId() + { + return $this->evenPageHeaderId; + } + public function setFirstPageFooterId($firstPageFooterId) + { + $this->firstPageFooterId = $firstPageFooterId; + } + public function getFirstPageFooterId() + { + return $this->firstPageFooterId; + } + public function setFirstPageHeaderId($firstPageHeaderId) + { + $this->firstPageHeaderId = $firstPageHeaderId; + } + public function getFirstPageHeaderId() + { + return $this->firstPageHeaderId; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginBottom(Google_Service_Docs_Dimension $marginBottom) + { + $this->marginBottom = $marginBottom; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginBottom() + { + return $this->marginBottom; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginLeft(Google_Service_Docs_Dimension $marginLeft) + { + $this->marginLeft = $marginLeft; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginLeft() + { + return $this->marginLeft; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginRight(Google_Service_Docs_Dimension $marginRight) + { + $this->marginRight = $marginRight; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginRight() + { + return $this->marginRight; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginTop(Google_Service_Docs_Dimension $marginTop) + { + $this->marginTop = $marginTop; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginTop() + { + return $this->marginTop; + } + public function setPageNumberStart($pageNumberStart) + { + $this->pageNumberStart = $pageNumberStart; + } + public function getPageNumberStart() + { + return $this->pageNumberStart; + } + /** + * @param Google_Service_Docs_Size + */ + public function setPageSize(Google_Service_Docs_Size $pageSize) + { + $this->pageSize = $pageSize; + } + /** + * @return Google_Service_Docs_Size + */ + public function getPageSize() + { + return $this->pageSize; + } + public function setUseEvenPageHeaderFooter($useEvenPageHeaderFooter) + { + $this->useEvenPageHeaderFooter = $useEvenPageHeaderFooter; + } + public function getUseEvenPageHeaderFooter() + { + return $this->useEvenPageHeaderFooter; + } + public function setUseFirstPageHeaderFooter($useFirstPageHeaderFooter) + { + $this->useFirstPageHeaderFooter = $useFirstPageHeaderFooter; + } + public function getUseFirstPageHeaderFooter() + { + return $this->useFirstPageHeaderFooter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyleSuggestionState.php new file mode 100644 index 00000000..d71ab35b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/DocumentStyleSuggestionState.php @@ -0,0 +1,170 @@ +backgroundSuggestionState = $backgroundSuggestionState; + } + /** + * @return Google_Service_Docs_BackgroundSuggestionState + */ + public function getBackgroundSuggestionState() + { + return $this->backgroundSuggestionState; + } + public function setDefaultFooterIdSuggested($defaultFooterIdSuggested) + { + $this->defaultFooterIdSuggested = $defaultFooterIdSuggested; + } + public function getDefaultFooterIdSuggested() + { + return $this->defaultFooterIdSuggested; + } + public function setDefaultHeaderIdSuggested($defaultHeaderIdSuggested) + { + $this->defaultHeaderIdSuggested = $defaultHeaderIdSuggested; + } + public function getDefaultHeaderIdSuggested() + { + return $this->defaultHeaderIdSuggested; + } + public function setEvenPageFooterIdSuggested($evenPageFooterIdSuggested) + { + $this->evenPageFooterIdSuggested = $evenPageFooterIdSuggested; + } + public function getEvenPageFooterIdSuggested() + { + return $this->evenPageFooterIdSuggested; + } + public function setEvenPageHeaderIdSuggested($evenPageHeaderIdSuggested) + { + $this->evenPageHeaderIdSuggested = $evenPageHeaderIdSuggested; + } + public function getEvenPageHeaderIdSuggested() + { + return $this->evenPageHeaderIdSuggested; + } + public function setFirstPageFooterIdSuggested($firstPageFooterIdSuggested) + { + $this->firstPageFooterIdSuggested = $firstPageFooterIdSuggested; + } + public function getFirstPageFooterIdSuggested() + { + return $this->firstPageFooterIdSuggested; + } + public function setFirstPageHeaderIdSuggested($firstPageHeaderIdSuggested) + { + $this->firstPageHeaderIdSuggested = $firstPageHeaderIdSuggested; + } + public function getFirstPageHeaderIdSuggested() + { + return $this->firstPageHeaderIdSuggested; + } + public function setMarginBottomSuggested($marginBottomSuggested) + { + $this->marginBottomSuggested = $marginBottomSuggested; + } + public function getMarginBottomSuggested() + { + return $this->marginBottomSuggested; + } + public function setMarginLeftSuggested($marginLeftSuggested) + { + $this->marginLeftSuggested = $marginLeftSuggested; + } + public function getMarginLeftSuggested() + { + return $this->marginLeftSuggested; + } + public function setMarginRightSuggested($marginRightSuggested) + { + $this->marginRightSuggested = $marginRightSuggested; + } + public function getMarginRightSuggested() + { + return $this->marginRightSuggested; + } + public function setMarginTopSuggested($marginTopSuggested) + { + $this->marginTopSuggested = $marginTopSuggested; + } + public function getMarginTopSuggested() + { + return $this->marginTopSuggested; + } + public function setPageNumberStartSuggested($pageNumberStartSuggested) + { + $this->pageNumberStartSuggested = $pageNumberStartSuggested; + } + public function getPageNumberStartSuggested() + { + return $this->pageNumberStartSuggested; + } + /** + * @param Google_Service_Docs_SizeSuggestionState + */ + public function setPageSizeSuggestionState(Google_Service_Docs_SizeSuggestionState $pageSizeSuggestionState) + { + $this->pageSizeSuggestionState = $pageSizeSuggestionState; + } + /** + * @return Google_Service_Docs_SizeSuggestionState + */ + public function getPageSizeSuggestionState() + { + return $this->pageSizeSuggestionState; + } + public function setUseEvenPageHeaderFooterSuggested($useEvenPageHeaderFooterSuggested) + { + $this->useEvenPageHeaderFooterSuggested = $useEvenPageHeaderFooterSuggested; + } + public function getUseEvenPageHeaderFooterSuggested() + { + return $this->useEvenPageHeaderFooterSuggested; + } + public function setUseFirstPageHeaderFooterSuggested($useFirstPageHeaderFooterSuggested) + { + $this->useFirstPageHeaderFooterSuggested = $useFirstPageHeaderFooterSuggested; + } + public function getUseFirstPageHeaderFooterSuggested() + { + return $this->useFirstPageHeaderFooterSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedDrawingProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedDrawingProperties.php new file mode 100644 index 00000000..2d3fd8d9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedDrawingProperties.php @@ -0,0 +1,20 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_Docs_EmbeddedDrawingProperties + */ + public function setEmbeddedDrawingProperties(Google_Service_Docs_EmbeddedDrawingProperties $embeddedDrawingProperties) + { + $this->embeddedDrawingProperties = $embeddedDrawingProperties; + } + /** + * @return Google_Service_Docs_EmbeddedDrawingProperties + */ + public function getEmbeddedDrawingProperties() + { + return $this->embeddedDrawingProperties; + } + /** + * @param Google_Service_Docs_EmbeddedObjectBorder + */ + public function setEmbeddedObjectBorder(Google_Service_Docs_EmbeddedObjectBorder $embeddedObjectBorder) + { + $this->embeddedObjectBorder = $embeddedObjectBorder; + } + /** + * @return Google_Service_Docs_EmbeddedObjectBorder + */ + public function getEmbeddedObjectBorder() + { + return $this->embeddedObjectBorder; + } + /** + * @param Google_Service_Docs_ImageProperties + */ + public function setImageProperties(Google_Service_Docs_ImageProperties $imageProperties) + { + $this->imageProperties = $imageProperties; + } + /** + * @return Google_Service_Docs_ImageProperties + */ + public function getImageProperties() + { + return $this->imageProperties; + } + /** + * @param Google_Service_Docs_LinkedContentReference + */ + public function setLinkedContentReference(Google_Service_Docs_LinkedContentReference $linkedContentReference) + { + $this->linkedContentReference = $linkedContentReference; + } + /** + * @return Google_Service_Docs_LinkedContentReference + */ + public function getLinkedContentReference() + { + return $this->linkedContentReference; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginBottom(Google_Service_Docs_Dimension $marginBottom) + { + $this->marginBottom = $marginBottom; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginBottom() + { + return $this->marginBottom; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginLeft(Google_Service_Docs_Dimension $marginLeft) + { + $this->marginLeft = $marginLeft; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginLeft() + { + return $this->marginLeft; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginRight(Google_Service_Docs_Dimension $marginRight) + { + $this->marginRight = $marginRight; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginRight() + { + return $this->marginRight; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setMarginTop(Google_Service_Docs_Dimension $marginTop) + { + $this->marginTop = $marginTop; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMarginTop() + { + return $this->marginTop; + } + /** + * @param Google_Service_Docs_Size + */ + public function setSize(Google_Service_Docs_Size $size) + { + $this->size = $size; + } + /** + * @return Google_Service_Docs_Size + */ + public function getSize() + { + return $this->size; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorder.php b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorder.php new file mode 100644 index 00000000..cc2e7d09 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorder.php @@ -0,0 +1,71 @@ +color = $color; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getColor() + { + return $this->color; + } + public function setDashStyle($dashStyle) + { + $this->dashStyle = $dashStyle; + } + public function getDashStyle() + { + return $this->dashStyle; + } + public function setPropertyState($propertyState) + { + $this->propertyState = $propertyState; + } + public function getPropertyState() + { + return $this->propertyState; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setWidth(Google_Service_Docs_Dimension $width) + { + $this->width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorderSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorderSuggestionState.php new file mode 100644 index 00000000..07d024a3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectBorderSuggestionState.php @@ -0,0 +1,57 @@ +colorSuggested = $colorSuggested; + } + public function getColorSuggested() + { + return $this->colorSuggested; + } + public function setDashStyleSuggested($dashStyleSuggested) + { + $this->dashStyleSuggested = $dashStyleSuggested; + } + public function getDashStyleSuggested() + { + return $this->dashStyleSuggested; + } + public function setPropertyStateSuggested($propertyStateSuggested) + { + $this->propertyStateSuggested = $propertyStateSuggested; + } + public function getPropertyStateSuggested() + { + return $this->propertyStateSuggested; + } + public function setWidthSuggested($widthSuggested) + { + $this->widthSuggested = $widthSuggested; + } + public function getWidthSuggested() + { + return $this->widthSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectSuggestionState.php new file mode 100644 index 00000000..9c483474 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/EmbeddedObjectSuggestionState.php @@ -0,0 +1,155 @@ +descriptionSuggested = $descriptionSuggested; + } + public function getDescriptionSuggested() + { + return $this->descriptionSuggested; + } + /** + * @param Google_Service_Docs_EmbeddedDrawingPropertiesSuggestionState + */ + public function setEmbeddedDrawingPropertiesSuggestionState(Google_Service_Docs_EmbeddedDrawingPropertiesSuggestionState $embeddedDrawingPropertiesSuggestionState) + { + $this->embeddedDrawingPropertiesSuggestionState = $embeddedDrawingPropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_EmbeddedDrawingPropertiesSuggestionState + */ + public function getEmbeddedDrawingPropertiesSuggestionState() + { + return $this->embeddedDrawingPropertiesSuggestionState; + } + /** + * @param Google_Service_Docs_EmbeddedObjectBorderSuggestionState + */ + public function setEmbeddedObjectBorderSuggestionState(Google_Service_Docs_EmbeddedObjectBorderSuggestionState $embeddedObjectBorderSuggestionState) + { + $this->embeddedObjectBorderSuggestionState = $embeddedObjectBorderSuggestionState; + } + /** + * @return Google_Service_Docs_EmbeddedObjectBorderSuggestionState + */ + public function getEmbeddedObjectBorderSuggestionState() + { + return $this->embeddedObjectBorderSuggestionState; + } + /** + * @param Google_Service_Docs_ImagePropertiesSuggestionState + */ + public function setImagePropertiesSuggestionState(Google_Service_Docs_ImagePropertiesSuggestionState $imagePropertiesSuggestionState) + { + $this->imagePropertiesSuggestionState = $imagePropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_ImagePropertiesSuggestionState + */ + public function getImagePropertiesSuggestionState() + { + return $this->imagePropertiesSuggestionState; + } + /** + * @param Google_Service_Docs_LinkedContentReferenceSuggestionState + */ + public function setLinkedContentReferenceSuggestionState(Google_Service_Docs_LinkedContentReferenceSuggestionState $linkedContentReferenceSuggestionState) + { + $this->linkedContentReferenceSuggestionState = $linkedContentReferenceSuggestionState; + } + /** + * @return Google_Service_Docs_LinkedContentReferenceSuggestionState + */ + public function getLinkedContentReferenceSuggestionState() + { + return $this->linkedContentReferenceSuggestionState; + } + public function setMarginBottomSuggested($marginBottomSuggested) + { + $this->marginBottomSuggested = $marginBottomSuggested; + } + public function getMarginBottomSuggested() + { + return $this->marginBottomSuggested; + } + public function setMarginLeftSuggested($marginLeftSuggested) + { + $this->marginLeftSuggested = $marginLeftSuggested; + } + public function getMarginLeftSuggested() + { + return $this->marginLeftSuggested; + } + public function setMarginRightSuggested($marginRightSuggested) + { + $this->marginRightSuggested = $marginRightSuggested; + } + public function getMarginRightSuggested() + { + return $this->marginRightSuggested; + } + public function setMarginTopSuggested($marginTopSuggested) + { + $this->marginTopSuggested = $marginTopSuggested; + } + public function getMarginTopSuggested() + { + return $this->marginTopSuggested; + } + /** + * @param Google_Service_Docs_SizeSuggestionState + */ + public function setSizeSuggestionState(Google_Service_Docs_SizeSuggestionState $sizeSuggestionState) + { + $this->sizeSuggestionState = $sizeSuggestionState; + } + /** + * @return Google_Service_Docs_SizeSuggestionState + */ + public function getSizeSuggestionState() + { + return $this->sizeSuggestionState; + } + public function setTitleSuggested($titleSuggested) + { + $this->titleSuggested = $titleSuggested; + } + public function getTitleSuggested() + { + return $this->titleSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/EndOfSegmentLocation.php b/vendor/google/apiclient-services/src/Google/Service/Docs/EndOfSegmentLocation.php new file mode 100644 index 00000000..2ce52b6e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/EndOfSegmentLocation.php @@ -0,0 +1,30 @@ +segmentId = $segmentId; + } + public function getSegmentId() + { + return $this->segmentId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Equation.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Equation.php new file mode 100644 index 00000000..b68a04c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Equation.php @@ -0,0 +1,40 @@ +suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Footer.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Footer.php new file mode 100644 index 00000000..1e568b84 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Footer.php @@ -0,0 +1,47 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } + public function setFooterId($footerId) + { + $this->footerId = $footerId; + } + public function getFooterId() + { + return $this->footerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Footnote.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Footnote.php new file mode 100644 index 00000000..2e1d5d3d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Footnote.php @@ -0,0 +1,47 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } + public function setFootnoteId($footnoteId) + { + $this->footnoteId = $footnoteId; + } + public function getFootnoteId() + { + return $this->footnoteId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/FootnoteReference.php b/vendor/google/apiclient-services/src/Google/Service/Docs/FootnoteReference.php new file mode 100644 index 00000000..5419e0bf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/FootnoteReference.php @@ -0,0 +1,90 @@ +footnoteId = $footnoteId; + } + public function getFootnoteId() + { + return $this->footnoteId; + } + public function setFootnoteNumber($footnoteNumber) + { + $this->footnoteNumber = $footnoteNumber; + } + public function getFootnoteNumber() + { + return $this->footnoteNumber; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Header.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Header.php new file mode 100644 index 00000000..158b7416 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Header.php @@ -0,0 +1,47 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } + public function setHeaderId($headerId) + { + $this->headerId = $headerId; + } + public function getHeaderId() + { + return $this->headerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/HorizontalRule.php b/vendor/google/apiclient-services/src/Google/Service/Docs/HorizontalRule.php new file mode 100644 index 00000000..95b346e7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/HorizontalRule.php @@ -0,0 +1,72 @@ +suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ImageProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ImageProperties.php new file mode 100644 index 00000000..10235699 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ImageProperties.php @@ -0,0 +1,91 @@ +angle = $angle; + } + public function getAngle() + { + return $this->angle; + } + public function setBrightness($brightness) + { + $this->brightness = $brightness; + } + public function getBrightness() + { + return $this->brightness; + } + public function setContentUri($contentUri) + { + $this->contentUri = $contentUri; + } + public function getContentUri() + { + return $this->contentUri; + } + public function setContrast($contrast) + { + $this->contrast = $contrast; + } + public function getContrast() + { + return $this->contrast; + } + /** + * @param Google_Service_Docs_CropProperties + */ + public function setCropProperties(Google_Service_Docs_CropProperties $cropProperties) + { + $this->cropProperties = $cropProperties; + } + /** + * @return Google_Service_Docs_CropProperties + */ + public function getCropProperties() + { + return $this->cropProperties; + } + public function setSourceUri($sourceUri) + { + $this->sourceUri = $sourceUri; + } + public function getSourceUri() + { + return $this->sourceUri; + } + public function setTransparency($transparency) + { + $this->transparency = $transparency; + } + public function getTransparency() + { + return $this->transparency; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ImagePropertiesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ImagePropertiesSuggestionState.php new file mode 100644 index 00000000..843e70ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ImagePropertiesSuggestionState.php @@ -0,0 +1,91 @@ +angleSuggested = $angleSuggested; + } + public function getAngleSuggested() + { + return $this->angleSuggested; + } + public function setBrightnessSuggested($brightnessSuggested) + { + $this->brightnessSuggested = $brightnessSuggested; + } + public function getBrightnessSuggested() + { + return $this->brightnessSuggested; + } + public function setContentUriSuggested($contentUriSuggested) + { + $this->contentUriSuggested = $contentUriSuggested; + } + public function getContentUriSuggested() + { + return $this->contentUriSuggested; + } + public function setContrastSuggested($contrastSuggested) + { + $this->contrastSuggested = $contrastSuggested; + } + public function getContrastSuggested() + { + return $this->contrastSuggested; + } + /** + * @param Google_Service_Docs_CropPropertiesSuggestionState + */ + public function setCropPropertiesSuggestionState(Google_Service_Docs_CropPropertiesSuggestionState $cropPropertiesSuggestionState) + { + $this->cropPropertiesSuggestionState = $cropPropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_CropPropertiesSuggestionState + */ + public function getCropPropertiesSuggestionState() + { + return $this->cropPropertiesSuggestionState; + } + public function setSourceUriSuggested($sourceUriSuggested) + { + $this->sourceUriSuggested = $sourceUriSuggested; + } + public function getSourceUriSuggested() + { + return $this->sourceUriSuggested; + } + public function setTransparencySuggested($transparencySuggested) + { + $this->transparencySuggested = $transparencySuggested; + } + public function getTransparencySuggested() + { + return $this->transparencySuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObject.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObject.php new file mode 100644 index 00000000..d6985e6a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObject.php @@ -0,0 +1,81 @@ +inlineObjectProperties = $inlineObjectProperties; + } + /** + * @return Google_Service_Docs_InlineObjectProperties + */ + public function getInlineObjectProperties() + { + return $this->inlineObjectProperties; + } + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + /** + * @param Google_Service_Docs_SuggestedInlineObjectProperties + */ + public function setSuggestedInlineObjectPropertiesChanges($suggestedInlineObjectPropertiesChanges) + { + $this->suggestedInlineObjectPropertiesChanges = $suggestedInlineObjectPropertiesChanges; + } + /** + * @return Google_Service_Docs_SuggestedInlineObjectProperties + */ + public function getSuggestedInlineObjectPropertiesChanges() + { + return $this->suggestedInlineObjectPropertiesChanges; + } + public function setSuggestedInsertionId($suggestedInsertionId) + { + $this->suggestedInsertionId = $suggestedInsertionId; + } + public function getSuggestedInsertionId() + { + return $this->suggestedInsertionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectElement.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectElement.php new file mode 100644 index 00000000..dc97b437 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectElement.php @@ -0,0 +1,81 @@ +inlineObjectId = $inlineObjectId; + } + public function getInlineObjectId() + { + return $this->inlineObjectId; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectProperties.php new file mode 100644 index 00000000..7d586093 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectProperties.php @@ -0,0 +1,37 @@ +embeddedObject = $embeddedObject; + } + /** + * @return Google_Service_Docs_EmbeddedObject + */ + public function getEmbeddedObject() + { + return $this->embeddedObject; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectPropertiesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectPropertiesSuggestionState.php new file mode 100644 index 00000000..858cdef8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InlineObjectPropertiesSuggestionState.php @@ -0,0 +1,37 @@ +embeddedObjectSuggestionState = $embeddedObjectSuggestionState; + } + /** + * @return Google_Service_Docs_EmbeddedObjectSuggestionState + */ + public function getEmbeddedObjectSuggestionState() + { + return $this->embeddedObjectSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageRequest.php new file mode 100644 index 00000000..8467e65b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageRequest.php @@ -0,0 +1,78 @@ +endOfSegmentLocation = $endOfSegmentLocation; + } + /** + * @return Google_Service_Docs_EndOfSegmentLocation + */ + public function getEndOfSegmentLocation() + { + return $this->endOfSegmentLocation; + } + /** + * @param Google_Service_Docs_Location + */ + public function setLocation(Google_Service_Docs_Location $location) + { + $this->location = $location; + } + /** + * @return Google_Service_Docs_Location + */ + public function getLocation() + { + return $this->location; + } + /** + * @param Google_Service_Docs_Size + */ + public function setObjectSize(Google_Service_Docs_Size $objectSize) + { + $this->objectSize = $objectSize; + } + /** + * @return Google_Service_Docs_Size + */ + public function getObjectSize() + { + return $this->objectSize; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageResponse.php new file mode 100644 index 00000000..3c150607 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineImageResponse.php @@ -0,0 +1,30 @@ +objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineSheetsChartResponse.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineSheetsChartResponse.php new file mode 100644 index 00000000..a551ae68 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertInlineSheetsChartResponse.php @@ -0,0 +1,30 @@ +objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTableRowRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTableRowRequest.php new file mode 100644 index 00000000..57c6414c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTableRowRequest.php @@ -0,0 +1,46 @@ +insertBelow = $insertBelow; + } + public function getInsertBelow() + { + return $this->insertBelow; + } + /** + * @param Google_Service_Docs_TableCellLocation + */ + public function setTableCellLocation(Google_Service_Docs_TableCellLocation $tableCellLocation) + { + $this->tableCellLocation = $tableCellLocation; + } + /** + * @return Google_Service_Docs_TableCellLocation + */ + public function getTableCellLocation() + { + return $this->tableCellLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTextRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTextRequest.php new file mode 100644 index 00000000..cf08c9d6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/InsertTextRequest.php @@ -0,0 +1,62 @@ +endOfSegmentLocation = $endOfSegmentLocation; + } + /** + * @return Google_Service_Docs_EndOfSegmentLocation + */ + public function getEndOfSegmentLocation() + { + return $this->endOfSegmentLocation; + } + /** + * @param Google_Service_Docs_Location + */ + public function setLocation(Google_Service_Docs_Location $location) + { + $this->location = $location; + } + /** + * @return Google_Service_Docs_Location + */ + public function getLocation() + { + return $this->location; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Link.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Link.php new file mode 100644 index 00000000..9ce3e626 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Link.php @@ -0,0 +1,48 @@ +bookmarkId = $bookmarkId; + } + public function getBookmarkId() + { + return $this->bookmarkId; + } + public function setHeadingId($headingId) + { + $this->headingId = $headingId; + } + public function getHeadingId() + { + return $this->headingId; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReference.php b/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReference.php new file mode 100644 index 00000000..7ae1a706 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReference.php @@ -0,0 +1,37 @@ +sheetsChartReference = $sheetsChartReference; + } + /** + * @return Google_Service_Docs_SheetsChartReference + */ + public function getSheetsChartReference() + { + return $this->sheetsChartReference; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReferenceSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReferenceSuggestionState.php new file mode 100644 index 00000000..7f697168 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/LinkedContentReferenceSuggestionState.php @@ -0,0 +1,37 @@ +sheetsChartReferenceSuggestionState = $sheetsChartReferenceSuggestionState; + } + /** + * @return Google_Service_Docs_SheetsChartReferenceSuggestionState + */ + public function getSheetsChartReferenceSuggestionState() + { + return $this->sheetsChartReferenceSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ListProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ListProperties.php new file mode 100644 index 00000000..e472357d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ListProperties.php @@ -0,0 +1,38 @@ +nestingLevels = $nestingLevels; + } + /** + * @return Google_Service_Docs_NestingLevel + */ + public function getNestingLevels() + { + return $this->nestingLevels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ListPropertiesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ListPropertiesSuggestionState.php new file mode 100644 index 00000000..3b10942c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ListPropertiesSuggestionState.php @@ -0,0 +1,38 @@ +nestingLevelsSuggestionStates = $nestingLevelsSuggestionStates; + } + /** + * @return Google_Service_Docs_NestingLevelSuggestionState + */ + public function getNestingLevelsSuggestionStates() + { + return $this->nestingLevelsSuggestionStates; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Location.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Location.php new file mode 100644 index 00000000..6da9c5b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Location.php @@ -0,0 +1,39 @@ +index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setSegmentId($segmentId) + { + $this->segmentId = $segmentId; + } + public function getSegmentId() + { + return $this->segmentId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRange.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRange.php new file mode 100644 index 00000000..86efafcb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRange.php @@ -0,0 +1,56 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setNamedRangeId($namedRangeId) + { + $this->namedRangeId = $namedRangeId; + } + public function getNamedRangeId() + { + return $this->namedRangeId; + } + /** + * @param Google_Service_Docs_Range + */ + public function setRanges($ranges) + { + $this->ranges = $ranges; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRanges() + { + return $this->ranges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRanges.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRanges.php new file mode 100644 index 00000000..c91849db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedRanges.php @@ -0,0 +1,47 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Docs_NamedRange + */ + public function setNamedRanges($namedRanges) + { + $this->namedRanges = $namedRanges; + } + /** + * @return Google_Service_Docs_NamedRange + */ + public function getNamedRanges() + { + return $this->namedRanges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyle.php new file mode 100644 index 00000000..a40e92b1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyle.php @@ -0,0 +1,62 @@ +namedStyleType = $namedStyleType; + } + public function getNamedStyleType() + { + return $this->namedStyleType; + } + /** + * @param Google_Service_Docs_ParagraphStyle + */ + public function setParagraphStyle(Google_Service_Docs_ParagraphStyle $paragraphStyle) + { + $this->paragraphStyle = $paragraphStyle; + } + /** + * @return Google_Service_Docs_ParagraphStyle + */ + public function getParagraphStyle() + { + return $this->paragraphStyle; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyleSuggestionState.php new file mode 100644 index 00000000..834ebf27 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyleSuggestionState.php @@ -0,0 +1,62 @@ +namedStyleType = $namedStyleType; + } + public function getNamedStyleType() + { + return $this->namedStyleType; + } + /** + * @param Google_Service_Docs_ParagraphStyleSuggestionState + */ + public function setParagraphStyleSuggestionState(Google_Service_Docs_ParagraphStyleSuggestionState $paragraphStyleSuggestionState) + { + $this->paragraphStyleSuggestionState = $paragraphStyleSuggestionState; + } + /** + * @return Google_Service_Docs_ParagraphStyleSuggestionState + */ + public function getParagraphStyleSuggestionState() + { + return $this->paragraphStyleSuggestionState; + } + /** + * @param Google_Service_Docs_TextStyleSuggestionState + */ + public function setTextStyleSuggestionState(Google_Service_Docs_TextStyleSuggestionState $textStyleSuggestionState) + { + $this->textStyleSuggestionState = $textStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TextStyleSuggestionState + */ + public function getTextStyleSuggestionState() + { + return $this->textStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyles.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyles.php new file mode 100644 index 00000000..2711753e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStyles.php @@ -0,0 +1,38 @@ +styles = $styles; + } + /** + * @return Google_Service_Docs_NamedStyle + */ + public function getStyles() + { + return $this->styles; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStylesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStylesSuggestionState.php new file mode 100644 index 00000000..3788a207 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NamedStylesSuggestionState.php @@ -0,0 +1,38 @@ +stylesSuggestionStates = $stylesSuggestionStates; + } + /** + * @return Google_Service_Docs_NamedStyleSuggestionState + */ + public function getStylesSuggestionStates() + { + return $this->stylesSuggestionStates; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevel.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevel.php new file mode 100644 index 00000000..11a9b4d7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevel.php @@ -0,0 +1,114 @@ +bulletAlignment = $bulletAlignment; + } + public function getBulletAlignment() + { + return $this->bulletAlignment; + } + public function setGlyphFormat($glyphFormat) + { + $this->glyphFormat = $glyphFormat; + } + public function getGlyphFormat() + { + return $this->glyphFormat; + } + public function setGlyphSymbol($glyphSymbol) + { + $this->glyphSymbol = $glyphSymbol; + } + public function getGlyphSymbol() + { + return $this->glyphSymbol; + } + public function setGlyphType($glyphType) + { + $this->glyphType = $glyphType; + } + public function getGlyphType() + { + return $this->glyphType; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setIndentFirstLine(Google_Service_Docs_Dimension $indentFirstLine) + { + $this->indentFirstLine = $indentFirstLine; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getIndentFirstLine() + { + return $this->indentFirstLine; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setIndentStart(Google_Service_Docs_Dimension $indentStart) + { + $this->indentStart = $indentStart; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getIndentStart() + { + return $this->indentStart; + } + public function setStartNumber($startNumber) + { + $this->startNumber = $startNumber; + } + public function getStartNumber() + { + return $this->startNumber; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevelSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevelSuggestionState.php new file mode 100644 index 00000000..431906dc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/NestingLevelSuggestionState.php @@ -0,0 +1,100 @@ +bulletAlignmentSuggested = $bulletAlignmentSuggested; + } + public function getBulletAlignmentSuggested() + { + return $this->bulletAlignmentSuggested; + } + public function setGlyphFormatSuggested($glyphFormatSuggested) + { + $this->glyphFormatSuggested = $glyphFormatSuggested; + } + public function getGlyphFormatSuggested() + { + return $this->glyphFormatSuggested; + } + public function setGlyphSymbolSuggested($glyphSymbolSuggested) + { + $this->glyphSymbolSuggested = $glyphSymbolSuggested; + } + public function getGlyphSymbolSuggested() + { + return $this->glyphSymbolSuggested; + } + public function setGlyphTypeSuggested($glyphTypeSuggested) + { + $this->glyphTypeSuggested = $glyphTypeSuggested; + } + public function getGlyphTypeSuggested() + { + return $this->glyphTypeSuggested; + } + public function setIndentFirstLineSuggested($indentFirstLineSuggested) + { + $this->indentFirstLineSuggested = $indentFirstLineSuggested; + } + public function getIndentFirstLineSuggested() + { + return $this->indentFirstLineSuggested; + } + public function setIndentStartSuggested($indentStartSuggested) + { + $this->indentStartSuggested = $indentStartSuggested; + } + public function getIndentStartSuggested() + { + return $this->indentStartSuggested; + } + public function setStartNumberSuggested($startNumberSuggested) + { + $this->startNumberSuggested = $startNumberSuggested; + } + public function getStartNumberSuggested() + { + return $this->startNumberSuggested; + } + /** + * @param Google_Service_Docs_TextStyleSuggestionState + */ + public function setTextStyleSuggestionState(Google_Service_Docs_TextStyleSuggestionState $textStyleSuggestionState) + { + $this->textStyleSuggestionState = $textStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TextStyleSuggestionState + */ + public function getTextStyleSuggestionState() + { + return $this->textStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ObjectReferences.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ObjectReferences.php new file mode 100644 index 00000000..2fea0b38 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ObjectReferences.php @@ -0,0 +1,31 @@ +objectIds = $objectIds; + } + public function getObjectIds() + { + return $this->objectIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/OptionalColor.php b/vendor/google/apiclient-services/src/Google/Service/Docs/OptionalColor.php new file mode 100644 index 00000000..d288b715 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/OptionalColor.php @@ -0,0 +1,37 @@ +color = $color; + } + /** + * @return Google_Service_Docs_Color + */ + public function getColor() + { + return $this->color; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PageBreak.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PageBreak.php new file mode 100644 index 00000000..dfc09031 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PageBreak.php @@ -0,0 +1,72 @@ +suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Paragraph.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Paragraph.php new file mode 100644 index 00000000..8e0b2361 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Paragraph.php @@ -0,0 +1,127 @@ +bullet = $bullet; + } + /** + * @return Google_Service_Docs_Bullet + */ + public function getBullet() + { + return $this->bullet; + } + /** + * @param Google_Service_Docs_ParagraphElement + */ + public function setElements($elements) + { + $this->elements = $elements; + } + /** + * @return Google_Service_Docs_ParagraphElement + */ + public function getElements() + { + return $this->elements; + } + /** + * @param Google_Service_Docs_ParagraphStyle + */ + public function setParagraphStyle(Google_Service_Docs_ParagraphStyle $paragraphStyle) + { + $this->paragraphStyle = $paragraphStyle; + } + /** + * @return Google_Service_Docs_ParagraphStyle + */ + public function getParagraphStyle() + { + return $this->paragraphStyle; + } + public function setPositionedObjectIds($positionedObjectIds) + { + $this->positionedObjectIds = $positionedObjectIds; + } + public function getPositionedObjectIds() + { + return $this->positionedObjectIds; + } + /** + * @param Google_Service_Docs_SuggestedBullet + */ + public function setSuggestedBulletChanges($suggestedBulletChanges) + { + $this->suggestedBulletChanges = $suggestedBulletChanges; + } + /** + * @return Google_Service_Docs_SuggestedBullet + */ + public function getSuggestedBulletChanges() + { + return $this->suggestedBulletChanges; + } + /** + * @param Google_Service_Docs_SuggestedParagraphStyle + */ + public function setSuggestedParagraphStyleChanges($suggestedParagraphStyleChanges) + { + $this->suggestedParagraphStyleChanges = $suggestedParagraphStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedParagraphStyle + */ + public function getSuggestedParagraphStyleChanges() + { + return $this->suggestedParagraphStyleChanges; + } + /** + * @param Google_Service_Docs_ObjectReferences + */ + public function setSuggestedPositionedObjectIds($suggestedPositionedObjectIds) + { + $this->suggestedPositionedObjectIds = $suggestedPositionedObjectIds; + } + /** + * @return Google_Service_Docs_ObjectReferences + */ + public function getSuggestedPositionedObjectIds() + { + return $this->suggestedPositionedObjectIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphBorder.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphBorder.php new file mode 100644 index 00000000..0df109aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphBorder.php @@ -0,0 +1,78 @@ +color = $color; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getColor() + { + return $this->color; + } + public function setDashStyle($dashStyle) + { + $this->dashStyle = $dashStyle; + } + public function getDashStyle() + { + return $this->dashStyle; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setPadding(Google_Service_Docs_Dimension $padding) + { + $this->padding = $padding; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPadding() + { + return $this->padding; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setWidth(Google_Service_Docs_Dimension $width) + { + $this->width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphElement.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphElement.php new file mode 100644 index 00000000..fbf68472 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphElement.php @@ -0,0 +1,167 @@ +autoText = $autoText; + } + /** + * @return Google_Service_Docs_AutoText + */ + public function getAutoText() + { + return $this->autoText; + } + /** + * @param Google_Service_Docs_ColumnBreak + */ + public function setColumnBreak(Google_Service_Docs_ColumnBreak $columnBreak) + { + $this->columnBreak = $columnBreak; + } + /** + * @return Google_Service_Docs_ColumnBreak + */ + public function getColumnBreak() + { + return $this->columnBreak; + } + public function setEndIndex($endIndex) + { + $this->endIndex = $endIndex; + } + public function getEndIndex() + { + return $this->endIndex; + } + /** + * @param Google_Service_Docs_Equation + */ + public function setEquation(Google_Service_Docs_Equation $equation) + { + $this->equation = $equation; + } + /** + * @return Google_Service_Docs_Equation + */ + public function getEquation() + { + return $this->equation; + } + /** + * @param Google_Service_Docs_FootnoteReference + */ + public function setFootnoteReference(Google_Service_Docs_FootnoteReference $footnoteReference) + { + $this->footnoteReference = $footnoteReference; + } + /** + * @return Google_Service_Docs_FootnoteReference + */ + public function getFootnoteReference() + { + return $this->footnoteReference; + } + /** + * @param Google_Service_Docs_HorizontalRule + */ + public function setHorizontalRule(Google_Service_Docs_HorizontalRule $horizontalRule) + { + $this->horizontalRule = $horizontalRule; + } + /** + * @return Google_Service_Docs_HorizontalRule + */ + public function getHorizontalRule() + { + return $this->horizontalRule; + } + /** + * @param Google_Service_Docs_InlineObjectElement + */ + public function setInlineObjectElement(Google_Service_Docs_InlineObjectElement $inlineObjectElement) + { + $this->inlineObjectElement = $inlineObjectElement; + } + /** + * @return Google_Service_Docs_InlineObjectElement + */ + public function getInlineObjectElement() + { + return $this->inlineObjectElement; + } + /** + * @param Google_Service_Docs_PageBreak + */ + public function setPageBreak(Google_Service_Docs_PageBreak $pageBreak) + { + $this->pageBreak = $pageBreak; + } + /** + * @return Google_Service_Docs_PageBreak + */ + public function getPageBreak() + { + return $this->pageBreak; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + /** + * @param Google_Service_Docs_TextRun + */ + public function setTextRun(Google_Service_Docs_TextRun $textRun) + { + $this->textRun = $textRun; + } + /** + * @return Google_Service_Docs_TextRun + */ + public function getTextRun() + { + return $this->textRun; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyle.php new file mode 100644 index 00000000..35d9ee54 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyle.php @@ -0,0 +1,295 @@ +alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setAvoidWidowAndOrphan($avoidWidowAndOrphan) + { + $this->avoidWidowAndOrphan = $avoidWidowAndOrphan; + } + public function getAvoidWidowAndOrphan() + { + return $this->avoidWidowAndOrphan; + } + /** + * @param Google_Service_Docs_ParagraphBorder + */ + public function setBorderBetween(Google_Service_Docs_ParagraphBorder $borderBetween) + { + $this->borderBetween = $borderBetween; + } + /** + * @return Google_Service_Docs_ParagraphBorder + */ + public function getBorderBetween() + { + return $this->borderBetween; + } + /** + * @param Google_Service_Docs_ParagraphBorder + */ + public function setBorderBottom(Google_Service_Docs_ParagraphBorder $borderBottom) + { + $this->borderBottom = $borderBottom; + } + /** + * @return Google_Service_Docs_ParagraphBorder + */ + public function getBorderBottom() + { + return $this->borderBottom; + } + /** + * @param Google_Service_Docs_ParagraphBorder + */ + public function setBorderLeft(Google_Service_Docs_ParagraphBorder $borderLeft) + { + $this->borderLeft = $borderLeft; + } + /** + * @return Google_Service_Docs_ParagraphBorder + */ + public function getBorderLeft() + { + return $this->borderLeft; + } + /** + * @param Google_Service_Docs_ParagraphBorder + */ + public function setBorderRight(Google_Service_Docs_ParagraphBorder $borderRight) + { + $this->borderRight = $borderRight; + } + /** + * @return Google_Service_Docs_ParagraphBorder + */ + public function getBorderRight() + { + return $this->borderRight; + } + /** + * @param Google_Service_Docs_ParagraphBorder + */ + public function setBorderTop(Google_Service_Docs_ParagraphBorder $borderTop) + { + $this->borderTop = $borderTop; + } + /** + * @return Google_Service_Docs_ParagraphBorder + */ + public function getBorderTop() + { + return $this->borderTop; + } + public function setDirection($direction) + { + $this->direction = $direction; + } + public function getDirection() + { + return $this->direction; + } + public function setHeadingId($headingId) + { + $this->headingId = $headingId; + } + public function getHeadingId() + { + return $this->headingId; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setIndentEnd(Google_Service_Docs_Dimension $indentEnd) + { + $this->indentEnd = $indentEnd; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getIndentEnd() + { + return $this->indentEnd; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setIndentFirstLine(Google_Service_Docs_Dimension $indentFirstLine) + { + $this->indentFirstLine = $indentFirstLine; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getIndentFirstLine() + { + return $this->indentFirstLine; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setIndentStart(Google_Service_Docs_Dimension $indentStart) + { + $this->indentStart = $indentStart; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getIndentStart() + { + return $this->indentStart; + } + public function setKeepLinesTogether($keepLinesTogether) + { + $this->keepLinesTogether = $keepLinesTogether; + } + public function getKeepLinesTogether() + { + return $this->keepLinesTogether; + } + public function setKeepWithNext($keepWithNext) + { + $this->keepWithNext = $keepWithNext; + } + public function getKeepWithNext() + { + return $this->keepWithNext; + } + public function setLineSpacing($lineSpacing) + { + $this->lineSpacing = $lineSpacing; + } + public function getLineSpacing() + { + return $this->lineSpacing; + } + public function setNamedStyleType($namedStyleType) + { + $this->namedStyleType = $namedStyleType; + } + public function getNamedStyleType() + { + return $this->namedStyleType; + } + /** + * @param Google_Service_Docs_Shading + */ + public function setShading(Google_Service_Docs_Shading $shading) + { + $this->shading = $shading; + } + /** + * @return Google_Service_Docs_Shading + */ + public function getShading() + { + return $this->shading; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setSpaceAbove(Google_Service_Docs_Dimension $spaceAbove) + { + $this->spaceAbove = $spaceAbove; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getSpaceAbove() + { + return $this->spaceAbove; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setSpaceBelow(Google_Service_Docs_Dimension $spaceBelow) + { + $this->spaceBelow = $spaceBelow; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getSpaceBelow() + { + return $this->spaceBelow; + } + public function setSpacingMode($spacingMode) + { + $this->spacingMode = $spacingMode; + } + public function getSpacingMode() + { + return $this->spacingMode; + } + /** + * @param Google_Service_Docs_TabStop + */ + public function setTabStops($tabStops) + { + $this->tabStops = $tabStops; + } + /** + * @return Google_Service_Docs_TabStop + */ + public function getTabStops() + { + return $this->tabStops; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyleSuggestionState.php new file mode 100644 index 00000000..569f59fa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ParagraphStyleSuggestionState.php @@ -0,0 +1,208 @@ +alignmentSuggested = $alignmentSuggested; + } + public function getAlignmentSuggested() + { + return $this->alignmentSuggested; + } + public function setAvoidWidowAndOrphanSuggested($avoidWidowAndOrphanSuggested) + { + $this->avoidWidowAndOrphanSuggested = $avoidWidowAndOrphanSuggested; + } + public function getAvoidWidowAndOrphanSuggested() + { + return $this->avoidWidowAndOrphanSuggested; + } + public function setBorderBetweenSuggested($borderBetweenSuggested) + { + $this->borderBetweenSuggested = $borderBetweenSuggested; + } + public function getBorderBetweenSuggested() + { + return $this->borderBetweenSuggested; + } + public function setBorderBottomSuggested($borderBottomSuggested) + { + $this->borderBottomSuggested = $borderBottomSuggested; + } + public function getBorderBottomSuggested() + { + return $this->borderBottomSuggested; + } + public function setBorderLeftSuggested($borderLeftSuggested) + { + $this->borderLeftSuggested = $borderLeftSuggested; + } + public function getBorderLeftSuggested() + { + return $this->borderLeftSuggested; + } + public function setBorderRightSuggested($borderRightSuggested) + { + $this->borderRightSuggested = $borderRightSuggested; + } + public function getBorderRightSuggested() + { + return $this->borderRightSuggested; + } + public function setBorderTopSuggested($borderTopSuggested) + { + $this->borderTopSuggested = $borderTopSuggested; + } + public function getBorderTopSuggested() + { + return $this->borderTopSuggested; + } + public function setDirectionSuggested($directionSuggested) + { + $this->directionSuggested = $directionSuggested; + } + public function getDirectionSuggested() + { + return $this->directionSuggested; + } + public function setHeadingIdSuggested($headingIdSuggested) + { + $this->headingIdSuggested = $headingIdSuggested; + } + public function getHeadingIdSuggested() + { + return $this->headingIdSuggested; + } + public function setIndentEndSuggested($indentEndSuggested) + { + $this->indentEndSuggested = $indentEndSuggested; + } + public function getIndentEndSuggested() + { + return $this->indentEndSuggested; + } + public function setIndentFirstLineSuggested($indentFirstLineSuggested) + { + $this->indentFirstLineSuggested = $indentFirstLineSuggested; + } + public function getIndentFirstLineSuggested() + { + return $this->indentFirstLineSuggested; + } + public function setIndentStartSuggested($indentStartSuggested) + { + $this->indentStartSuggested = $indentStartSuggested; + } + public function getIndentStartSuggested() + { + return $this->indentStartSuggested; + } + public function setKeepLinesTogetherSuggested($keepLinesTogetherSuggested) + { + $this->keepLinesTogetherSuggested = $keepLinesTogetherSuggested; + } + public function getKeepLinesTogetherSuggested() + { + return $this->keepLinesTogetherSuggested; + } + public function setKeepWithNextSuggested($keepWithNextSuggested) + { + $this->keepWithNextSuggested = $keepWithNextSuggested; + } + public function getKeepWithNextSuggested() + { + return $this->keepWithNextSuggested; + } + public function setLineSpacingSuggested($lineSpacingSuggested) + { + $this->lineSpacingSuggested = $lineSpacingSuggested; + } + public function getLineSpacingSuggested() + { + return $this->lineSpacingSuggested; + } + public function setNamedStyleTypeSuggested($namedStyleTypeSuggested) + { + $this->namedStyleTypeSuggested = $namedStyleTypeSuggested; + } + public function getNamedStyleTypeSuggested() + { + return $this->namedStyleTypeSuggested; + } + /** + * @param Google_Service_Docs_ShadingSuggestionState + */ + public function setShadingSuggestionState(Google_Service_Docs_ShadingSuggestionState $shadingSuggestionState) + { + $this->shadingSuggestionState = $shadingSuggestionState; + } + /** + * @return Google_Service_Docs_ShadingSuggestionState + */ + public function getShadingSuggestionState() + { + return $this->shadingSuggestionState; + } + public function setSpaceAboveSuggested($spaceAboveSuggested) + { + $this->spaceAboveSuggested = $spaceAboveSuggested; + } + public function getSpaceAboveSuggested() + { + return $this->spaceAboveSuggested; + } + public function setSpaceBelowSuggested($spaceBelowSuggested) + { + $this->spaceBelowSuggested = $spaceBelowSuggested; + } + public function getSpaceBelowSuggested() + { + return $this->spaceBelowSuggested; + } + public function setSpacingModeSuggested($spacingModeSuggested) + { + $this->spacingModeSuggested = $spacingModeSuggested; + } + public function getSpacingModeSuggested() + { + return $this->spacingModeSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObject.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObject.php new file mode 100644 index 00000000..731dc499 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObject.php @@ -0,0 +1,81 @@ +objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } + /** + * @param Google_Service_Docs_PositionedObjectProperties + */ + public function setPositionedObjectProperties(Google_Service_Docs_PositionedObjectProperties $positionedObjectProperties) + { + $this->positionedObjectProperties = $positionedObjectProperties; + } + /** + * @return Google_Service_Docs_PositionedObjectProperties + */ + public function getPositionedObjectProperties() + { + return $this->positionedObjectProperties; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionId($suggestedInsertionId) + { + $this->suggestedInsertionId = $suggestedInsertionId; + } + public function getSuggestedInsertionId() + { + return $this->suggestedInsertionId; + } + /** + * @param Google_Service_Docs_SuggestedPositionedObjectProperties + */ + public function setSuggestedPositionedObjectPropertiesChanges($suggestedPositionedObjectPropertiesChanges) + { + $this->suggestedPositionedObjectPropertiesChanges = $suggestedPositionedObjectPropertiesChanges; + } + /** + * @return Google_Service_Docs_SuggestedPositionedObjectProperties + */ + public function getSuggestedPositionedObjectPropertiesChanges() + { + return $this->suggestedPositionedObjectPropertiesChanges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioning.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioning.php new file mode 100644 index 00000000..81fcd9e1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioning.php @@ -0,0 +1,62 @@ +layout = $layout; + } + public function getLayout() + { + return $this->layout; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setLeftOffset(Google_Service_Docs_Dimension $leftOffset) + { + $this->leftOffset = $leftOffset; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getLeftOffset() + { + return $this->leftOffset; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setTopOffset(Google_Service_Docs_Dimension $topOffset) + { + $this->topOffset = $topOffset; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getTopOffset() + { + return $this->topOffset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioningSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioningSuggestionState.php new file mode 100644 index 00000000..6f2b5446 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPositioningSuggestionState.php @@ -0,0 +1,48 @@ +layoutSuggested = $layoutSuggested; + } + public function getLayoutSuggested() + { + return $this->layoutSuggested; + } + public function setLeftOffsetSuggested($leftOffsetSuggested) + { + $this->leftOffsetSuggested = $leftOffsetSuggested; + } + public function getLeftOffsetSuggested() + { + return $this->leftOffsetSuggested; + } + public function setTopOffsetSuggested($topOffsetSuggested) + { + $this->topOffsetSuggested = $topOffsetSuggested; + } + public function getTopOffsetSuggested() + { + return $this->topOffsetSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectProperties.php new file mode 100644 index 00000000..73bc28f7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectProperties.php @@ -0,0 +1,53 @@ +embeddedObject = $embeddedObject; + } + /** + * @return Google_Service_Docs_EmbeddedObject + */ + public function getEmbeddedObject() + { + return $this->embeddedObject; + } + /** + * @param Google_Service_Docs_PositionedObjectPositioning + */ + public function setPositioning(Google_Service_Docs_PositionedObjectPositioning $positioning) + { + $this->positioning = $positioning; + } + /** + * @return Google_Service_Docs_PositionedObjectPositioning + */ + public function getPositioning() + { + return $this->positioning; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPropertiesSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPropertiesSuggestionState.php new file mode 100644 index 00000000..7f1f3117 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/PositionedObjectPropertiesSuggestionState.php @@ -0,0 +1,53 @@ +embeddedObjectSuggestionState = $embeddedObjectSuggestionState; + } + /** + * @return Google_Service_Docs_EmbeddedObjectSuggestionState + */ + public function getEmbeddedObjectSuggestionState() + { + return $this->embeddedObjectSuggestionState; + } + /** + * @param Google_Service_Docs_PositionedObjectPositioningSuggestionState + */ + public function setPositioningSuggestionState(Google_Service_Docs_PositionedObjectPositioningSuggestionState $positioningSuggestionState) + { + $this->positioningSuggestionState = $positioningSuggestionState; + } + /** + * @return Google_Service_Docs_PositionedObjectPositioningSuggestionState + */ + public function getPositioningSuggestionState() + { + return $this->positioningSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Range.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Range.php new file mode 100644 index 00000000..802ac81d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Range.php @@ -0,0 +1,48 @@ +endIndex = $endIndex; + } + public function getEndIndex() + { + return $this->endIndex; + } + public function setSegmentId($segmentId) + { + $this->segmentId = $segmentId; + } + public function getSegmentId() + { + return $this->segmentId; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextRequest.php new file mode 100644 index 00000000..66e65fdf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextRequest.php @@ -0,0 +1,46 @@ +containsText = $containsText; + } + /** + * @return Google_Service_Docs_SubstringMatchCriteria + */ + public function getContainsText() + { + return $this->containsText; + } + public function setReplaceText($replaceText) + { + $this->replaceText = $replaceText; + } + public function getReplaceText() + { + return $this->replaceText; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextResponse.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextResponse.php new file mode 100644 index 00000000..248fe74a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ReplaceAllTextResponse.php @@ -0,0 +1,30 @@ +occurrencesChanged = $occurrencesChanged; + } + public function getOccurrencesChanged() + { + return $this->occurrencesChanged; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Request.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Request.php new file mode 100644 index 00000000..a607e604 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Request.php @@ -0,0 +1,245 @@ +createNamedRange = $createNamedRange; + } + /** + * @return Google_Service_Docs_CreateNamedRangeRequest + */ + public function getCreateNamedRange() + { + return $this->createNamedRange; + } + /** + * @param Google_Service_Docs_CreateParagraphBulletsRequest + */ + public function setCreateParagraphBullets(Google_Service_Docs_CreateParagraphBulletsRequest $createParagraphBullets) + { + $this->createParagraphBullets = $createParagraphBullets; + } + /** + * @return Google_Service_Docs_CreateParagraphBulletsRequest + */ + public function getCreateParagraphBullets() + { + return $this->createParagraphBullets; + } + /** + * @param Google_Service_Docs_DeleteContentRangeRequest + */ + public function setDeleteContentRange(Google_Service_Docs_DeleteContentRangeRequest $deleteContentRange) + { + $this->deleteContentRange = $deleteContentRange; + } + /** + * @return Google_Service_Docs_DeleteContentRangeRequest + */ + public function getDeleteContentRange() + { + return $this->deleteContentRange; + } + /** + * @param Google_Service_Docs_DeleteNamedRangeRequest + */ + public function setDeleteNamedRange(Google_Service_Docs_DeleteNamedRangeRequest $deleteNamedRange) + { + $this->deleteNamedRange = $deleteNamedRange; + } + /** + * @return Google_Service_Docs_DeleteNamedRangeRequest + */ + public function getDeleteNamedRange() + { + return $this->deleteNamedRange; + } + /** + * @param Google_Service_Docs_DeleteParagraphBulletsRequest + */ + public function setDeleteParagraphBullets(Google_Service_Docs_DeleteParagraphBulletsRequest $deleteParagraphBullets) + { + $this->deleteParagraphBullets = $deleteParagraphBullets; + } + /** + * @return Google_Service_Docs_DeleteParagraphBulletsRequest + */ + public function getDeleteParagraphBullets() + { + return $this->deleteParagraphBullets; + } + /** + * @param Google_Service_Docs_DeletePositionedObjectRequest + */ + public function setDeletePositionedObject(Google_Service_Docs_DeletePositionedObjectRequest $deletePositionedObject) + { + $this->deletePositionedObject = $deletePositionedObject; + } + /** + * @return Google_Service_Docs_DeletePositionedObjectRequest + */ + public function getDeletePositionedObject() + { + return $this->deletePositionedObject; + } + /** + * @param Google_Service_Docs_DeleteTableColumnRequest + */ + public function setDeleteTableColumn(Google_Service_Docs_DeleteTableColumnRequest $deleteTableColumn) + { + $this->deleteTableColumn = $deleteTableColumn; + } + /** + * @return Google_Service_Docs_DeleteTableColumnRequest + */ + public function getDeleteTableColumn() + { + return $this->deleteTableColumn; + } + /** + * @param Google_Service_Docs_DeleteTableRowRequest + */ + public function setDeleteTableRow(Google_Service_Docs_DeleteTableRowRequest $deleteTableRow) + { + $this->deleteTableRow = $deleteTableRow; + } + /** + * @return Google_Service_Docs_DeleteTableRowRequest + */ + public function getDeleteTableRow() + { + return $this->deleteTableRow; + } + /** + * @param Google_Service_Docs_InsertInlineImageRequest + */ + public function setInsertInlineImage(Google_Service_Docs_InsertInlineImageRequest $insertInlineImage) + { + $this->insertInlineImage = $insertInlineImage; + } + /** + * @return Google_Service_Docs_InsertInlineImageRequest + */ + public function getInsertInlineImage() + { + return $this->insertInlineImage; + } + /** + * @param Google_Service_Docs_InsertTableRowRequest + */ + public function setInsertTableRow(Google_Service_Docs_InsertTableRowRequest $insertTableRow) + { + $this->insertTableRow = $insertTableRow; + } + /** + * @return Google_Service_Docs_InsertTableRowRequest + */ + public function getInsertTableRow() + { + return $this->insertTableRow; + } + /** + * @param Google_Service_Docs_InsertTextRequest + */ + public function setInsertText(Google_Service_Docs_InsertTextRequest $insertText) + { + $this->insertText = $insertText; + } + /** + * @return Google_Service_Docs_InsertTextRequest + */ + public function getInsertText() + { + return $this->insertText; + } + /** + * @param Google_Service_Docs_ReplaceAllTextRequest + */ + public function setReplaceAllText(Google_Service_Docs_ReplaceAllTextRequest $replaceAllText) + { + $this->replaceAllText = $replaceAllText; + } + /** + * @return Google_Service_Docs_ReplaceAllTextRequest + */ + public function getReplaceAllText() + { + return $this->replaceAllText; + } + /** + * @param Google_Service_Docs_UpdateParagraphStyleRequest + */ + public function setUpdateParagraphStyle(Google_Service_Docs_UpdateParagraphStyleRequest $updateParagraphStyle) + { + $this->updateParagraphStyle = $updateParagraphStyle; + } + /** + * @return Google_Service_Docs_UpdateParagraphStyleRequest + */ + public function getUpdateParagraphStyle() + { + return $this->updateParagraphStyle; + } + /** + * @param Google_Service_Docs_UpdateTextStyleRequest + */ + public function setUpdateTextStyle(Google_Service_Docs_UpdateTextStyleRequest $updateTextStyle) + { + $this->updateTextStyle = $updateTextStyle; + } + /** + * @return Google_Service_Docs_UpdateTextStyleRequest + */ + public function getUpdateTextStyle() + { + return $this->updateTextStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Resource/Documents.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Resource/Documents.php new file mode 100644 index 00000000..e433977c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Resource/Documents.php @@ -0,0 +1,93 @@ + + * $docsService = new Google_Service_Docs(...); + * $documents = $docsService->documents; + * + */ +class Google_Service_Docs_Resource_Documents extends Google_Service_Resource +{ + /** + * Applies one or more updates to the document. + * + * Each request is validated before being applied. If any request is not valid, + * then the entire request will fail and nothing will be applied. + * + * Some requests have replies to give you some information about how they are + * applied. Other requests do not need to return information; these each return + * an empty reply. The order of replies matches that of the requests. + * + * For example, suppose you call batchUpdate with four updates, and only the + * third one returns information. The response would have two empty replies, the + * reply to the third request, and another empty reply, in that order. + * + * Because other users may be editing the document, the document might not + * exactly reflect your changes: your changes may be altered with respect to + * collaborator changes. If there are no collaborators, the document should + * reflect your changes. In any case, the updates in your request are guaranteed + * to be applied together atomically. (documents.batchUpdate) + * + * @param string $documentId The ID of the document to update. + * @param Google_Service_Docs_BatchUpdateDocumentRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Docs_BatchUpdateDocumentResponse + */ + public function batchUpdate($documentId, Google_Service_Docs_BatchUpdateDocumentRequest $postBody, $optParams = array()) + { + $params = array('documentId' => $documentId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_Docs_BatchUpdateDocumentResponse"); + } + /** + * Creates a blank document using the title given in the request. Other fields + * in the request, including any provided content, are ignored. + * + * Returns the created document. (documents.create) + * + * @param Google_Service_Docs_Document $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Docs_Document + */ + public function create(Google_Service_Docs_Document $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Docs_Document"); + } + /** + * Gets the latest version of the specified document. (documents.get) + * + * @param string $documentId The ID of the document to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string suggestionsViewMode The suggestions view mode to apply to + * the document. This allows viewing the document with all suggestions inline, + * accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is + * used. + * @return Google_Service_Docs_Document + */ + public function get($documentId, $optParams = array()) + { + $params = array('documentId' => $documentId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Docs_Document"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Response.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Response.php new file mode 100644 index 00000000..cc18ddcb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Response.php @@ -0,0 +1,85 @@ +createNamedRange = $createNamedRange; + } + /** + * @return Google_Service_Docs_CreateNamedRangeResponse + */ + public function getCreateNamedRange() + { + return $this->createNamedRange; + } + /** + * @param Google_Service_Docs_InsertInlineImageResponse + */ + public function setInsertInlineImage(Google_Service_Docs_InsertInlineImageResponse $insertInlineImage) + { + $this->insertInlineImage = $insertInlineImage; + } + /** + * @return Google_Service_Docs_InsertInlineImageResponse + */ + public function getInsertInlineImage() + { + return $this->insertInlineImage; + } + /** + * @param Google_Service_Docs_InsertInlineSheetsChartResponse + */ + public function setInsertInlineSheetsChart(Google_Service_Docs_InsertInlineSheetsChartResponse $insertInlineSheetsChart) + { + $this->insertInlineSheetsChart = $insertInlineSheetsChart; + } + /** + * @return Google_Service_Docs_InsertInlineSheetsChartResponse + */ + public function getInsertInlineSheetsChart() + { + return $this->insertInlineSheetsChart; + } + /** + * @param Google_Service_Docs_ReplaceAllTextResponse + */ + public function setReplaceAllText(Google_Service_Docs_ReplaceAllTextResponse $replaceAllText) + { + $this->replaceAllText = $replaceAllText; + } + /** + * @return Google_Service_Docs_ReplaceAllTextResponse + */ + public function getReplaceAllText() + { + return $this->replaceAllText; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/RgbColor.php b/vendor/google/apiclient-services/src/Google/Service/Docs/RgbColor.php new file mode 100644 index 00000000..efd713d5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/RgbColor.php @@ -0,0 +1,48 @@ +blue = $blue; + } + public function getBlue() + { + return $this->blue; + } + public function setGreen($green) + { + $this->green = $green; + } + public function getGreen() + { + return $this->green; + } + public function setRed($red) + { + $this->red = $red; + } + public function getRed() + { + return $this->red; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SectionBreak.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionBreak.php new file mode 100644 index 00000000..7506f6f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionBreak.php @@ -0,0 +1,56 @@ +sectionStyle = $sectionStyle; + } + /** + * @return Google_Service_Docs_SectionStyle + */ + public function getSectionStyle() + { + return $this->sectionStyle; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SectionColumnProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionColumnProperties.php new file mode 100644 index 00000000..344e29d7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionColumnProperties.php @@ -0,0 +1,53 @@ +paddingEnd = $paddingEnd; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPaddingEnd() + { + return $this->paddingEnd; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setWidth(Google_Service_Docs_Dimension $width) + { + $this->width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SectionStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionStyle.php new file mode 100644 index 00000000..cbbb9a46 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SectionStyle.php @@ -0,0 +1,56 @@ +columnProperties = $columnProperties; + } + /** + * @return Google_Service_Docs_SectionColumnProperties + */ + public function getColumnProperties() + { + return $this->columnProperties; + } + public function setColumnSeparatorStyle($columnSeparatorStyle) + { + $this->columnSeparatorStyle = $columnSeparatorStyle; + } + public function getColumnSeparatorStyle() + { + return $this->columnSeparatorStyle; + } + public function setContentDirection($contentDirection) + { + $this->contentDirection = $contentDirection; + } + public function getContentDirection() + { + return $this->contentDirection; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Shading.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Shading.php new file mode 100644 index 00000000..732ab97e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Shading.php @@ -0,0 +1,37 @@ +backgroundColor = $backgroundColor; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getBackgroundColor() + { + return $this->backgroundColor; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/ShadingSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/ShadingSuggestionState.php new file mode 100644 index 00000000..96a7698e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/ShadingSuggestionState.php @@ -0,0 +1,30 @@ +backgroundColorSuggested = $backgroundColorSuggested; + } + public function getBackgroundColorSuggested() + { + return $this->backgroundColorSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReference.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReference.php new file mode 100644 index 00000000..89bf92d9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReference.php @@ -0,0 +1,39 @@ +chartId = $chartId; + } + public function getChartId() + { + return $this->chartId; + } + public function setSpreadsheetId($spreadsheetId) + { + $this->spreadsheetId = $spreadsheetId; + } + public function getSpreadsheetId() + { + return $this->spreadsheetId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReferenceSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReferenceSuggestionState.php new file mode 100644 index 00000000..a0f2a5f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SheetsChartReferenceSuggestionState.php @@ -0,0 +1,39 @@ +chartIdSuggested = $chartIdSuggested; + } + public function getChartIdSuggested() + { + return $this->chartIdSuggested; + } + public function setSpreadsheetIdSuggested($spreadsheetIdSuggested) + { + $this->spreadsheetIdSuggested = $spreadsheetIdSuggested; + } + public function getSpreadsheetIdSuggested() + { + return $this->spreadsheetIdSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Size.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Size.php new file mode 100644 index 00000000..f82a756f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Size.php @@ -0,0 +1,53 @@ +height = $height; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getHeight() + { + return $this->height; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setWidth(Google_Service_Docs_Dimension $width) + { + $this->width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SizeSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SizeSuggestionState.php new file mode 100644 index 00000000..c60c5493 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SizeSuggestionState.php @@ -0,0 +1,39 @@ +heightSuggested = $heightSuggested; + } + public function getHeightSuggested() + { + return $this->heightSuggested; + } + public function setWidthSuggested($widthSuggested) + { + $this->widthSuggested = $widthSuggested; + } + public function getWidthSuggested() + { + return $this->widthSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/StructuralElement.php b/vendor/google/apiclient-services/src/Google/Service/Docs/StructuralElement.php new file mode 100644 index 00000000..a698f33a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/StructuralElement.php @@ -0,0 +1,103 @@ +endIndex = $endIndex; + } + public function getEndIndex() + { + return $this->endIndex; + } + /** + * @param Google_Service_Docs_Paragraph + */ + public function setParagraph(Google_Service_Docs_Paragraph $paragraph) + { + $this->paragraph = $paragraph; + } + /** + * @return Google_Service_Docs_Paragraph + */ + public function getParagraph() + { + return $this->paragraph; + } + /** + * @param Google_Service_Docs_SectionBreak + */ + public function setSectionBreak(Google_Service_Docs_SectionBreak $sectionBreak) + { + $this->sectionBreak = $sectionBreak; + } + /** + * @return Google_Service_Docs_SectionBreak + */ + public function getSectionBreak() + { + return $this->sectionBreak; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + /** + * @param Google_Service_Docs_Table + */ + public function setTable(Google_Service_Docs_Table $table) + { + $this->table = $table; + } + /** + * @return Google_Service_Docs_Table + */ + public function getTable() + { + return $this->table; + } + /** + * @param Google_Service_Docs_TableOfContents + */ + public function setTableOfContents(Google_Service_Docs_TableOfContents $tableOfContents) + { + $this->tableOfContents = $tableOfContents; + } + /** + * @return Google_Service_Docs_TableOfContents + */ + public function getTableOfContents() + { + return $this->tableOfContents; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SubstringMatchCriteria.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SubstringMatchCriteria.php new file mode 100644 index 00000000..099e0992 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SubstringMatchCriteria.php @@ -0,0 +1,39 @@ +matchCase = $matchCase; + } + public function getMatchCase() + { + return $this->matchCase; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedBullet.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedBullet.php new file mode 100644 index 00000000..c9eb99ef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedBullet.php @@ -0,0 +1,53 @@ +bullet = $bullet; + } + /** + * @return Google_Service_Docs_Bullet + */ + public function getBullet() + { + return $this->bullet; + } + /** + * @param Google_Service_Docs_BulletSuggestionState + */ + public function setBulletSuggestionState(Google_Service_Docs_BulletSuggestionState $bulletSuggestionState) + { + $this->bulletSuggestionState = $bulletSuggestionState; + } + /** + * @return Google_Service_Docs_BulletSuggestionState + */ + public function getBulletSuggestionState() + { + return $this->bulletSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedDocumentStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedDocumentStyle.php new file mode 100644 index 00000000..daa0aba8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedDocumentStyle.php @@ -0,0 +1,53 @@ +documentStyle = $documentStyle; + } + /** + * @return Google_Service_Docs_DocumentStyle + */ + public function getDocumentStyle() + { + return $this->documentStyle; + } + /** + * @param Google_Service_Docs_DocumentStyleSuggestionState + */ + public function setDocumentStyleSuggestionState(Google_Service_Docs_DocumentStyleSuggestionState $documentStyleSuggestionState) + { + $this->documentStyleSuggestionState = $documentStyleSuggestionState; + } + /** + * @return Google_Service_Docs_DocumentStyleSuggestionState + */ + public function getDocumentStyleSuggestionState() + { + return $this->documentStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedInlineObjectProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedInlineObjectProperties.php new file mode 100644 index 00000000..0f833887 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedInlineObjectProperties.php @@ -0,0 +1,53 @@ +inlineObjectProperties = $inlineObjectProperties; + } + /** + * @return Google_Service_Docs_InlineObjectProperties + */ + public function getInlineObjectProperties() + { + return $this->inlineObjectProperties; + } + /** + * @param Google_Service_Docs_InlineObjectPropertiesSuggestionState + */ + public function setInlineObjectPropertiesSuggestionState(Google_Service_Docs_InlineObjectPropertiesSuggestionState $inlineObjectPropertiesSuggestionState) + { + $this->inlineObjectPropertiesSuggestionState = $inlineObjectPropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_InlineObjectPropertiesSuggestionState + */ + public function getInlineObjectPropertiesSuggestionState() + { + return $this->inlineObjectPropertiesSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedListProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedListProperties.php new file mode 100644 index 00000000..5a592231 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedListProperties.php @@ -0,0 +1,53 @@ +listProperties = $listProperties; + } + /** + * @return Google_Service_Docs_ListProperties + */ + public function getListProperties() + { + return $this->listProperties; + } + /** + * @param Google_Service_Docs_ListPropertiesSuggestionState + */ + public function setListPropertiesSuggestionState(Google_Service_Docs_ListPropertiesSuggestionState $listPropertiesSuggestionState) + { + $this->listPropertiesSuggestionState = $listPropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_ListPropertiesSuggestionState + */ + public function getListPropertiesSuggestionState() + { + return $this->listPropertiesSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedNamedStyles.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedNamedStyles.php new file mode 100644 index 00000000..8e265d75 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedNamedStyles.php @@ -0,0 +1,53 @@ +namedStyles = $namedStyles; + } + /** + * @return Google_Service_Docs_NamedStyles + */ + public function getNamedStyles() + { + return $this->namedStyles; + } + /** + * @param Google_Service_Docs_NamedStylesSuggestionState + */ + public function setNamedStylesSuggestionState(Google_Service_Docs_NamedStylesSuggestionState $namedStylesSuggestionState) + { + $this->namedStylesSuggestionState = $namedStylesSuggestionState; + } + /** + * @return Google_Service_Docs_NamedStylesSuggestionState + */ + public function getNamedStylesSuggestionState() + { + return $this->namedStylesSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedParagraphStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedParagraphStyle.php new file mode 100644 index 00000000..2c75dd4f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedParagraphStyle.php @@ -0,0 +1,53 @@ +paragraphStyle = $paragraphStyle; + } + /** + * @return Google_Service_Docs_ParagraphStyle + */ + public function getParagraphStyle() + { + return $this->paragraphStyle; + } + /** + * @param Google_Service_Docs_ParagraphStyleSuggestionState + */ + public function setParagraphStyleSuggestionState(Google_Service_Docs_ParagraphStyleSuggestionState $paragraphStyleSuggestionState) + { + $this->paragraphStyleSuggestionState = $paragraphStyleSuggestionState; + } + /** + * @return Google_Service_Docs_ParagraphStyleSuggestionState + */ + public function getParagraphStyleSuggestionState() + { + return $this->paragraphStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedPositionedObjectProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedPositionedObjectProperties.php new file mode 100644 index 00000000..7595c314 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedPositionedObjectProperties.php @@ -0,0 +1,53 @@ +positionedObjectProperties = $positionedObjectProperties; + } + /** + * @return Google_Service_Docs_PositionedObjectProperties + */ + public function getPositionedObjectProperties() + { + return $this->positionedObjectProperties; + } + /** + * @param Google_Service_Docs_PositionedObjectPropertiesSuggestionState + */ + public function setPositionedObjectPropertiesSuggestionState(Google_Service_Docs_PositionedObjectPropertiesSuggestionState $positionedObjectPropertiesSuggestionState) + { + $this->positionedObjectPropertiesSuggestionState = $positionedObjectPropertiesSuggestionState; + } + /** + * @return Google_Service_Docs_PositionedObjectPropertiesSuggestionState + */ + public function getPositionedObjectPropertiesSuggestionState() + { + return $this->positionedObjectPropertiesSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableCellStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableCellStyle.php new file mode 100644 index 00000000..f19846c1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableCellStyle.php @@ -0,0 +1,53 @@ +tableCellStyle = $tableCellStyle; + } + /** + * @return Google_Service_Docs_TableCellStyle + */ + public function getTableCellStyle() + { + return $this->tableCellStyle; + } + /** + * @param Google_Service_Docs_TableCellStyleSuggestionState + */ + public function setTableCellStyleSuggestionState(Google_Service_Docs_TableCellStyleSuggestionState $tableCellStyleSuggestionState) + { + $this->tableCellStyleSuggestionState = $tableCellStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TableCellStyleSuggestionState + */ + public function getTableCellStyleSuggestionState() + { + return $this->tableCellStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableRowStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableRowStyle.php new file mode 100644 index 00000000..3d0bd838 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTableRowStyle.php @@ -0,0 +1,53 @@ +tableRowStyle = $tableRowStyle; + } + /** + * @return Google_Service_Docs_TableRowStyle + */ + public function getTableRowStyle() + { + return $this->tableRowStyle; + } + /** + * @param Google_Service_Docs_TableRowStyleSuggestionState + */ + public function setTableRowStyleSuggestionState(Google_Service_Docs_TableRowStyleSuggestionState $tableRowStyleSuggestionState) + { + $this->tableRowStyleSuggestionState = $tableRowStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TableRowStyleSuggestionState + */ + public function getTableRowStyleSuggestionState() + { + return $this->tableRowStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTextStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTextStyle.php new file mode 100644 index 00000000..eb3e0646 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/SuggestedTextStyle.php @@ -0,0 +1,53 @@ +textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } + /** + * @param Google_Service_Docs_TextStyleSuggestionState + */ + public function setTextStyleSuggestionState(Google_Service_Docs_TextStyleSuggestionState $textStyleSuggestionState) + { + $this->textStyleSuggestionState = $textStyleSuggestionState; + } + /** + * @return Google_Service_Docs_TextStyleSuggestionState + */ + public function getTextStyleSuggestionState() + { + return $this->textStyleSuggestionState; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TabStop.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TabStop.php new file mode 100644 index 00000000..000ea8f5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TabStop.php @@ -0,0 +1,46 @@ +alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setOffset(Google_Service_Docs_Dimension $offset) + { + $this->offset = $offset; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getOffset() + { + return $this->offset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/Table.php b/vendor/google/apiclient-services/src/Google/Service/Docs/Table.php new file mode 100644 index 00000000..d2f5ac3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/Table.php @@ -0,0 +1,90 @@ +columns = $columns; + } + public function getColumns() + { + return $this->columns; + } + public function setRows($rows) + { + $this->rows = $rows; + } + public function getRows() + { + return $this->rows; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_TableRow + */ + public function setTableRows($tableRows) + { + $this->tableRows = $tableRows; + } + /** + * @return Google_Service_Docs_TableRow + */ + public function getTableRows() + { + return $this->tableRows; + } + /** + * @param Google_Service_Docs_TableStyle + */ + public function setTableStyle(Google_Service_Docs_TableStyle $tableStyle) + { + $this->tableStyle = $tableStyle; + } + /** + * @return Google_Service_Docs_TableStyle + */ + public function getTableStyle() + { + return $this->tableStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableCell.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCell.php new file mode 100644 index 00000000..8b531b87 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCell.php @@ -0,0 +1,106 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } + public function setEndIndex($endIndex) + { + $this->endIndex = $endIndex; + } + public function getEndIndex() + { + return $this->endIndex; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTableCellStyle + */ + public function setSuggestedTableCellStyleChanges($suggestedTableCellStyleChanges) + { + $this->suggestedTableCellStyleChanges = $suggestedTableCellStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTableCellStyle + */ + public function getSuggestedTableCellStyleChanges() + { + return $this->suggestedTableCellStyleChanges; + } + /** + * @param Google_Service_Docs_TableCellStyle + */ + public function setTableCellStyle(Google_Service_Docs_TableCellStyle $tableCellStyle) + { + $this->tableCellStyle = $tableCellStyle; + } + /** + * @return Google_Service_Docs_TableCellStyle + */ + public function getTableCellStyle() + { + return $this->tableCellStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellBorder.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellBorder.php new file mode 100644 index 00000000..45463f5d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellBorder.php @@ -0,0 +1,62 @@ +color = $color; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getColor() + { + return $this->color; + } + public function setDashStyle($dashStyle) + { + $this->dashStyle = $dashStyle; + } + public function getDashStyle() + { + return $this->dashStyle; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setWidth(Google_Service_Docs_Dimension $width) + { + $this->width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellLocation.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellLocation.php new file mode 100644 index 00000000..bc9f3929 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellLocation.php @@ -0,0 +1,55 @@ +columnIndex = $columnIndex; + } + public function getColumnIndex() + { + return $this->columnIndex; + } + public function setRowIndex($rowIndex) + { + $this->rowIndex = $rowIndex; + } + public function getRowIndex() + { + return $this->rowIndex; + } + /** + * @param Google_Service_Docs_Location + */ + public function setTableStartLocation(Google_Service_Docs_Location $tableStartLocation) + { + $this->tableStartLocation = $tableStartLocation; + } + /** + * @return Google_Service_Docs_Location + */ + public function getTableStartLocation() + { + return $this->tableStartLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyle.php new file mode 100644 index 00000000..46a2311b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyle.php @@ -0,0 +1,192 @@ +backgroundColor = $backgroundColor; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getBackgroundColor() + { + return $this->backgroundColor; + } + /** + * @param Google_Service_Docs_TableCellBorder + */ + public function setBorderBottom(Google_Service_Docs_TableCellBorder $borderBottom) + { + $this->borderBottom = $borderBottom; + } + /** + * @return Google_Service_Docs_TableCellBorder + */ + public function getBorderBottom() + { + return $this->borderBottom; + } + /** + * @param Google_Service_Docs_TableCellBorder + */ + public function setBorderLeft(Google_Service_Docs_TableCellBorder $borderLeft) + { + $this->borderLeft = $borderLeft; + } + /** + * @return Google_Service_Docs_TableCellBorder + */ + public function getBorderLeft() + { + return $this->borderLeft; + } + /** + * @param Google_Service_Docs_TableCellBorder + */ + public function setBorderRight(Google_Service_Docs_TableCellBorder $borderRight) + { + $this->borderRight = $borderRight; + } + /** + * @return Google_Service_Docs_TableCellBorder + */ + public function getBorderRight() + { + return $this->borderRight; + } + /** + * @param Google_Service_Docs_TableCellBorder + */ + public function setBorderTop(Google_Service_Docs_TableCellBorder $borderTop) + { + $this->borderTop = $borderTop; + } + /** + * @return Google_Service_Docs_TableCellBorder + */ + public function getBorderTop() + { + return $this->borderTop; + } + public function setColumnSpan($columnSpan) + { + $this->columnSpan = $columnSpan; + } + public function getColumnSpan() + { + return $this->columnSpan; + } + public function setContentAlignment($contentAlignment) + { + $this->contentAlignment = $contentAlignment; + } + public function getContentAlignment() + { + return $this->contentAlignment; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setPaddingBottom(Google_Service_Docs_Dimension $paddingBottom) + { + $this->paddingBottom = $paddingBottom; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPaddingBottom() + { + return $this->paddingBottom; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setPaddingLeft(Google_Service_Docs_Dimension $paddingLeft) + { + $this->paddingLeft = $paddingLeft; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPaddingLeft() + { + return $this->paddingLeft; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setPaddingRight(Google_Service_Docs_Dimension $paddingRight) + { + $this->paddingRight = $paddingRight; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPaddingRight() + { + return $this->paddingRight; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setPaddingTop(Google_Service_Docs_Dimension $paddingTop) + { + $this->paddingTop = $paddingTop; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getPaddingTop() + { + return $this->paddingTop; + } + public function setRowSpan($rowSpan) + { + $this->rowSpan = $rowSpan; + } + public function getRowSpan() + { + return $this->rowSpan; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyleSuggestionState.php new file mode 100644 index 00000000..fe0987b2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableCellStyleSuggestionState.php @@ -0,0 +1,129 @@ +backgroundColorSuggested = $backgroundColorSuggested; + } + public function getBackgroundColorSuggested() + { + return $this->backgroundColorSuggested; + } + public function setBorderBottomSuggested($borderBottomSuggested) + { + $this->borderBottomSuggested = $borderBottomSuggested; + } + public function getBorderBottomSuggested() + { + return $this->borderBottomSuggested; + } + public function setBorderLeftSuggested($borderLeftSuggested) + { + $this->borderLeftSuggested = $borderLeftSuggested; + } + public function getBorderLeftSuggested() + { + return $this->borderLeftSuggested; + } + public function setBorderRightSuggested($borderRightSuggested) + { + $this->borderRightSuggested = $borderRightSuggested; + } + public function getBorderRightSuggested() + { + return $this->borderRightSuggested; + } + public function setBorderTopSuggested($borderTopSuggested) + { + $this->borderTopSuggested = $borderTopSuggested; + } + public function getBorderTopSuggested() + { + return $this->borderTopSuggested; + } + public function setColumnSpanSuggested($columnSpanSuggested) + { + $this->columnSpanSuggested = $columnSpanSuggested; + } + public function getColumnSpanSuggested() + { + return $this->columnSpanSuggested; + } + public function setContentAlignmentSuggested($contentAlignmentSuggested) + { + $this->contentAlignmentSuggested = $contentAlignmentSuggested; + } + public function getContentAlignmentSuggested() + { + return $this->contentAlignmentSuggested; + } + public function setPaddingBottomSuggested($paddingBottomSuggested) + { + $this->paddingBottomSuggested = $paddingBottomSuggested; + } + public function getPaddingBottomSuggested() + { + return $this->paddingBottomSuggested; + } + public function setPaddingLeftSuggested($paddingLeftSuggested) + { + $this->paddingLeftSuggested = $paddingLeftSuggested; + } + public function getPaddingLeftSuggested() + { + return $this->paddingLeftSuggested; + } + public function setPaddingRightSuggested($paddingRightSuggested) + { + $this->paddingRightSuggested = $paddingRightSuggested; + } + public function getPaddingRightSuggested() + { + return $this->paddingRightSuggested; + } + public function setPaddingTopSuggested($paddingTopSuggested) + { + $this->paddingTopSuggested = $paddingTopSuggested; + } + public function getPaddingTopSuggested() + { + return $this->paddingTopSuggested; + } + public function setRowSpanSuggested($rowSpanSuggested) + { + $this->rowSpanSuggested = $rowSpanSuggested; + } + public function getRowSpanSuggested() + { + return $this->rowSpanSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableColumnProperties.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableColumnProperties.php new file mode 100644 index 00000000..4dbcaaf8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableColumnProperties.php @@ -0,0 +1,45 @@ +width = $width; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getWidth() + { + return $this->width; + } + public function setWidthType($widthType) + { + $this->widthType = $widthType; + } + public function getWidthType() + { + return $this->widthType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableOfContents.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableOfContents.php new file mode 100644 index 00000000..e42f5be4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableOfContents.php @@ -0,0 +1,56 @@ +content = $content; + } + /** + * @return Google_Service_Docs_StructuralElement + */ + public function getContent() + { + return $this->content; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableRow.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRow.php new file mode 100644 index 00000000..6b545179 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRow.php @@ -0,0 +1,106 @@ +endIndex = $endIndex; + } + public function getEndIndex() + { + return $this->endIndex; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTableRowStyle + */ + public function setSuggestedTableRowStyleChanges($suggestedTableRowStyleChanges) + { + $this->suggestedTableRowStyleChanges = $suggestedTableRowStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTableRowStyle + */ + public function getSuggestedTableRowStyleChanges() + { + return $this->suggestedTableRowStyleChanges; + } + /** + * @param Google_Service_Docs_TableCell + */ + public function setTableCells($tableCells) + { + $this->tableCells = $tableCells; + } + /** + * @return Google_Service_Docs_TableCell + */ + public function getTableCells() + { + return $this->tableCells; + } + /** + * @param Google_Service_Docs_TableRowStyle + */ + public function setTableRowStyle(Google_Service_Docs_TableRowStyle $tableRowStyle) + { + $this->tableRowStyle = $tableRowStyle; + } + /** + * @return Google_Service_Docs_TableRowStyle + */ + public function getTableRowStyle() + { + return $this->tableRowStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyle.php new file mode 100644 index 00000000..444711e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyle.php @@ -0,0 +1,37 @@ +minRowHeight = $minRowHeight; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getMinRowHeight() + { + return $this->minRowHeight; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyleSuggestionState.php new file mode 100644 index 00000000..c00f7494 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableRowStyleSuggestionState.php @@ -0,0 +1,30 @@ +minRowHeightSuggested = $minRowHeightSuggested; + } + public function getMinRowHeightSuggested() + { + return $this->minRowHeightSuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TableStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TableStyle.php new file mode 100644 index 00000000..922dd71d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TableStyle.php @@ -0,0 +1,38 @@ +tableColumnProperties = $tableColumnProperties; + } + /** + * @return Google_Service_Docs_TableColumnProperties + */ + public function getTableColumnProperties() + { + return $this->tableColumnProperties; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TextRun.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TextRun.php new file mode 100644 index 00000000..8e632b67 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TextRun.php @@ -0,0 +1,81 @@ +content = $content; + } + public function getContent() + { + return $this->content; + } + public function setSuggestedDeletionIds($suggestedDeletionIds) + { + $this->suggestedDeletionIds = $suggestedDeletionIds; + } + public function getSuggestedDeletionIds() + { + return $this->suggestedDeletionIds; + } + public function setSuggestedInsertionIds($suggestedInsertionIds) + { + $this->suggestedInsertionIds = $suggestedInsertionIds; + } + public function getSuggestedInsertionIds() + { + return $this->suggestedInsertionIds; + } + /** + * @param Google_Service_Docs_SuggestedTextStyle + */ + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) + { + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; + } + /** + * @return Google_Service_Docs_SuggestedTextStyle + */ + public function getSuggestedTextStyleChanges() + { + return $this->suggestedTextStyleChanges; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyle.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyle.php new file mode 100644 index 00000000..939d9e71 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyle.php @@ -0,0 +1,155 @@ +backgroundColor = $backgroundColor; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getBackgroundColor() + { + return $this->backgroundColor; + } + public function setBaselineOffset($baselineOffset) + { + $this->baselineOffset = $baselineOffset; + } + public function getBaselineOffset() + { + return $this->baselineOffset; + } + public function setBold($bold) + { + $this->bold = $bold; + } + public function getBold() + { + return $this->bold; + } + /** + * @param Google_Service_Docs_Dimension + */ + public function setFontSize(Google_Service_Docs_Dimension $fontSize) + { + $this->fontSize = $fontSize; + } + /** + * @return Google_Service_Docs_Dimension + */ + public function getFontSize() + { + return $this->fontSize; + } + /** + * @param Google_Service_Docs_OptionalColor + */ + public function setForegroundColor(Google_Service_Docs_OptionalColor $foregroundColor) + { + $this->foregroundColor = $foregroundColor; + } + /** + * @return Google_Service_Docs_OptionalColor + */ + public function getForegroundColor() + { + return $this->foregroundColor; + } + public function setItalic($italic) + { + $this->italic = $italic; + } + public function getItalic() + { + return $this->italic; + } + /** + * @param Google_Service_Docs_Link + */ + public function setLink(Google_Service_Docs_Link $link) + { + $this->link = $link; + } + /** + * @return Google_Service_Docs_Link + */ + public function getLink() + { + return $this->link; + } + public function setSmallCaps($smallCaps) + { + $this->smallCaps = $smallCaps; + } + public function getSmallCaps() + { + return $this->smallCaps; + } + public function setStrikethrough($strikethrough) + { + $this->strikethrough = $strikethrough; + } + public function getStrikethrough() + { + return $this->strikethrough; + } + public function setUnderline($underline) + { + $this->underline = $underline; + } + public function getUnderline() + { + return $this->underline; + } + /** + * @param Google_Service_Docs_WeightedFontFamily + */ + public function setWeightedFontFamily(Google_Service_Docs_WeightedFontFamily $weightedFontFamily) + { + $this->weightedFontFamily = $weightedFontFamily; + } + /** + * @return Google_Service_Docs_WeightedFontFamily + */ + public function getWeightedFontFamily() + { + return $this->weightedFontFamily; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyleSuggestionState.php b/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyleSuggestionState.php new file mode 100644 index 00000000..d871d1cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/TextStyleSuggestionState.php @@ -0,0 +1,120 @@ +backgroundColorSuggested = $backgroundColorSuggested; + } + public function getBackgroundColorSuggested() + { + return $this->backgroundColorSuggested; + } + public function setBaselineOffsetSuggested($baselineOffsetSuggested) + { + $this->baselineOffsetSuggested = $baselineOffsetSuggested; + } + public function getBaselineOffsetSuggested() + { + return $this->baselineOffsetSuggested; + } + public function setBoldSuggested($boldSuggested) + { + $this->boldSuggested = $boldSuggested; + } + public function getBoldSuggested() + { + return $this->boldSuggested; + } + public function setFontSizeSuggested($fontSizeSuggested) + { + $this->fontSizeSuggested = $fontSizeSuggested; + } + public function getFontSizeSuggested() + { + return $this->fontSizeSuggested; + } + public function setForegroundColorSuggested($foregroundColorSuggested) + { + $this->foregroundColorSuggested = $foregroundColorSuggested; + } + public function getForegroundColorSuggested() + { + return $this->foregroundColorSuggested; + } + public function setItalicSuggested($italicSuggested) + { + $this->italicSuggested = $italicSuggested; + } + public function getItalicSuggested() + { + return $this->italicSuggested; + } + public function setLinkSuggested($linkSuggested) + { + $this->linkSuggested = $linkSuggested; + } + public function getLinkSuggested() + { + return $this->linkSuggested; + } + public function setSmallCapsSuggested($smallCapsSuggested) + { + $this->smallCapsSuggested = $smallCapsSuggested; + } + public function getSmallCapsSuggested() + { + return $this->smallCapsSuggested; + } + public function setStrikethroughSuggested($strikethroughSuggested) + { + $this->strikethroughSuggested = $strikethroughSuggested; + } + public function getStrikethroughSuggested() + { + return $this->strikethroughSuggested; + } + public function setUnderlineSuggested($underlineSuggested) + { + $this->underlineSuggested = $underlineSuggested; + } + public function getUnderlineSuggested() + { + return $this->underlineSuggested; + } + public function setWeightedFontFamilySuggested($weightedFontFamilySuggested) + { + $this->weightedFontFamilySuggested = $weightedFontFamilySuggested; + } + public function getWeightedFontFamilySuggested() + { + return $this->weightedFontFamilySuggested; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateParagraphStyleRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateParagraphStyleRequest.php new file mode 100644 index 00000000..12124fc0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateParagraphStyleRequest.php @@ -0,0 +1,62 @@ +fields = $fields; + } + public function getFields() + { + return $this->fields; + } + /** + * @param Google_Service_Docs_ParagraphStyle + */ + public function setParagraphStyle(Google_Service_Docs_ParagraphStyle $paragraphStyle) + { + $this->paragraphStyle = $paragraphStyle; + } + /** + * @return Google_Service_Docs_ParagraphStyle + */ + public function getParagraphStyle() + { + return $this->paragraphStyle; + } + /** + * @param Google_Service_Docs_Range + */ + public function setRange(Google_Service_Docs_Range $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateTextStyleRequest.php b/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateTextStyleRequest.php new file mode 100644 index 00000000..dd0ec673 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/UpdateTextStyleRequest.php @@ -0,0 +1,62 @@ +fields = $fields; + } + public function getFields() + { + return $this->fields; + } + /** + * @param Google_Service_Docs_Range + */ + public function setRange(Google_Service_Docs_Range $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Docs_Range + */ + public function getRange() + { + return $this->range; + } + /** + * @param Google_Service_Docs_TextStyle + */ + public function setTextStyle(Google_Service_Docs_TextStyle $textStyle) + { + $this->textStyle = $textStyle; + } + /** + * @return Google_Service_Docs_TextStyle + */ + public function getTextStyle() + { + return $this->textStyle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/WeightedFontFamily.php b/vendor/google/apiclient-services/src/Google/Service/Docs/WeightedFontFamily.php new file mode 100644 index 00000000..f53488df --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/WeightedFontFamily.php @@ -0,0 +1,39 @@ +fontFamily = $fontFamily; + } + public function getFontFamily() + { + return $this->fontFamily; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Docs/WriteControl.php b/vendor/google/apiclient-services/src/Google/Service/Docs/WriteControl.php new file mode 100644 index 00000000..b9fa73a3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Docs/WriteControl.php @@ -0,0 +1,30 @@ +requiredRevisionId = $requiredRevisionId; + } + public function getRequiredRevisionId() + { + return $this->requiredRevisionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php b/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php index 6f6db941..4711acb1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php @@ -50,6 +50,7 @@ class Google_Service_DoubleClickBidManager extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclickbidmanager/v1/'; + $this->batchPath = 'batch/doubleclickbidmanager/v1'; $this->version = 'v1'; $this->serviceName = 'doubleclickbidmanager'; diff --git a/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php b/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php index 53a26fc1..1979baaf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php @@ -21,6 +21,7 @@ class Google_Service_DoubleClickBidManager_DownloadResponse extends Google_Model public $ads; public $campaigns; public $insertionOrders; + public $inventorySources; public $lineItems; public function setAdGroups($adGroups) @@ -55,6 +56,14 @@ class Google_Service_DoubleClickBidManager_DownloadResponse extends Google_Model { return $this->insertionOrders; } + public function setInventorySources($inventorySources) + { + $this->inventorySources = $inventorySources; + } + public function getInventorySources() + { + return $this->inventorySources; + } public function setLineItems($lineItems) { $this->lineItems = $lineItems; diff --git a/vendor/google/apiclient-services/src/Google/Service/Doubleclicksearch.php b/vendor/google/apiclient-services/src/Google/Service/Doubleclicksearch.php index 3950906d..1d028c3c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Doubleclicksearch.php +++ b/vendor/google/apiclient-services/src/Google/Service/Doubleclicksearch.php @@ -49,6 +49,7 @@ class Google_Service_Doubleclicksearch extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclicksearch/v2/'; + $this->batchPath = 'batch/doubleclicksearch/v2'; $this->version = 'v2'; $this->serviceName = 'doubleclicksearch'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive.php b/vendor/google/apiclient-services/src/Google/Service/Drive.php index 4b34d3dc..cd08aee6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive.php @@ -31,7 +31,7 @@ */ class Google_Service_Drive extends Google_Service { - /** View and manage the files in your Google Drive. */ + /** See, edit, create, and delete all of your Google Drive files. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage its own configuration data in your Google Drive. */ @@ -49,7 +49,7 @@ class Google_Service_Drive extends Google_Service /** View the photos, videos and albums in your Google Photos. */ const DRIVE_PHOTOS_READONLY = "https://www.googleapis.com/auth/drive.photos.readonly"; - /** View the files in your Google Drive. */ + /** See and download all your Google Drive files. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; /** Modify your Google Apps Script scripts' behavior. */ @@ -76,6 +76,7 @@ class Google_Service_Drive extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'drive/v3/'; + $this->batchPath = 'batch/drive/v3'; $this->version = 'v3'; $this->serviceName = 'drive'; @@ -937,6 +938,10 @@ class Google_Service_Drive extends Google_Service 'type' => 'string', 'required' => true, ), + 'useDomainAdminAccess' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFile.php b/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFile.php index c151d6b7..eb696bab 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFile.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFile.php @@ -23,9 +23,11 @@ class Google_Service_Drive_DriveFile extends Google_Collection protected $capabilitiesDataType = ''; protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints'; protected $contentHintsDataType = ''; + public $copyRequiresWriterPermission; public $createdTime; public $description; public $explicitlyTrashed; + public $exportLinks; public $fileExtension; public $folderColorRgb; public $fullFileExtension; @@ -116,6 +118,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->contentHints; } + public function setCopyRequiresWriterPermission($copyRequiresWriterPermission) + { + $this->copyRequiresWriterPermission = $copyRequiresWriterPermission; + } + public function getCopyRequiresWriterPermission() + { + return $this->copyRequiresWriterPermission; + } public function setCreatedTime($createdTime) { $this->createdTime = $createdTime; @@ -140,6 +150,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->explicitlyTrashed; } + public function setExportLinks($exportLinks) + { + $this->exportLinks = $exportLinks; + } + public function getExportLinks() + { + return $this->exportLinks; + } public function setFileExtension($fileExtension) { $this->fileExtension = $fileExtension; diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php index 6cdcf462..d464bcb8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php @@ -18,14 +18,20 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { public $canAddChildren; + public $canChangeCopyRequiresWriterPermission; public $canChangeViewersCanCopyContent; public $canComment; public $canCopy; public $canDelete; + public $canDeleteChildren; public $canDownload; public $canEdit; public $canListChildren; + public $canMoveChildrenOutOfTeamDrive; + public $canMoveChildrenWithinTeamDrive; public $canMoveItemIntoTeamDrive; + public $canMoveItemOutOfTeamDrive; + public $canMoveItemWithinTeamDrive; public $canMoveTeamDriveItem; public $canReadRevisions; public $canReadTeamDrive; @@ -33,6 +39,7 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model public $canRename; public $canShare; public $canTrash; + public $canTrashChildren; public $canUntrash; public function setCanAddChildren($canAddChildren) @@ -43,6 +50,14 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { return $this->canAddChildren; } + public function setCanChangeCopyRequiresWriterPermission($canChangeCopyRequiresWriterPermission) + { + $this->canChangeCopyRequiresWriterPermission = $canChangeCopyRequiresWriterPermission; + } + public function getCanChangeCopyRequiresWriterPermission() + { + return $this->canChangeCopyRequiresWriterPermission; + } public function setCanChangeViewersCanCopyContent($canChangeViewersCanCopyContent) { $this->canChangeViewersCanCopyContent = $canChangeViewersCanCopyContent; @@ -75,6 +90,14 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { return $this->canDelete; } + public function setCanDeleteChildren($canDeleteChildren) + { + $this->canDeleteChildren = $canDeleteChildren; + } + public function getCanDeleteChildren() + { + return $this->canDeleteChildren; + } public function setCanDownload($canDownload) { $this->canDownload = $canDownload; @@ -99,6 +122,22 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { return $this->canListChildren; } + public function setCanMoveChildrenOutOfTeamDrive($canMoveChildrenOutOfTeamDrive) + { + $this->canMoveChildrenOutOfTeamDrive = $canMoveChildrenOutOfTeamDrive; + } + public function getCanMoveChildrenOutOfTeamDrive() + { + return $this->canMoveChildrenOutOfTeamDrive; + } + public function setCanMoveChildrenWithinTeamDrive($canMoveChildrenWithinTeamDrive) + { + $this->canMoveChildrenWithinTeamDrive = $canMoveChildrenWithinTeamDrive; + } + public function getCanMoveChildrenWithinTeamDrive() + { + return $this->canMoveChildrenWithinTeamDrive; + } public function setCanMoveItemIntoTeamDrive($canMoveItemIntoTeamDrive) { $this->canMoveItemIntoTeamDrive = $canMoveItemIntoTeamDrive; @@ -107,6 +146,22 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { return $this->canMoveItemIntoTeamDrive; } + public function setCanMoveItemOutOfTeamDrive($canMoveItemOutOfTeamDrive) + { + $this->canMoveItemOutOfTeamDrive = $canMoveItemOutOfTeamDrive; + } + public function getCanMoveItemOutOfTeamDrive() + { + return $this->canMoveItemOutOfTeamDrive; + } + public function setCanMoveItemWithinTeamDrive($canMoveItemWithinTeamDrive) + { + $this->canMoveItemWithinTeamDrive = $canMoveItemWithinTeamDrive; + } + public function getCanMoveItemWithinTeamDrive() + { + return $this->canMoveItemWithinTeamDrive; + } public function setCanMoveTeamDriveItem($canMoveTeamDriveItem) { $this->canMoveTeamDriveItem = $canMoveTeamDriveItem; @@ -163,6 +218,14 @@ class Google_Service_Drive_DriveFileCapabilities extends Google_Model { return $this->canTrash; } + public function setCanTrashChildren($canTrashChildren) + { + $this->canTrashChildren = $canTrashChildren; + } + public function getCanTrashChildren() + { + return $this->canTrashChildren; + } public function setCanUntrash($canUntrash) { $this->canUntrash = $canUntrash; diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php b/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php index 3ab0fa8b..e75bb356 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php @@ -43,10 +43,9 @@ class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource * @opt_param bool transferOwnership Whether to transfer ownership to the * specified user and downgrade the current owner to a writer. This parameter is * required as an acknowledgement of the side effect. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the item belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the item belongs. * @return Google_Service_Drive_Permission */ public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array()) @@ -64,10 +63,9 @@ class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource * * @opt_param bool supportsTeamDrives Whether the requesting application * supports Team Drives. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the item belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the item belongs. */ public function delete($fileId, $permissionId, $optParams = array()) { @@ -84,10 +82,9 @@ class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource * * @opt_param bool supportsTeamDrives Whether the requesting application * supports Team Drives. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the item belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the item belongs. * @return Google_Service_Drive_Permission */ public function get($fileId, $permissionId, $optParams = array()) @@ -111,10 +108,9 @@ class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource * previous response. * @opt_param bool supportsTeamDrives Whether the requesting application * supports Team Drives. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the item belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the item belongs. * @return Google_Service_Drive_PermissionList */ public function listPermissions($fileId, $optParams = array()) @@ -137,10 +133,9 @@ class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource * @opt_param bool transferOwnership Whether to transfer ownership to the * specified user and downgrade the current owner to a writer. This parameter is * required as an acknowledgement of the side effect. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the item belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the item belongs. * @return Google_Service_Drive_Permission */ public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php b/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php index ea722704..12f1bed9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php @@ -62,10 +62,9 @@ class Google_Service_Drive_Resource_Teamdrives extends Google_Service_Resource * @param string $teamDriveId The ID of the Team Drive * @param array $optParams Optional parameters. * - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then the - * requester will be granted access if they are an administrator of the domain - * to which the Team Drive belongs. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the Team Drive belongs. * @return Google_Service_Drive_TeamDrive */ public function get($teamDriveId, $optParams = array()) @@ -82,9 +81,9 @@ class Google_Service_Drive_Resource_Teamdrives extends Google_Service_Resource * @opt_param int pageSize Maximum number of Team Drives to return. * @opt_param string pageToken Page token for Team Drives. * @opt_param string q Query string for searching Team Drives. - * @opt_param bool useDomainAdminAccess Whether the request should be treated as - * if it was issued by a domain administrator; if set to true, then all Team - * Drives of the domain in which the requester is an administrator are returned. + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then all Team Drives of the domain in which + * the requester is an administrator are returned. * @return Google_Service_Drive_TeamDriveList */ public function listTeamdrives($optParams = array()) @@ -99,6 +98,10 @@ class Google_Service_Drive_Resource_Teamdrives extends Google_Service_Resource * @param string $teamDriveId The ID of the Team Drive * @param Google_Service_Drive_TeamDrive $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool useDomainAdminAccess Issue the request as a domain + * administrator; if set to true, then the requester will be granted access if + * they are an administrator of the domain to which the Team Drive belongs. * @return Google_Service_Drive_TeamDrive */ public function update($teamDriveId, Google_Service_Drive_TeamDrive $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/Revision.php b/vendor/google/apiclient-services/src/Google/Service/Drive/Revision.php index 469716f4..82b58a6d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/Revision.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/Revision.php @@ -17,6 +17,7 @@ class Google_Service_Drive_Revision extends Google_Model { + public $exportLinks; public $id; public $keepForever; public $kind; @@ -31,6 +32,14 @@ class Google_Service_Drive_Revision extends Google_Model public $publishedOutsideDomain; public $size; + public function setExportLinks($exportLinks) + { + $this->exportLinks = $exportLinks; + } + public function getExportLinks() + { + return $this->exportLinks; + } public function setId($id) { $this->id = $id; diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php index ba3fd369..5c819f3d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php @@ -27,6 +27,8 @@ class Google_Service_Drive_TeamDrive extends Google_Model public $id; public $kind; public $name; + protected $restrictionsType = 'Google_Service_Drive_TeamDriveRestrictions'; + protected $restrictionsDataType = ''; public $themeId; /** @@ -105,6 +107,20 @@ class Google_Service_Drive_TeamDrive extends Google_Model { return $this->name; } + /** + * @param Google_Service_Drive_TeamDriveRestrictions + */ + public function setRestrictions(Google_Service_Drive_TeamDriveRestrictions $restrictions) + { + $this->restrictions = $restrictions; + } + /** + * @return Google_Service_Drive_TeamDriveRestrictions + */ + public function getRestrictions() + { + return $this->restrictions; + } public function setThemeId($themeId) { $this->themeId = $themeId; diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php index de12de0a..053efb7d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php @@ -18,9 +18,13 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model { public $canAddChildren; + public $canChangeCopyRequiresWriterPermissionRestriction; + public $canChangeDomainUsersOnlyRestriction; public $canChangeTeamDriveBackground; + public $canChangeTeamMembersOnlyRestriction; public $canComment; public $canCopy; + public $canDeleteChildren; public $canDeleteTeamDrive; public $canDownload; public $canEdit; @@ -31,6 +35,7 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model public $canRename; public $canRenameTeamDrive; public $canShare; + public $canTrashChildren; public function setCanAddChildren($canAddChildren) { @@ -40,6 +45,22 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model { return $this->canAddChildren; } + public function setCanChangeCopyRequiresWriterPermissionRestriction($canChangeCopyRequiresWriterPermissionRestriction) + { + $this->canChangeCopyRequiresWriterPermissionRestriction = $canChangeCopyRequiresWriterPermissionRestriction; + } + public function getCanChangeCopyRequiresWriterPermissionRestriction() + { + return $this->canChangeCopyRequiresWriterPermissionRestriction; + } + public function setCanChangeDomainUsersOnlyRestriction($canChangeDomainUsersOnlyRestriction) + { + $this->canChangeDomainUsersOnlyRestriction = $canChangeDomainUsersOnlyRestriction; + } + public function getCanChangeDomainUsersOnlyRestriction() + { + return $this->canChangeDomainUsersOnlyRestriction; + } public function setCanChangeTeamDriveBackground($canChangeTeamDriveBackground) { $this->canChangeTeamDriveBackground = $canChangeTeamDriveBackground; @@ -48,6 +69,14 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model { return $this->canChangeTeamDriveBackground; } + public function setCanChangeTeamMembersOnlyRestriction($canChangeTeamMembersOnlyRestriction) + { + $this->canChangeTeamMembersOnlyRestriction = $canChangeTeamMembersOnlyRestriction; + } + public function getCanChangeTeamMembersOnlyRestriction() + { + return $this->canChangeTeamMembersOnlyRestriction; + } public function setCanComment($canComment) { $this->canComment = $canComment; @@ -64,6 +93,14 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model { return $this->canCopy; } + public function setCanDeleteChildren($canDeleteChildren) + { + $this->canDeleteChildren = $canDeleteChildren; + } + public function getCanDeleteChildren() + { + return $this->canDeleteChildren; + } public function setCanDeleteTeamDrive($canDeleteTeamDrive) { $this->canDeleteTeamDrive = $canDeleteTeamDrive; @@ -144,4 +181,12 @@ class Google_Service_Drive_TeamDriveCapabilities extends Google_Model { return $this->canShare; } + public function setCanTrashChildren($canTrashChildren) + { + $this->canTrashChildren = $canTrashChildren; + } + public function getCanTrashChildren() + { + return $this->canTrashChildren; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveRestrictions.php b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveRestrictions.php new file mode 100644 index 00000000..0c989222 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Drive/TeamDriveRestrictions.php @@ -0,0 +1,57 @@ +adminManagedRestrictions = $adminManagedRestrictions; + } + public function getAdminManagedRestrictions() + { + return $this->adminManagedRestrictions; + } + public function setCopyRequiresWriterPermission($copyRequiresWriterPermission) + { + $this->copyRequiresWriterPermission = $copyRequiresWriterPermission; + } + public function getCopyRequiresWriterPermission() + { + return $this->copyRequiresWriterPermission; + } + public function setDomainUsersOnly($domainUsersOnly) + { + $this->domainUsersOnly = $domainUsersOnly; + } + public function getDomainUsersOnly() + { + return $this->domainUsersOnly; + } + public function setTeamMembersOnly($teamMembersOnly) + { + $this->teamMembersOnly = $teamMembersOnly; + } + public function getTeamMembersOnly() + { + return $this->teamMembersOnly; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity.php new file mode 100644 index 00000000..950906d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity.php @@ -0,0 +1,71 @@ + + * Provides a historical view of activity in Google Drive. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_DriveActivity extends Google_Service +{ + /** View and add to the activity record of files in your Google Drive. */ + const DRIVE_ACTIVITY = + "https://www.googleapis.com/auth/drive.activity"; + /** View the activity record of files in your Google Drive. */ + const DRIVE_ACTIVITY_READONLY = + "https://www.googleapis.com/auth/drive.activity.readonly"; + + public $activity; + + /** + * Constructs the internal representation of the DriveActivity service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://driveactivity.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v2'; + $this->serviceName = 'driveactivity'; + + $this->activity = new Google_Service_DriveActivity_Resource_Activity( + $this, + $this->serviceName, + 'activity', + array( + 'methods' => array( + 'query' => array( + 'path' => 'v2/activity:query', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Action.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Action.php new file mode 100644 index 00000000..22d6237e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Action.php @@ -0,0 +1,94 @@ +actor = $actor; + } + /** + * @return Google_Service_DriveActivity_Actor + */ + public function getActor() + { + return $this->actor; + } + /** + * @param Google_Service_DriveActivity_ActionDetail + */ + public function setDetail(Google_Service_DriveActivity_ActionDetail $detail) + { + $this->detail = $detail; + } + /** + * @return Google_Service_DriveActivity_ActionDetail + */ + public function getDetail() + { + return $this->detail; + } + /** + * @param Google_Service_DriveActivity_Target + */ + public function setTarget(Google_Service_DriveActivity_Target $target) + { + $this->target = $target; + } + /** + * @return Google_Service_DriveActivity_Target + */ + public function getTarget() + { + return $this->target; + } + /** + * @param Google_Service_DriveActivity_TimeRange + */ + public function setTimeRange(Google_Service_DriveActivity_TimeRange $timeRange) + { + $this->timeRange = $timeRange; + } + /** + * @return Google_Service_DriveActivity_TimeRange + */ + public function getTimeRange() + { + return $this->timeRange; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ActionDetail.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ActionDetail.php new file mode 100644 index 00000000..87be0127 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ActionDetail.php @@ -0,0 +1,197 @@ +comment = $comment; + } + /** + * @return Google_Service_DriveActivity_Comment + */ + public function getComment() + { + return $this->comment; + } + /** + * @param Google_Service_DriveActivity_Create + */ + public function setCreate(Google_Service_DriveActivity_Create $create) + { + $this->create = $create; + } + /** + * @return Google_Service_DriveActivity_Create + */ + public function getCreate() + { + return $this->create; + } + /** + * @param Google_Service_DriveActivity_Delete + */ + public function setDelete(Google_Service_DriveActivity_Delete $delete) + { + $this->delete = $delete; + } + /** + * @return Google_Service_DriveActivity_Delete + */ + public function getDelete() + { + return $this->delete; + } + /** + * @param Google_Service_DriveActivity_DataLeakPreventionChange + */ + public function setDlpChange(Google_Service_DriveActivity_DataLeakPreventionChange $dlpChange) + { + $this->dlpChange = $dlpChange; + } + /** + * @return Google_Service_DriveActivity_DataLeakPreventionChange + */ + public function getDlpChange() + { + return $this->dlpChange; + } + /** + * @param Google_Service_DriveActivity_Edit + */ + public function setEdit(Google_Service_DriveActivity_Edit $edit) + { + $this->edit = $edit; + } + /** + * @return Google_Service_DriveActivity_Edit + */ + public function getEdit() + { + return $this->edit; + } + /** + * @param Google_Service_DriveActivity_Move + */ + public function setMove(Google_Service_DriveActivity_Move $move) + { + $this->move = $move; + } + /** + * @return Google_Service_DriveActivity_Move + */ + public function getMove() + { + return $this->move; + } + /** + * @param Google_Service_DriveActivity_PermissionChange + */ + public function setPermissionChange(Google_Service_DriveActivity_PermissionChange $permissionChange) + { + $this->permissionChange = $permissionChange; + } + /** + * @return Google_Service_DriveActivity_PermissionChange + */ + public function getPermissionChange() + { + return $this->permissionChange; + } + /** + * @param Google_Service_DriveActivity_ApplicationReference + */ + public function setReference(Google_Service_DriveActivity_ApplicationReference $reference) + { + $this->reference = $reference; + } + /** + * @return Google_Service_DriveActivity_ApplicationReference + */ + public function getReference() + { + return $this->reference; + } + /** + * @param Google_Service_DriveActivity_Rename + */ + public function setRename(Google_Service_DriveActivity_Rename $rename) + { + $this->rename = $rename; + } + /** + * @return Google_Service_DriveActivity_Rename + */ + public function getRename() + { + return $this->rename; + } + /** + * @param Google_Service_DriveActivity_Restore + */ + public function setRestore(Google_Service_DriveActivity_Restore $restore) + { + $this->restore = $restore; + } + /** + * @return Google_Service_DriveActivity_Restore + */ + public function getRestore() + { + return $this->restore; + } + /** + * @param Google_Service_DriveActivity_SettingsChange + */ + public function setSettingsChange(Google_Service_DriveActivity_SettingsChange $settingsChange) + { + $this->settingsChange = $settingsChange; + } + /** + * @return Google_Service_DriveActivity_SettingsChange + */ + public function getSettingsChange() + { + return $this->settingsChange; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Actor.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Actor.php new file mode 100644 index 00000000..49712545 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Actor.php @@ -0,0 +1,101 @@ +administrator = $administrator; + } + /** + * @return Google_Service_DriveActivity_Administrator + */ + public function getAdministrator() + { + return $this->administrator; + } + /** + * @param Google_Service_DriveActivity_AnonymousUser + */ + public function setAnonymous(Google_Service_DriveActivity_AnonymousUser $anonymous) + { + $this->anonymous = $anonymous; + } + /** + * @return Google_Service_DriveActivity_AnonymousUser + */ + public function getAnonymous() + { + return $this->anonymous; + } + /** + * @param Google_Service_DriveActivity_Impersonation + */ + public function setImpersonation(Google_Service_DriveActivity_Impersonation $impersonation) + { + $this->impersonation = $impersonation; + } + /** + * @return Google_Service_DriveActivity_Impersonation + */ + public function getImpersonation() + { + return $this->impersonation; + } + /** + * @param Google_Service_DriveActivity_SystemEvent + */ + public function setSystem(Google_Service_DriveActivity_SystemEvent $system) + { + $this->system = $system; + } + /** + * @return Google_Service_DriveActivity_SystemEvent + */ + public function getSystem() + { + return $this->system; + } + /** + * @param Google_Service_DriveActivity_User + */ + public function setUser(Google_Service_DriveActivity_User $user) + { + $this->user = $user; + } + /** + * @return Google_Service_DriveActivity_User + */ + public function getUser() + { + return $this->user; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Administrator.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Administrator.php new file mode 100644 index 00000000..e0508415 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Administrator.php @@ -0,0 +1,20 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Assignment.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Assignment.php new file mode 100644 index 00000000..54224e65 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Assignment.php @@ -0,0 +1,30 @@ +subtype = $subtype; + } + public function getSubtype() + { + return $this->subtype; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Comment.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Comment.php new file mode 100644 index 00000000..d2d3f3c0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Comment.php @@ -0,0 +1,86 @@ +assignment = $assignment; + } + /** + * @return Google_Service_DriveActivity_Assignment + */ + public function getAssignment() + { + return $this->assignment; + } + /** + * @param Google_Service_DriveActivity_User + */ + public function setMentionedUsers($mentionedUsers) + { + $this->mentionedUsers = $mentionedUsers; + } + /** + * @return Google_Service_DriveActivity_User + */ + public function getMentionedUsers() + { + return $this->mentionedUsers; + } + /** + * @param Google_Service_DriveActivity_Post + */ + public function setPost(Google_Service_DriveActivity_Post $post) + { + $this->post = $post; + } + /** + * @return Google_Service_DriveActivity_Post + */ + public function getPost() + { + return $this->post; + } + /** + * @param Google_Service_DriveActivity_Suggestion + */ + public function setSuggestion(Google_Service_DriveActivity_Suggestion $suggestion) + { + $this->suggestion = $suggestion; + } + /** + * @return Google_Service_DriveActivity_Suggestion + */ + public function getSuggestion() + { + return $this->suggestion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ConsolidationStrategy.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ConsolidationStrategy.php new file mode 100644 index 00000000..9b1e76ad --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/ConsolidationStrategy.php @@ -0,0 +1,53 @@ +legacy = $legacy; + } + /** + * @return Google_Service_DriveActivity_Legacy + */ + public function getLegacy() + { + return $this->legacy; + } + /** + * @param Google_Service_DriveActivity_NoConsolidation + */ + public function setNone(Google_Service_DriveActivity_NoConsolidation $none) + { + $this->none = $none; + } + /** + * @return Google_Service_DriveActivity_NoConsolidation + */ + public function getNone() + { + return $this->none; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Copy.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Copy.php new file mode 100644 index 00000000..47c9c5eb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Copy.php @@ -0,0 +1,37 @@ +originalObject = $originalObject; + } + /** + * @return Google_Service_DriveActivity_TargetReference + */ + public function getOriginalObject() + { + return $this->originalObject; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Create.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Create.php new file mode 100644 index 00000000..6d9afedd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Create.php @@ -0,0 +1,69 @@ +copy = $copy; + } + /** + * @return Google_Service_DriveActivity_Copy + */ + public function getCopy() + { + return $this->copy; + } + /** + * @param Google_Service_DriveActivity_DriveactivityNew + */ + public function setNew(Google_Service_DriveActivity_DriveactivityNew $new) + { + $this->new = $new; + } + /** + * @return Google_Service_DriveActivity_DriveactivityNew + */ + public function getNew() + { + return $this->new; + } + /** + * @param Google_Service_DriveActivity_Upload + */ + public function setUpload(Google_Service_DriveActivity_Upload $upload) + { + $this->upload = $upload; + } + /** + * @return Google_Service_DriveActivity_Upload + */ + public function getUpload() + { + return $this->upload; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DataLeakPreventionChange.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DataLeakPreventionChange.php new file mode 100644 index 00000000..ca3876bd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DataLeakPreventionChange.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Delete.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Delete.php new file mode 100644 index 00000000..2627ccb0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Delete.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DeletedUser.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DeletedUser.php new file mode 100644 index 00000000..4ffbdcd1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DeletedUser.php @@ -0,0 +1,20 @@ +legacyId = $legacyId; + } + public function getLegacyId() + { + return $this->legacyId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveActivity.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveActivity.php new file mode 100644 index 00000000..8b18a77b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveActivity.php @@ -0,0 +1,111 @@ +actions = $actions; + } + /** + * @return Google_Service_DriveActivity_Action + */ + public function getActions() + { + return $this->actions; + } + /** + * @param Google_Service_DriveActivity_Actor + */ + public function setActors($actors) + { + $this->actors = $actors; + } + /** + * @return Google_Service_DriveActivity_Actor + */ + public function getActors() + { + return $this->actors; + } + /** + * @param Google_Service_DriveActivity_ActionDetail + */ + public function setPrimaryActionDetail(Google_Service_DriveActivity_ActionDetail $primaryActionDetail) + { + $this->primaryActionDetail = $primaryActionDetail; + } + /** + * @return Google_Service_DriveActivity_ActionDetail + */ + public function getPrimaryActionDetail() + { + return $this->primaryActionDetail; + } + /** + * @param Google_Service_DriveActivity_Target + */ + public function setTargets($targets) + { + $this->targets = $targets; + } + /** + * @return Google_Service_DriveActivity_Target + */ + public function getTargets() + { + return $this->targets; + } + /** + * @param Google_Service_DriveActivity_TimeRange + */ + public function setTimeRange(Google_Service_DriveActivity_TimeRange $timeRange) + { + $this->timeRange = $timeRange; + } + /** + * @return Google_Service_DriveActivity_TimeRange + */ + public function getTimeRange() + { + return $this->timeRange; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItem.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItem.php new file mode 100644 index 00000000..dd39e3e7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItem.php @@ -0,0 +1,96 @@ +file = $file; + } + /** + * @return Google_Service_DriveActivity_DriveactivityFile + */ + public function getFile() + { + return $this->file; + } + /** + * @param Google_Service_DriveActivity_Folder + */ + public function setFolder(Google_Service_DriveActivity_Folder $folder) + { + $this->folder = $folder; + } + /** + * @return Google_Service_DriveActivity_Folder + */ + public function getFolder() + { + return $this->folder; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_DriveActivity_Owner + */ + public function setOwner(Google_Service_DriveActivity_Owner $owner) + { + $this->owner = $owner; + } + /** + * @return Google_Service_DriveActivity_Owner + */ + public function getOwner() + { + return $this->owner; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItemReference.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItemReference.php new file mode 100644 index 00000000..09d2cc42 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveItemReference.php @@ -0,0 +1,71 @@ +file = $file; + } + /** + * @return Google_Service_DriveActivity_DriveactivityFile + */ + public function getFile() + { + return $this->file; + } + /** + * @param Google_Service_DriveActivity_Folder + */ + public function setFolder(Google_Service_DriveActivity_Folder $folder) + { + $this->folder = $folder; + } + /** + * @return Google_Service_DriveActivity_Folder + */ + public function getFolder() + { + return $this->folder; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveactivityFile.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveactivityFile.php new file mode 100644 index 00000000..032924b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/DriveactivityFile.php @@ -0,0 +1,20 @@ +legacyCommentId = $legacyCommentId; + } + public function getLegacyCommentId() + { + return $this->legacyCommentId; + } + public function setLegacyDiscussionId($legacyDiscussionId) + { + $this->legacyDiscussionId = $legacyDiscussionId; + } + public function getLegacyDiscussionId() + { + return $this->legacyDiscussionId; + } + public function setLinkToDiscussion($linkToDiscussion) + { + $this->linkToDiscussion = $linkToDiscussion; + } + public function getLinkToDiscussion() + { + return $this->linkToDiscussion; + } + /** + * @param Google_Service_DriveActivity_DriveItem + */ + public function setParent(Google_Service_DriveActivity_DriveItem $parent) + { + $this->parent = $parent; + } + /** + * @return Google_Service_DriveActivity_DriveItem + */ + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Folder.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Folder.php new file mode 100644 index 00000000..f39b350e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Folder.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Group.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Group.php new file mode 100644 index 00000000..ecb8cc94 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Group.php @@ -0,0 +1,39 @@ +email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Impersonation.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Impersonation.php new file mode 100644 index 00000000..7ad4898a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Impersonation.php @@ -0,0 +1,37 @@ +impersonatedUser = $impersonatedUser; + } + /** + * @return Google_Service_DriveActivity_User + */ + public function getImpersonatedUser() + { + return $this->impersonatedUser; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/KnownUser.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/KnownUser.php new file mode 100644 index 00000000..d37fadb1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/KnownUser.php @@ -0,0 +1,39 @@ +isCurrentUser = $isCurrentUser; + } + public function getIsCurrentUser() + { + return $this->isCurrentUser; + } + public function setPersonName($personName) + { + $this->personName = $personName; + } + public function getPersonName() + { + return $this->personName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Legacy.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Legacy.php new file mode 100644 index 00000000..06b424ad --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Legacy.php @@ -0,0 +1,20 @@ +addedParents = $addedParents; + } + /** + * @return Google_Service_DriveActivity_TargetReference + */ + public function getAddedParents() + { + return $this->addedParents; + } + /** + * @param Google_Service_DriveActivity_TargetReference + */ + public function setRemovedParents($removedParents) + { + $this->removedParents = $removedParents; + } + /** + * @return Google_Service_DriveActivity_TargetReference + */ + public function getRemovedParents() + { + return $this->removedParents; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/NoConsolidation.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/NoConsolidation.php new file mode 100644 index 00000000..88f81e0c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/NoConsolidation.php @@ -0,0 +1,20 @@ +domain = $domain; + } + /** + * @return Google_Service_DriveActivity_Domain + */ + public function getDomain() + { + return $this->domain; + } + /** + * @param Google_Service_DriveActivity_TeamDriveReference + */ + public function setTeamDrive(Google_Service_DriveActivity_TeamDriveReference $teamDrive) + { + $this->teamDrive = $teamDrive; + } + /** + * @return Google_Service_DriveActivity_TeamDriveReference + */ + public function getTeamDrive() + { + return $this->teamDrive; + } + /** + * @param Google_Service_DriveActivity_User + */ + public function setUser(Google_Service_DriveActivity_User $user) + { + $this->user = $user; + } + /** + * @return Google_Service_DriveActivity_User + */ + public function getUser() + { + return $this->user; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Permission.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Permission.php new file mode 100644 index 00000000..3b17a9c0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Permission.php @@ -0,0 +1,103 @@ +allowDiscovery = $allowDiscovery; + } + public function getAllowDiscovery() + { + return $this->allowDiscovery; + } + /** + * @param Google_Service_DriveActivity_Anyone + */ + public function setAnyone(Google_Service_DriveActivity_Anyone $anyone) + { + $this->anyone = $anyone; + } + /** + * @return Google_Service_DriveActivity_Anyone + */ + public function getAnyone() + { + return $this->anyone; + } + /** + * @param Google_Service_DriveActivity_Domain + */ + public function setDomain(Google_Service_DriveActivity_Domain $domain) + { + $this->domain = $domain; + } + /** + * @return Google_Service_DriveActivity_Domain + */ + public function getDomain() + { + return $this->domain; + } + /** + * @param Google_Service_DriveActivity_Group + */ + public function setGroup(Google_Service_DriveActivity_Group $group) + { + $this->group = $group; + } + /** + * @return Google_Service_DriveActivity_Group + */ + public function getGroup() + { + return $this->group; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + /** + * @param Google_Service_DriveActivity_User + */ + public function setUser(Google_Service_DriveActivity_User $user) + { + $this->user = $user; + } + /** + * @return Google_Service_DriveActivity_User + */ + public function getUser() + { + return $this->user; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/PermissionChange.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/PermissionChange.php new file mode 100644 index 00000000..f73fc918 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/PermissionChange.php @@ -0,0 +1,54 @@ +addedPermissions = $addedPermissions; + } + /** + * @return Google_Service_DriveActivity_Permission + */ + public function getAddedPermissions() + { + return $this->addedPermissions; + } + /** + * @param Google_Service_DriveActivity_Permission + */ + public function setRemovedPermissions($removedPermissions) + { + $this->removedPermissions = $removedPermissions; + } + /** + * @return Google_Service_DriveActivity_Permission + */ + public function getRemovedPermissions() + { + return $this->removedPermissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Post.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Post.php new file mode 100644 index 00000000..29e590cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Post.php @@ -0,0 +1,30 @@ +subtype = $subtype; + } + public function getSubtype() + { + return $this->subtype; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityRequest.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityRequest.php new file mode 100644 index 00000000..48e391a8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityRequest.php @@ -0,0 +1,82 @@ +ancestorName = $ancestorName; + } + public function getAncestorName() + { + return $this->ancestorName; + } + /** + * @param Google_Service_DriveActivity_ConsolidationStrategy + */ + public function setConsolidationStrategy(Google_Service_DriveActivity_ConsolidationStrategy $consolidationStrategy) + { + $this->consolidationStrategy = $consolidationStrategy; + } + /** + * @return Google_Service_DriveActivity_ConsolidationStrategy + */ + public function getConsolidationStrategy() + { + return $this->consolidationStrategy; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setItemName($itemName) + { + $this->itemName = $itemName; + } + public function getItemName() + { + return $this->itemName; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityResponse.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityResponse.php new file mode 100644 index 00000000..cdff53af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/QueryDriveActivityResponse.php @@ -0,0 +1,47 @@ +activities = $activities; + } + /** + * @return Google_Service_DriveActivity_DriveActivity + */ + public function getActivities() + { + return $this->activities; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Rename.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Rename.php new file mode 100644 index 00000000..6abdb351 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Rename.php @@ -0,0 +1,39 @@ +newTitle = $newTitle; + } + public function getNewTitle() + { + return $this->newTitle; + } + public function setOldTitle($oldTitle) + { + $this->oldTitle = $oldTitle; + } + public function getOldTitle() + { + return $this->oldTitle; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Resource/Activity.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Resource/Activity.php new file mode 100644 index 00000000..0d30e6f5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Resource/Activity.php @@ -0,0 +1,41 @@ + + * $driveactivityService = new Google_Service_DriveActivity(...); + * $activity = $driveactivityService->activity; + * + */ +class Google_Service_DriveActivity_Resource_Activity extends Google_Service_Resource +{ + /** + * Query past activity in Google Drive. (activity.query) + * + * @param Google_Service_DriveActivity_QueryDriveActivityRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_DriveActivity_QueryDriveActivityResponse + */ + public function query(Google_Service_DriveActivity_QueryDriveActivityRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_DriveActivity_QueryDriveActivityResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Restore.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Restore.php new file mode 100644 index 00000000..12f5d16c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Restore.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/RestrictionChange.php similarity index 61% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php rename to vendor/google/apiclient-services/src/Google/Service/DriveActivity/RestrictionChange.php index 58fd63f0..95b6cbba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/RestrictionChange.php @@ -15,25 +15,25 @@ * the License. */ -class Google_Service_ShoppingContent_InventoryPickup extends Google_Model +class Google_Service_DriveActivity_RestrictionChange extends Google_Model { - public $pickupMethod; - public $pickupSla; + public $feature; + public $newRestriction; - public function setPickupMethod($pickupMethod) + public function setFeature($feature) { - $this->pickupMethod = $pickupMethod; + $this->feature = $feature; } - public function getPickupMethod() + public function getFeature() { - return $this->pickupMethod; + return $this->feature; } - public function setPickupSla($pickupSla) + public function setNewRestriction($newRestriction) { - $this->pickupSla = $pickupSla; + $this->newRestriction = $newRestriction; } - public function getPickupSla() + public function getNewRestriction() { - return $this->pickupSla; + return $this->newRestriction; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SettingsChange.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SettingsChange.php new file mode 100644 index 00000000..83d5a285 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SettingsChange.php @@ -0,0 +1,38 @@ +restrictionChanges = $restrictionChanges; + } + /** + * @return Google_Service_DriveActivity_RestrictionChange + */ + public function getRestrictionChanges() + { + return $this->restrictionChanges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Suggestion.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Suggestion.php new file mode 100644 index 00000000..55868e82 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Suggestion.php @@ -0,0 +1,30 @@ +subtype = $subtype; + } + public function getSubtype() + { + return $this->subtype; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SystemEvent.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SystemEvent.php new file mode 100644 index 00000000..c527e14d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/SystemEvent.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Target.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Target.php new file mode 100644 index 00000000..b7727b6b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/Target.php @@ -0,0 +1,69 @@ +driveItem = $driveItem; + } + /** + * @return Google_Service_DriveActivity_DriveItem + */ + public function getDriveItem() + { + return $this->driveItem; + } + /** + * @param Google_Service_DriveActivity_FileComment + */ + public function setFileComment(Google_Service_DriveActivity_FileComment $fileComment) + { + $this->fileComment = $fileComment; + } + /** + * @return Google_Service_DriveActivity_FileComment + */ + public function getFileComment() + { + return $this->fileComment; + } + /** + * @param Google_Service_DriveActivity_TeamDrive + */ + public function setTeamDrive(Google_Service_DriveActivity_TeamDrive $teamDrive) + { + $this->teamDrive = $teamDrive; + } + /** + * @return Google_Service_DriveActivity_TeamDrive + */ + public function getTeamDrive() + { + return $this->teamDrive; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TargetReference.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TargetReference.php new file mode 100644 index 00000000..1d4e2fb9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TargetReference.php @@ -0,0 +1,53 @@ +driveItem = $driveItem; + } + /** + * @return Google_Service_DriveActivity_DriveItemReference + */ + public function getDriveItem() + { + return $this->driveItem; + } + /** + * @param Google_Service_DriveActivity_TeamDriveReference + */ + public function setTeamDrive(Google_Service_DriveActivity_TeamDriveReference $teamDrive) + { + $this->teamDrive = $teamDrive; + } + /** + * @return Google_Service_DriveActivity_TeamDriveReference + */ + public function getTeamDrive() + { + return $this->teamDrive; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDrive.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDrive.php new file mode 100644 index 00000000..53a5a383 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDrive.php @@ -0,0 +1,55 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_DriveActivity_DriveItem + */ + public function setRoot(Google_Service_DriveActivity_DriveItem $root) + { + $this->root = $root; + } + /** + * @return Google_Service_DriveActivity_DriveItem + */ + public function getRoot() + { + return $this->root; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDriveReference.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDriveReference.php new file mode 100644 index 00000000..e93d3fcf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TeamDriveReference.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TimeRange.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TimeRange.php new file mode 100644 index 00000000..d6b73bdf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/TimeRange.php @@ -0,0 +1,39 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DriveActivity/UnknownUser.php b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/UnknownUser.php new file mode 100644 index 00000000..af3e1ba4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/DriveActivity/UnknownUser.php @@ -0,0 +1,20 @@ +deletedUser = $deletedUser; + } + /** + * @return Google_Service_DriveActivity_DeletedUser + */ + public function getDeletedUser() + { + return $this->deletedUser; + } + /** + * @param Google_Service_DriveActivity_KnownUser + */ + public function setKnownUser(Google_Service_DriveActivity_KnownUser $knownUser) + { + $this->knownUser = $knownUser; + } + /** + * @return Google_Service_DriveActivity_KnownUser + */ + public function getKnownUser() + { + return $this->knownUser; + } + /** + * @param Google_Service_DriveActivity_UnknownUser + */ + public function setUnknownUser(Google_Service_DriveActivity_UnknownUser $unknownUser) + { + $this->unknownUser = $unknownUser; + } + /** + * @return Google_Service_DriveActivity_UnknownUser + */ + public function getUnknownUser() + { + return $this->unknownUser; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php index ba6a1d7c..cf57005a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php @@ -48,6 +48,7 @@ class Google_Service_FirebaseDynamicLinks extends Google_Service parent::__construct($client); $this->rootUrl = 'https://firebasedynamiclinks.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'firebasedynamiclinks'; @@ -98,11 +99,19 @@ class Google_Service_FirebaseDynamicLinks extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'sdkVersion' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'installAttribution' => array( 'path' => 'v1/installAttribution', 'httpMethod' => 'POST', 'parameters' => array(), + ),'reopenAttribution' => array( + 'path' => 'v1/reopenAttribution', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateManagedShortLinkRequest.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateManagedShortLinkRequest.php index 43a91d88..b711b9bc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateManagedShortLinkRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateManagedShortLinkRequest.php @@ -21,6 +21,7 @@ class Google_Service_FirebaseDynamicLinks_CreateManagedShortLinkRequest extends protected $dynamicLinkInfoDataType = ''; public $longDynamicLink; public $name; + public $sdkVersion; protected $suffixType = 'Google_Service_FirebaseDynamicLinks_Suffix'; protected $suffixDataType = ''; @@ -54,6 +55,14 @@ class Google_Service_FirebaseDynamicLinks_CreateManagedShortLinkRequest extends { return $this->name; } + public function setSdkVersion($sdkVersion) + { + $this->sdkVersion = $sdkVersion; + } + public function getSdkVersion() + { + return $this->sdkVersion; + } /** * @param Google_Service_FirebaseDynamicLinks_Suffix */ diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php index 6452099e..fe41196c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php @@ -20,6 +20,7 @@ class Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkRequest extends protected $dynamicLinkInfoType = 'Google_Service_FirebaseDynamicLinks_DynamicLinkInfo'; protected $dynamicLinkInfoDataType = ''; public $longDynamicLink; + public $sdkVersion; protected $suffixType = 'Google_Service_FirebaseDynamicLinks_Suffix'; protected $suffixDataType = ''; @@ -45,6 +46,14 @@ class Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkRequest extends { return $this->longDynamicLink; } + public function setSdkVersion($sdkVersion) + { + $this->sdkVersion = $sdkVersion; + } + public function getSdkVersion() + { + return $this->sdkVersion; + } /** * @param Google_Service_FirebaseDynamicLinks_Suffix */ diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosPostInstallAttributionResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosPostInstallAttributionResponse.php index 2fea8c90..fc2fa518 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosPostInstallAttributionResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosPostInstallAttributionResponse.php @@ -25,6 +25,7 @@ class Google_Service_FirebaseDynamicLinks_GetIosPostInstallAttributionResponse e public $invitationId; public $isStrongMatchExecutable; public $matchMessage; + public $requestIpVersion; public $requestedLink; public $resolvedLink; public $utmCampaign; @@ -95,6 +96,14 @@ class Google_Service_FirebaseDynamicLinks_GetIosPostInstallAttributionResponse e { return $this->matchMessage; } + public function setRequestIpVersion($requestIpVersion) + { + $this->requestIpVersion = $requestIpVersion; + } + public function getRequestIpVersion() + { + return $this->requestIpVersion; + } public function setRequestedLink($requestedLink) { $this->requestedLink = $requestedLink; diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionRequest.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionRequest.php new file mode 100644 index 00000000..0708454e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionRequest.php @@ -0,0 +1,48 @@ +bundleId = $bundleId; + } + public function getBundleId() + { + return $this->bundleId; + } + public function setRequestedLink($requestedLink) + { + $this->requestedLink = $requestedLink; + } + public function getRequestedLink() + { + return $this->requestedLink; + } + public function setSdkVersion($sdkVersion) + { + $this->sdkVersion = $sdkVersion; + } + public function getSdkVersion() + { + return $this->sdkVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionResponse.php new file mode 100644 index 00000000..7a769bc8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GetIosReopenAttributionResponse.php @@ -0,0 +1,84 @@ +deepLink = $deepLink; + } + public function getDeepLink() + { + return $this->deepLink; + } + public function setInvitationId($invitationId) + { + $this->invitationId = $invitationId; + } + public function getInvitationId() + { + return $this->invitationId; + } + public function setIosMinAppVersion($iosMinAppVersion) + { + $this->iosMinAppVersion = $iosMinAppVersion; + } + public function getIosMinAppVersion() + { + return $this->iosMinAppVersion; + } + public function setResolvedLink($resolvedLink) + { + $this->resolvedLink = $resolvedLink; + } + public function getResolvedLink() + { + return $this->resolvedLink; + } + public function setUtmCampaign($utmCampaign) + { + $this->utmCampaign = $utmCampaign; + } + public function getUtmCampaign() + { + return $this->utmCampaign; + } + public function setUtmMedium($utmMedium) + { + $this->utmMedium = $utmMedium; + } + public function getUtmMedium() + { + return $this->utmMedium; + } + public function setUtmSource($utmSource) + { + $this->utmSource = $utmSource; + } + public function getUtmSource() + { + return $this->utmSource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php index 2bfa4a50..b93a771e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php @@ -23,6 +23,7 @@ class Google_Service_FirebaseDynamicLinks_IosInfo extends Google_Model public $iosFallbackLink; public $iosIpadBundleId; public $iosIpadFallbackLink; + public $iosMinimumVersion; public function setIosAppStoreId($iosAppStoreId) { @@ -72,4 +73,12 @@ class Google_Service_FirebaseDynamicLinks_IosInfo extends Google_Model { return $this->iosIpadFallbackLink; } + public function setIosMinimumVersion($iosMinimumVersion) + { + $this->iosMinimumVersion = $iosMinimumVersion; + } + public function getIosMinimumVersion() + { + return $this->iosMinimumVersion; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/V1.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/V1.php index 247d5b48..a053609c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/V1.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/V1.php @@ -35,6 +35,8 @@ class Google_Service_FirebaseDynamicLinks_Resource_V1 extends Google_Service_Res * @param array $optParams Optional parameters. * * @opt_param string durationDays The span of time requested in days. + * @opt_param string sdkVersion Google SDK version. Version takes the form + * "$major.$minor.$patch" * @return Google_Service_FirebaseDynamicLinks_DynamicLinkStats */ public function getLinkStats($dynamicLink, $optParams = array()) @@ -57,4 +59,18 @@ class Google_Service_FirebaseDynamicLinks_Resource_V1 extends Google_Service_Res $params = array_merge($params, $optParams); return $this->call('installAttribution', array($params), "Google_Service_FirebaseDynamicLinks_GetIosPostInstallAttributionResponse"); } + /** + * Get iOS reopen attribution for app universal link open deeplinking. + * (v1.reopenAttribution) + * + * @param Google_Service_FirebaseDynamicLinks_GetIosReopenAttributionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseDynamicLinks_GetIosReopenAttributionResponse + */ + public function reopenAttribution(Google_Service_FirebaseDynamicLinks_GetIosReopenAttributionRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reopenAttribution', array($params), "Google_Service_FirebaseDynamicLinks_GetIosReopenAttributionResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting.php new file mode 100644 index 00000000..820fbbfd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting.php @@ -0,0 +1,307 @@ + + * The Firebase Hosting REST API enables programmatic and customizable + * deployments to your Firebase-hosted sites. Use this REST API to deploy new or + * updated hosting configurations and content files. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_FirebaseHosting extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; + /** View and administer all your Firebase data and settings. */ + const FIREBASE = + "https://www.googleapis.com/auth/firebase"; + /** View all your Firebase data and settings. */ + const FIREBASE_READONLY = + "https://www.googleapis.com/auth/firebase.readonly"; + + public $sites; + public $sites_domains; + public $sites_releases; + public $sites_versions; + public $sites_versions_files; + + /** + * Constructs the internal representation of the FirebaseHosting service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://firebasehosting.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1beta1'; + $this->serviceName = 'firebasehosting'; + + $this->sites = new Google_Service_FirebaseHosting_Resource_Sites( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'getConfig' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updateConfig' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sites_domains = new Google_Service_FirebaseHosting_Resource_SitesDomains( + $this, + $this->serviceName, + 'domains', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/{+parent}/domains', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+parent}/domains', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'update' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sites_releases = new Google_Service_FirebaseHosting_Resource_SitesReleases( + $this, + $this->serviceName, + 'releases', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/{+parent}/releases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'versionName' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'v1beta1/{+parent}/releases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->sites_versions = new Google_Service_FirebaseHosting_Resource_SitesVersions( + $this, + $this->serviceName, + 'versions', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/{+parent}/versions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeBytes' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'versionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'v1beta1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'populateFiles' => array( + 'path' => 'v1beta1/{+parent}:populateFiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sites_versions_files = new Google_Service_FirebaseHosting_Resource_SitesVersionsFiles( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta1/{+parent}/files', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ActingUser.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ActingUser.php new file mode 100644 index 00000000..0bcc29a8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ActingUser.php @@ -0,0 +1,39 @@ +email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertDnsChallenge.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertDnsChallenge.php new file mode 100644 index 00000000..379b971a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertDnsChallenge.php @@ -0,0 +1,39 @@ +domainName = $domainName; + } + public function getDomainName() + { + return $this->domainName; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertHttpChallenge.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertHttpChallenge.php new file mode 100644 index 00000000..46e8f78c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CertHttpChallenge.php @@ -0,0 +1,39 @@ +path = $path; + } + public function getPath() + { + return $this->path; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CloudRunRewrite.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CloudRunRewrite.php new file mode 100644 index 00000000..9c219032 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/CloudRunRewrite.php @@ -0,0 +1,39 @@ +region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setServiceId($serviceId) + { + $this->serviceId = $serviceId; + } + public function getServiceId() + { + return $this->serviceId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Domain.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Domain.php new file mode 100644 index 00000000..f43624f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Domain.php @@ -0,0 +1,89 @@ +domainName = $domainName; + } + public function getDomainName() + { + return $this->domainName; + } + /** + * @param Google_Service_FirebaseHosting_DomainRedirect + */ + public function setDomainRedirect(Google_Service_FirebaseHosting_DomainRedirect $domainRedirect) + { + $this->domainRedirect = $domainRedirect; + } + /** + * @return Google_Service_FirebaseHosting_DomainRedirect + */ + public function getDomainRedirect() + { + return $this->domainRedirect; + } + /** + * @param Google_Service_FirebaseHosting_DomainProvisioning + */ + public function setProvisioning(Google_Service_FirebaseHosting_DomainProvisioning $provisioning) + { + $this->provisioning = $provisioning; + } + /** + * @return Google_Service_FirebaseHosting_DomainProvisioning + */ + public function getProvisioning() + { + return $this->provisioning; + } + public function setSite($site) + { + $this->site = $site; + } + public function getSite() + { + return $this->site; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainProvisioning.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainProvisioning.php new file mode 100644 index 00000000..53909862 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainProvisioning.php @@ -0,0 +1,108 @@ +certChallengeDiscoveredTxt = $certChallengeDiscoveredTxt; + } + public function getCertChallengeDiscoveredTxt() + { + return $this->certChallengeDiscoveredTxt; + } + /** + * @param Google_Service_FirebaseHosting_CertDnsChallenge + */ + public function setCertChallengeDns(Google_Service_FirebaseHosting_CertDnsChallenge $certChallengeDns) + { + $this->certChallengeDns = $certChallengeDns; + } + /** + * @return Google_Service_FirebaseHosting_CertDnsChallenge + */ + public function getCertChallengeDns() + { + return $this->certChallengeDns; + } + /** + * @param Google_Service_FirebaseHosting_CertHttpChallenge + */ + public function setCertChallengeHttp(Google_Service_FirebaseHosting_CertHttpChallenge $certChallengeHttp) + { + $this->certChallengeHttp = $certChallengeHttp; + } + /** + * @return Google_Service_FirebaseHosting_CertHttpChallenge + */ + public function getCertChallengeHttp() + { + return $this->certChallengeHttp; + } + public function setCertStatus($certStatus) + { + $this->certStatus = $certStatus; + } + public function getCertStatus() + { + return $this->certStatus; + } + public function setDiscoveredIps($discoveredIps) + { + $this->discoveredIps = $discoveredIps; + } + public function getDiscoveredIps() + { + return $this->discoveredIps; + } + public function setDnsFetchTime($dnsFetchTime) + { + $this->dnsFetchTime = $dnsFetchTime; + } + public function getDnsFetchTime() + { + return $this->dnsFetchTime; + } + public function setDnsStatus($dnsStatus) + { + $this->dnsStatus = $dnsStatus; + } + public function getDnsStatus() + { + return $this->dnsStatus; + } + public function setExpectedIps($expectedIps) + { + $this->expectedIps = $expectedIps; + } + public function getExpectedIps() + { + return $this->expectedIps; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainRedirect.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainRedirect.php new file mode 100644 index 00000000..f9e83510 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/DomainRedirect.php @@ -0,0 +1,39 @@ +domainName = $domainName; + } + public function getDomainName() + { + return $this->domainName; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/FirebasehostingEmpty.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/FirebasehostingEmpty.php new file mode 100644 index 00000000..5be3f565 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/FirebasehostingEmpty.php @@ -0,0 +1,20 @@ +glob = $glob; + } + public function getGlob() + { + return $this->glob; + } + public function setHeaders($headers) + { + $this->headers = $headers; + } + public function getHeaders() + { + return $this->headers; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListDomainsResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListDomainsResponse.php new file mode 100644 index 00000000..4b937f66 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListDomainsResponse.php @@ -0,0 +1,47 @@ +domains = $domains; + } + /** + * @return Google_Service_FirebaseHosting_Domain + */ + public function getDomains() + { + return $this->domains; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListReleasesResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListReleasesResponse.php new file mode 100644 index 00000000..db53a4e5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListReleasesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_FirebaseHosting_Release + */ + public function setReleases($releases) + { + $this->releases = $releases; + } + /** + * @return Google_Service_FirebaseHosting_Release + */ + public function getReleases() + { + return $this->releases; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListVersionFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListVersionFilesResponse.php new file mode 100644 index 00000000..f55ddbb3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ListVersionFilesResponse.php @@ -0,0 +1,47 @@ +files = $files; + } + /** + * @return Google_Service_FirebaseHosting_VersionFile + */ + public function getFiles() + { + return $this->files; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesRequest.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesRequest.php new file mode 100644 index 00000000..bd00de69 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesRequest.php @@ -0,0 +1,30 @@ +files = $files; + } + public function getFiles() + { + return $this->files; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesResponse.php new file mode 100644 index 00000000..9f6443c8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/PopulateVersionFilesResponse.php @@ -0,0 +1,40 @@ +uploadRequiredHashes = $uploadRequiredHashes; + } + public function getUploadRequiredHashes() + { + return $this->uploadRequiredHashes; + } + public function setUploadUrl($uploadUrl) + { + $this->uploadUrl = $uploadUrl; + } + public function getUploadUrl() + { + return $this->uploadUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Redirect.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Redirect.php new file mode 100644 index 00000000..2efb4b22 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Redirect.php @@ -0,0 +1,48 @@ +glob = $glob; + } + public function getGlob() + { + return $this->glob; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setStatusCode($statusCode) + { + $this->statusCode = $statusCode; + } + public function getStatusCode() + { + return $this->statusCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Release.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Release.php new file mode 100644 index 00000000..98e65a6a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Release.php @@ -0,0 +1,89 @@ +message = $message; + } + public function getMessage() + { + return $this->message; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseTime($releaseTime) + { + $this->releaseTime = $releaseTime; + } + public function getReleaseTime() + { + return $this->releaseTime; + } + /** + * @param Google_Service_FirebaseHosting_ActingUser + */ + public function setReleaseUser(Google_Service_FirebaseHosting_ActingUser $releaseUser) + { + $this->releaseUser = $releaseUser; + } + /** + * @return Google_Service_FirebaseHosting_ActingUser + */ + public function getReleaseUser() + { + return $this->releaseUser; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + /** + * @param Google_Service_FirebaseHosting_Version + */ + public function setVersion(Google_Service_FirebaseHosting_Version $version) + { + $this->version = $version; + } + /** + * @return Google_Service_FirebaseHosting_Version + */ + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/Sites.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/Sites.php new file mode 100644 index 00000000..c9a7afdf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/Sites.php @@ -0,0 +1,63 @@ + + * $firebasehostingService = new Google_Service_FirebaseHosting(...); + * $sites = $firebasehostingService->sites; + * + */ +class Google_Service_FirebaseHosting_Resource_Sites extends Google_Service_Resource +{ + /** + * Gets the Hosting metadata for a specific site. (sites.getConfig) + * + * @param string $name Required. The site for which to get the SiteConfig, in + * the format: sites/site-name/config + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_SiteConfig + */ + public function getConfig($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('getConfig', array($params), "Google_Service_FirebaseHosting_SiteConfig"); + } + /** + * Sets the Hosting metadata for a specific site. (sites.updateConfig) + * + * @param string $name Required. The site for which to update the SiteConfig, in + * the format: sites/site-name/config + * @param Google_Service_FirebaseHosting_SiteConfig $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask A set of field names from your [site + * configuration](../sites.SiteConfig) that you want to update. A field will be + * overwritten if, and only if, it's in the mask. If a mask is not provided then + * a default mask of only [`max_versions`](../sites.SiteConfig.max_versions) + * will be used. + * @return Google_Service_FirebaseHosting_SiteConfig + */ + public function updateConfig($name, Google_Service_FirebaseHosting_SiteConfig $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateConfig', array($params), "Google_Service_FirebaseHosting_SiteConfig"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesDomains.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesDomains.php new file mode 100644 index 00000000..03d7b0d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesDomains.php @@ -0,0 +1,103 @@ + + * $firebasehostingService = new Google_Service_FirebaseHosting(...); + * $domains = $firebasehostingService->domains; + * + */ +class Google_Service_FirebaseHosting_Resource_SitesDomains extends Google_Service_Resource +{ + /** + * Creates a domain mapping on the specified site. (domains.create) + * + * @param string $parent Required. The parent to create the domain association + * for, in the format: sites/site-name + * @param Google_Service_FirebaseHosting_Domain $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_Domain + */ + public function create($parent, Google_Service_FirebaseHosting_Domain $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_FirebaseHosting_Domain"); + } + /** + * Deletes the existing domain mapping on the specified site. (domains.delete) + * + * @param string $name Required. The name of the domain association to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_FirebasehostingEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_FirebaseHosting_FirebasehostingEmpty"); + } + /** + * Gets a domain mapping on the specified site. (domains.get) + * + * @param string $name Required. The name of the domain configuration to get. + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_Domain + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_FirebaseHosting_Domain"); + } + /** + * Lists the domains for the specified site. (domains.listSitesDomains) + * + * @param string $parent Required. The parent for which to list domains, in the + * format: sites/site-name + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token from a previous request, if + * provided. + * @opt_param int pageSize The page size to return. Defaults to 50. + * @return Google_Service_FirebaseHosting_ListDomainsResponse + */ + public function listSitesDomains($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_FirebaseHosting_ListDomainsResponse"); + } + /** + * Updates the specified domain mapping, creating the mapping as if it does not + * exist. (domains.update) + * + * @param string $name Required. The name of the domain association to update or + * create, if an association doesn't already exist. + * @param Google_Service_FirebaseHosting_Domain $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_Domain + */ + public function update($name, Google_Service_FirebaseHosting_Domain $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_FirebaseHosting_Domain"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesReleases.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesReleases.php new file mode 100644 index 00000000..2e88f6e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesReleases.php @@ -0,0 +1,70 @@ + + * $firebasehostingService = new Google_Service_FirebaseHosting(...); + * $releases = $firebasehostingService->releases; + * + */ +class Google_Service_FirebaseHosting_Resource_SitesReleases extends Google_Service_Resource +{ + /** + * Creates a new release which makes the content of the specified version + * actively display on the site. (releases.create) + * + * @param string $parent The site that the release belongs to, in the format: + * sites/site-name + * @param Google_Service_FirebaseHosting_Release $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string versionName The unique identifier for a version, in the + * format: /sites/site-name/versions/versionID The site-name in this version + * identifier must match the site-name in the `parent` parameter. + * + * This query parameter must be empty if the `type` field in the request body is + * `SITE_DISABLE`. + * @return Google_Service_FirebaseHosting_Release + */ + public function create($parent, Google_Service_FirebaseHosting_Release $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_FirebaseHosting_Release"); + } + /** + * Lists the releases that have been created on the specified site. + * (releases.listSitesReleases) + * + * @param string $parent Required. The parent for which to list files, in the + * format: sites/site-name + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token from a previous request, if + * provided. + * @opt_param int pageSize The page size to return. Defaults to 100. + * @return Google_Service_FirebaseHosting_ListReleasesResponse + */ + public function listSitesReleases($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_FirebaseHosting_ListReleasesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersions.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersions.php new file mode 100644 index 00000000..67755567 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersions.php @@ -0,0 +1,103 @@ + + * $firebasehostingService = new Google_Service_FirebaseHosting(...); + * $versions = $firebasehostingService->versions; + * + */ +class Google_Service_FirebaseHosting_Resource_SitesVersions extends Google_Service_Resource +{ + /** + * Creates a new version for a site. (versions.create) + * + * @param string $parent Required. The parent to create the version for, in the + * format: sites/site-name + * @param Google_Service_FirebaseHosting_Version $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string sizeBytes The self-reported size of the version. This value + * is used for a pre-emptive quota check for legacy version uploads. + * @opt_param string versionId A unique id for the new version. This is only + * specified for legacy version creations. + * @return Google_Service_FirebaseHosting_Version + */ + public function create($parent, Google_Service_FirebaseHosting_Version $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_FirebaseHosting_Version"); + } + /** + * Deletes the specified version. (versions.delete) + * + * @param string $name Required. The name of the version to be deleted, in the + * format: sites/site-name/versions/versionID + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_FirebasehostingEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_FirebaseHosting_FirebasehostingEmpty"); + } + /** + * Updates the specified metadata for a version. Note that this method will fail + * with `FAILED_PRECONDITION` in the event of an invalid state transition. The + * only valid transition for a version is currently from a `CREATED` status to a + * `FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set + * the status of a version to `DELETED`. (versions.patch) + * + * @param string $name The unique identifier for a version, in the format: sites + * /site-name/versions/versionID This name is provided in the response body when + * you call the [`CreateVersion`](../sites.versions/create) endpoint. + * @param Google_Service_FirebaseHosting_Version $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask A set of field names from your + * [version](../sites.versions) that you want to update. A field will be + * overwritten if, and only if, it's in the mask. If a mask is not provided then + * a default mask of only [`status`](../sites.versions#Version.FIELDS.status) + * will be used. + * @return Google_Service_FirebaseHosting_Version + */ + public function patch($name, Google_Service_FirebaseHosting_Version $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_FirebaseHosting_Version"); + } + /** + * Adds content files to a version. (versions.populateFiles) + * + * @param string $parent Required. The version to add files to, in the format: + * sites/site-name/versions/versionID + * @param Google_Service_FirebaseHosting_PopulateVersionFilesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_FirebaseHosting_PopulateVersionFilesResponse + */ + public function populateFiles($parent, Google_Service_FirebaseHosting_PopulateVersionFilesRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('populateFiles', array($params), "Google_Service_FirebaseHosting_PopulateVersionFilesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersionsFiles.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersionsFiles.php new file mode 100644 index 00000000..9b6a04e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersionsFiles.php @@ -0,0 +1,50 @@ + + * $firebasehostingService = new Google_Service_FirebaseHosting(...); + * $files = $firebasehostingService->files; + * + */ +class Google_Service_FirebaseHosting_Resource_SitesVersionsFiles extends Google_Service_Resource +{ + /** + * Lists the remaining files to be uploaded for the specified version. + * (files.listSitesVersionsFiles) + * + * @param string $parent Required. The parent to list files for, in the format: + * sites/site-name/versions/versionID + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token from a previous request, if + * provided. This will be the encoded version of a + * firebase.hosting.proto.metadata.ListFilesPageToken. + * @opt_param int pageSize The page size to return. Defaults to 1000. + * @opt_param string status The type of files in the version that should be + * listed. + * @return Google_Service_FirebaseHosting_ListVersionFilesResponse + */ + public function listSitesVersionsFiles($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_FirebaseHosting_ListVersionFilesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Rewrite.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Rewrite.php new file mode 100644 index 00000000..3f40228a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Rewrite.php @@ -0,0 +1,73 @@ +dynamicLinks = $dynamicLinks; + } + public function getDynamicLinks() + { + return $this->dynamicLinks; + } + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setGlob($glob) + { + $this->glob = $glob; + } + public function getGlob() + { + return $this->glob; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + /** + * @param Google_Service_FirebaseHosting_CloudRunRewrite + */ + public function setRun(Google_Service_FirebaseHosting_CloudRunRewrite $run) + { + $this->run = $run; + } + /** + * @return Google_Service_FirebaseHosting_CloudRunRewrite + */ + public function getRun() + { + return $this->run; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ServingConfig.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ServingConfig.php new file mode 100644 index 00000000..b9422fcc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/ServingConfig.php @@ -0,0 +1,97 @@ +appAssociation = $appAssociation; + } + public function getAppAssociation() + { + return $this->appAssociation; + } + public function setCleanUrls($cleanUrls) + { + $this->cleanUrls = $cleanUrls; + } + public function getCleanUrls() + { + return $this->cleanUrls; + } + /** + * @param Google_Service_FirebaseHosting_Header + */ + public function setHeaders($headers) + { + $this->headers = $headers; + } + /** + * @return Google_Service_FirebaseHosting_Header + */ + public function getHeaders() + { + return $this->headers; + } + /** + * @param Google_Service_FirebaseHosting_Redirect + */ + public function setRedirects($redirects) + { + $this->redirects = $redirects; + } + /** + * @return Google_Service_FirebaseHosting_Redirect + */ + public function getRedirects() + { + return $this->redirects; + } + /** + * @param Google_Service_FirebaseHosting_Rewrite + */ + public function setRewrites($rewrites) + { + $this->rewrites = $rewrites; + } + /** + * @return Google_Service_FirebaseHosting_Rewrite + */ + public function getRewrites() + { + return $this->rewrites; + } + public function setTrailingSlashBehavior($trailingSlashBehavior) + { + $this->trailingSlashBehavior = $trailingSlashBehavior; + } + public function getTrailingSlashBehavior() + { + return $this->trailingSlashBehavior; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/SiteConfig.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/SiteConfig.php new file mode 100644 index 00000000..93767adf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/SiteConfig.php @@ -0,0 +1,30 @@ +maxVersions = $maxVersions; + } + public function getMaxVersions() + { + return $this->maxVersions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Version.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Version.php new file mode 100644 index 00000000..2a63fce5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Version.php @@ -0,0 +1,157 @@ +config = $config; + } + /** + * @return Google_Service_FirebaseHosting_ServingConfig + */ + public function getConfig() + { + return $this->config; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_FirebaseHosting_ActingUser + */ + public function setCreateUser(Google_Service_FirebaseHosting_ActingUser $createUser) + { + $this->createUser = $createUser; + } + /** + * @return Google_Service_FirebaseHosting_ActingUser + */ + public function getCreateUser() + { + return $this->createUser; + } + public function setDeleteTime($deleteTime) + { + $this->deleteTime = $deleteTime; + } + public function getDeleteTime() + { + return $this->deleteTime; + } + /** + * @param Google_Service_FirebaseHosting_ActingUser + */ + public function setDeleteUser(Google_Service_FirebaseHosting_ActingUser $deleteUser) + { + $this->deleteUser = $deleteUser; + } + /** + * @return Google_Service_FirebaseHosting_ActingUser + */ + public function getDeleteUser() + { + return $this->deleteUser; + } + public function setFileCount($fileCount) + { + $this->fileCount = $fileCount; + } + public function getFileCount() + { + return $this->fileCount; + } + public function setFinalizeTime($finalizeTime) + { + $this->finalizeTime = $finalizeTime; + } + public function getFinalizeTime() + { + return $this->finalizeTime; + } + /** + * @param Google_Service_FirebaseHosting_ActingUser + */ + public function setFinalizeUser(Google_Service_FirebaseHosting_ActingUser $finalizeUser) + { + $this->finalizeUser = $finalizeUser; + } + /** + * @return Google_Service_FirebaseHosting_ActingUser + */ + public function getFinalizeUser() + { + return $this->finalizeUser; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setVersionBytes($versionBytes) + { + $this->versionBytes = $versionBytes; + } + public function getVersionBytes() + { + return $this->versionBytes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/VersionFile.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/VersionFile.php new file mode 100644 index 00000000..77e0aa3e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/VersionFile.php @@ -0,0 +1,48 @@ +hash = $hash; + } + public function getHash() + { + return $this->hash; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules.php index 0e4c4645..938f41df 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules.php @@ -55,6 +55,7 @@ class Google_Service_FirebaseRules extends Google_Service parent::__construct($client); $this->rootUrl = 'https://firebaserules.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'firebaserules'; @@ -209,6 +210,10 @@ class Google_Service_FirebaseRules extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -217,10 +222,6 @@ class Google_Service_FirebaseRules extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/GetReleaseExecutableResponse.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/GetReleaseExecutableResponse.php index c7e0f346..c863a999 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/GetReleaseExecutableResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/GetReleaseExecutableResponse.php @@ -21,6 +21,7 @@ class Google_Service_FirebaseRules_GetReleaseExecutableResponse extends Google_M public $executableVersion; public $language; public $rulesetName; + public $syncTime; public $updateTime; public function setExecutable($executable) @@ -55,6 +56,14 @@ class Google_Service_FirebaseRules_GetReleaseExecutableResponse extends Google_M { return $this->rulesetName; } + public function setSyncTime($syncTime) + { + $this->syncTime = $syncTime; + } + public function getSyncTime() + { + return $this->syncTime; + } public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsReleases.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsReleases.php index 1bdf1a7b..69986ff9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsReleases.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsReleases.php @@ -102,7 +102,7 @@ class Google_Service_FirebaseRules_Resource_ProjectsReleases extends Google_Serv * @param array $optParams Optional parameters. * * @opt_param string executableVersion The requested runtime executable version. - * Defaults to FIREBASE_RULES_EXECUTABLE_V1 + * Defaults to FIREBASE_RULES_EXECUTABLE_V1. * @return Google_Service_FirebaseRules_GetReleaseExecutableResponse */ public function getExecutable($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsRulesets.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsRulesets.php index 99eb9d19..5e3aa8ac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsRulesets.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/Resource/ProjectsRulesets.php @@ -91,12 +91,6 @@ class Google_Service_FirebaseRules_Resource_ProjectsRulesets extends Google_Serv * Format: `projects/{project_id}` * @param array $optParams Optional parameters. * - * @opt_param string pageToken Next page token for loading the next batch of - * `Ruleset` instances. - * @opt_param int pageSize Page size to load. Maximum of 100. Defaults to 10. - * Note: `page_size` is just a hint and the service may choose to load less than - * `page_size` due to the size of the output. To traverse all of the releases, - * caller should iterate until the `page_token` is empty. * @opt_param string filter `Ruleset` filter. The list method supports filters * with restrictions on `Ruleset.name`. * @@ -104,6 +98,12 @@ class Google_Service_FirebaseRules_Resource_ProjectsRulesets extends Google_Serv * strings that conform to the RFC 3339 date/time specifications. * * Example: `create_time > date("2017-01-01") AND name=UUID-*` + * @opt_param string pageToken Next page token for loading the next batch of + * `Ruleset` instances. + * @opt_param int pageSize Page size to load. Maximum of 100. Defaults to 10. + * Note: `page_size` is just a hint and the service may choose to load less than + * `page_size` due to the size of the output. To traverse all of the releases, + * caller should iterate until the `page_token` is empty. * @return Google_Service_FirebaseRules_ListRulesetsResponse */ public function listProjectsRulesets($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/TestResult.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/TestResult.php index 79929d34..184103f2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/TestResult.php +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/TestResult.php @@ -17,13 +17,15 @@ class Google_Service_FirebaseRules_TestResult extends Google_Collection { - protected $collection_key = 'functionCalls'; + protected $collection_key = 'visitedExpressions'; public $debugMessages; protected $errorPositionType = 'Google_Service_FirebaseRules_SourcePosition'; protected $errorPositionDataType = ''; protected $functionCallsType = 'Google_Service_FirebaseRules_FunctionCall'; protected $functionCallsDataType = 'array'; public $state; + protected $visitedExpressionsType = 'Google_Service_FirebaseRules_VisitedExpression'; + protected $visitedExpressionsDataType = 'array'; public function setDebugMessages($debugMessages) { @@ -69,4 +71,18 @@ class Google_Service_FirebaseRules_TestResult extends Google_Collection { return $this->state; } + /** + * @param Google_Service_FirebaseRules_VisitedExpression + */ + public function setVisitedExpressions($visitedExpressions) + { + $this->visitedExpressions = $visitedExpressions; + } + /** + * @return Google_Service_FirebaseRules_VisitedExpression + */ + public function getVisitedExpressions() + { + return $this->visitedExpressions; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/VisitedExpression.php b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/VisitedExpression.php new file mode 100644 index 00000000..e0f1af61 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/FirebaseRules/VisitedExpression.php @@ -0,0 +1,46 @@ +sourcePosition = $sourcePosition; + } + /** + * @return Google_Service_FirebaseRules_SourcePosition + */ + public function getSourcePosition() + { + return $this->sourcePosition; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore.php b/vendor/google/apiclient-services/src/Google/Service/Firestore.php index 9779f611..195ba2f5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore.php @@ -16,10 +16,11 @@ */ /** - * Service definition for Firestore (v1beta1). + * Service definition for Firestore (v1). * *-
+ * Accesses the NoSQL document database built for automatic scaling, high + * performance, and ease of application development. * ** For more information about this service, see the API @@ -37,8 +38,12 @@ class Google_Service_Firestore extends Google_Service const DATASTORE = "https://www.googleapis.com/auth/datastore"; + public $projects_databases; + public $projects_databases_collectionGroups_fields; + public $projects_databases_collectionGroups_indexes; public $projects_databases_documents; - public $projects_databases_indexes; + public $projects_databases_operations; + public $projects_locations; /** * Constructs the internal representation of the Firestore service. @@ -50,9 +55,158 @@ class Google_Service_Firestore extends Google_Service parent::__construct($client); $this->rootUrl = 'https://firestore.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta1'; + $this->batchPath = 'batch'; + $this->version = 'v1'; $this->serviceName = 'firestore'; + $this->projects_databases = new Google_Service_Firestore_Resource_ProjectsDatabases( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'exportDocuments' => array( + 'path' => 'v1/{+name}:exportDocuments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'importDocuments' => array( + 'path' => 'v1/{+name}:importDocuments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_databases_collectionGroups_fields = new Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsFields( + $this, + $this->serviceName, + 'fields', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/fields', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_databases_collectionGroups_indexes = new Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsIndexes( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/indexes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->projects_databases_documents = new Google_Service_Firestore_Resource_ProjectsDatabasesDocuments( $this, $this->serviceName, @@ -60,7 +214,7 @@ class Google_Service_Firestore extends Google_Service array( 'methods' => array( 'batchGet' => array( - 'path' => 'v1beta1/{+database}/documents:batchGet', + 'path' => 'v1/{+database}/documents:batchGet', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -70,7 +224,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'beginTransaction' => array( - 'path' => 'v1beta1/{+database}/documents:beginTransaction', + 'path' => 'v1/{+database}/documents:beginTransaction', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -80,7 +234,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'commit' => array( - 'path' => 'v1beta1/{+database}/documents:commit', + 'path' => 'v1/{+database}/documents:commit', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -90,7 +244,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'createDocument' => array( - 'path' => 'v1beta1/{+parent}/{collectionId}', + 'path' => 'v1/{+parent}/{collectionId}', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -103,18 +257,18 @@ class Google_Service_Firestore extends Google_Service 'type' => 'string', 'required' => true, ), - 'documentId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'documentId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'delete' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -122,17 +276,17 @@ class Google_Service_Firestore extends Google_Service 'type' => 'string', 'required' => true, ), - 'currentDocument.updateTime' => array( - 'location' => 'query', - 'type' => 'string', - ), 'currentDocument.exists' => array( 'location' => 'query', 'type' => 'boolean', ), + 'currentDocument.updateTime' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -140,10 +294,6 @@ class Google_Service_Firestore extends Google_Service 'type' => 'string', 'required' => true, ), - 'transaction' => array( - 'location' => 'query', - 'type' => 'string', - ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', @@ -153,9 +303,13 @@ class Google_Service_Firestore extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'transaction' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( - 'path' => 'v1beta1/{+parent}/{collectionId}', + 'path' => 'v1/{+parent}/{collectionId}', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -168,6 +322,10 @@ class Google_Service_Firestore extends Google_Service 'type' => 'string', 'required' => true, ), + 'transaction' => array( + 'location' => 'query', + 'type' => 'string', + ), 'orderBy' => array( 'location' => 'query', 'type' => 'string', @@ -180,26 +338,22 @@ class Google_Service_Firestore extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'mask.fieldPaths' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'transaction' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'listCollectionIds' => array( - 'path' => 'v1beta1/{+parent}:listCollectionIds', + 'path' => 'v1/{+parent}:listCollectionIds', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -209,7 +363,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'listen' => array( - 'path' => 'v1beta1/{+database}/documents:listen', + 'path' => 'v1/{+database}/documents:listen', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -219,7 +373,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'patch' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( @@ -247,7 +401,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'rollback' => array( - 'path' => 'v1beta1/{+database}/documents:rollback', + 'path' => 'v1/{+database}/documents:rollback', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -257,7 +411,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'runQuery' => array( - 'path' => 'v1beta1/{+parent}:runQuery', + 'path' => 'v1/{+parent}:runQuery', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -267,7 +421,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'write' => array( - 'path' => 'v1beta1/{+database}/documents:write', + 'path' => 'v1/{+database}/documents:write', 'httpMethod' => 'POST', 'parameters' => array( 'database' => array( @@ -280,24 +434,24 @@ class Google_Service_Firestore extends Google_Service ) ) ); - $this->projects_databases_indexes = new Google_Service_Firestore_Resource_ProjectsDatabasesIndexes( + $this->projects_databases_operations = new Google_Service_Firestore_Resource_ProjectsDatabasesOperations( $this, $this->serviceName, - 'indexes', + 'operations', array( 'methods' => array( - 'create' => array( - 'path' => 'v1beta1/{+parent}/indexes', + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( - 'parent' => array( + 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -307,7 +461,7 @@ class Google_Service_Firestore extends Google_Service ), ), ),'get' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -317,10 +471,10 @@ class Google_Service_Firestore extends Google_Service ), ), ),'list' => array( - 'path' => 'v1beta1/{+parent}/indexes', + 'path' => 'v1/{+name}/operations', 'httpMethod' => 'GET', 'parameters' => array( - 'parent' => array( + 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -342,5 +496,47 @@ class Google_Service_Firestore extends Google_Service ) ) ); + $this->projects_locations = new Google_Service_Firestore_Resource_ProjectsLocations( + $this, + $this->serviceName, + 'locations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/locations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/FieldTransform.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/FieldTransform.php index b3d62f17..93bde733 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/FieldTransform.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/FieldTransform.php @@ -17,9 +17,33 @@ class Google_Service_Firestore_FieldTransform extends Google_Model { + protected $appendMissingElementsType = 'Google_Service_Firestore_ArrayValue'; + protected $appendMissingElementsDataType = ''; public $fieldPath; + protected $incrementType = 'Google_Service_Firestore_Value'; + protected $incrementDataType = ''; + protected $maximumType = 'Google_Service_Firestore_Value'; + protected $maximumDataType = ''; + protected $minimumType = 'Google_Service_Firestore_Value'; + protected $minimumDataType = ''; + protected $removeAllFromArrayType = 'Google_Service_Firestore_ArrayValue'; + protected $removeAllFromArrayDataType = ''; public $setToServerValue; + /** + * @param Google_Service_Firestore_ArrayValue + */ + public function setAppendMissingElements(Google_Service_Firestore_ArrayValue $appendMissingElements) + { + $this->appendMissingElements = $appendMissingElements; + } + /** + * @return Google_Service_Firestore_ArrayValue + */ + public function getAppendMissingElements() + { + return $this->appendMissingElements; + } public function setFieldPath($fieldPath) { $this->fieldPath = $fieldPath; @@ -28,6 +52,62 @@ class Google_Service_Firestore_FieldTransform extends Google_Model { return $this->fieldPath; } + /** + * @param Google_Service_Firestore_Value + */ + public function setIncrement(Google_Service_Firestore_Value $increment) + { + $this->increment = $increment; + } + /** + * @return Google_Service_Firestore_Value + */ + public function getIncrement() + { + return $this->increment; + } + /** + * @param Google_Service_Firestore_Value + */ + public function setMaximum(Google_Service_Firestore_Value $maximum) + { + $this->maximum = $maximum; + } + /** + * @return Google_Service_Firestore_Value + */ + public function getMaximum() + { + return $this->maximum; + } + /** + * @param Google_Service_Firestore_Value + */ + public function setMinimum(Google_Service_Firestore_Value $minimum) + { + $this->minimum = $minimum; + } + /** + * @return Google_Service_Firestore_Value + */ + public function getMinimum() + { + return $this->minimum; + } + /** + * @param Google_Service_Firestore_ArrayValue + */ + public function setRemoveAllFromArray(Google_Service_Firestore_ArrayValue $removeAllFromArray) + { + $this->removeAllFromArray = $removeAllFromArray; + } + /** + * @return Google_Service_Firestore_ArrayValue + */ + public function getRemoveAllFromArray() + { + return $this->removeAllFromArray; + } public function setSetToServerValue($setToServerValue) { $this->setToServerValue = $setToServerValue; diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsMetadata.php new file mode 100644 index 00000000..5198096e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsMetadata.php @@ -0,0 +1,99 @@ +collectionIds = $collectionIds; + } + public function getCollectionIds() + { + return $this->collectionIds; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setOperationState($operationState) + { + $this->operationState = $operationState; + } + public function getOperationState() + { + return $this->operationState; + } + public function setOutputUriPrefix($outputUriPrefix) + { + $this->outputUriPrefix = $outputUriPrefix; + } + public function getOutputUriPrefix() + { + return $this->outputUriPrefix; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressBytes(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressBytes) + { + $this->progressBytes = $progressBytes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressBytes() + { + return $this->progressBytes; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressDocuments(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressDocuments) + { + $this->progressDocuments = $progressDocuments; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressDocuments() + { + return $this->progressDocuments; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsRequest.php new file mode 100644 index 00000000..f762983c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsRequest.php @@ -0,0 +1,40 @@ +collectionIds = $collectionIds; + } + public function getCollectionIds() + { + return $this->collectionIds; + } + public function setOutputUriPrefix($outputUriPrefix) + { + $this->outputUriPrefix = $outputUriPrefix; + } + public function getOutputUriPrefix() + { + return $this->outputUriPrefix; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsResponse.php new file mode 100644 index 00000000..8dedd7f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ExportDocumentsResponse.php @@ -0,0 +1,30 @@ +outputUriPrefix = $outputUriPrefix; + } + public function getOutputUriPrefix() + { + return $this->outputUriPrefix; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Field.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Field.php new file mode 100644 index 00000000..ac50b892 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Field.php @@ -0,0 +1,46 @@ +indexConfig = $indexConfig; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1IndexConfig + */ + public function getIndexConfig() + { + return $this->indexConfig; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1FieldOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1FieldOperationMetadata.php new file mode 100644 index 00000000..a3fc7cfe --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1FieldOperationMetadata.php @@ -0,0 +1,106 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setField($field) + { + $this->field = $field; + } + public function getField() + { + return $this->field; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1IndexConfigDelta + */ + public function setIndexConfigDeltas($indexConfigDeltas) + { + $this->indexConfigDeltas = $indexConfigDeltas; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1IndexConfigDelta + */ + public function getIndexConfigDeltas() + { + return $this->indexConfigDeltas; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressBytes(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressBytes) + { + $this->progressBytes = $progressBytes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressBytes() + { + return $this->progressBytes; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressDocuments(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressDocuments) + { + $this->progressDocuments = $progressDocuments; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressDocuments() + { + return $this->progressDocuments; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsMetadata.php new file mode 100644 index 00000000..8d41ce5b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsMetadata.php @@ -0,0 +1,99 @@ +collectionIds = $collectionIds; + } + public function getCollectionIds() + { + return $this->collectionIds; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setInputUriPrefix($inputUriPrefix) + { + $this->inputUriPrefix = $inputUriPrefix; + } + public function getInputUriPrefix() + { + return $this->inputUriPrefix; + } + public function setOperationState($operationState) + { + $this->operationState = $operationState; + } + public function getOperationState() + { + return $this->operationState; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressBytes(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressBytes) + { + $this->progressBytes = $progressBytes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressBytes() + { + return $this->progressBytes; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressDocuments(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressDocuments) + { + $this->progressDocuments = $progressDocuments; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressDocuments() + { + return $this->progressDocuments; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsRequest.php new file mode 100644 index 00000000..3f946e7b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ImportDocumentsRequest.php @@ -0,0 +1,40 @@ +collectionIds = $collectionIds; + } + public function getCollectionIds() + { + return $this->collectionIds; + } + public function setInputUriPrefix($inputUriPrefix) + { + $this->inputUriPrefix = $inputUriPrefix; + } + public function getInputUriPrefix() + { + return $this->inputUriPrefix; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Index.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Index.php similarity index 70% rename from vendor/google/apiclient-services/src/Google/Service/Firestore/Index.php rename to vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Index.php index 65c905fc..2e268e57 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/Index.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1Index.php @@ -15,32 +15,24 @@ * the License. */ -class Google_Service_Firestore_Index extends Google_Collection +class Google_Service_Firestore_GoogleFirestoreAdminV1Index extends Google_Collection { protected $collection_key = 'fields'; - public $collectionId; - protected $fieldsType = 'Google_Service_Firestore_IndexField'; + protected $fieldsType = 'Google_Service_Firestore_GoogleFirestoreAdminV1IndexField'; protected $fieldsDataType = 'array'; public $name; + public $queryScope; public $state; - public function setCollectionId($collectionId) - { - $this->collectionId = $collectionId; - } - public function getCollectionId() - { - return $this->collectionId; - } /** - * @param Google_Service_Firestore_IndexField + * @param Google_Service_Firestore_GoogleFirestoreAdminV1IndexField */ public function setFields($fields) { $this->fields = $fields; } /** - * @return Google_Service_Firestore_IndexField + * @return Google_Service_Firestore_GoogleFirestoreAdminV1IndexField */ public function getFields() { @@ -54,6 +46,14 @@ class Google_Service_Firestore_Index extends Google_Collection { return $this->name; } + public function setQueryScope($queryScope) + { + $this->queryScope = $queryScope; + } + public function getQueryScope() + { + return $this->queryScope; + } public function setState($state) { $this->state = $state; diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfig.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfig.php new file mode 100644 index 00000000..d8dd8e02 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfig.php @@ -0,0 +1,65 @@ +ancestorField = $ancestorField; + } + public function getAncestorField() + { + return $this->ancestorField; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function setIndexes($indexes) + { + $this->indexes = $indexes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function getIndexes() + { + return $this->indexes; + } + public function setReverting($reverting) + { + $this->reverting = $reverting; + } + public function getReverting() + { + return $this->reverting; + } + public function setUsesAncestorConfig($usesAncestorConfig) + { + $this->usesAncestorConfig = $usesAncestorConfig; + } + public function getUsesAncestorConfig() + { + return $this->usesAncestorConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfigDelta.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfigDelta.php new file mode 100644 index 00000000..345b4fad --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexConfigDelta.php @@ -0,0 +1,46 @@ +changeType = $changeType; + } + public function getChangeType() + { + return $this->changeType; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function setIndex(Google_Service_Firestore_GoogleFirestoreAdminV1Index $index) + { + $this->index = $index; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function getIndex() + { + return $this->index; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/IndexField.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexField.php similarity index 66% rename from vendor/google/apiclient-services/src/Google/Service/Firestore/IndexField.php rename to vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexField.php index 97c6af44..3f618ee3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/IndexField.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexField.php @@ -15,11 +15,20 @@ * the License. */ -class Google_Service_Firestore_IndexField extends Google_Model +class Google_Service_Firestore_GoogleFirestoreAdminV1IndexField extends Google_Model { + public $arrayConfig; public $fieldPath; - public $mode; + public $order; + public function setArrayConfig($arrayConfig) + { + $this->arrayConfig = $arrayConfig; + } + public function getArrayConfig() + { + return $this->arrayConfig; + } public function setFieldPath($fieldPath) { $this->fieldPath = $fieldPath; @@ -28,12 +37,12 @@ class Google_Service_Firestore_IndexField extends Google_Model { return $this->fieldPath; } - public function setMode($mode) + public function setOrder($order) { - $this->mode = $mode; + $this->order = $order; } - public function getMode() + public function getOrder() { - return $this->mode; + return $this->order; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexOperationMetadata.php new file mode 100644 index 00000000..96da86ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1IndexOperationMetadata.php @@ -0,0 +1,89 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressBytes(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressBytes) + { + $this->progressBytes = $progressBytes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressBytes() + { + return $this->progressBytes; + } + /** + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function setProgressDocuments(Google_Service_Firestore_GoogleFirestoreAdminV1Progress $progressDocuments) + { + $this->progressDocuments = $progressDocuments; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Progress + */ + public function getProgressDocuments() + { + return $this->progressDocuments; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListFieldsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListFieldsResponse.php new file mode 100644 index 00000000..d71e8f9f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListFieldsResponse.php @@ -0,0 +1,47 @@ +fields = $fields; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Field + */ + public function getFields() + { + return $this->fields; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListIndexesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListIndexesResponse.php new file mode 100644 index 00000000..bc16029b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1ListIndexesResponse.php @@ -0,0 +1,47 @@ +indexes = $indexes; + } + /** + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function getIndexes() + { + return $this->indexes; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1LocationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1LocationMetadata.php new file mode 100644 index 00000000..6072d71b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleFirestoreAdminV1LocationMetadata.php @@ -0,0 +1,20 @@ +completedWork = $completedWork; + } + public function getCompletedWork() + { + return $this->completedWork; + } + public function setEstimatedWork($estimatedWork) + { + $this->estimatedWork = $estimatedWork; + } + public function getEstimatedWork() + { + return $this->estimatedWork; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningCancelOperationRequest.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningCancelOperationRequest.php new file mode 100644 index 00000000..01a6b4c3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningCancelOperationRequest.php @@ -0,0 +1,20 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Firestore_GoogleLongrunningOperation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Operation.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningOperation.php similarity index 95% rename from vendor/google/apiclient-services/src/Google/Service/Firestore/Operation.php rename to vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningOperation.php index 8e1353be..0ceca16f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/Operation.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/GoogleLongrunningOperation.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_Firestore_Operation extends Google_Model +class Google_Service_Firestore_GoogleLongrunningOperation extends Google_Model { public $done; protected $errorType = 'Google_Service_Firestore_Status'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/ListLocationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/ListLocationsResponse.php new file mode 100644 index 00000000..df63892b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/ListLocationsResponse.php @@ -0,0 +1,47 @@ +locations = $locations; + } + /** + * @return Google_Service_Firestore_Location + */ + public function getLocations() + { + return $this->locations; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Location.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Location.php new file mode 100644 index 00000000..24667ee3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Location.php @@ -0,0 +1,66 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabases.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabases.php index 80c0618d..7e79eba6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabases.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabases.php @@ -25,4 +25,46 @@ */ class Google_Service_Firestore_Resource_ProjectsDatabases extends Google_Service_Resource { + /** + * Exports a copy of all or a subset of documents from Google Cloud Firestore to + * another storage system, such as Google Cloud Storage. Recent updates to + * documents may not be reflected in the export. The export occurs in the + * background and its progress can be monitored and managed via the Operation + * resource that is created. The output of an export may only be used once the + * associated operation is done. If an export operation is cancelled before + * completion it may leave partial data behind in Google Cloud Storage. + * (databases.exportDocuments) + * + * @param string $name Database to export. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + * @param Google_Service_Firestore_GoogleFirestoreAdminV1ExportDocumentsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function exportDocuments($name, Google_Service_Firestore_GoogleFirestoreAdminV1ExportDocumentsRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('exportDocuments', array($params), "Google_Service_Firestore_GoogleLongrunningOperation"); + } + /** + * Imports documents into Google Cloud Firestore. Existing documents with the + * same name are overwritten. The import occurs in the background and its + * progress can be monitored and managed via the Operation resource that is + * created. If an ImportDocuments operation is cancelled, it is possible that a + * subset of the data has already been imported to Cloud Firestore. + * (databases.importDocuments) + * + * @param string $name Database to import into. Should be of the form: + * `projects/{project_id}/databases/{database_id}`. + * @param Google_Service_Firestore_GoogleFirestoreAdminV1ImportDocumentsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function importDocuments($name, Google_Service_Firestore_GoogleFirestoreAdminV1ImportDocumentsRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('importDocuments', array($params), "Google_Service_Firestore_GoogleLongrunningOperation"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroups.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroups.php new file mode 100644 index 00000000..a3eb0a83 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroups.php @@ -0,0 +1,28 @@ + + * $firestoreService = new Google_Service_Firestore(...); + * $collectionGroups = $firestoreService->collectionGroups; + * + */ +class Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroups extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsFields.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsFields.php new file mode 100644 index 00000000..53faca67 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsFields.php @@ -0,0 +1,121 @@ + + * $firestoreService = new Google_Service_Firestore(...); + * $fields = $firestoreService->fields; + * + */ +class Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsFields extends Google_Service_Resource +{ + /** + * Gets the metadata and configuration for a Field. (fields.get) + * + * @param string $name A name of the form `projects/{project_id}/databases/{data + * base_id}/collectionGroups/{collection_id}/fields/{field_id}` + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Field + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Firestore_GoogleFirestoreAdminV1Field"); + } + /** + * Lists the field configuration and metadata for this database. + * + * Currently, FirestoreAdmin.ListFields only supports listing fields that have + * been explicitly overridden. To issue this query, call + * FirestoreAdmin.ListFields with the filter set to + * `indexConfig.usesAncestorConfig:false`. + * (fields.listProjectsDatabasesCollectionGroupsFields) + * + * @param string $parent A parent name of the form `projects/{project_id}/databa + * ses/{database_id}/collectionGroups/{collection_id}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter The filter to apply to list results. Currently, + * FirestoreAdmin.ListFields only supports listing fields that have been + * explicitly overridden. To issue this query, call FirestoreAdmin.ListFields + * with the filter set to `indexConfig.usesAncestorConfig:false`. + * @opt_param string pageToken A page token, returned from a previous call to + * FirestoreAdmin.ListFields, that may be used to get the next page of results. + * @opt_param int pageSize The number of results to return. + * @return Google_Service_Firestore_GoogleFirestoreAdminV1ListFieldsResponse + */ + public function listProjectsDatabasesCollectionGroupsFields($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Firestore_GoogleFirestoreAdminV1ListFieldsResponse"); + } + /** + * Updates a field configuration. Currently, field updates apply only to single + * field index configuration. However, calls to FirestoreAdmin.UpdateField + * should provide a field mask to avoid changing any configuration that the + * caller isn't aware of. The field mask should be specified as: `{ paths: + * "index_config" }`. + * + * This call returns a google.longrunning.Operation which may be used to track + * the status of the field update. The metadata for the operation will be the + * type FieldOperationMetadata. + * + * To configure the default field settings for the database, use the special + * `Field` with resource name: `projects/{project_id}/databases/{database_id}/co + * llectionGroups/__default__/fields`. (fields.patch) + * + * @param string $name A field name of the form `projects/{project_id}/databases + * /{database_id}/collectionGroups/{collection_id}/fields/{field_path}` + * + * A field path may be a simple field name, e.g. `address` or a path to fields + * within map_value , e.g. `address.city`, or a special field path. The only + * valid special field is `*`, which represents any field. + * + * Field paths may be quoted using ` (backtick). The only character that needs + * to be escaped within a quoted field path is the backtick character itself, + * escaped using a backslash. Special characters in field paths that must be + * quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii + * symbolic characters. + * + * Examples: (Note: Comments here are written in markdown syntax, so there is an + * additional layer of backticks to represent a code block) `\`address.city\`` + * represents a field named `address.city`, not the map key `city` in the field + * `address`. `\`*\`` represents a field named `*`, not any field. + * + * A special `Field` contains the default indexing settings for all fields. This + * field's resource name is: `projects/{project_id}/databases/{database_id}/coll + * ectionGroups/__default__/fields` Indexes defined on this `Field` will be + * applied to all fields which do not have their own `Field` index + * configuration. + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Field $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask A mask, relative to the field. If specified, + * only configuration specified by this field_mask will be updated in the field. + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function patch($name, Google_Service_Firestore_GoogleFirestoreAdminV1Field $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Firestore_GoogleLongrunningOperation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsIndexes.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsIndexes.php new file mode 100644 index 00000000..6da369cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesCollectionGroupsIndexes.php @@ -0,0 +1,93 @@ + + * $firestoreService = new Google_Service_Firestore(...); + * $indexes = $firestoreService->indexes; + * + */ +class Google_Service_Firestore_Resource_ProjectsDatabasesCollectionGroupsIndexes extends Google_Service_Resource +{ + /** + * Creates a composite index. This returns a google.longrunning.Operation which + * may be used to track the status of the creation. The metadata for the + * operation will be the type IndexOperationMetadata. (indexes.create) + * + * @param string $parent A parent name of the form `projects/{project_id}/databa + * ses/{database_id}/collectionGroups/{collection_id}` + * @param Google_Service_Firestore_GoogleFirestoreAdminV1Index $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function create($parent, Google_Service_Firestore_GoogleFirestoreAdminV1Index $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Firestore_GoogleLongrunningOperation"); + } + /** + * Deletes a composite index. (indexes.delete) + * + * @param string $name A name of the form `projects/{project_id}/databases/{data + * base_id}/collectionGroups/{collection_id}/indexes/{index_id}` + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_FirestoreEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Firestore_FirestoreEmpty"); + } + /** + * Gets a composite index. (indexes.get) + * + * @param string $name A name of the form `projects/{project_id}/databases/{data + * base_id}/collectionGroups/{collection_id}/indexes/{index_id}` + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleFirestoreAdminV1Index + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Firestore_GoogleFirestoreAdminV1Index"); + } + /** + * Lists composite indexes. + * (indexes.listProjectsDatabasesCollectionGroupsIndexes) + * + * @param string $parent A parent name of the form `projects/{project_id}/databa + * ses/{database_id}/collectionGroups/{collection_id}` + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The number of results to return. + * @opt_param string filter The filter to apply to list results. + * @opt_param string pageToken A page token, returned from a previous call to + * FirestoreAdmin.ListIndexes, that may be used to get the next page of results. + * @return Google_Service_Firestore_GoogleFirestoreAdminV1ListIndexesResponse + */ + public function listProjectsDatabasesCollectionGroupsIndexes($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Firestore_GoogleFirestoreAdminV1ListIndexesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesDocuments.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesDocuments.php index e9127284..91dc4a7e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesDocuments.php +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesDocuments.php @@ -85,12 +85,12 @@ class Google_Service_Firestore_Resource_ProjectsDatabasesDocuments extends Googl * @param Google_Service_Firestore_Document $postBody * @param array $optParams Optional parameters. * + * @opt_param string mask.fieldPaths The list of field paths in the mask. See + * Document.fields for a field path syntax reference. * @opt_param string documentId The client-assigned document ID to use for this * document. * * Optional. If not specified, an ID will be assigned by the service. - * @opt_param string mask.fieldPaths The list of field paths in the mask. See - * Document.fields for a field path syntax reference. * @return Google_Service_Firestore_Document */ public function createDocument($parent, $collectionId, Google_Service_Firestore_Document $postBody, $optParams = array()) @@ -107,10 +107,10 @@ class Google_Service_Firestore_Resource_ProjectsDatabasesDocuments extends Googl * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. * @param array $optParams Optional parameters. * - * @opt_param string currentDocument.updateTime When set, the target document - * must exist and have been last updated at that time. * @opt_param bool currentDocument.exists When set to `true`, the target * document must exist. When set to `false`, the target document must not exist. + * @opt_param string currentDocument.updateTime When set, the target document + * must exist and have been last updated at that time. * @return Google_Service_Firestore_FirestoreEmpty */ public function delete($name, $optParams = array()) @@ -126,11 +126,11 @@ class Google_Service_Firestore_Resource_ProjectsDatabasesDocuments extends Googl * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. * @param array $optParams Optional parameters. * - * @opt_param string transaction Reads the document in a transaction. * @opt_param string mask.fieldPaths The list of field paths in the mask. See * Document.fields for a field path syntax reference. * @opt_param string readTime Reads the version of the document at the given * time. This may not be older than 60 seconds. + * @opt_param string transaction Reads the document in a transaction. * @return Google_Service_Firestore_Document */ public function get($name, $optParams = array()) @@ -151,6 +151,7 @@ class Google_Service_Firestore_Resource_ProjectsDatabasesDocuments extends Googl * For example: `chatrooms` or `messages`. * @param array $optParams Optional parameters. * + * @opt_param string transaction Reads documents in a transaction. * @opt_param string orderBy The order to sort results by. For example: * `priority desc, name`. * @opt_param string readTime Reads documents as they were at the given time. @@ -161,12 +162,11 @@ class Google_Service_Firestore_Resource_ProjectsDatabasesDocuments extends Googl * Document.create_time, or Document.update_time set. * * Requests with `show_missing` may not specify `where` or `order_by`. - * @opt_param string pageToken The `next_page_token` value returned from a - * previous List request, if any. * @opt_param string mask.fieldPaths The list of field paths in the mask. See * Document.fields for a field path syntax reference. + * @opt_param string pageToken The `next_page_token` value returned from a + * previous List request, if any. * @opt_param int pageSize The maximum number of documents to return. - * @opt_param string transaction Reads documents in a transaction. * @return Google_Service_Firestore_ListDocumentsResponse */ public function listProjectsDatabasesDocuments($parent, $collectionId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesIndexes.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesIndexes.php deleted file mode 100644 index 6e066d12..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesIndexes.php +++ /dev/null @@ -1,100 +0,0 @@ - - * $firestoreService = new Google_Service_Firestore(...); - * $indexes = $firestoreService->indexes; - * - */ -class Google_Service_Firestore_Resource_ProjectsDatabasesIndexes extends Google_Service_Resource -{ - /** - * Creates the specified index. A newly created index's initial state is - * `CREATING`. On completion of the returned google.longrunning.Operation, the - * state will be `READY`. If the index already exists, the call will return an - * `ALREADY_EXISTS` status. - * - * During creation, the process could result in an error, in which case the - * index will move to the `ERROR` state. The process can be recovered by fixing - * the data that caused the error, removing the index with delete, then re- - * creating the index with create. - * - * Indexes with a single field cannot be created. (indexes.create) - * - * @param string $parent The name of the database this index will apply to. For - * example: `projects/{project_id}/databases/{database_id}` - * @param Google_Service_Firestore_Index $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Firestore_Operation - */ - public function create($parent, Google_Service_Firestore_Index $postBody, $optParams = array()) - { - $params = array('parent' => $parent, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Firestore_Operation"); - } - /** - * Deletes an index. (indexes.delete) - * - * @param string $name The index name. For example: - * `projects/{project_id}/databases/{database_id}/indexes/{index_id}` - * @param array $optParams Optional parameters. - * @return Google_Service_Firestore_FirestoreEmpty - */ - public function delete($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Firestore_FirestoreEmpty"); - } - /** - * Gets an index. (indexes.get) - * - * @param string $name The name of the index. For example: - * `projects/{project_id}/databases/{database_id}/indexes/{index_id}` - * @param array $optParams Optional parameters. - * @return Google_Service_Firestore_Index - */ - public function get($name, $optParams = array()) - { - $params = array('name' => $name); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Firestore_Index"); - } - /** - * Lists the indexes that match the specified filters. - * (indexes.listProjectsDatabasesIndexes) - * - * @param string $parent The database name. For example: - * `projects/{project_id}/databases/{database_id}` - * @param array $optParams Optional parameters. - * - * @opt_param string filter - * @opt_param string pageToken The standard List page token. - * @opt_param int pageSize The standard List page size. - * @return Google_Service_Firestore_ListIndexesResponse - */ - public function listProjectsDatabasesIndexes($parent, $optParams = array()) - { - $params = array('parent' => $parent); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Firestore_ListIndexesResponse"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesOperations.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesOperations.php new file mode 100644 index 00000000..6685076f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsDatabasesOperations.php @@ -0,0 +1,108 @@ + + * $firestoreService = new Google_Service_Firestore(...); + * $operations = $firestoreService->operations; + * + */ +class Google_Service_Firestore_Resource_ProjectsDatabasesOperations extends Google_Service_Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param Google_Service_Firestore_GoogleLongrunningCancelOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_FirestoreEmpty + */ + public function cancel($name, Google_Service_Firestore_GoogleLongrunningCancelOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Firestore_FirestoreEmpty"); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_FirestoreEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Firestore_FirestoreEmpty"); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_GoogleLongrunningOperation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Firestore_GoogleLongrunningOperation"); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listProjectsDatabasesOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_Firestore_GoogleLongrunningListOperationsResponse + */ + public function listProjectsDatabasesOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Firestore_GoogleLongrunningListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsLocations.php new file mode 100644 index 00000000..c93d1f2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Firestore/Resource/ProjectsLocations.php @@ -0,0 +1,60 @@ + + * $firestoreService = new Google_Service_Firestore(...); + * $locations = $firestoreService->locations; + * + */ +class Google_Service_Firestore_Resource_ProjectsLocations extends Google_Service_Resource +{ + /** + * Gets information about a location. (locations.get) + * + * @param string $name Resource name for the location. + * @param array $optParams Optional parameters. + * @return Google_Service_Firestore_Location + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Firestore_Location"); + } + /** + * Lists information about the supported locations for this service. + * (locations.listProjectsLocations) + * + * @param string $name The resource that owns the locations collection, if + * applicable. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. + * @return Google_Service_Firestore_ListLocationsResponse + */ + public function listProjectsLocations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Firestore_ListLocationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Fitness.php b/vendor/google/apiclient-services/src/Google/Service/Fitness.php index b511892d..758c93c4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Fitness.php +++ b/vendor/google/apiclient-services/src/Google/Service/Fitness.php @@ -101,6 +101,7 @@ class Google_Service_Fitness extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fitness/v1/users/'; + $this->batchPath = 'batch/fitness/v1'; $this->version = 'v1'; $this->serviceName = 'fitness'; @@ -165,21 +166,6 @@ class Google_Service_Fitness extends Google_Service 'repeated' => true, ), ), - ),'patch' => array( - 'path' => '{userId}/dataSources/{dataSourceId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'update' => array( 'path' => '{userId}/dataSources/{dataSourceId}', 'httpMethod' => 'PUT', diff --git a/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php b/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php index d2745008..cd6ad93a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php +++ b/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php @@ -99,27 +99,6 @@ class Google_Service_Fitness_Resource_UsersDataSources extends Google_Service_Re $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse"); } - /** - * Updates the specified data source. The dataStreamId, dataType, type, - * dataStreamName, and device properties with the exception of version, cannot - * be modified. - * - * Data sources are identified by their dataStreamId. This method supports patch - * semantics. (dataSources.patch) - * - * @param string $userId Update the data source for the person identified. Use - * me to indicate the authenticated user. Only me is supported at this time. - * @param string $dataSourceId The data stream ID of the data source to update. - * @param Google_Service_Fitness_DataSource $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Fitness_DataSource - */ - public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Fitness_DataSource"); - } /** * Updates the specified data source. The dataStreamId, dataType, type, * dataStreamName, and device properties with the exception of version, cannot diff --git a/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php b/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php index 6346e7ba..bd588b2d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php @@ -54,9 +54,13 @@ class Google_Service_Fitness_Resource_UsersSessions extends Google_Service_Resou * @opt_param bool includeDeleted If true, deleted sessions will be returned. * When set to true, sessions returned in this response will only have an ID and * will not have any other fields. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. + * @opt_param string pageToken The continuation token, which is used for + * incremental syncing. To get the next batch of changes, set this parameter to + * the value of nextPageToken from the previous response. This token is treated + * as a timestamp (in millis since epoch). If specified, the API returns + * sessions modified since this time. The page token is ignored if either start + * or end time is specified. If none of start time, end time, and the page token + * is specified, sessions modified in the last 7 days are returned. * @opt_param string startTime An RFC3339 timestamp. Only sessions ending * between the start and end times will be included in the response. * @return Google_Service_Fitness_ListSessionsResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/Fusiontables.php b/vendor/google/apiclient-services/src/Google/Service/Fusiontables.php index 8b9ea7bf..1cdaded4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Fusiontables.php +++ b/vendor/google/apiclient-services/src/Google/Service/Fusiontables.php @@ -54,6 +54,7 @@ class Google_Service_Fusiontables extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fusiontables/v2/'; + $this->batchPath = 'batch/fusiontables/v2'; $this->version = 'v2'; $this->serviceName = 'fusiontables'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Games.php b/vendor/google/apiclient-services/src/Google/Service/Games.php index 1a6b9226..4c0f663d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Games.php +++ b/vendor/google/apiclient-services/src/Google/Service/Games.php @@ -33,12 +33,12 @@ class Google_Service_Games extends Google_Service /** View and manage its own configuration data in your Google Drive. */ const DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"; - /** Share your Google+ profile information and view and manage your game activity. */ + /** Create, edit, and delete your Google Play Games activity. */ const GAMES = "https://www.googleapis.com/auth/games"; - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; + /** Know who you are on Google. */ + const PLUS_ME = + "https://www.googleapis.com/auth/plus.me"; public $achievementDefinitions; public $achievements; @@ -66,6 +66,7 @@ class Google_Service_Games extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1/'; + $this->batchPath = 'batch/games/v1'; $this->version = 'v1'; $this->serviceName = 'games'; @@ -181,11 +182,20 @@ class Google_Service_Games extends Google_Service 'type' => 'string', 'required' => true, ), + 'builtinGameId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'updateMultiple' => array( 'path' => 'achievements/updateMultiple', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'builtinGameId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ), ) ) @@ -217,7 +227,12 @@ class Google_Service_Games extends Google_Service ),'played' => array( 'path' => 'applications/played', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'builtinGameId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'verify' => array( 'path' => 'applications/{applicationId}/verify', 'httpMethod' => 'GET', diff --git a/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php b/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php index 17484429..505a7f85 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php +++ b/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php @@ -106,6 +106,9 @@ class Google_Service_Games_Resource_Achievements extends Google_Service_Resource * * @param string $achievementId The ID of the achievement used by this method. * @param array $optParams Optional parameters. + * + * @opt_param string builtinGameId Override used only by built-in games in Play + * Games application. * @return Google_Service_Games_AchievementUnlockResponse */ public function unlock($achievementId, $optParams = array()) @@ -120,6 +123,9 @@ class Google_Service_Games_Resource_Achievements extends Google_Service_Resource * * @param Google_Service_Games_AchievementUpdateMultipleRequest $postBody * @param array $optParams Optional parameters. + * + * @opt_param string builtinGameId Override used only by built-in games in Play + * Games application. * @return Google_Service_Games_AchievementUpdateMultipleResponse */ public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php b/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php index 1a5cd670..2a3a0f1a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php +++ b/vendor/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php @@ -51,6 +51,9 @@ class Google_Service_Games_Resource_Applications extends Google_Service_Resource * application. (applications.played) * * @param array $optParams Optional parameters. + * + * @opt_param string builtinGameId Override used only by built-in games in Play + * Games application. */ public function played($optParams = array()) { diff --git a/vendor/google/apiclient-services/src/Google/Service/GamesConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/GamesConfiguration.php index eaa5459e..5cd78a83 100644 --- a/vendor/google/apiclient-services/src/Google/Service/GamesConfiguration.php +++ b/vendor/google/apiclient-services/src/Google/Service/GamesConfiguration.php @@ -48,6 +48,7 @@ class Google_Service_GamesConfiguration extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1configuration/'; + $this->batchPath = 'batch/gamesConfiguration/v1configuration'; $this->version = 'v1configuration'; $this->serviceName = 'gamesConfiguration'; diff --git a/vendor/google/apiclient-services/src/Google/Service/GamesManagement.php b/vendor/google/apiclient-services/src/Google/Service/GamesManagement.php index 39d24263..d70a39e7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/GamesManagement.php +++ b/vendor/google/apiclient-services/src/Google/Service/GamesManagement.php @@ -30,12 +30,9 @@ */ class Google_Service_GamesManagement extends Google_Service { - /** Share your Google+ profile information and view and manage your game activity. */ + /** Create, edit, and delete your Google Play Games activity. */ const GAMES = "https://www.googleapis.com/auth/games"; - /** Know the list of people in your circles, your age range, and language. */ - const PLUS_LOGIN = - "https://www.googleapis.com/auth/plus.login"; public $achievements; public $applications; @@ -56,6 +53,7 @@ class Google_Service_GamesManagement extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1management/'; + $this->batchPath = 'batch/gamesManagement/v1management'; $this->version = 'v1management'; $this->serviceName = 'gamesManagement'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics.php b/vendor/google/apiclient-services/src/Google/Service/Genomics.php index e18ff574..6a00d43e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics.php @@ -19,7 +19,7 @@ * Service definition for Genomics (v1). * *
- * Upload, process, query, and search Genomics data in the cloud.
+ * Uploads, processes, queries, and searches Genomics data in the cloud. * ** For more information about this service, see the API @@ -70,6 +70,7 @@ class Google_Service_Genomics extends Google_Service parent::__construct($client); $this->rootUrl = 'https://genomics.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'genomics'; @@ -277,6 +278,10 @@ class Google_Service_Genomics extends Google_Service 'path' => 'v1/datasets', 'httpMethod' => 'GET', 'parameters' => array( + 'projectId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -285,10 +290,6 @@ class Google_Service_Genomics extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'projectId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/datasets/{datasetId}', @@ -373,10 +374,6 @@ class Google_Service_Genomics extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -385,6 +382,10 @@ class Google_Service_Genomics extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -549,6 +550,10 @@ class Google_Service_Genomics extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -561,10 +566,6 @@ class Google_Service_Genomics extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/Binding.php index 6b845093..873b914f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/Binding.php @@ -18,9 +18,25 @@ class Google_Service_Genomics_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_Genomics_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_Genomics_Expr + */ + public function setCondition(Google_Service_Genomics_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Genomics_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerKilledEvent.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerKilledEvent.php new file mode 100644 index 00000000..87eef98f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerKilledEvent.php @@ -0,0 +1,30 @@ +actionId = $actionId; + } + public function getActionId() + { + return $this->actionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerStoppedEvent.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerStoppedEvent.php index f97c73f4..27369c5d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerStoppedEvent.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/ContainerStoppedEvent.php @@ -19,6 +19,7 @@ class Google_Service_Genomics_ContainerStoppedEvent extends Google_Model { public $actionId; public $exitStatus; + public $stderr; public function setActionId($actionId) { @@ -36,4 +37,12 @@ class Google_Service_Genomics_ContainerStoppedEvent extends Google_Model { return $this->exitStatus; } + public function setStderr($stderr) + { + $this->stderr = $stderr; + } + public function getStderr() + { + return $this->stderr; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/Expr.php new file mode 100644 index 00000000..d83a0165 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php index 26b4558d..c8dea8a9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php @@ -90,13 +90,13 @@ class Google_Service_Genomics_Resource_Datasets extends Google_Service_Resource * * @param array $optParams Optional parameters. * + * @opt_param string projectId Required. The Google Cloud project ID to list + * datasets for. * @opt_param string pageToken The continuation token, which is used to page * through large result sets. To get the next page of results, set this * parameter to the value of `nextPageToken` from the previous response. * @opt_param int pageSize The maximum number of results to return in a single * page. If unspecified, defaults to 50. The maximum value is 1024. - * @opt_param string projectId Required. The Google Cloud project ID to list - * datasets for. * @return Google_Service_Genomics_ListDatasetsResponse */ public function listDatasets($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php index 62170dad..a912e488 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php @@ -30,7 +30,10 @@ class Google_Service_Genomics_Resource_Operations extends Google_Service_Resourc * makes a best effort to cancel the operation, but success is not guaranteed. * Clients may use Operations.GetOperation or Operations.ListOperations to check * whether the cancellation succeeded or the operation completed despite - * cancellation. (operations.cancel) + * cancellation. Authorization requires the following [Google + * IAM](https://cloud.google.com/iam) permission + * + * * `genomics.operations.cancel` (operations.cancel) * * @param string $name The name of the operation resource to be cancelled. * @param Google_Service_Genomics_CancelOperationRequest $postBody @@ -44,9 +47,12 @@ class Google_Service_Genomics_Resource_Operations extends Google_Service_Resourc return $this->call('cancel', array($params), "Google_Service_Genomics_GenomicsEmpty"); } /** - * Gets the latest state of a long-running operation. Clients can use this + * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API - * service. (operations.get) + * service. Authorization requires the following [Google + * IAM](https://cloud.google.com/iam) permission + * + * * `genomics.operations.get` (operations.get) * * @param string $name The name of the operation resource. * @param array $optParams Optional parameters. @@ -60,11 +66,17 @@ class Google_Service_Genomics_Resource_Operations extends Google_Service_Resourc } /** * Lists operations that match the specified filter in the request. - * (operations.listOperations) + * Authorization requires the following [Google + * IAM](https://cloud.google.com/iam) permission + * + * * `genomics.operations.list` (operations.listOperations) * * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The maximum number of results to return. The maximum + * value is 256. * @opt_param string filter A string for filtering Operations. In v2alpha1, the * following filter fields are supported * @@ -73,7 +85,8 @@ class Google_Service_Genomics_Resource_Operations extends Google_Service_Resourc * to determine if a particular event has occurred. * error If the pipeline is * running, this value is NULL. Once the pipeline finishes, the value is the * standard Google error code. * labels.key or labels."key with space" where key - * is a label key. + * is a label key. * done If the pipeline is running, this value is false. Once + * the pipeline finishes, the value is true. * * In v1 and v1alpha2, the following filter fields are supported * @@ -89,9 +102,6 @@ class Google_Service_Genomics_Resource_Operations extends Google_Service_Resourc * project AND createTime >= 1432140000 AND createTime <= 1432150000 AND status * = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId = my- * project AND labels.color = red` - * @opt_param string pageToken The standard list page token. - * @opt_param int pageSize The maximum number of results to return. If - * unspecified, defaults to 256. The maximum value is 2048. * @return Google_Service_Genomics_ListOperationsResponse */ public function listOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php index b0058d8d..f378fe13 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php @@ -35,6 +35,9 @@ class Google_Service_Genomics_Resource_ReferencesBases extends Google_Service_Re * @param string $referenceId The ID of the reference. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of `nextPageToken` from the previous response. * @opt_param int pageSize The maximum number of bases to return in a single * page. If unspecified, defaults to 200Kbp (kilo base pairs). The maximum value * is 10Mbp (mega base pairs). @@ -42,9 +45,6 @@ class Google_Service_Genomics_Resource_ReferencesBases extends Google_Service_Re * to 0. * @opt_param string end The end position (0-based, exclusive) of this query. * Defaults to the length of this reference. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of `nextPageToken` from the previous response. * @return Google_Service_Genomics_ListBasesResponse */ public function listReferencesBases($referenceId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Genomics/RunPipelineResponse.php b/vendor/google/apiclient-services/src/Google/Service/Genomics/RunPipelineResponse.php new file mode 100644 index 00000000..4b5ab2ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Genomics/RunPipelineResponse.php @@ -0,0 +1,20 @@ +rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'gmail/v1/users/'; + $this->batchPath = 'batch/gmail/v1'; $this->version = 'v1'; $this->serviceName = 'gmail'; @@ -682,6 +684,66 @@ class Google_Service_Gmail extends Google_Service ) ) ); + $this->users_settings_delegates = new Google_Service_Gmail_Resource_UsersSettingsDelegates( + $this, + $this->serviceName, + 'delegates', + array( + 'methods' => array( + 'create' => array( + 'path' => '{userId}/settings/delegates', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{userId}/settings/delegates/{delegateEmail}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'delegateEmail' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{userId}/settings/delegates/{delegateEmail}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'delegateEmail' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{userId}/settings/delegates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->users_settings_filters = new Google_Service_Gmail_Resource_UsersSettingsFilters( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php b/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php new file mode 100644 index 00000000..72d6a4db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php @@ -0,0 +1,39 @@ +delegateEmail = $delegateEmail; + } + public function getDelegateEmail() + { + return $this->delegateEmail; + } + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + public function getVerificationStatus() + { + return $this->verificationStatus; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php new file mode 100644 index 00000000..b0f19c10 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php @@ -0,0 +1,38 @@ +delegates = $delegates; + } + /** + * @return Google_Service_Gmail_Delegate + */ + public function getDelegates() + { + return $this->delegates; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php b/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php new file mode 100644 index 00000000..1b363b5f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php @@ -0,0 +1,119 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $delegates = $gmailService->delegates; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Service_Resource +{ + /** + * Adds a delegate with its verification status set directly to accepted, + * without sending any verification email. The delegate user must be a member of + * the same G Suite organization as the delegator user. + * + * Gmail imposes limtations on the number of delegates and delegators each user + * in a G Suite organization can have. These limits depend on your organization, + * but in general each user can have up to 25 delegates and up to 10 delegators. + * + * Note that a delegate user must be referred to by their primary email address, + * and not an email alias. + * + * Also note that when a new delegate is created, there may be up to a one + * minute delay before the new delegate is available for use. + * + * This method is only available to service account clients that have been + * delegated domain-wide authority. (delegates.create) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Delegate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Delegate + */ + public function create($userId, Google_Service_Gmail_Delegate $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Delegate"); + } + /** + * Removes the specified delegate (which can be of any verification status), and + * revokes any verification that may have been required for using it. + * + * Note that a delegate user must be referred to by their primary email address, + * and not an email alias. + * + * This method is only available to service account clients that have been + * delegated domain-wide authority. (delegates.delete) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $delegateEmail The email address of the user to be removed as a + * delegate. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $delegateEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified delegate. + * + * Note that a delegate user must be referred to by their primary email address, + * and not an email alias. + * + * This method is only available to service account clients that have been + * delegated domain-wide authority. (delegates.get) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $delegateEmail The email address of the user whose delegate + * relationship is to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Delegate + */ + public function get($userId, $delegateEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Delegate"); + } + /** + * Lists the delegates for the specified account. + * + * This method is only available to service account clients that have been + * delegated domain-wide authority. (delegates.listUsersSettingsDelegates) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListDelegatesResponse + */ + public function listUsersSettingsDelegates($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListDelegatesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/GroupsMigration.php b/vendor/google/apiclient-services/src/Google/Service/GroupsMigration.php index b71c406d..c1533db7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/GroupsMigration.php +++ b/vendor/google/apiclient-services/src/Google/Service/GroupsMigration.php @@ -46,6 +46,7 @@ class Google_Service_GroupsMigration extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; + $this->batchPath = 'batch/groupsmigration/v1'; $this->version = 'v1'; $this->serviceName = 'groupsmigration'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Groupssettings.php b/vendor/google/apiclient-services/src/Google/Service/Groupssettings.php index 9cf1da52..bc7a5c68 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Groupssettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Groupssettings.php @@ -46,6 +46,7 @@ class Google_Service_Groupssettings extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; + $this->batchPath = 'batch/groupssettings/v1'; $this->version = 'v1'; $this->serviceName = 'groupssettings'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php b/vendor/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php index b2483d34..507c0c0c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php +++ b/vendor/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php @@ -26,6 +26,7 @@ class Google_Service_Groupssettings_Groups extends Google_Model public $defaultMessageDenyNotificationText; public $description; public $email; + public $favoriteRepliesOnTop; public $includeCustomFooter; public $includeInGlobalAddressList; public $isArchived; @@ -41,11 +42,22 @@ class Google_Service_Groupssettings_Groups extends Google_Model public $showInGroupDirectory; public $spamModerationLevel; public $whoCanAdd; + public $whoCanAddReferences; + public $whoCanAssignTopics; public $whoCanContactOwner; + public $whoCanEnterFreeFormTags; public $whoCanInvite; public $whoCanJoin; public $whoCanLeaveGroup; + public $whoCanMarkDuplicate; + public $whoCanMarkFavoriteReplyOnAnyTopic; + public $whoCanMarkFavoriteReplyOnOwnTopic; + public $whoCanMarkNoResponseNeeded; + public $whoCanModifyTagsAndCategories; public $whoCanPostMessage; + public $whoCanTakeTopics; + public $whoCanUnassignTopic; + public $whoCanUnmarkFavoriteReplyOnAnyTopic; public $whoCanViewGroup; public $whoCanViewMembership; @@ -121,6 +133,14 @@ class Google_Service_Groupssettings_Groups extends Google_Model { return $this->email; } + public function setFavoriteRepliesOnTop($favoriteRepliesOnTop) + { + $this->favoriteRepliesOnTop = $favoriteRepliesOnTop; + } + public function getFavoriteRepliesOnTop() + { + return $this->favoriteRepliesOnTop; + } public function setIncludeCustomFooter($includeCustomFooter) { $this->includeCustomFooter = $includeCustomFooter; @@ -241,6 +261,22 @@ class Google_Service_Groupssettings_Groups extends Google_Model { return $this->whoCanAdd; } + public function setWhoCanAddReferences($whoCanAddReferences) + { + $this->whoCanAddReferences = $whoCanAddReferences; + } + public function getWhoCanAddReferences() + { + return $this->whoCanAddReferences; + } + public function setWhoCanAssignTopics($whoCanAssignTopics) + { + $this->whoCanAssignTopics = $whoCanAssignTopics; + } + public function getWhoCanAssignTopics() + { + return $this->whoCanAssignTopics; + } public function setWhoCanContactOwner($whoCanContactOwner) { $this->whoCanContactOwner = $whoCanContactOwner; @@ -249,6 +285,14 @@ class Google_Service_Groupssettings_Groups extends Google_Model { return $this->whoCanContactOwner; } + public function setWhoCanEnterFreeFormTags($whoCanEnterFreeFormTags) + { + $this->whoCanEnterFreeFormTags = $whoCanEnterFreeFormTags; + } + public function getWhoCanEnterFreeFormTags() + { + return $this->whoCanEnterFreeFormTags; + } public function setWhoCanInvite($whoCanInvite) { $this->whoCanInvite = $whoCanInvite; @@ -273,6 +317,46 @@ class Google_Service_Groupssettings_Groups extends Google_Model { return $this->whoCanLeaveGroup; } + public function setWhoCanMarkDuplicate($whoCanMarkDuplicate) + { + $this->whoCanMarkDuplicate = $whoCanMarkDuplicate; + } + public function getWhoCanMarkDuplicate() + { + return $this->whoCanMarkDuplicate; + } + public function setWhoCanMarkFavoriteReplyOnAnyTopic($whoCanMarkFavoriteReplyOnAnyTopic) + { + $this->whoCanMarkFavoriteReplyOnAnyTopic = $whoCanMarkFavoriteReplyOnAnyTopic; + } + public function getWhoCanMarkFavoriteReplyOnAnyTopic() + { + return $this->whoCanMarkFavoriteReplyOnAnyTopic; + } + public function setWhoCanMarkFavoriteReplyOnOwnTopic($whoCanMarkFavoriteReplyOnOwnTopic) + { + $this->whoCanMarkFavoriteReplyOnOwnTopic = $whoCanMarkFavoriteReplyOnOwnTopic; + } + public function getWhoCanMarkFavoriteReplyOnOwnTopic() + { + return $this->whoCanMarkFavoriteReplyOnOwnTopic; + } + public function setWhoCanMarkNoResponseNeeded($whoCanMarkNoResponseNeeded) + { + $this->whoCanMarkNoResponseNeeded = $whoCanMarkNoResponseNeeded; + } + public function getWhoCanMarkNoResponseNeeded() + { + return $this->whoCanMarkNoResponseNeeded; + } + public function setWhoCanModifyTagsAndCategories($whoCanModifyTagsAndCategories) + { + $this->whoCanModifyTagsAndCategories = $whoCanModifyTagsAndCategories; + } + public function getWhoCanModifyTagsAndCategories() + { + return $this->whoCanModifyTagsAndCategories; + } public function setWhoCanPostMessage($whoCanPostMessage) { $this->whoCanPostMessage = $whoCanPostMessage; @@ -281,6 +365,30 @@ class Google_Service_Groupssettings_Groups extends Google_Model { return $this->whoCanPostMessage; } + public function setWhoCanTakeTopics($whoCanTakeTopics) + { + $this->whoCanTakeTopics = $whoCanTakeTopics; + } + public function getWhoCanTakeTopics() + { + return $this->whoCanTakeTopics; + } + public function setWhoCanUnassignTopic($whoCanUnassignTopic) + { + $this->whoCanUnassignTopic = $whoCanUnassignTopic; + } + public function getWhoCanUnassignTopic() + { + return $this->whoCanUnassignTopic; + } + public function setWhoCanUnmarkFavoriteReplyOnAnyTopic($whoCanUnmarkFavoriteReplyOnAnyTopic) + { + $this->whoCanUnmarkFavoriteReplyOnAnyTopic = $whoCanUnmarkFavoriteReplyOnAnyTopic; + } + public function getWhoCanUnmarkFavoriteReplyOnAnyTopic() + { + return $this->whoCanUnmarkFavoriteReplyOnAnyTopic; + } public function setWhoCanViewGroup($whoCanViewGroup) { $this->whoCanViewGroup = $whoCanViewGroup; diff --git a/vendor/google/apiclient-services/src/Google/Service/HangoutsChat.php b/vendor/google/apiclient-services/src/Google/Service/HangoutsChat.php index f785551f..5acd959d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/HangoutsChat.php +++ b/vendor/google/apiclient-services/src/Google/Service/HangoutsChat.php @@ -19,8 +19,7 @@ * Service definition for HangoutsChat (v1). * *
- * Enables bots to fetch information and perform actions in the new Hangouts - * Chat.
+ * Enables bots to fetch information and perform actions in Hangouts Chat. * ** For more information about this service, see the API @@ -47,6 +46,7 @@ class Google_Service_HangoutsChat extends Google_Service parent::__construct($client); $this->rootUrl = 'https://chat.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'chat'; diff --git a/vendor/google/apiclient-services/src/Google/Service/HangoutsChat/DeprecatedEvent.php b/vendor/google/apiclient-services/src/Google/Service/HangoutsChat/DeprecatedEvent.php new file mode 100644 index 00000000..c3482c2f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/HangoutsChat/DeprecatedEvent.php @@ -0,0 +1,130 @@ +action = $action; + } + /** + * @return Google_Service_HangoutsChat_FormAction + */ + public function getAction() + { + return $this->action; + } + public function setConfigCompleteRedirectUrl($configCompleteRedirectUrl) + { + $this->configCompleteRedirectUrl = $configCompleteRedirectUrl; + } + public function getConfigCompleteRedirectUrl() + { + return $this->configCompleteRedirectUrl; + } + public function setEventTime($eventTime) + { + $this->eventTime = $eventTime; + } + public function getEventTime() + { + return $this->eventTime; + } + /** + * @param Google_Service_HangoutsChat_Message + */ + public function setMessage(Google_Service_HangoutsChat_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_HangoutsChat_Message + */ + public function getMessage() + { + return $this->message; + } + /** + * @param Google_Service_HangoutsChat_Space + */ + public function setSpace(Google_Service_HangoutsChat_Space $space) + { + $this->space = $space; + } + /** + * @return Google_Service_HangoutsChat_Space + */ + public function getSpace() + { + return $this->space; + } + public function setThreadKey($threadKey) + { + $this->threadKey = $threadKey; + } + public function getThreadKey() + { + return $this->threadKey; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + /** + * @param Google_Service_HangoutsChat_User + */ + public function setUser(Google_Service_HangoutsChat_User $user) + { + $this->user = $user; + } + /** + * @return Google_Service_HangoutsChat_User + */ + public function getUser() + { + return $this->user; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials.php new file mode 100644 index 00000000..110cae6e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials.php @@ -0,0 +1,114 @@ + + * Creates short-lived, limited-privilege credentials for IAM service accounts.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_IAMCredentials extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_serviceAccounts; + + /** + * Constructs the internal representation of the IAMCredentials service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://iamcredentials.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'iamcredentials'; + + $this->projects_serviceAccounts = new Google_Service_IAMCredentials_Resource_ProjectsServiceAccounts( + $this, + $this->serviceName, + 'serviceAccounts', + array( + 'methods' => array( + 'generateAccessToken' => array( + 'path' => 'v1/{+name}:generateAccessToken', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generateIdToken' => array( + 'path' => 'v1/{+name}:generateIdToken', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generateIdentityBindingAccessToken' => array( + 'path' => 'v1/{+name}:generateIdentityBindingAccessToken', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'signBlob' => array( + 'path' => 'v1/{+name}:signBlob', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'signJwt' => array( + 'path' => 'v1/{+name}:signJwt', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenRequest.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenRequest.php new file mode 100644 index 00000000..17b21874 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenRequest.php @@ -0,0 +1,49 @@ +delegates = $delegates; + } + public function getDelegates() + { + return $this->delegates; + } + public function setLifetime($lifetime) + { + $this->lifetime = $lifetime; + } + public function getLifetime() + { + return $this->lifetime; + } + public function setScope($scope) + { + $this->scope = $scope; + } + public function getScope() + { + return $this->scope; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenResponse.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenResponse.php new file mode 100644 index 00000000..1d3af875 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateAccessTokenResponse.php @@ -0,0 +1,39 @@ +accessToken = $accessToken; + } + public function getAccessToken() + { + return $this->accessToken; + } + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + } + public function getExpireTime() + { + return $this->expireTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RenewLeaseRequest.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenRequest.php similarity index 51% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/RenewLeaseRequest.php rename to vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenRequest.php index b4e19387..e3d6bb62 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RenewLeaseRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenRequest.php @@ -15,34 +15,35 @@ * the License. */ -class Google_Service_CloudTasks_RenewLeaseRequest extends Google_Model +class Google_Service_IAMCredentials_GenerateIdTokenRequest extends Google_Collection { - public $leaseDuration; - public $responseView; - public $scheduleTime; + protected $collection_key = 'delegates'; + public $audience; + public $delegates; + public $includeEmail; - public function setLeaseDuration($leaseDuration) + public function setAudience($audience) { - $this->leaseDuration = $leaseDuration; + $this->audience = $audience; } - public function getLeaseDuration() + public function getAudience() { - return $this->leaseDuration; + return $this->audience; } - public function setResponseView($responseView) + public function setDelegates($delegates) { - $this->responseView = $responseView; + $this->delegates = $delegates; } - public function getResponseView() + public function getDelegates() { - return $this->responseView; + return $this->delegates; } - public function setScheduleTime($scheduleTime) + public function setIncludeEmail($includeEmail) { - $this->scheduleTime = $scheduleTime; + $this->includeEmail = $includeEmail; } - public function getScheduleTime() + public function getIncludeEmail() { - return $this->scheduleTime; + return $this->includeEmail; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenResponse.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenResponse.php new file mode 100644 index 00000000..f4a044e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdTokenResponse.php @@ -0,0 +1,30 @@ +token = $token; + } + public function getToken() + { + return $this->token; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenRequest.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenRequest.php new file mode 100644 index 00000000..d309d2d7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenRequest.php @@ -0,0 +1,40 @@ +jwt = $jwt; + } + public function getJwt() + { + return $this->jwt; + } + public function setScope($scope) + { + $this->scope = $scope; + } + public function getScope() + { + return $this->scope; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenResponse.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenResponse.php new file mode 100644 index 00000000..0b072590 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/GenerateIdentityBindingAccessTokenResponse.php @@ -0,0 +1,39 @@ +accessToken = $accessToken; + } + public function getAccessToken() + { + return $this->accessToken; + } + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + } + public function getExpireTime() + { + return $this->expireTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/Projects.php new file mode 100644 index 00000000..688caada --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $iamcredentialsService = new Google_Service_IAMCredentials(...); + * $projects = $iamcredentialsService->projects; + * + */ +class Google_Service_IAMCredentials_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/ProjectsServiceAccounts.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/ProjectsServiceAccounts.php new file mode 100644 index 00000000..68fc9700 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/Resource/ProjectsServiceAccounts.php @@ -0,0 +1,117 @@ + + * $iamcredentialsService = new Google_Service_IAMCredentials(...); + * $serviceAccounts = $iamcredentialsService->serviceAccounts; + * + */ +class Google_Service_IAMCredentials_Resource_ProjectsServiceAccounts extends Google_Service_Resource +{ + /** + * Generates an OAuth 2.0 access token for a service account. + * (serviceAccounts.generateAccessToken) + * + * @param string $name The resource name of the service account for which the + * credentials are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + * character is required; replacing it with a project ID is invalid. + * @param Google_Service_IAMCredentials_GenerateAccessTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IAMCredentials_GenerateAccessTokenResponse + */ + public function generateAccessToken($name, Google_Service_IAMCredentials_GenerateAccessTokenRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generateAccessToken', array($params), "Google_Service_IAMCredentials_GenerateAccessTokenResponse"); + } + /** + * Generates an OpenID Connect ID token for a service account. + * (serviceAccounts.generateIdToken) + * + * @param string $name The resource name of the service account for which the + * credentials are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + * character is required; replacing it with a project ID is invalid. + * @param Google_Service_IAMCredentials_GenerateIdTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IAMCredentials_GenerateIdTokenResponse + */ + public function generateIdToken($name, Google_Service_IAMCredentials_GenerateIdTokenRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generateIdToken', array($params), "Google_Service_IAMCredentials_GenerateIdTokenResponse"); + } + /** + * (serviceAccounts.generateIdentityBindingAccessToken) + * + * @param string $name The resource name of the service account for which the + * credentials are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + * character is required; replacing it with a project ID is invalid. + * @param Google_Service_IAMCredentials_GenerateIdentityBindingAccessTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IAMCredentials_GenerateIdentityBindingAccessTokenResponse + */ + public function generateIdentityBindingAccessToken($name, Google_Service_IAMCredentials_GenerateIdentityBindingAccessTokenRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generateIdentityBindingAccessToken', array($params), "Google_Service_IAMCredentials_GenerateIdentityBindingAccessTokenResponse"); + } + /** + * Signs a blob using a service account's system-managed private key. + * (serviceAccounts.signBlob) + * + * @param string $name The resource name of the service account for which the + * credentials are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + * character is required; replacing it with a project ID is invalid. + * @param Google_Service_IAMCredentials_SignBlobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IAMCredentials_SignBlobResponse + */ + public function signBlob($name, Google_Service_IAMCredentials_SignBlobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('signBlob', array($params), "Google_Service_IAMCredentials_SignBlobResponse"); + } + /** + * Signs a JWT using a service account's system-managed private key. + * (serviceAccounts.signJwt) + * + * @param string $name The resource name of the service account for which the + * credentials are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + * character is required; replacing it with a project ID is invalid. + * @param Google_Service_IAMCredentials_SignJwtRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_IAMCredentials_SignJwtResponse + */ + public function signJwt($name, Google_Service_IAMCredentials_SignJwtRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('signJwt', array($params), "Google_Service_IAMCredentials_SignJwtResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobRequest.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobRequest.php new file mode 100644 index 00000000..0a12e884 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobRequest.php @@ -0,0 +1,40 @@ +delegates = $delegates; + } + public function getDelegates() + { + return $this->delegates; + } + public function setPayload($payload) + { + $this->payload = $payload; + } + public function getPayload() + { + return $this->payload; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobResponse.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobResponse.php new file mode 100644 index 00000000..f2bf534a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignBlobResponse.php @@ -0,0 +1,39 @@ +keyId = $keyId; + } + public function getKeyId() + { + return $this->keyId; + } + public function setSignedBlob($signedBlob) + { + $this->signedBlob = $signedBlob; + } + public function getSignedBlob() + { + return $this->signedBlob; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullMessage.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtRequest.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullMessage.php rename to vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtRequest.php index dd5d0e4a..c3768861 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/PullMessage.php +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtRequest.php @@ -15,11 +15,20 @@ * the License. */ -class Google_Service_CloudTasks_PullMessage extends Google_Model +class Google_Service_IAMCredentials_SignJwtRequest extends Google_Collection { + protected $collection_key = 'delegates'; + public $delegates; public $payload; - public $tag; + public function setDelegates($delegates) + { + $this->delegates = $delegates; + } + public function getDelegates() + { + return $this->delegates; + } public function setPayload($payload) { $this->payload = $payload; @@ -28,12 +37,4 @@ class Google_Service_CloudTasks_PullMessage extends Google_Model { return $this->payload; } - public function setTag($tag) - { - $this->tag = $tag; - } - public function getTag() - { - return $this->tag; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtResponse.php b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtResponse.php new file mode 100644 index 00000000..25da5802 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/IAMCredentials/SignJwtResponse.php @@ -0,0 +1,39 @@ +keyId = $keyId; + } + public function getKeyId() + { + return $this->keyId; + } + public function setSignedJwt($signedJwt) + { + $this->signedJwt = $signedJwt; + } + public function getSignedJwt() + { + return $this->signedJwt; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam.php b/vendor/google/apiclient-services/src/Google/Service/Iam.php index cfec6532..21f67dbb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam.php @@ -54,6 +54,7 @@ class Google_Service_Iam extends Google_Service parent::__construct($client); $this->rootUrl = 'https://iam.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'iam'; @@ -63,7 +64,11 @@ class Google_Service_Iam extends Google_Service 'iamPolicies', array( 'methods' => array( - 'queryAuditableServices' => array( + 'lintPolicy' => array( + 'path' => 'v1/iamPolicies:lintPolicy', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'queryAuditableServices' => array( 'path' => 'v1/iamPolicies:queryAuditableServices', 'httpMethod' => 'POST', 'parameters' => array(), @@ -328,14 +333,14 @@ class Google_Service_Iam extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', @@ -377,6 +382,16 @@ class Google_Service_Iam extends Google_Service 'required' => true, ), ), + ),'undelete' => array( + 'path' => 'v1/{+name}:undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', @@ -470,6 +485,10 @@ class Google_Service_Iam extends Google_Service 'path' => 'v1/roles', 'httpMethod' => 'GET', 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -486,10 +505,6 @@ class Google_Service_Iam extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'queryGrantableRoles' => array( 'path' => 'v1/roles:queryGrantableRoles', diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Binding.php index 3e3438e2..68e1a083 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Binding.php @@ -18,9 +18,25 @@ class Google_Service_Iam_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_Iam_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_Iam_Expr + */ + public function setCondition(Google_Service_Iam_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Iam_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php b/vendor/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php index eef943fb..9b5d4f1a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php @@ -18,6 +18,8 @@ class Google_Service_Iam_BindingDelta extends Google_Model { public $action; + protected $conditionType = 'Google_Service_Iam_Expr'; + protected $conditionDataType = ''; public $member; public $role; @@ -29,6 +31,20 @@ class Google_Service_Iam_BindingDelta extends Google_Model { return $this->action; } + /** + * @param Google_Service_Iam_Expr + */ + public function setCondition(Google_Service_Iam_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Iam_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMember($member) { $this->member = $member; diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Expr.php new file mode 100644 index 00000000..29c8bf3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyRequest.php new file mode 100644 index 00000000..6fc2505f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyRequest.php @@ -0,0 +1,87 @@ +binding = $binding; + } + /** + * @return Google_Service_Iam_Binding + */ + public function getBinding() + { + return $this->binding; + } + /** + * @param Google_Service_Iam_Expr + */ + public function setCondition(Google_Service_Iam_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Iam_Expr + */ + public function getCondition() + { + return $this->condition; + } + public function setContext($context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setFullResourceName($fullResourceName) + { + $this->fullResourceName = $fullResourceName; + } + public function getFullResourceName() + { + return $this->fullResourceName; + } + /** + * @param Google_Service_Iam_Policy + */ + public function setPolicy(Google_Service_Iam_Policy $policy) + { + $this->policy = $policy; + } + /** + * @return Google_Service_Iam_Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyResponse.php b/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyResponse.php new file mode 100644 index 00000000..b0dabf2d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/LintPolicyResponse.php @@ -0,0 +1,38 @@ +lintResults = $lintResults; + } + /** + * @return Google_Service_Iam_LintResult + */ + public function getLintResults() + { + return $this->lintResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/LintResult.php b/vendor/google/apiclient-services/src/Google/Service/Iam/LintResult.php new file mode 100644 index 00000000..4564ab7a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/LintResult.php @@ -0,0 +1,84 @@ +bindingOrdinal = $bindingOrdinal; + } + public function getBindingOrdinal() + { + return $this->bindingOrdinal; + } + public function setDebugMessage($debugMessage) + { + $this->debugMessage = $debugMessage; + } + public function getDebugMessage() + { + return $this->debugMessage; + } + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + public function getFieldName() + { + return $this->fieldName; + } + public function setLevel($level) + { + $this->level = $level; + } + public function getLevel() + { + return $this->level; + } + public function setLocationOffset($locationOffset) + { + $this->locationOffset = $locationOffset; + } + public function getLocationOffset() + { + return $this->locationOffset; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setValidationUnitName($validationUnitName) + { + $this->validationUnitName = $validationUnitName; + } + public function getValidationUnitName() + { + return $this->validationUnitName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/IamPolicies.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/IamPolicies.php index 68f275af..0a46c043 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/IamPolicies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/IamPolicies.php @@ -25,6 +25,39 @@ */ class Google_Service_Iam_Resource_IamPolicies extends Google_Service_Resource { + /** + * Lints a Cloud IAM policy object or its sub fields. Currently supports + * google.iam.v1.Policy, google.iam.v1.Binding and + * google.iam.v1.Binding.condition. + * + * Each lint operation consists of multiple lint validation units. Validation + * units have the following properties: + * + * - Each unit inspects the input object in regard to a particular linting + * aspect and issues a google.iam.admin.v1.LintResult disclosing the result. - + * Domain of discourse of each unit can be either google.iam.v1.Policy, + * google.iam.v1.Binding, or google.iam.v1.Binding.condition depending on the + * purpose of the validation. - A unit may require additional data (like the + * list of all possible enumerable values of a particular attribute used in + * the policy instance) which shall be provided by the caller. Refer to the + * comments of google.iam.admin.v1.LintPolicyRequest.context for more details. + * + * The set of applicable validation units is determined by the Cloud IAM server + * and is not configurable. + * + * Regardless of any lint issues or their severities, successful calls to + * `lintPolicy` return an HTTP 200 OK status code. (iamPolicies.lintPolicy) + * + * @param Google_Service_Iam_LintPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_LintPolicyResponse + */ + public function lintPolicy(Google_Service_Iam_LintPolicyRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('lintPolicy', array($params), "Google_Service_Iam_LintPolicyResponse"); + } /** * Returns a list of services that support service level audit logging * configuration for the given resource. (iamPolicies.queryAuditableServices) diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/OrganizationsRoles.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/OrganizationsRoles.php index b9d12c72..408b9533 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/OrganizationsRoles.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/OrganizationsRoles.php @@ -91,7 +91,10 @@ class Google_Service_Iam_Resource_OrganizationsRoles extends Google_Service_Reso * ListRolesResponse. * @opt_param int pageSize Optional limit on the number of roles to include in * the response. - * @opt_param string view Optional view for the returned Role objects. + * @opt_param string view Optional view for the returned Role objects. When + * `FULL` is specified, the `includedPermissions` field is returned, which + * includes a list of all permissions in the role. The default value is `BASIC`, + * which does not return the `includedPermissions` field. * @return Google_Service_Iam_ListRolesResponse */ public function listOrganizationsRoles($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsRoles.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsRoles.php index 27bb2c93..5ade9dc9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsRoles.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsRoles.php @@ -91,7 +91,10 @@ class Google_Service_Iam_Resource_ProjectsRoles extends Google_Service_Resource * ListRolesResponse. * @opt_param int pageSize Optional limit on the number of roles to include in * the response. - * @opt_param string view Optional view for the returned Role objects. + * @opt_param string view Optional view for the returned Role objects. When + * `FULL` is specified, the `includedPermissions` field is returned, which + * includes a list of all permissions in the role. The default value is `BASIC`, + * which does not return the `includedPermissions` field. * @return Google_Service_Iam_ListRolesResponse */ public function listProjectsRoles($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php index 1355ca03..a4e0299e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php @@ -75,7 +75,18 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount"); } /** - * Returns the IAM access control policy for a ServiceAccount. + * Returns the Cloud IAM access control policy for a ServiceAccount. + * + * Note: Service accounts are both [resources and identities](/iam/docs/service- + * accounts#service_account_permissions). This method treats the service account + * as a resource. It returns the Cloud IAM policy that reflects what members + * have access to the service account. + * + * This method does not return what resources the service account has access to. + * To see if a service account has access to a resource, call the `getIamPolicy` + * method on the target resource. For example, to view grants for a project, + * call the [projects.getIamPolicy](/resource- + * manager/reference/rest/v1/projects/getIamPolicy) method. * (serviceAccounts.getIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being @@ -98,12 +109,12 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service * with the service accounts, such as `projects/my-project-123`. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Optional pagination token returned in an earlier - * ListServiceAccountsResponse.next_page_token. * @opt_param int pageSize Optional limit on the number of service accounts to * include in the response. Further accounts can subsequently be obtained by * including the ListServiceAccountsResponse.next_page_token in a subsequent * request. + * @opt_param string pageToken Optional pagination token returned in an earlier + * ListServiceAccountsResponse.next_page_token. * @return Google_Service_Iam_ListServiceAccountsResponse */ public function listProjectsServiceAccounts($name, $optParams = array()) @@ -113,7 +124,19 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse"); } /** - * Sets the IAM access control policy for a ServiceAccount. + * Sets the Cloud IAM access control policy for a ServiceAccount. + * + * Note: Service accounts are both [resources and identities](/iam/docs/service- + * accounts#service_account_permissions). This method treats the service account + * as a resource. Use it to grant members access to the service account, such as + * when they need to impersonate it. + * + * This method does not grant the service account access to other resources, + * such as projects. To grant a service account access to resources, include the + * service account in the Cloud IAM policy for the desired resource, then call + * the appropriate `setIamPolicy` method on the target resource. For example, to + * grant a service account access to a project, call the [projects.setIamPolicy + * ](/resource-manager/reference/rest/v1/projects/setIamPolicy) method. * (serviceAccounts.setIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being @@ -130,6 +153,10 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy"); } /** + * **Note**: This method is in the process of being deprecated. Call the [`signB + * lob()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlob) + * method of the Cloud IAM Service Account Credentials API instead. + * * Signs a blob using a service account's system-managed private key. * (serviceAccounts.signBlob) * @@ -149,6 +176,10 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse"); } /** + * **Note**: This method is in the process of being deprecated. Call the [`signJ + * wt()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/signJwt) + * method of the Cloud IAM Service Account Credentials API instead. + * * Signs a JWT using a service account's system-managed private key. * * If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an an @@ -188,6 +219,26 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse"); } /** + * Restores a deleted ServiceAccount. (serviceAccounts.undelete) + * + * @param string $name The resource name of the service account in the following + * format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}'. Using + * `-` as a wildcard for the `PROJECT_ID` will infer the project from the + * account. + * @param Google_Service_Iam_UndeleteServiceAccountRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Iam_UndeleteServiceAccountResponse + */ + public function undelete($name, Google_Service_Iam_UndeleteServiceAccountRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Iam_UndeleteServiceAccountResponse"); + } + /** + * Note: This method is in the process of being deprecated. Use + * PatchServiceAccount instead. + * * Updates a ServiceAccount. * * Currently, only the following fields are updatable: `display_name` . The diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php index 3a616dc0..17487cee 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php @@ -46,15 +46,18 @@ class Google_Service_Iam_Resource_Roles extends Google_Service_Resource * * @param array $optParams Optional parameters. * + * @opt_param string pageToken Optional pagination token returned in an earlier + * ListRolesResponse. * @opt_param int pageSize Optional limit on the number of roles to include in * the response. - * @opt_param string view Optional view for the returned Role objects. + * @opt_param string view Optional view for the returned Role objects. When + * `FULL` is specified, the `includedPermissions` field is returned, which + * includes a list of all permissions in the role. The default value is `BASIC`, + * which does not return the `includedPermissions` field. * @opt_param string parent The resource name of the parent resource in one of * the following formats: `` (empty string) -- this refers to curated roles. * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` * @opt_param bool showDeleted Include Roles that have been deleted. - * @opt_param string pageToken Optional pagination token returned in an earlier - * ListRolesResponse. * @return Google_Service_Iam_ListRolesResponse */ public function listRoles($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php b/vendor/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php index 0fa0074e..b4ceb505 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php @@ -17,6 +17,7 @@ class Google_Service_Iam_ServiceAccount extends Google_Model { + public $disabled; public $displayName; public $email; public $etag; @@ -25,6 +26,14 @@ class Google_Service_Iam_ServiceAccount extends Google_Model public $projectId; public $uniqueId; + public function setDisabled($disabled) + { + $this->disabled = $disabled; + } + public function getDisabled() + { + return $this->disabled; + } public function setDisplayName($displayName) { $this->displayName = $displayName; diff --git a/vendor/google/apiclient-services/src/Google/Service/Iam/UndeleteServiceAccountRequest.php b/vendor/google/apiclient-services/src/Google/Service/Iam/UndeleteServiceAccountRequest.php new file mode 100644 index 00000000..fefbdedd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Iam/UndeleteServiceAccountRequest.php @@ -0,0 +1,20 @@ +restoredAccount = $restoredAccount; + } + /** + * @return Google_Service_Iam_ServiceAccount + */ + public function getRestoredAccount() + { + return $this->restoredAccount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit.php b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit.php index ccd927aa..68c3a0d1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit.php +++ b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit.php @@ -49,6 +49,7 @@ class Google_Service_IdentityToolkit extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'identitytoolkit/v3/relyingparty/'; + $this->batchPath = 'batch/identitytoolkit/v3'; $this->version = 'v3'; $this->serviceName = 'identitytoolkit'; diff --git a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php index c4f4abf9..4554b790 100644 --- a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php @@ -31,6 +31,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq public $otaApp; public $providerId; public $sessionId; + public $tenantId; + public $tenantProjectNumber; public function setAppId($appId) { @@ -144,4 +146,20 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq { return $this->sessionId; } + public function setTenantId($tenantId) + { + $this->tenantId = $tenantId; + } + public function getTenantId() + { + return $this->tenantId; + } + public function setTenantProjectNumber($tenantProjectNumber) + { + $this->tenantProjectNumber = $tenantProjectNumber; + } + public function getTenantProjectNumber() + { + return $this->tenantProjectNumber; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php index 7d4b57dc..c4f116ce 100644 --- a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php @@ -29,6 +29,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserReq public $password; public $phoneNumber; public $photoUrl; + public $tenantId; + public $tenantProjectNumber; public function setCaptchaChallenge($captchaChallenge) { @@ -126,4 +128,20 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserReq { return $this->photoUrl; } + public function setTenantId($tenantId) + { + $this->tenantId = $tenantId; + } + public function getTenantId() + { + return $this->tenantId; + } + public function setTenantProjectNumber($tenantProjectNumber) + { + $this->tenantProjectNumber = $tenantProjectNumber; + } + public function getTenantProjectNumber() + { + return $this->tenantProjectNumber; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php index f8891aa8..537868f0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php @@ -28,6 +28,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR public $returnRefreshToken; public $returnSecureToken; public $sessionId; + public $tenantId; + public $tenantProjectNumber; public function setAutoCreate($autoCreate) { @@ -117,4 +119,20 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR { return $this->sessionId; } + public function setTenantId($tenantId) + { + $this->tenantId = $tenantId; + } + public function getTenantId() + { + return $this->tenantId; + } + public function setTenantProjectNumber($tenantProjectNumber) + { + $this->tenantProjectNumber = $tenantProjectNumber; + } + public function getTenantProjectNumber() + { + return $this->tenantProjectNumber; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php index bfbd5442..d0e732c1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php @@ -26,6 +26,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRe public $password; public $pendingIdToken; public $returnSecureToken; + public $tenantId; + public $tenantProjectNumber; public function setCaptchaChallenge($captchaChallenge) { @@ -99,4 +101,20 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRe { return $this->returnSecureToken; } + public function setTenantId($tenantId) + { + $this->tenantId = $tenantId; + } + public function getTenantId() + { + return $this->tenantId; + } + public function setTenantProjectNumber($tenantProjectNumber) + { + $this->tenantProjectNumber = $tenantProjectNumber; + } + public function getTenantProjectNumber() + { + return $this->tenantProjectNumber; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Indexing.php b/vendor/google/apiclient-services/src/Google/Service/Indexing.php new file mode 100644 index 00000000..87012994 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Indexing.php @@ -0,0 +1,77 @@ + + * Notifies Google when your web pages change. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Indexing extends Google_Service +{ + /** Submit data to Google for indexing. */ + const INDEXING = + "https://www.googleapis.com/auth/indexing"; + + public $urlNotifications; + + /** + * Constructs the internal representation of the Indexing service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://indexing.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v3'; + $this->serviceName = 'indexing'; + + $this->urlNotifications = new Google_Service_Indexing_Resource_UrlNotifications( + $this, + $this->serviceName, + 'urlNotifications', + array( + 'methods' => array( + 'getMetadata' => array( + 'path' => 'v3/urlNotifications/metadata', + 'httpMethod' => 'GET', + 'parameters' => array( + 'url' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'publish' => array( + 'path' => 'v3/urlNotifications:publish', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Indexing/PublishUrlNotificationResponse.php b/vendor/google/apiclient-services/src/Google/Service/Indexing/PublishUrlNotificationResponse.php new file mode 100644 index 00000000..1c7feba8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Indexing/PublishUrlNotificationResponse.php @@ -0,0 +1,37 @@ +urlNotificationMetadata = $urlNotificationMetadata; + } + /** + * @return Google_Service_Indexing_UrlNotificationMetadata + */ + public function getUrlNotificationMetadata() + { + return $this->urlNotificationMetadata; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Indexing/Resource/UrlNotifications.php b/vendor/google/apiclient-services/src/Google/Service/Indexing/Resource/UrlNotifications.php new file mode 100644 index 00000000..ec15f217 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Indexing/Resource/UrlNotifications.php @@ -0,0 +1,58 @@ + + * $indexingService = new Google_Service_Indexing(...); + * $urlNotifications = $indexingService->urlNotifications; + * + */ +class Google_Service_Indexing_Resource_UrlNotifications extends Google_Service_Resource +{ + /** + * Gets metadata about a Web Document. This method can _only_ be used to query + * URLs that were previously seen in successful Indexing API notifications. + * Includes the latest `UrlNotification` received via this API. + * (urlNotifications.getMetadata) + * + * @param array $optParams Optional parameters. + * + * @opt_param string url URL that is being queried. + * @return Google_Service_Indexing_UrlNotificationMetadata + */ + public function getMetadata($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getMetadata', array($params), "Google_Service_Indexing_UrlNotificationMetadata"); + } + /** + * Notifies that a URL has been updated or deleted. (urlNotifications.publish) + * + * @param Google_Service_Indexing_UrlNotification $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Indexing_PublishUrlNotificationResponse + */ + public function publish(Google_Service_Indexing_UrlNotification $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('publish', array($params), "Google_Service_Indexing_PublishUrlNotificationResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotification.php b/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotification.php new file mode 100644 index 00000000..2bfbdeb4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotification.php @@ -0,0 +1,48 @@ +notifyTime = $notifyTime; + } + public function getNotifyTime() + { + return $this->notifyTime; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotificationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotificationMetadata.php new file mode 100644 index 00000000..0fa8722b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Indexing/UrlNotificationMetadata.php @@ -0,0 +1,62 @@ +latestRemove = $latestRemove; + } + /** + * @return Google_Service_Indexing_UrlNotification + */ + public function getLatestRemove() + { + return $this->latestRemove; + } + /** + * @param Google_Service_Indexing_UrlNotification + */ + public function setLatestUpdate(Google_Service_Indexing_UrlNotification $latestUpdate) + { + $this->latestUpdate = $latestUpdate; + } + /** + * @return Google_Service_Indexing_UrlNotification + */ + public function getLatestUpdate() + { + return $this->latestUpdate; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService.php b/vendor/google/apiclient-services/src/Google/Service/JobService.php new file mode 100644 index 00000000..4cb6891a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService.php @@ -0,0 +1,293 @@ + + * Cloud Talent Solution provides the capability to create, read, update, and + * delete job postings, as well as search jobs based on keywords and filters. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_JobService extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage job postings. */ + const JOBS = + "https://www.googleapis.com/auth/jobs"; + + public $companies; + public $companies_jobs; + public $jobs; + public $v2; + + /** + * Constructs the internal representation of the JobService service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://jobs.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v2'; + $this->serviceName = 'jobs'; + + $this->companies = new Google_Service_JobService_Resource_Companies( + $this, + $this->serviceName, + 'companies', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v2/companies', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v2/companies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'mustHaveOpenJobs' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateCompanyFields' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->companies_jobs = new Google_Service_JobService_Resource_CompaniesJobs( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v2/{+companyName}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'companyName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'includeJobsCount' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'idsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'jobRequisitionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->jobs = new Google_Service_JobService_Resource_Jobs( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'batchDelete' => array( + 'path' => 'v2/jobs:batchDelete', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'create' => array( + 'path' => 'v2/jobs', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disableFastProcess' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'deleteByFilter' => array( + 'path' => 'v2/jobs:deleteByFilter', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'histogram' => array( + 'path' => 'v2/jobs:histogram', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'list' => array( + 'path' => 'v2/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'idsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'v2/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'v2/jobs:search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'searchForAlert' => array( + 'path' => 'v2/jobs:searchForAlert', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->v2 = new Google_Service_JobService_Resource_V2( + $this, + $this->serviceName, + 'v2', + array( + 'methods' => array( + 'complete' => array( + 'path' => 'v2:complete', + 'httpMethod' => 'GET', + 'parameters' => array( + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companyName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scope' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/BatchDeleteJobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/BatchDeleteJobsRequest.php new file mode 100644 index 00000000..1f06a783 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/BatchDeleteJobsRequest.php @@ -0,0 +1,30 @@ +filter = $filter; + } + public function getFilter() + { + return $this->filter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/BucketRange.php b/vendor/google/apiclient-services/src/Google/Service/JobService/BucketRange.php new file mode 100644 index 00000000..ab160178 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/BucketRange.php @@ -0,0 +1,39 @@ +from = $from; + } + public function getFrom() + { + return $this->from; + } + public function setTo($to) + { + $this->to = $to; + } + public function getTo() + { + return $this->to; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/BucketizedCount.php b/vendor/google/apiclient-services/src/Google/Service/JobService/BucketizedCount.php new file mode 100644 index 00000000..567880c0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/BucketizedCount.php @@ -0,0 +1,46 @@ +count = $count; + } + public function getCount() + { + return $this->count; + } + /** + * @param Google_Service_JobService_BucketRange + */ + public function setRange(Google_Service_JobService_BucketRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_JobService_BucketRange + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CommuteInfo.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CommuteInfo.php new file mode 100644 index 00000000..510a977b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CommuteInfo.php @@ -0,0 +1,46 @@ +jobLocation = $jobLocation; + } + /** + * @return Google_Service_JobService_JobLocation + */ + public function getJobLocation() + { + return $this->jobLocation; + } + public function setTravelDuration($travelDuration) + { + $this->travelDuration = $travelDuration; + } + public function getTravelDuration() + { + return $this->travelDuration; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CommutePreference.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CommutePreference.php new file mode 100644 index 00000000..c7e06257 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CommutePreference.php @@ -0,0 +1,82 @@ +allowNonStreetLevelAddress = $allowNonStreetLevelAddress; + } + public function getAllowNonStreetLevelAddress() + { + return $this->allowNonStreetLevelAddress; + } + public function setDepartureHourLocal($departureHourLocal) + { + $this->departureHourLocal = $departureHourLocal; + } + public function getDepartureHourLocal() + { + return $this->departureHourLocal; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setRoadTraffic($roadTraffic) + { + $this->roadTraffic = $roadTraffic; + } + public function getRoadTraffic() + { + return $this->roadTraffic; + } + /** + * @param Google_Service_JobService_LatLng + */ + public function setStartLocation(Google_Service_JobService_LatLng $startLocation) + { + $this->startLocation = $startLocation; + } + /** + * @return Google_Service_JobService_LatLng + */ + public function getStartLocation() + { + return $this->startLocation; + } + public function setTravelTime($travelTime) + { + $this->travelTime = $travelTime; + } + public function getTravelTime() + { + return $this->travelTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Company.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Company.php new file mode 100644 index 00000000..153d6433 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Company.php @@ -0,0 +1,198 @@ +careerPageLink = $careerPageLink; + } + public function getCareerPageLink() + { + return $this->careerPageLink; + } + /** + * @param Google_Service_JobService_CompanyInfoSource + */ + public function setCompanyInfoSources($companyInfoSources) + { + $this->companyInfoSources = $companyInfoSources; + } + /** + * @return Google_Service_JobService_CompanyInfoSource + */ + public function getCompanyInfoSources() + { + return $this->companyInfoSources; + } + public function setCompanySize($companySize) + { + $this->companySize = $companySize; + } + public function getCompanySize() + { + return $this->companySize; + } + public function setDisableLocationOptimization($disableLocationOptimization) + { + $this->disableLocationOptimization = $disableLocationOptimization; + } + public function getDisableLocationOptimization() + { + return $this->disableLocationOptimization; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setDistributorBillingCompanyId($distributorBillingCompanyId) + { + $this->distributorBillingCompanyId = $distributorBillingCompanyId; + } + public function getDistributorBillingCompanyId() + { + return $this->distributorBillingCompanyId; + } + public function setDistributorCompanyId($distributorCompanyId) + { + $this->distributorCompanyId = $distributorCompanyId; + } + public function getDistributorCompanyId() + { + return $this->distributorCompanyId; + } + public function setEeoText($eeoText) + { + $this->eeoText = $eeoText; + } + public function getEeoText() + { + return $this->eeoText; + } + public function setHiringAgency($hiringAgency) + { + $this->hiringAgency = $hiringAgency; + } + public function getHiringAgency() + { + return $this->hiringAgency; + } + public function setHqLocation($hqLocation) + { + $this->hqLocation = $hqLocation; + } + public function getHqLocation() + { + return $this->hqLocation; + } + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setKeywordSearchableCustomAttributes($keywordSearchableCustomAttributes) + { + $this->keywordSearchableCustomAttributes = $keywordSearchableCustomAttributes; + } + public function getKeywordSearchableCustomAttributes() + { + return $this->keywordSearchableCustomAttributes; + } + public function setKeywordSearchableCustomFields($keywordSearchableCustomFields) + { + $this->keywordSearchableCustomFields = $keywordSearchableCustomFields; + } + public function getKeywordSearchableCustomFields() + { + return $this->keywordSearchableCustomFields; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_JobService_JobLocation + */ + public function setStructuredCompanyHqLocation(Google_Service_JobService_JobLocation $structuredCompanyHqLocation) + { + $this->structuredCompanyHqLocation = $structuredCompanyHqLocation; + } + /** + * @return Google_Service_JobService_JobLocation + */ + public function getStructuredCompanyHqLocation() + { + return $this->structuredCompanyHqLocation; + } + public function setSuspended($suspended) + { + $this->suspended = $suspended; + } + public function getSuspended() + { + return $this->suspended; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setWebsite($website) + { + $this->website = $website; + } + public function getWebsite() + { + return $this->website; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompanyInfoSource.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompanyInfoSource.php new file mode 100644 index 00000000..7c8d37f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompanyInfoSource.php @@ -0,0 +1,57 @@ +freebaseMid = $freebaseMid; + } + public function getFreebaseMid() + { + return $this->freebaseMid; + } + public function setGplusId($gplusId) + { + $this->gplusId = $gplusId; + } + public function getGplusId() + { + return $this->gplusId; + } + public function setMapsCid($mapsCid) + { + $this->mapsCid = $mapsCid; + } + public function getMapsCid() + { + return $this->mapsCid; + } + public function setUnknownTypeId($unknownTypeId) + { + $this->unknownTypeId = $unknownTypeId; + } + public function getUnknownTypeId() + { + return $this->unknownTypeId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationEntry.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationEntry.php new file mode 100644 index 00000000..1c5acb93 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationEntry.php @@ -0,0 +1,89 @@ +amount = $amount; + } + /** + * @return Google_Service_JobService_Money + */ + public function getAmount() + { + return $this->amount; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpectedUnitsPerYear($expectedUnitsPerYear) + { + $this->expectedUnitsPerYear = $expectedUnitsPerYear; + } + public function getExpectedUnitsPerYear() + { + return $this->expectedUnitsPerYear; + } + /** + * @param Google_Service_JobService_CompensationRange + */ + public function setRange(Google_Service_JobService_CompensationRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_JobService_CompensationRange + */ + public function getRange() + { + return $this->range; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationFilter.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationFilter.php new file mode 100644 index 00000000..142e2a71 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationFilter.php @@ -0,0 +1,65 @@ +includeJobsWithUnspecifiedCompensationRange = $includeJobsWithUnspecifiedCompensationRange; + } + public function getIncludeJobsWithUnspecifiedCompensationRange() + { + return $this->includeJobsWithUnspecifiedCompensationRange; + } + /** + * @param Google_Service_JobService_CompensationRange + */ + public function setRange(Google_Service_JobService_CompensationRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_JobService_CompensationRange + */ + public function getRange() + { + return $this->range; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramRequest.php new file mode 100644 index 00000000..5f4e8bdd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramRequest.php @@ -0,0 +1,46 @@ +bucketingOption = $bucketingOption; + } + /** + * @return Google_Service_JobService_NumericBucketingOption + */ + public function getBucketingOption() + { + return $this->bucketingOption; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramResult.php new file mode 100644 index 00000000..ff6dfaa5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationHistogramResult.php @@ -0,0 +1,46 @@ +result = $result; + } + /** + * @return Google_Service_JobService_NumericBucketingResult + */ + public function getResult() + { + return $this->result; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationInfo.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationInfo.php new file mode 100644 index 00000000..6caa1978 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationInfo.php @@ -0,0 +1,127 @@ +amount = $amount; + } + /** + * @return Google_Service_JobService_Money + */ + public function getAmount() + { + return $this->amount; + } + /** + * @param Google_Service_JobService_CompensationRange + */ + public function setAnnualizedBaseCompensationRange(Google_Service_JobService_CompensationRange $annualizedBaseCompensationRange) + { + $this->annualizedBaseCompensationRange = $annualizedBaseCompensationRange; + } + /** + * @return Google_Service_JobService_CompensationRange + */ + public function getAnnualizedBaseCompensationRange() + { + return $this->annualizedBaseCompensationRange; + } + /** + * @param Google_Service_JobService_CompensationRange + */ + public function setAnnualizedTotalCompensationRange(Google_Service_JobService_CompensationRange $annualizedTotalCompensationRange) + { + $this->annualizedTotalCompensationRange = $annualizedTotalCompensationRange; + } + /** + * @return Google_Service_JobService_CompensationRange + */ + public function getAnnualizedTotalCompensationRange() + { + return $this->annualizedTotalCompensationRange; + } + /** + * @param Google_Service_JobService_CompensationEntry + */ + public function setEntries($entries) + { + $this->entries = $entries; + } + /** + * @return Google_Service_JobService_CompensationEntry + */ + public function getEntries() + { + return $this->entries; + } + /** + * @param Google_Service_JobService_Money + */ + public function setMax(Google_Service_JobService_Money $max) + { + $this->max = $max; + } + /** + * @return Google_Service_JobService_Money + */ + public function getMax() + { + return $this->max; + } + /** + * @param Google_Service_JobService_Money + */ + public function setMin(Google_Service_JobService_Money $min) + { + $this->min = $min; + } + /** + * @return Google_Service_JobService_Money + */ + public function getMin() + { + return $this->min; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationRange.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationRange.php new file mode 100644 index 00000000..29a80ca7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompensationRange.php @@ -0,0 +1,53 @@ +max = $max; + } + /** + * @return Google_Service_JobService_Money + */ + public function getMax() + { + return $this->max; + } + /** + * @param Google_Service_JobService_Money + */ + public function setMin(Google_Service_JobService_Money $min) + { + $this->min = $min; + } + /** + * @return Google_Service_JobService_Money + */ + public function getMin() + { + return $this->min; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompleteQueryResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompleteQueryResponse.php new file mode 100644 index 00000000..d0f65e29 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompleteQueryResponse.php @@ -0,0 +1,54 @@ +completionResults = $completionResults; + } + /** + * @return Google_Service_JobService_CompletionResult + */ + public function getCompletionResults() + { + return $this->completionResults; + } + /** + * @param Google_Service_JobService_ResponseMetadata + */ + public function setMetadata(Google_Service_JobService_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CompletionResult.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CompletionResult.php new file mode 100644 index 00000000..ef8cf009 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CompletionResult.php @@ -0,0 +1,48 @@ +imageUrl = $imageUrl; + } + public function getImageUrl() + { + return $this->imageUrl; + } + public function setSuggestion($suggestion) + { + $this->suggestion = $suggestion; + } + public function getSuggestion() + { + return $this->suggestion; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CreateJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CreateJobRequest.php new file mode 100644 index 00000000..87ceedab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CreateJobRequest.php @@ -0,0 +1,62 @@ +disableStreetAddressResolution = $disableStreetAddressResolution; + } + public function getDisableStreetAddressResolution() + { + return $this->disableStreetAddressResolution; + } + /** + * @param Google_Service_JobService_Job + */ + public function setJob(Google_Service_JobService_Job $job) + { + $this->job = $job; + } + /** + * @return Google_Service_JobService_Job + */ + public function getJob() + { + return $this->job; + } + /** + * @param Google_Service_JobService_JobProcessingOptions + */ + public function setProcessingOptions(Google_Service_JobService_JobProcessingOptions $processingOptions) + { + $this->processingOptions = $processingOptions; + } + /** + * @return Google_Service_JobService_JobProcessingOptions + */ + public function getProcessingOptions() + { + return $this->processingOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttribute.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttribute.php new file mode 100644 index 00000000..0510b12e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttribute.php @@ -0,0 +1,55 @@ +filterable = $filterable; + } + public function getFilterable() + { + return $this->filterable; + } + public function setLongValue($longValue) + { + $this->longValue = $longValue; + } + public function getLongValue() + { + return $this->longValue; + } + /** + * @param Google_Service_JobService_StringValues + */ + public function setStringValues(Google_Service_JobService_StringValues $stringValues) + { + $this->stringValues = $stringValues; + } + /** + * @return Google_Service_JobService_StringValues + */ + public function getStringValues() + { + return $this->stringValues; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramRequest.php new file mode 100644 index 00000000..cc4e20c2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramRequest.php @@ -0,0 +1,55 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + /** + * @param Google_Service_JobService_NumericBucketingOption + */ + public function setLongValueHistogramBucketingOption(Google_Service_JobService_NumericBucketingOption $longValueHistogramBucketingOption) + { + $this->longValueHistogramBucketingOption = $longValueHistogramBucketingOption; + } + /** + * @return Google_Service_JobService_NumericBucketingOption + */ + public function getLongValueHistogramBucketingOption() + { + return $this->longValueHistogramBucketingOption; + } + public function setStringValueHistogram($stringValueHistogram) + { + $this->stringValueHistogram = $stringValueHistogram; + } + public function getStringValueHistogram() + { + return $this->stringValueHistogram; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramResult.php new file mode 100644 index 00000000..d0612362 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomAttributeHistogramResult.php @@ -0,0 +1,55 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + /** + * @param Google_Service_JobService_NumericBucketingResult + */ + public function setLongValueHistogramResult(Google_Service_JobService_NumericBucketingResult $longValueHistogramResult) + { + $this->longValueHistogramResult = $longValueHistogramResult; + } + /** + * @return Google_Service_JobService_NumericBucketingResult + */ + public function getLongValueHistogramResult() + { + return $this->longValueHistogramResult; + } + public function setStringValueHistogramResult($stringValueHistogramResult) + { + $this->stringValueHistogramResult = $stringValueHistogramResult; + } + public function getStringValueHistogramResult() + { + return $this->stringValueHistogramResult; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CustomField.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomField.php new file mode 100644 index 00000000..28a6f7f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomField.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/CustomFieldFilter.php b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomFieldFilter.php new file mode 100644 index 00000000..2b3fb728 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/CustomFieldFilter.php @@ -0,0 +1,40 @@ +queries = $queries; + } + public function getQueries() + { + return $this->queries; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Date.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Date.php new file mode 100644 index 00000000..a27842b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Date.php @@ -0,0 +1,48 @@ +day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/DeleteJobsByFilterRequest.php similarity index 51% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksRequest.php rename to vendor/google/apiclient-services/src/Google/Service/JobService/DeleteJobsByFilterRequest.php index 119223b7..17f13d68 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/LeaseTasksRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/DeleteJobsByFilterRequest.php @@ -15,43 +15,32 @@ * the License. */ -class Google_Service_CloudTasks_LeaseTasksRequest extends Google_Model +class Google_Service_JobService_DeleteJobsByFilterRequest extends Google_Model { - public $filter; - public $leaseDuration; - public $maxTasks; - public $responseView; + public $disableFastProcess; + protected $filterType = 'Google_Service_JobService_Filter'; + protected $filterDataType = ''; - public function setFilter($filter) + public function setDisableFastProcess($disableFastProcess) + { + $this->disableFastProcess = $disableFastProcess; + } + public function getDisableFastProcess() + { + return $this->disableFastProcess; + } + /** + * @param Google_Service_JobService_Filter + */ + public function setFilter(Google_Service_JobService_Filter $filter) { $this->filter = $filter; } + /** + * @return Google_Service_JobService_Filter + */ public function getFilter() { return $this->filter; } - public function setLeaseDuration($leaseDuration) - { - $this->leaseDuration = $leaseDuration; - } - public function getLeaseDuration() - { - return $this->leaseDuration; - } - public function setMaxTasks($maxTasks) - { - $this->maxTasks = $maxTasks; - } - public function getMaxTasks() - { - return $this->maxTasks; - } - public function setResponseView($responseView) - { - $this->responseView = $responseView; - } - public function getResponseView() - { - return $this->responseView; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/DeviceInfo.php b/vendor/google/apiclient-services/src/Google/Service/JobService/DeviceInfo.php new file mode 100644 index 00000000..1ac5bb56 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/DeviceInfo.php @@ -0,0 +1,39 @@ +deviceType = $deviceType; + } + public function getDeviceType() + { + return $this->deviceType; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationFilter.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationFilter.php new file mode 100644 index 00000000..c95dc21c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationFilter.php @@ -0,0 +1,74 @@ +compensationRange = $compensationRange; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function getCompensationRange() + { + return $this->compensationRange; + } + public function setCompensationUnits($compensationUnits) + { + $this->compensationUnits = $compensationUnits; + } + public function getCompensationUnits() + { + return $this->compensationUnits; + } + public function setCurrency($currency) + { + $this->currency = $currency; + } + public function getCurrency() + { + return $this->currency; + } + public function setIncludeJobWithUnspecifiedCompensationRange($includeJobWithUnspecifiedCompensationRange) + { + $this->includeJobWithUnspecifiedCompensationRange = $includeJobWithUnspecifiedCompensationRange; + } + public function getIncludeJobWithUnspecifiedCompensationRange() + { + return $this->includeJobWithUnspecifiedCompensationRange; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfo.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfo.php new file mode 100644 index 00000000..7ecd64e4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfo.php @@ -0,0 +1,97 @@ +annualizedBaseCompensationRange = $annualizedBaseCompensationRange; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function getAnnualizedBaseCompensationRange() + { + return $this->annualizedBaseCompensationRange; + } + public function setAnnualizedBaseCompensationUnspecified($annualizedBaseCompensationUnspecified) + { + $this->annualizedBaseCompensationUnspecified = $annualizedBaseCompensationUnspecified; + } + public function getAnnualizedBaseCompensationUnspecified() + { + return $this->annualizedBaseCompensationUnspecified; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function setAnnualizedTotalCompensationRange(Google_Service_JobService_ExtendedCompensationInfoCompensationRange $annualizedTotalCompensationRange) + { + $this->annualizedTotalCompensationRange = $annualizedTotalCompensationRange; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function getAnnualizedTotalCompensationRange() + { + return $this->annualizedTotalCompensationRange; + } + public function setAnnualizedTotalCompensationUnspecified($annualizedTotalCompensationUnspecified) + { + $this->annualizedTotalCompensationUnspecified = $annualizedTotalCompensationUnspecified; + } + public function getAnnualizedTotalCompensationUnspecified() + { + return $this->annualizedTotalCompensationUnspecified; + } + public function setCurrency($currency) + { + $this->currency = $currency; + } + public function getCurrency() + { + return $this->currency; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfoCompensationEntry + */ + public function setEntries($entries) + { + $this->entries = $entries; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoCompensationEntry + */ + public function getEntries() + { + return $this->entries; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationEntry.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationEntry.php new file mode 100644 index 00000000..5f1c6c97 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationEntry.php @@ -0,0 +1,105 @@ +amount = $amount; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function getAmount() + { + return $this->amount; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function setExpectedUnitsPerYear(Google_Service_JobService_ExtendedCompensationInfoDecimal $expectedUnitsPerYear) + { + $this->expectedUnitsPerYear = $expectedUnitsPerYear; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function getExpectedUnitsPerYear() + { + return $this->expectedUnitsPerYear; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function setRange(Google_Service_JobService_ExtendedCompensationInfoCompensationRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoCompensationRange + */ + public function getRange() + { + return $this->range; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setUnspecified($unspecified) + { + $this->unspecified = $unspecified; + } + public function getUnspecified() + { + return $this->unspecified; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationRange.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationRange.php new file mode 100644 index 00000000..aaa9680c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoCompensationRange.php @@ -0,0 +1,53 @@ +max = $max; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function getMax() + { + return $this->max; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function setMin(Google_Service_JobService_ExtendedCompensationInfoDecimal $min) + { + $this->min = $min; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfoDecimal + */ + public function getMin() + { + return $this->min; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoDecimal.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoDecimal.php new file mode 100644 index 00000000..5a62b4dd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ExtendedCompensationInfoDecimal.php @@ -0,0 +1,39 @@ +micros = $micros; + } + public function getMicros() + { + return $this->micros; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Filter.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Filter.php new file mode 100644 index 00000000..eae898cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Filter.php @@ -0,0 +1,30 @@ +requisitionId = $requisitionId; + } + public function getRequisitionId() + { + return $this->requisitionId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramRequest.php new file mode 100644 index 00000000..a77ceca6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramRequest.php @@ -0,0 +1,88 @@ +allowBroadening = $allowBroadening; + } + public function getAllowBroadening() + { + return $this->allowBroadening; + } + /** + * @param Google_Service_JobService_JobFilters + */ + public function setFilters(Google_Service_JobService_JobFilters $filters) + { + $this->filters = $filters; + } + /** + * @return Google_Service_JobService_JobFilters + */ + public function getFilters() + { + return $this->filters; + } + /** + * @param Google_Service_JobService_JobQuery + */ + public function setQuery(Google_Service_JobService_JobQuery $query) + { + $this->query = $query; + } + /** + * @return Google_Service_JobService_JobQuery + */ + public function getQuery() + { + return $this->query; + } + /** + * @param Google_Service_JobService_RequestMetadata + */ + public function setRequestMetadata(Google_Service_JobService_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + /** + * @return Google_Service_JobService_RequestMetadata + */ + public function getRequestMetadata() + { + return $this->requestMetadata; + } + public function setSearchTypes($searchTypes) + { + $this->searchTypes = $searchTypes; + } + public function getSearchTypes() + { + return $this->searchTypes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramResponse.php new file mode 100644 index 00000000..9a123937 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/GetHistogramResponse.php @@ -0,0 +1,54 @@ +metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param Google_Service_JobService_HistogramResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_JobService_HistogramResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramFacets.php b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramFacets.php new file mode 100644 index 00000000..cdd9c5b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramFacets.php @@ -0,0 +1,63 @@ +compensationHistogramFacets = $compensationHistogramFacets; + } + /** + * @return Google_Service_JobService_CompensationHistogramRequest + */ + public function getCompensationHistogramFacets() + { + return $this->compensationHistogramFacets; + } + /** + * @param Google_Service_JobService_CustomAttributeHistogramRequest + */ + public function setCustomAttributeHistogramFacets($customAttributeHistogramFacets) + { + $this->customAttributeHistogramFacets = $customAttributeHistogramFacets; + } + /** + * @return Google_Service_JobService_CustomAttributeHistogramRequest + */ + public function getCustomAttributeHistogramFacets() + { + return $this->customAttributeHistogramFacets; + } + public function setSimpleHistogramFacets($simpleHistogramFacets) + { + $this->simpleHistogramFacets = $simpleHistogramFacets; + } + public function getSimpleHistogramFacets() + { + return $this->simpleHistogramFacets; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResult.php b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResult.php new file mode 100644 index 00000000..265b1685 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResult.php @@ -0,0 +1,39 @@ +searchType = $searchType; + } + public function getSearchType() + { + return $this->searchType; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResults.php b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResults.php new file mode 100644 index 00000000..57982e46 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/HistogramResults.php @@ -0,0 +1,70 @@ +compensationHistogramResults = $compensationHistogramResults; + } + /** + * @return Google_Service_JobService_CompensationHistogramResult + */ + public function getCompensationHistogramResults() + { + return $this->compensationHistogramResults; + } + /** + * @param Google_Service_JobService_CustomAttributeHistogramResult + */ + public function setCustomAttributeHistogramResults($customAttributeHistogramResults) + { + $this->customAttributeHistogramResults = $customAttributeHistogramResults; + } + /** + * @return Google_Service_JobService_CustomAttributeHistogramResult + */ + public function getCustomAttributeHistogramResults() + { + return $this->customAttributeHistogramResults; + } + /** + * @param Google_Service_JobService_HistogramResult + */ + public function setSimpleHistogramResults($simpleHistogramResults) + { + $this->simpleHistogramResults = $simpleHistogramResults; + } + /** + * @return Google_Service_JobService_HistogramResult + */ + public function getSimpleHistogramResults() + { + return $this->simpleHistogramResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Job.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Job.php new file mode 100644 index 00000000..ffccf9d8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Job.php @@ -0,0 +1,434 @@ +applicationEmailList = $applicationEmailList; + } + public function getApplicationEmailList() + { + return $this->applicationEmailList; + } + public function setApplicationInstruction($applicationInstruction) + { + $this->applicationInstruction = $applicationInstruction; + } + public function getApplicationInstruction() + { + return $this->applicationInstruction; + } + public function setApplicationUrls($applicationUrls) + { + $this->applicationUrls = $applicationUrls; + } + public function getApplicationUrls() + { + return $this->applicationUrls; + } + public function setBenefits($benefits) + { + $this->benefits = $benefits; + } + public function getBenefits() + { + return $this->benefits; + } + public function setCompanyDisplayName($companyDisplayName) + { + $this->companyDisplayName = $companyDisplayName; + } + public function getCompanyDisplayName() + { + return $this->companyDisplayName; + } + public function setCompanyName($companyName) + { + $this->companyName = $companyName; + } + public function getCompanyName() + { + return $this->companyName; + } + public function setCompanyTitle($companyTitle) + { + $this->companyTitle = $companyTitle; + } + public function getCompanyTitle() + { + return $this->companyTitle; + } + /** + * @param Google_Service_JobService_CompensationInfo + */ + public function setCompensationInfo(Google_Service_JobService_CompensationInfo $compensationInfo) + { + $this->compensationInfo = $compensationInfo; + } + /** + * @return Google_Service_JobService_CompensationInfo + */ + public function getCompensationInfo() + { + return $this->compensationInfo; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_JobService_CustomAttribute + */ + public function setCustomAttributes($customAttributes) + { + $this->customAttributes = $customAttributes; + } + /** + * @return Google_Service_JobService_CustomAttribute + */ + public function getCustomAttributes() + { + return $this->customAttributes; + } + public function setDepartment($department) + { + $this->department = $department; + } + public function getDepartment() + { + return $this->department; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDistributorCompanyId($distributorCompanyId) + { + $this->distributorCompanyId = $distributorCompanyId; + } + public function getDistributorCompanyId() + { + return $this->distributorCompanyId; + } + public function setEducationLevels($educationLevels) + { + $this->educationLevels = $educationLevels; + } + public function getEducationLevels() + { + return $this->educationLevels; + } + public function setEmploymentTypes($employmentTypes) + { + $this->employmentTypes = $employmentTypes; + } + public function getEmploymentTypes() + { + return $this->employmentTypes; + } + /** + * @param Google_Service_JobService_Date + */ + public function setEndDate(Google_Service_JobService_Date $endDate) + { + $this->endDate = $endDate; + } + /** + * @return Google_Service_JobService_Date + */ + public function getEndDate() + { + return $this->endDate; + } + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + } + public function getExpireTime() + { + return $this->expireTime; + } + /** + * @param Google_Service_JobService_Date + */ + public function setExpiryDate(Google_Service_JobService_Date $expiryDate) + { + $this->expiryDate = $expiryDate; + } + /** + * @return Google_Service_JobService_Date + */ + public function getExpiryDate() + { + return $this->expiryDate; + } + /** + * @param Google_Service_JobService_ExtendedCompensationInfo + */ + public function setExtendedCompensationInfo(Google_Service_JobService_ExtendedCompensationInfo $extendedCompensationInfo) + { + $this->extendedCompensationInfo = $extendedCompensationInfo; + } + /** + * @return Google_Service_JobService_ExtendedCompensationInfo + */ + public function getExtendedCompensationInfo() + { + return $this->extendedCompensationInfo; + } + /** + * @param Google_Service_JobService_CustomField + */ + public function setFilterableCustomFields($filterableCustomFields) + { + $this->filterableCustomFields = $filterableCustomFields; + } + /** + * @return Google_Service_JobService_CustomField + */ + public function getFilterableCustomFields() + { + return $this->filterableCustomFields; + } + public function setIncentives($incentives) + { + $this->incentives = $incentives; + } + public function getIncentives() + { + return $this->incentives; + } + /** + * @param Google_Service_JobService_JobLocation + */ + public function setJobLocations($jobLocations) + { + $this->jobLocations = $jobLocations; + } + /** + * @return Google_Service_JobService_JobLocation + */ + public function getJobLocations() + { + return $this->jobLocations; + } + public function setJobTitle($jobTitle) + { + $this->jobTitle = $jobTitle; + } + public function getJobTitle() + { + return $this->jobTitle; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setLevel($level) + { + $this->level = $level; + } + public function getLevel() + { + return $this->level; + } + public function setLocations($locations) + { + $this->locations = $locations; + } + public function getLocations() + { + return $this->locations; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPromotionValue($promotionValue) + { + $this->promotionValue = $promotionValue; + } + public function getPromotionValue() + { + return $this->promotionValue; + } + /** + * @param Google_Service_JobService_Date + */ + public function setPublishDate(Google_Service_JobService_Date $publishDate) + { + $this->publishDate = $publishDate; + } + /** + * @return Google_Service_JobService_Date + */ + public function getPublishDate() + { + return $this->publishDate; + } + public function setQualifications($qualifications) + { + $this->qualifications = $qualifications; + } + public function getQualifications() + { + return $this->qualifications; + } + public function setReferenceUrl($referenceUrl) + { + $this->referenceUrl = $referenceUrl; + } + public function getReferenceUrl() + { + return $this->referenceUrl; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setRequisitionId($requisitionId) + { + $this->requisitionId = $requisitionId; + } + public function getRequisitionId() + { + return $this->requisitionId; + } + public function setResponsibilities($responsibilities) + { + $this->responsibilities = $responsibilities; + } + public function getResponsibilities() + { + return $this->responsibilities; + } + /** + * @param Google_Service_JobService_Date + */ + public function setStartDate(Google_Service_JobService_Date $startDate) + { + $this->startDate = $startDate; + } + /** + * @return Google_Service_JobService_Date + */ + public function getStartDate() + { + return $this->startDate; + } + /** + * @param Google_Service_JobService_CustomField + */ + public function setUnindexedCustomFields($unindexedCustomFields) + { + $this->unindexedCustomFields = $unindexedCustomFields; + } + /** + * @return Google_Service_JobService_CustomField + */ + public function getUnindexedCustomFields() + { + return $this->unindexedCustomFields; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/JobFilters.php b/vendor/google/apiclient-services/src/Google/Service/JobService/JobFilters.php new file mode 100644 index 00000000..8610eab6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/JobFilters.php @@ -0,0 +1,192 @@ +categories = $categories; + } + public function getCategories() + { + return $this->categories; + } + /** + * @param Google_Service_JobService_CommutePreference + */ + public function setCommuteFilter(Google_Service_JobService_CommutePreference $commuteFilter) + { + $this->commuteFilter = $commuteFilter; + } + /** + * @return Google_Service_JobService_CommutePreference + */ + public function getCommuteFilter() + { + return $this->commuteFilter; + } + public function setCompanyNames($companyNames) + { + $this->companyNames = $companyNames; + } + public function getCompanyNames() + { + return $this->companyNames; + } + public function setCompanyTitles($companyTitles) + { + $this->companyTitles = $companyTitles; + } + public function getCompanyTitles() + { + return $this->companyTitles; + } + /** + * @param Google_Service_JobService_CompensationFilter + */ + public function setCompensationFilter(Google_Service_JobService_CompensationFilter $compensationFilter) + { + $this->compensationFilter = $compensationFilter; + } + /** + * @return Google_Service_JobService_CompensationFilter + */ + public function getCompensationFilter() + { + return $this->compensationFilter; + } + public function setCustomAttributeFilter($customAttributeFilter) + { + $this->customAttributeFilter = $customAttributeFilter; + } + public function getCustomAttributeFilter() + { + return $this->customAttributeFilter; + } + /** + * @param Google_Service_JobService_CustomFieldFilter + */ + public function setCustomFieldFilters($customFieldFilters) + { + $this->customFieldFilters = $customFieldFilters; + } + /** + * @return Google_Service_JobService_CustomFieldFilter + */ + public function getCustomFieldFilters() + { + return $this->customFieldFilters; + } + public function setDisableSpellCheck($disableSpellCheck) + { + $this->disableSpellCheck = $disableSpellCheck; + } + public function getDisableSpellCheck() + { + return $this->disableSpellCheck; + } + public function setEmploymentTypes($employmentTypes) + { + $this->employmentTypes = $employmentTypes; + } + public function getEmploymentTypes() + { + return $this->employmentTypes; + } + /** + * @param Google_Service_JobService_ExtendedCompensationFilter + */ + public function setExtendedCompensationFilter(Google_Service_JobService_ExtendedCompensationFilter $extendedCompensationFilter) + { + $this->extendedCompensationFilter = $extendedCompensationFilter; + } + /** + * @return Google_Service_JobService_ExtendedCompensationFilter + */ + public function getExtendedCompensationFilter() + { + return $this->extendedCompensationFilter; + } + public function setLanguageCodes($languageCodes) + { + $this->languageCodes = $languageCodes; + } + public function getLanguageCodes() + { + return $this->languageCodes; + } + /** + * @param Google_Service_JobService_LocationFilter + */ + public function setLocationFilters($locationFilters) + { + $this->locationFilters = $locationFilters; + } + /** + * @return Google_Service_JobService_LocationFilter + */ + public function getLocationFilters() + { + return $this->locationFilters; + } + public function setPublishDateRange($publishDateRange) + { + $this->publishDateRange = $publishDateRange; + } + public function getPublishDateRange() + { + return $this->publishDateRange; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + public function setTenantJobOnly($tenantJobOnly) + { + $this->tenantJobOnly = $tenantJobOnly; + } + public function getTenantJobOnly() + { + return $this->tenantJobOnly; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/JobLocation.php b/vendor/google/apiclient-services/src/Google/Service/JobService/JobLocation.php new file mode 100644 index 00000000..b59206fd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/JobLocation.php @@ -0,0 +1,71 @@ +latLng = $latLng; + } + /** + * @return Google_Service_JobService_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } + public function setLocationType($locationType) + { + $this->locationType = $locationType; + } + public function getLocationType() + { + return $this->locationType; + } + /** + * @param Google_Service_JobService_PostalAddress + */ + public function setPostalAddress(Google_Service_JobService_PostalAddress $postalAddress) + { + $this->postalAddress = $postalAddress; + } + /** + * @return Google_Service_JobService_PostalAddress + */ + public function getPostalAddress() + { + return $this->postalAddress; + } + public function setRadiusMeters($radiusMeters) + { + $this->radiusMeters = $radiusMeters; + } + public function getRadiusMeters() + { + return $this->radiusMeters; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/JobProcessingOptions.php b/vendor/google/apiclient-services/src/Google/Service/JobService/JobProcessingOptions.php new file mode 100644 index 00000000..d44aec72 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/JobProcessingOptions.php @@ -0,0 +1,39 @@ +disableStreetAddressResolution = $disableStreetAddressResolution; + } + public function getDisableStreetAddressResolution() + { + return $this->disableStreetAddressResolution; + } + public function setHtmlSanitization($htmlSanitization) + { + $this->htmlSanitization = $htmlSanitization; + } + public function getHtmlSanitization() + { + return $this->htmlSanitization; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/JobQuery.php b/vendor/google/apiclient-services/src/Google/Service/JobService/JobQuery.php new file mode 100644 index 00000000..09a2655d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/JobQuery.php @@ -0,0 +1,151 @@ +categories = $categories; + } + public function getCategories() + { + return $this->categories; + } + /** + * @param Google_Service_JobService_CommutePreference + */ + public function setCommuteFilter(Google_Service_JobService_CommutePreference $commuteFilter) + { + $this->commuteFilter = $commuteFilter; + } + /** + * @return Google_Service_JobService_CommutePreference + */ + public function getCommuteFilter() + { + return $this->commuteFilter; + } + public function setCompanyDisplayNames($companyDisplayNames) + { + $this->companyDisplayNames = $companyDisplayNames; + } + public function getCompanyDisplayNames() + { + return $this->companyDisplayNames; + } + public function setCompanyNames($companyNames) + { + $this->companyNames = $companyNames; + } + public function getCompanyNames() + { + return $this->companyNames; + } + /** + * @param Google_Service_JobService_CompensationFilter + */ + public function setCompensationFilter(Google_Service_JobService_CompensationFilter $compensationFilter) + { + $this->compensationFilter = $compensationFilter; + } + /** + * @return Google_Service_JobService_CompensationFilter + */ + public function getCompensationFilter() + { + return $this->compensationFilter; + } + public function setCustomAttributeFilter($customAttributeFilter) + { + $this->customAttributeFilter = $customAttributeFilter; + } + public function getCustomAttributeFilter() + { + return $this->customAttributeFilter; + } + public function setDisableSpellCheck($disableSpellCheck) + { + $this->disableSpellCheck = $disableSpellCheck; + } + public function getDisableSpellCheck() + { + return $this->disableSpellCheck; + } + public function setEmploymentTypes($employmentTypes) + { + $this->employmentTypes = $employmentTypes; + } + public function getEmploymentTypes() + { + return $this->employmentTypes; + } + public function setLanguageCodes($languageCodes) + { + $this->languageCodes = $languageCodes; + } + public function getLanguageCodes() + { + return $this->languageCodes; + } + /** + * @param Google_Service_JobService_LocationFilter + */ + public function setLocationFilters($locationFilters) + { + $this->locationFilters = $locationFilters; + } + /** + * @return Google_Service_JobService_LocationFilter + */ + public function getLocationFilters() + { + return $this->locationFilters; + } + public function setPublishDateRange($publishDateRange) + { + $this->publishDateRange = $publishDateRange; + } + public function getPublishDateRange() + { + return $this->publishDateRange; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/JobsEmpty.php b/vendor/google/apiclient-services/src/Google/Service/JobService/JobsEmpty.php new file mode 100644 index 00000000..184fba0b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/JobsEmpty.php @@ -0,0 +1,20 @@ +latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompaniesResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompaniesResponse.php new file mode 100644 index 00000000..4fabb32d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompaniesResponse.php @@ -0,0 +1,63 @@ +companies = $companies; + } + /** + * @return Google_Service_JobService_Company + */ + public function getCompanies() + { + return $this->companies; + } + /** + * @param Google_Service_JobService_ResponseMetadata + */ + public function setMetadata(Google_Service_JobService_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompanyJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompanyJobsResponse.php new file mode 100644 index 00000000..27f56867 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ListCompanyJobsResponse.php @@ -0,0 +1,72 @@ +jobs = $jobs; + } + /** + * @return Google_Service_JobService_Job + */ + public function getJobs() + { + return $this->jobs; + } + /** + * @param Google_Service_JobService_ResponseMetadata + */ + public function setMetadata(Google_Service_JobService_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTotalSize($totalSize) + { + $this->totalSize = $totalSize; + } + public function getTotalSize() + { + return $this->totalSize; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ListJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ListJobsResponse.php new file mode 100644 index 00000000..dd94b636 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ListJobsResponse.php @@ -0,0 +1,63 @@ +jobs = $jobs; + } + /** + * @return Google_Service_JobService_Job + */ + public function getJobs() + { + return $this->jobs; + } + /** + * @param Google_Service_JobService_ResponseMetadata + */ + public function setMetadata(Google_Service_JobService_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/LocationFilter.php b/vendor/google/apiclient-services/src/Google/Service/JobService/LocationFilter.php new file mode 100644 index 00000000..619847e0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/LocationFilter.php @@ -0,0 +1,73 @@ +distanceInMiles = $distanceInMiles; + } + public function getDistanceInMiles() + { + return $this->distanceInMiles; + } + public function setIsTelecommute($isTelecommute) + { + $this->isTelecommute = $isTelecommute; + } + public function getIsTelecommute() + { + return $this->isTelecommute; + } + /** + * @param Google_Service_JobService_LatLng + */ + public function setLatLng(Google_Service_JobService_LatLng $latLng) + { + $this->latLng = $latLng; + } + /** + * @return Google_Service_JobService_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/MatchingJob.php b/vendor/google/apiclient-services/src/Google/Service/JobService/MatchingJob.php new file mode 100644 index 00000000..4a89f366 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/MatchingJob.php @@ -0,0 +1,80 @@ +commuteInfo = $commuteInfo; + } + /** + * @return Google_Service_JobService_CommuteInfo + */ + public function getCommuteInfo() + { + return $this->commuteInfo; + } + /** + * @param Google_Service_JobService_Job + */ + public function setJob(Google_Service_JobService_Job $job) + { + $this->job = $job; + } + /** + * @return Google_Service_JobService_Job + */ + public function getJob() + { + return $this->job; + } + public function setJobSummary($jobSummary) + { + $this->jobSummary = $jobSummary; + } + public function getJobSummary() + { + return $this->jobSummary; + } + public function setJobTitleSnippet($jobTitleSnippet) + { + $this->jobTitleSnippet = $jobTitleSnippet; + } + public function getJobTitleSnippet() + { + return $this->jobTitleSnippet; + } + public function setSearchTextSnippet($searchTextSnippet) + { + $this->searchTextSnippet = $searchTextSnippet; + } + public function getSearchTextSnippet() + { + return $this->searchTextSnippet; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Money.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Money.php new file mode 100644 index 00000000..7a2e6f5e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Money.php @@ -0,0 +1,48 @@ +currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + public function getNanos() + { + return $this->nanos; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingOption.php b/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingOption.php new file mode 100644 index 00000000..f5f1ac10 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingOption.php @@ -0,0 +1,40 @@ +bucketBounds = $bucketBounds; + } + public function getBucketBounds() + { + return $this->bucketBounds; + } + public function setRequiresMinMax($requiresMinMax) + { + $this->requiresMinMax = $requiresMinMax; + } + public function getRequiresMinMax() + { + return $this->requiresMinMax; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingResult.php b/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingResult.php new file mode 100644 index 00000000..7fce659b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/NumericBucketingResult.php @@ -0,0 +1,56 @@ +counts = $counts; + } + /** + * @return Google_Service_JobService_BucketizedCount + */ + public function getCounts() + { + return $this->counts; + } + public function setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + public function getMaxValue() + { + return $this->maxValue; + } + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + public function getMinValue() + { + return $this->minValue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/PostalAddress.php b/vendor/google/apiclient-services/src/Google/Service/JobService/PostalAddress.php new file mode 100644 index 00000000..fde80dab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/PostalAddress.php @@ -0,0 +1,121 @@ +addressLines = $addressLines; + } + public function getAddressLines() + { + return $this->addressLines; + } + public function setAdministrativeArea($administrativeArea) + { + $this->administrativeArea = $administrativeArea; + } + public function getAdministrativeArea() + { + return $this->administrativeArea; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setLocality($locality) + { + $this->locality = $locality; + } + public function getLocality() + { + return $this->locality; + } + public function setOrganization($organization) + { + $this->organization = $organization; + } + public function getOrganization() + { + return $this->organization; + } + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + public function getPostalCode() + { + return $this->postalCode; + } + public function setRecipients($recipients) + { + $this->recipients = $recipients; + } + public function getRecipients() + { + return $this->recipients; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setRevision($revision) + { + $this->revision = $revision; + } + public function getRevision() + { + return $this->revision; + } + public function setSortingCode($sortingCode) + { + $this->sortingCode = $sortingCode; + } + public function getSortingCode() + { + return $this->sortingCode; + } + public function setSublocality($sublocality) + { + $this->sublocality = $sublocality; + } + public function getSublocality() + { + return $this->sublocality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/RequestMetadata.php b/vendor/google/apiclient-services/src/Google/Service/JobService/RequestMetadata.php new file mode 100644 index 00000000..f05c09e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/RequestMetadata.php @@ -0,0 +1,64 @@ +deviceInfo = $deviceInfo; + } + /** + * @return Google_Service_JobService_DeviceInfo + */ + public function getDeviceInfo() + { + return $this->deviceInfo; + } + public function setDomain($domain) + { + $this->domain = $domain; + } + public function getDomain() + { + return $this->domain; + } + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + public function getSessionId() + { + return $this->sessionId; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Companies.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Companies.php new file mode 100644 index 00000000..1d421534 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Companies.php @@ -0,0 +1,135 @@ + + * $jobsService = new Google_Service_JobService(...); + * $companies = $jobsService->companies; + * + */ +class Google_Service_JobService_Resource_Companies extends Google_Service_Resource +{ + /** + * Creates a new company entity. (companies.create) + * + * @param Google_Service_JobService_Company $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_Company + */ + public function create(Google_Service_JobService_Company $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_JobService_Company"); + } + /** + * Deletes the specified company. (companies.delete) + * + * @param string $name Required. + * + * The resource name of the company to be deleted, such as, + * "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_JobsEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_JobService_JobsEmpty"); + } + /** + * Retrieves the specified company. (companies.get) + * + * @param string $name Required. + * + * Resource name of the company to retrieve, such as + * "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_Company + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_JobService_Company"); + } + /** + * Lists all companies associated with a Cloud Talent Solution account. + * (companies.listCompanies) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool mustHaveOpenJobs Optional. + * + * Set to true if the companies request must have open jobs. + * + * Defaults to false. + * + * If true, at most page_size of companies are fetched, among which only those + * with open jobs are returned. + * @opt_param string pageToken Optional. + * + * The starting indicator from which to return results. + * @opt_param int pageSize Optional. + * + * The maximum number of companies to be returned, at most 100. Default is 100 + * if a non-positive number is provided. + * @return Google_Service_JobService_ListCompaniesResponse + */ + public function listCompanies($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_JobService_ListCompaniesResponse"); + } + /** + * Updates the specified company. Company names can't be updated. To update a + * company name, delete the company and all jobs associated with it, and only + * then re-create them. (companies.patch) + * + * @param string $name Required during company update. + * + * The resource name for a company. This is generated by the service when a + * company is created, for example, + * "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". + * @param Google_Service_JobService_Company $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateCompanyFields Optional but strongly recommended to be + * provided for the best service experience. + * + * If update_company_fields is provided, only the specified fields in company + * are updated. Otherwise all the fields are updated. + * + * A field mask to specify the company fields to update. Valid values are: + * + * * displayName * website * imageUrl * companySize * + * distributorBillingCompanyId * companyInfoSources * careerPageLink * + * hiringAgency * hqLocation * eeoText * keywordSearchableCustomAttributes * + * title (deprecated) * keywordSearchableCustomFields (deprecated) + * @return Google_Service_JobService_Company + */ + public function patch($name, Google_Service_JobService_Company $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_JobService_Company"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/CompaniesJobs.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/CompaniesJobs.php new file mode 100644 index 00000000..ce4610ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/CompaniesJobs.php @@ -0,0 +1,80 @@ + + * $jobsService = new Google_Service_JobService(...); + * $jobs = $jobsService->jobs; + * + */ +class Google_Service_JobService_Resource_CompaniesJobs extends Google_Service_Resource +{ + /** + * Deprecated. Use ListJobs instead. + * + * Lists all jobs associated with a company. (jobs.listCompaniesJobs) + * + * @param string $companyName Required. + * + * The resource name of the company that owns the jobs to be listed, such as, + * "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". + * @param array $optParams Optional parameters. + * + * @opt_param bool includeJobsCount Deprecated. Please DO NOT use this field + * except for small companies. Suggest counting jobs page by page instead. + * + * Optional. + * + * Set to true if the total number of open jobs is to be returned. + * + * Defaults to false. + * @opt_param string pageToken Optional. + * + * The starting point of a query result. + * @opt_param bool idsOnly Optional. + * + * If set to `true`, only job ID, job requisition ID and language code will be + * returned. + * + * A typical use is to synchronize job repositories. + * + * Defaults to false. + * @opt_param int pageSize Optional. + * + * The maximum number of jobs to be returned per page of results. + * + * If ids_only is set to true, the maximum allowed page size is 1000. Otherwise, + * the maximum allowed page size is 100. + * + * Default is 100 if empty or a number < 1 is specified. + * @opt_param string jobRequisitionId Optional. + * + * The requisition ID, also known as posting ID, assigned by the company to the + * job. + * + * The maximum number of allowable characters is 225. + * @return Google_Service_JobService_ListCompanyJobsResponse + */ + public function listCompaniesJobs($companyName, $optParams = array()) + { + $params = array('companyName' => $companyName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_JobService_ListCompanyJobsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Jobs.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Jobs.php new file mode 100644 index 00000000..fc4c2235 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/Jobs.php @@ -0,0 +1,246 @@ + + * $jobsService = new Google_Service_JobService(...); + * $jobs = $jobsService->jobs; + * + */ +class Google_Service_JobService_Resource_Jobs extends Google_Service_Resource +{ + /** + * Deletes a list of Job postings by filter. (jobs.batchDelete) + * + * @param Google_Service_JobService_BatchDeleteJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_JobsEmpty + */ + public function batchDelete(Google_Service_JobService_BatchDeleteJobsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchDelete', array($params), "Google_Service_JobService_JobsEmpty"); + } + /** + * Creates a new job. + * + * Typically, the job becomes searchable within 10 seconds, but it may take up + * to 5 minutes. (jobs.create) + * + * @param Google_Service_JobService_CreateJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_Job + */ + public function create(Google_Service_JobService_CreateJobRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_JobService_Job"); + } + /** + * Deletes the specified job. + * + * Typically, the job becomes unsearchable within 10 seconds, but it may take up + * to 5 minutes. (jobs.delete) + * + * @param string $name Required. + * + * The resource name of the job to be deleted, such as "jobs/11111111". + * @param array $optParams Optional parameters. + * + * @opt_param bool disableFastProcess Deprecated. This field is not working + * anymore. + * + * Optional. + * + * If set to true, this call waits for all processing steps to complete before + * the job is cleaned up. Otherwise, the call returns while some steps are still + * taking place asynchronously, hence faster. + * @return Google_Service_JobService_JobsEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_JobService_JobsEmpty"); + } + /** + * Deprecated. Use BatchDeleteJobs instead. + * + * Deletes the specified job by filter. You can specify whether to synchronously + * wait for validation, indexing, and general processing to be completed before + * the response is returned. (jobs.deleteByFilter) + * + * @param Google_Service_JobService_DeleteJobsByFilterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_JobsEmpty + */ + public function deleteByFilter(Google_Service_JobService_DeleteJobsByFilterRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('deleteByFilter', array($params), "Google_Service_JobService_JobsEmpty"); + } + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED within + * the last 90 days. (jobs.get) + * + * @param string $name Required. + * + * The resource name of the job to retrieve, such as "jobs/11111111". + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_Job + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_JobService_Job"); + } + /** + * Deprecated. Use SearchJobsRequest.histogram_facets instead to make a single + * call with both search and histogram. + * + * Retrieves a histogram for the given GetHistogramRequest. This call provides a + * structured count of jobs that match against the search query, grouped by + * specified facets. + * + * This call constrains the visibility of jobs present in the database, and only + * counts jobs the caller has permission to search against. + * + * For example, use this call to generate the number of jobs in the U.S. by + * state. (jobs.histogram) + * + * @param Google_Service_JobService_GetHistogramRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_GetHistogramResponse + */ + public function histogram(Google_Service_JobService_GetHistogramRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('histogram', array($params), "Google_Service_JobService_GetHistogramResponse"); + } + /** + * Lists jobs by filter. (jobs.listJobs) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter Required. + * + * The filter string specifies the jobs to be enumerated. + * + * Supported operator: =, AND + * + * The fields eligible for filtering are: + * + * * `companyName` (Required) * `requisitionId` (Optional) + * + * Sample Query: + * + * * companyName = "companies/123" * companyName = "companies/123" AND + * requisitionId = "req-1" + * @opt_param string pageToken Optional. + * + * The starting point of a query result. + * @opt_param int pageSize Optional. + * + * The maximum number of jobs to be returned per page of results. + * + * If ids_only is set to true, the maximum allowed page size is 1000. Otherwise, + * the maximum allowed page size is 100. + * + * Default is 100 if empty or a number < 1 is specified. + * @opt_param bool idsOnly Optional. + * + * If set to `true`, only Job.name, Job.requisition_id and Job.language_code + * will be returned. + * + * A typical use case is to synchronize job repositories. + * + * Defaults to false. + * @return Google_Service_JobService_ListJobsResponse + */ + public function listJobs($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_JobService_ListJobsResponse"); + } + /** + * Updates specified job. + * + * Typically, updated contents become visible in search results within 10 + * seconds, but it may take up to 5 minutes. (jobs.patch) + * + * @param string $name Required during job update. + * + * Resource name assigned to a job by the API, for example, "/jobs/foo". Use of + * this field in job queries and API calls is preferred over the use of + * requisition_id since this value is unique. + * @param Google_Service_JobService_UpdateJobRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_Job + */ + public function patch($name, Google_Service_JobService_UpdateJobRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_JobService_Job"); + } + /** + * Searches for jobs using the provided SearchJobsRequest. + * + * This call constrains the visibility of jobs present in the database, and only + * returns jobs that the caller has permission to search against. (jobs.search) + * + * @param Google_Service_JobService_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_SearchJobsResponse + */ + public function search(Google_Service_JobService_SearchJobsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_JobService_SearchJobsResponse"); + } + /** + * Searches for jobs using the provided SearchJobsRequest. + * + * This API call is intended for the use case of targeting passive job seekers + * (for example, job seekers who have signed up to receive email alerts about + * potential job opportunities), and has different algorithmic adjustments that + * are targeted to passive job seekers. + * + * This call constrains the visibility of jobs present in the database, and only + * returns jobs the caller has permission to search against. + * (jobs.searchForAlert) + * + * @param Google_Service_JobService_SearchJobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_JobService_SearchJobsResponse + */ + public function searchForAlert(Google_Service_JobService_SearchJobsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('searchForAlert', array($params), "Google_Service_JobService_SearchJobsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/V2.php b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/V2.php new file mode 100644 index 00000000..0e18f5d1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/Resource/V2.php @@ -0,0 +1,71 @@ + + * $jobsService = new Google_Service_JobService(...); + * $v2 = $jobsService->v2; + * + */ +class Google_Service_JobService_Resource_V2 extends Google_Service_Resource +{ + /** + * Completes the specified prefix with job keyword suggestions. Intended for use + * by a job search auto-complete search box. (v2.complete) + * + * @param array $optParams Optional parameters. + * + * @opt_param string type Optional. + * + * The completion topic. The default is CompletionType.COMBINED. + * @opt_param string companyName Optional. + * + * If provided, restricts completion to the specified company. + * @opt_param string scope Optional. + * + * The scope of the completion. The defaults is CompletionScope.PUBLIC. + * @opt_param int pageSize Required. + * + * Completion result count. The maximum allowed page size is 10. + * @opt_param string query Required. + * + * The query used to generate suggestions. + * @opt_param string languageCode Required. + * + * The language of the query. This is the BCP-47 language code, such as "en-US" + * or "sr-Latn". For more information, see [Tags for Identifying + * Languages](https://tools.ietf.org/html/bcp47). + * + * For CompletionType.JOB_TITLE type, only open jobs with same language_code are + * returned. + * + * For CompletionType.COMPANY_NAME type, only companies having open jobs with + * same language_code are returned. + * + * For CompletionType.COMBINED type, only open jobs with same language_code or + * companies having open jobs with same language_code are returned. + * @return Google_Service_JobService_CompleteQueryResponse + */ + public function complete($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('complete', array($params), "Google_Service_JobService_CompleteQueryResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/ResponseMetadata.php b/vendor/google/apiclient-services/src/Google/Service/JobService/ResponseMetadata.php new file mode 100644 index 00000000..38a6d976 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/ResponseMetadata.php @@ -0,0 +1,49 @@ +experimentIdList = $experimentIdList; + } + public function getExperimentIdList() + { + return $this->experimentIdList; + } + public function setMode($mode) + { + $this->mode = $mode; + } + public function getMode() + { + return $this->mode; + } + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + public function getRequestId() + { + return $this->requestId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsRequest.php new file mode 100644 index 00000000..19b5770b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsRequest.php @@ -0,0 +1,175 @@ +disableRelevanceThresholding = $disableRelevanceThresholding; + } + public function getDisableRelevanceThresholding() + { + return $this->disableRelevanceThresholding; + } + public function setEnableBroadening($enableBroadening) + { + $this->enableBroadening = $enableBroadening; + } + public function getEnableBroadening() + { + return $this->enableBroadening; + } + public function setEnablePreciseResultSize($enablePreciseResultSize) + { + $this->enablePreciseResultSize = $enablePreciseResultSize; + } + public function getEnablePreciseResultSize() + { + return $this->enablePreciseResultSize; + } + /** + * @param Google_Service_JobService_JobFilters + */ + public function setFilters(Google_Service_JobService_JobFilters $filters) + { + $this->filters = $filters; + } + /** + * @return Google_Service_JobService_JobFilters + */ + public function getFilters() + { + return $this->filters; + } + /** + * @param Google_Service_JobService_HistogramFacets + */ + public function setHistogramFacets(Google_Service_JobService_HistogramFacets $histogramFacets) + { + $this->histogramFacets = $histogramFacets; + } + /** + * @return Google_Service_JobService_HistogramFacets + */ + public function getHistogramFacets() + { + return $this->histogramFacets; + } + public function setJobView($jobView) + { + $this->jobView = $jobView; + } + public function getJobView() + { + return $this->jobView; + } + public function setMode($mode) + { + $this->mode = $mode; + } + public function getMode() + { + return $this->mode; + } + public function setOffset($offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + public function getOrderBy() + { + return $this->orderBy; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } + /** + * @param Google_Service_JobService_JobQuery + */ + public function setQuery(Google_Service_JobService_JobQuery $query) + { + $this->query = $query; + } + /** + * @return Google_Service_JobService_JobQuery + */ + public function getQuery() + { + return $this->query; + } + /** + * @param Google_Service_JobService_RequestMetadata + */ + public function setRequestMetadata(Google_Service_JobService_RequestMetadata $requestMetadata) + { + $this->requestMetadata = $requestMetadata; + } + /** + * @return Google_Service_JobService_RequestMetadata + */ + public function getRequestMetadata() + { + return $this->requestMetadata; + } + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + public function getSortBy() + { + return $this->sortBy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsResponse.php new file mode 100644 index 00000000..af997b77 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/SearchJobsResponse.php @@ -0,0 +1,163 @@ +appliedCommuteFilter = $appliedCommuteFilter; + } + /** + * @return Google_Service_JobService_CommutePreference + */ + public function getAppliedCommuteFilter() + { + return $this->appliedCommuteFilter; + } + /** + * @param Google_Service_JobService_JobLocation + */ + public function setAppliedJobLocationFilters($appliedJobLocationFilters) + { + $this->appliedJobLocationFilters = $appliedJobLocationFilters; + } + /** + * @return Google_Service_JobService_JobLocation + */ + public function getAppliedJobLocationFilters() + { + return $this->appliedJobLocationFilters; + } + public function setEstimatedTotalSize($estimatedTotalSize) + { + $this->estimatedTotalSize = $estimatedTotalSize; + } + public function getEstimatedTotalSize() + { + return $this->estimatedTotalSize; + } + /** + * @param Google_Service_JobService_HistogramResults + */ + public function setHistogramResults(Google_Service_JobService_HistogramResults $histogramResults) + { + $this->histogramResults = $histogramResults; + } + /** + * @return Google_Service_JobService_HistogramResults + */ + public function getHistogramResults() + { + return $this->histogramResults; + } + public function setJobView($jobView) + { + $this->jobView = $jobView; + } + public function getJobView() + { + return $this->jobView; + } + /** + * @param Google_Service_JobService_MatchingJob + */ + public function setMatchingJobs($matchingJobs) + { + $this->matchingJobs = $matchingJobs; + } + /** + * @return Google_Service_JobService_MatchingJob + */ + public function getMatchingJobs() + { + return $this->matchingJobs; + } + /** + * @param Google_Service_JobService_ResponseMetadata + */ + public function setMetadata(Google_Service_JobService_ResponseMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_JobService_ResponseMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setNumJobsFromBroadenedQuery($numJobsFromBroadenedQuery) + { + $this->numJobsFromBroadenedQuery = $numJobsFromBroadenedQuery; + } + public function getNumJobsFromBroadenedQuery() + { + return $this->numJobsFromBroadenedQuery; + } + /** + * @param Google_Service_JobService_SpellingCorrection + */ + public function setSpellResult(Google_Service_JobService_SpellingCorrection $spellResult) + { + $this->spellResult = $spellResult; + } + /** + * @return Google_Service_JobService_SpellingCorrection + */ + public function getSpellResult() + { + return $this->spellResult; + } + public function setTotalSize($totalSize) + { + $this->totalSize = $totalSize; + } + public function getTotalSize() + { + return $this->totalSize; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/SpellingCorrection.php b/vendor/google/apiclient-services/src/Google/Service/JobService/SpellingCorrection.php new file mode 100644 index 00000000..a1362ab0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/SpellingCorrection.php @@ -0,0 +1,39 @@ +corrected = $corrected; + } + public function getCorrected() + { + return $this->corrected; + } + public function setCorrectedText($correctedText) + { + $this->correctedText = $correctedText; + } + public function getCorrectedText() + { + return $this->correctedText; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/StringValues.php b/vendor/google/apiclient-services/src/Google/Service/JobService/StringValues.php new file mode 100644 index 00000000..7dee12e0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/StringValues.php @@ -0,0 +1,31 @@ +values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/JobService/UpdateJobRequest.php b/vendor/google/apiclient-services/src/Google/Service/JobService/UpdateJobRequest.php new file mode 100644 index 00000000..2b4b8237 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/JobService/UpdateJobRequest.php @@ -0,0 +1,71 @@ +disableStreetAddressResolution = $disableStreetAddressResolution; + } + public function getDisableStreetAddressResolution() + { + return $this->disableStreetAddressResolution; + } + /** + * @param Google_Service_JobService_Job + */ + public function setJob(Google_Service_JobService_Job $job) + { + $this->job = $job; + } + /** + * @return Google_Service_JobService_Job + */ + public function getJob() + { + return $this->job; + } + /** + * @param Google_Service_JobService_JobProcessingOptions + */ + public function setProcessingOptions(Google_Service_JobService_JobProcessingOptions $processingOptions) + { + $this->processingOptions = $processingOptions; + } + /** + * @return Google_Service_JobService_JobProcessingOptions + */ + public function getProcessingOptions() + { + return $this->processingOptions; + } + public function setUpdateJobFields($updateJobFields) + { + $this->updateJobFields = $updateJobFields; + } + public function getUpdateJobFields() + { + return $this->updateJobFields; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Kgsearch.php b/vendor/google/apiclient-services/src/Google/Service/Kgsearch.php index ebcfaade..a98f36a7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Kgsearch.php +++ b/vendor/google/apiclient-services/src/Google/Service/Kgsearch.php @@ -44,6 +44,7 @@ class Google_Service_Kgsearch extends Google_Service parent::__construct($client); $this->rootUrl = 'https://kgsearch.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'kgsearch'; @@ -57,6 +58,20 @@ class Google_Service_Kgsearch extends Google_Service 'path' => 'v1/entities:search', 'httpMethod' => 'GET', 'parameters' => array( + 'languages' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'limit' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'prefix' => array( 'location' => 'query', 'type' => 'boolean', @@ -74,20 +89,6 @@ class Google_Service_Kgsearch extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'languages' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'ids' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'limit' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php b/vendor/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php index 053bdca9..a5a96f66 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php +++ b/vendor/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php @@ -32,6 +32,12 @@ class Google_Service_Kgsearch_Resource_Entities extends Google_Service_Resource * * @param array $optParams Optional parameters. * + * @opt_param string languages The list of language codes (defined in ISO 693) + * to run the query with, e.g. 'en'. + * @opt_param string ids The list of entity id to be used for search instead of + * query string. To specify multiple ids in the HTTP request, repeat the + * parameter in the URL as in ...?ids=A=B + * @opt_param int limit Limits the number of entities to be returned. * @opt_param bool prefix Enables prefix match against names and aliases of * entities * @opt_param string query The literal query string for search. @@ -39,12 +45,6 @@ class Google_Service_Kgsearch_Resource_Entities extends Google_Service_Resource * Person (as defined in http://schema.org/Person). If multiple types are * specified, returned entities will contain one or more of these types. * @opt_param bool indent Enables indenting of json results. - * @opt_param string languages The list of language codes (defined in ISO 693) - * to run the query with, e.g. 'en'. - * @opt_param string ids The list of entity id to be used for search instead of - * query string. To specify multiple ids in the HTTP request, repeat the - * parameter in the URL as in ...?ids=A=B - * @opt_param int limit Limits the number of entities to be returned. * @return Google_Service_Kgsearch_SearchResponse */ public function search($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent.php new file mode 100644 index 00000000..20df7c39 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent.php @@ -0,0 +1,146 @@ + + * A simple Google Example Library API. + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Libraryagent extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $shelves; + public $shelves_books; + + /** + * Constructs the internal representation of the Libraryagent service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://libraryagent.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'libraryagent'; + + $this->shelves = new Google_Service_Libraryagent_Resource_Shelves( + $this, + $this->serviceName, + 'shelves', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/shelves', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->shelves_books = new Google_Service_Libraryagent_Resource_ShelvesBooks( + $this, + $this->serviceName, + 'books', + array( + 'methods' => array( + 'borrow' => array( + 'path' => 'v1/{+name}:borrow', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/books', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'return' => array( + 'path' => 'v1/{+name}:return', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Book.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Book.php new file mode 100644 index 00000000..1ff49ba0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Book.php @@ -0,0 +1,57 @@ +author = $author; + } + public function getAuthor() + { + return $this->author; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRead($read) + { + $this->read = $read; + } + public function getRead() + { + return $this->read; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListBooksResponse.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListBooksResponse.php new file mode 100644 index 00000000..d4758bd1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListBooksResponse.php @@ -0,0 +1,47 @@ +books = $books; + } + /** + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book + */ + public function getBooks() + { + return $this->books; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListShelvesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListShelvesResponse.php new file mode 100644 index 00000000..d5c92c34 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1ListShelvesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Libraryagent_GoogleExampleLibraryagentV1Shelf + */ + public function setShelves($shelves) + { + $this->shelves = $shelves; + } + /** + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Shelf + */ + public function getShelves() + { + return $this->shelves; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Shelf.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Shelf.php new file mode 100644 index 00000000..c107dc34 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/GoogleExampleLibraryagentV1Shelf.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setTheme($theme) + { + $this->theme = $theme; + } + public function getTheme() + { + return $this->theme; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/Shelves.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/Shelves.php new file mode 100644 index 00000000..35684b97 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/Shelves.php @@ -0,0 +1,62 @@ + + * $libraryagentService = new Google_Service_Libraryagent(...); + * $shelves = $libraryagentService->shelves; + * + */ +class Google_Service_Libraryagent_Resource_Shelves extends Google_Service_Resource +{ + /** + * Gets a shelf. Returns NOT_FOUND if the shelf does not exist. (shelves.get) + * + * @param string $name The name of the shelf to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Shelf + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1Shelf"); + } + /** + * Lists shelves. The order is unspecified but deterministic. Newly created + * shelves will not necessarily be added to the end of this list. + * (shelves.listShelves) + * + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Requested page size. Server may return fewer shelves + * than requested. If unspecified, server will pick an appropriate default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListShelvesResponse.next_page_token returned from the previous call to + * `ListShelves` method. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1ListShelvesResponse + */ + public function listShelves($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1ListShelvesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/ShelvesBooks.php b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/ShelvesBooks.php new file mode 100644 index 00000000..28479b6c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Libraryagent/Resource/ShelvesBooks.php @@ -0,0 +1,94 @@ + + * $libraryagentService = new Google_Service_Libraryagent(...); + * $books = $libraryagentService->books; + * + */ +class Google_Service_Libraryagent_Resource_ShelvesBooks extends Google_Service_Resource +{ + /** + * Borrow a book from the library. Returns the book if it is borrowed + * successfully. Returns NOT_FOUND if the book does not exist in the library. + * Returns quota exceeded error if the amount of books borrowed exceeds + * allocation quota in any dimensions. (books.borrow) + * + * @param string $name The name of the book to borrow. + * @param array $optParams Optional parameters. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book + */ + public function borrow($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('borrow', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book"); + } + /** + * Gets a book. Returns NOT_FOUND if the book does not exist. (books.get) + * + * @param string $name The name of the book to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book"); + } + /** + * Lists books in a shelf. The order is unspecified but deterministic. Newly + * created books will not necessarily be added to the end of this list. Returns + * NOT_FOUND if the shelf does not exist. (books.listShelvesBooks) + * + * @param string $parent The name of the shelf whose books we'd like to list. + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Requested page size. Server may return fewer books + * than requested. If unspecified, server will pick an appropriate default. + * @opt_param string pageToken A token identifying a page of results the server + * should return. Typically, this is the value of + * ListBooksResponse.next_page_token. returned from the previous call to + * `ListBooks` method. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1ListBooksResponse + */ + public function listShelvesBooks($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1ListBooksResponse"); + } + /** + * Return a book to the library. Returns the book if it is returned to the + * library successfully. Returns error if the book does not belong to the + * library or the users didn't borrow before. (books.returnShelvesBooks) + * + * @param string $name The name of the book to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book + */ + public function returnShelvesBooks($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('return', array($params), "Google_Service_Libraryagent_GoogleExampleLibraryagentV1Book"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Licensing.php b/vendor/google/apiclient-services/src/Google/Service/Licensing.php index bb322a49..7ffad393 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Licensing.php +++ b/vendor/google/apiclient-services/src/Google/Service/Licensing.php @@ -46,6 +46,7 @@ class Google_Service_Licensing extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/licensing/v1/product/'; + $this->batchPath = 'batch/licensing/v1'; $this->version = 'v1'; $this->serviceName = 'licensing'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging.php b/vendor/google/apiclient-services/src/Google/Service/Logging.php index 26a49d45..39e52a1e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging.php @@ -19,7 +19,7 @@ * Service definition for Logging (v2). * *- * Writes log entries and manages your Stackdriver Logging configuration.
+ * Writes log entries and manages your Logging configuration. * ** For more information about this service, see the API @@ -75,6 +75,7 @@ class Google_Service_Logging extends Google_Service parent::__construct($client); $this->rootUrl = 'https://logging.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'logging'; @@ -535,14 +536,14 @@ class Google_Service_Logging extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', @@ -950,14 +951,14 @@ class Google_Service_Logging extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -1080,14 +1081,14 @@ class Google_Service_Logging extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'v2/{+sinkName}', @@ -1178,14 +1179,14 @@ class Google_Service_Logging extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'v2/{+sinkName}', diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/LogEntry.php b/vendor/google/apiclient-services/src/Google/Service/Logging/LogEntry.php index 9e4f4132..b42dacc9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/LogEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/LogEntry.php @@ -38,6 +38,7 @@ class Google_Service_Logging_LogEntry extends Google_Model public $textPayload; public $timestamp; public $trace; + public $traceSampled; /** * @param Google_Service_Logging_HttpRequest @@ -197,4 +198,12 @@ class Google_Service_Logging_LogEntry extends Google_Model { return $this->trace; } + public function setTraceSampled($traceSampled) + { + $this->traceSampled = $traceSampled; + } + public function getTraceSampled() + { + return $this->traceSampled; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/LogExclusion.php b/vendor/google/apiclient-services/src/Google/Service/Logging/LogExclusion.php index ef633009..83de31b8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/LogExclusion.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/LogExclusion.php @@ -17,11 +17,21 @@ class Google_Service_Logging_LogExclusion extends Google_Model { + public $createTime; public $description; public $disabled; public $filter; public $name; + public $updateTime; + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } public function setDescription($description) { $this->description = $description; @@ -54,4 +64,12 @@ class Google_Service_Logging_LogExclusion extends Google_Model { return $this->name; } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/LogMetric.php b/vendor/google/apiclient-services/src/Google/Service/Logging/LogMetric.php index 97e45a59..988d1761 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/LogMetric.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/LogMetric.php @@ -19,12 +19,14 @@ class Google_Service_Logging_LogMetric extends Google_Model { protected $bucketOptionsType = 'Google_Service_Logging_BucketOptions'; protected $bucketOptionsDataType = ''; + public $createTime; public $description; public $filter; public $labelExtractors; protected $metricDescriptorType = 'Google_Service_Logging_MetricDescriptor'; protected $metricDescriptorDataType = ''; public $name; + public $updateTime; public $valueExtractor; public $version; @@ -42,6 +44,14 @@ class Google_Service_Logging_LogMetric extends Google_Model { return $this->bucketOptions; } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } public function setDescription($description) { $this->description = $description; @@ -88,6 +98,14 @@ class Google_Service_Logging_LogMetric extends Google_Model { return $this->name; } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } public function setValueExtractor($valueExtractor) { $this->valueExtractor = $valueExtractor; diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/LogSink.php b/vendor/google/apiclient-services/src/Google/Service/Logging/LogSink.php index ddf88b78..3fe25226 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/LogSink.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/LogSink.php @@ -17,15 +17,23 @@ class Google_Service_Logging_LogSink extends Google_Model { + public $createTime; public $destination; - public $endTime; public $filter; public $includeChildren; public $name; public $outputVersionFormat; - public $startTime; + public $updateTime; public $writerIdentity; + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } public function setDestination($destination) { $this->destination = $destination; @@ -34,14 +42,6 @@ class Google_Service_Logging_LogSink extends Google_Model { return $this->destination; } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } public function setFilter($filter) { $this->filter = $filter; @@ -74,13 +74,13 @@ class Google_Service_Logging_LogSink extends Google_Model { return $this->outputVersionFormat; } - public function setStartTime($startTime) + public function setUpdateTime($updateTime) { - $this->startTime = $startTime; + $this->updateTime = $updateTime; } - public function getStartTime() + public function getUpdateTime() { - return $this->startTime; + return $this->updateTime; } public function setWriterIdentity($writerIdentity) { diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptor.php index bae94381..6bb14e6a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_Logging_MetricDescriptor extends Google_Collection public $displayName; protected $labelsType = 'Google_Service_Logging_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_Logging_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_Logging_MetricDescriptor extends Google_Collection { return $this->labels; } + /** + * @param Google_Service_Logging_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_Logging_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_Logging_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptorMetadata.php new file mode 100644 index 00000000..cd43261b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/RequestLog.php b/vendor/google/apiclient-services/src/Google/Service/Logging/RequestLog.php index ce95f0b3..48fd6fec 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/RequestLog.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/RequestLog.php @@ -48,6 +48,7 @@ class Google_Service_Logging_RequestLog extends Google_Collection public $taskName; public $taskQueueName; public $traceId; + public $traceSampled; public $urlMapEntry; public $userAgent; public $versionId; @@ -289,6 +290,14 @@ class Google_Service_Logging_RequestLog extends Google_Collection { return $this->traceId; } + public function setTraceSampled($traceSampled) + { + $this->traceSampled = $traceSampled; + } + public function getTraceSampled() + { + return $this->traceSampled; + } public function setUrlMapEntry($urlMapEntry) { $this->urlMapEntry = $urlMapEntry; diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php index 8cfd7eca..78c22714 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php @@ -42,12 +42,12 @@ class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Servic * identity returned as writer_identity in the new sink. If this value is * omitted or set to false, and if the sink's parent is a project, then the * value returned as writer_identity is the same group or service account used - * by Stackdriver Logging before the addition of writer identities to this API. - * The sink's destination must be in the same project as the sink itself.If this - * field is set to true, or if the sink is owned by a non-project resource such - * as an organization, then the value of writer_identity will be a unique - * service account used only for exports from the new sink. For more - * information, see writer_identity in LogSink. + * by Logging before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * @return Google_Service_Logging_LogSink */ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -119,7 +119,7 @@ class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Servic } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.patch) * @@ -149,7 +149,8 @@ class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Servic * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function patch($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -160,7 +161,7 @@ class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Servic } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.update) * @@ -190,7 +191,8 @@ class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Servic * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php index 17079034..c9a8209b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php @@ -26,9 +26,9 @@ class Google_Service_Logging_Resource_Entries extends Google_Service_Resource { /** - * Lists log entries. Use this method to retrieve log entries from Stackdriver - * Logging. For ways to export log entries, see Exporting Logs. - * (entries.listEntries) + * Lists log entries. Use this method to retrieve log entries that originated + * from a project/folder/organization/billing account. For ways to export log + * entries, see Exporting Logs. (entries.listEntries) * * @param Google_Service_Logging_ListLogEntriesRequest $postBody * @param array $optParams Optional parameters. @@ -41,12 +41,12 @@ class Google_Service_Logging_Resource_Entries extends Google_Service_Resource return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse"); } /** - * Writes log entries to Stackdriver Logging. This API method is the only way to - * send log entries to Stackdriver Logging. This method is used, directly or - * indirectly, by the Stackdriver Logging agent (fluentd) and all logging - * libraries configured to use Stackdriver Logging. A single request may contain - * log entries for a maximum of 1000 different resources (projects, - * organizations, billing accounts or folders) (entries.write) + * Writes log entries to Logging. This API method is the only way to send log + * entries to Logging. This method is used, directly or indirectly, by the + * Logging agent (fluentd) and all logging libraries configured to use Logging. + * A single request may contain log entries for a maximum of 1000 different + * resources (projects, organizations, billing accounts or folders) + * (entries.write) * * @param Google_Service_Logging_WriteLogEntriesRequest $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php index 9e7e08a1..29c6f610 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php @@ -42,12 +42,12 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour * identity returned as writer_identity in the new sink. If this value is * omitted or set to false, and if the sink's parent is a project, then the * value returned as writer_identity is the same group or service account used - * by Stackdriver Logging before the addition of writer identities to this API. - * The sink's destination must be in the same project as the sink itself.If this - * field is set to true, or if the sink is owned by a non-project resource such - * as an organization, then the value of writer_identity will be a unique - * service account used only for exports from the new sink. For more - * information, see writer_identity in LogSink. + * by Logging before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * @return Google_Service_Logging_LogSink */ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -102,13 +102,13 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @param array $optParams Optional parameters. * + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Non-positive values are ignored. The presence of + * nextPageToken in the response indicates that more results might be available. * @opt_param string pageToken Optional. If present, then retrieve the next * batch of results from the preceding call to this method. pageToken must be * the value of nextPageToken from the previous response. The values of other * method parameters should be identical to those in the previous call. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Non-positive values are ignored. The presence of - * nextPageToken in the response indicates that more results might be available. * @return Google_Service_Logging_ListSinksResponse */ public function listFoldersSinks($parent, $optParams = array()) @@ -119,7 +119,7 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.patch) * @@ -149,7 +149,8 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function patch($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -160,7 +161,7 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.update) * @@ -190,7 +191,8 @@ class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resour * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php index dfd125a3..38e0ce2b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php @@ -26,8 +26,8 @@ class Google_Service_Logging_Resource_MonitoredResourceDescriptors extends Google_Service_Resource { /** - * Lists the descriptors for monitored resource types used by Stackdriver - * Logging. (monitoredResourceDescriptors.listMonitoredResourceDescriptors) + * Lists the descriptors for monitored resource types used by Logging. + * (monitoredResourceDescriptors.listMonitoredResourceDescriptors) * * @param array $optParams Optional parameters. * diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php index 7986ec74..66d70c17 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php @@ -42,12 +42,12 @@ class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_ * identity returned as writer_identity in the new sink. If this value is * omitted or set to false, and if the sink's parent is a project, then the * value returned as writer_identity is the same group or service account used - * by Stackdriver Logging before the addition of writer identities to this API. - * The sink's destination must be in the same project as the sink itself.If this - * field is set to true, or if the sink is owned by a non-project resource such - * as an organization, then the value of writer_identity will be a unique - * service account used only for exports from the new sink. For more - * information, see writer_identity in LogSink. + * by Logging before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * @return Google_Service_Logging_LogSink */ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -119,7 +119,7 @@ class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_ } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.patch) * @@ -149,7 +149,8 @@ class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_ * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function patch($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -160,7 +161,7 @@ class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_ } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.update) * @@ -190,7 +191,8 @@ class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_ * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php index 39c6b55e..390074c5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php @@ -56,13 +56,13 @@ class Google_Service_Logging_Resource_ProjectsLogs extends Google_Service_Resour * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @param array $optParams Optional parameters. * + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Non-positive values are ignored. The presence of + * nextPageToken in the response indicates that more results might be available. * @opt_param string pageToken Optional. If present, then retrieve the next * batch of results from the preceding call to this method. pageToken must be * the value of nextPageToken from the previous response. The values of other * method parameters should be identical to those in the previous call. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Non-positive values are ignored. The presence of - * nextPageToken in the response indicates that more results might be available. * @return Google_Service_Logging_ListLogsResponse */ public function listProjectsLogs($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php index 3a742e9a..6642689a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php @@ -42,12 +42,12 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou * identity returned as writer_identity in the new sink. If this value is * omitted or set to false, and if the sink's parent is a project, then the * value returned as writer_identity is the same group or service account used - * by Stackdriver Logging before the addition of writer identities to this API. - * The sink's destination must be in the same project as the sink itself.If this - * field is set to true, or if the sink is owned by a non-project resource such - * as an organization, then the value of writer_identity will be a unique - * service account used only for exports from the new sink. For more - * information, see writer_identity in LogSink. + * by Logging before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * @return Google_Service_Logging_LogSink */ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -102,13 +102,13 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @param array $optParams Optional parameters. * + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Non-positive values are ignored. The presence of + * nextPageToken in the response indicates that more results might be available. * @opt_param string pageToken Optional. If present, then retrieve the next * batch of results from the preceding call to this method. pageToken must be * the value of nextPageToken from the previous response. The values of other * method parameters should be identical to those in the previous call. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Non-positive values are ignored. The presence of - * nextPageToken in the response indicates that more results might be available. * @return Google_Service_Logging_ListSinksResponse */ public function listProjectsSinks($parent, $optParams = array()) @@ -119,7 +119,7 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.patch) * @@ -149,7 +149,8 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function patch($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -160,7 +161,7 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.update) * @@ -190,7 +191,8 @@ class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resou * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Sinks.php b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Sinks.php index c6bcea51..9e367459 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Sinks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Logging/Resource/Sinks.php @@ -42,12 +42,12 @@ class Google_Service_Logging_Resource_Sinks extends Google_Service_Resource * identity returned as writer_identity in the new sink. If this value is * omitted or set to false, and if the sink's parent is a project, then the * value returned as writer_identity is the same group or service account used - * by Stackdriver Logging before the addition of writer identities to this API. - * The sink's destination must be in the same project as the sink itself.If this - * field is set to true, or if the sink is owned by a non-project resource such - * as an organization, then the value of writer_identity will be a unique - * service account used only for exports from the new sink. For more - * information, see writer_identity in LogSink. + * by Logging before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * @return Google_Service_Logging_LogSink */ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array()) @@ -102,13 +102,13 @@ class Google_Service_Logging_Resource_Sinks extends Google_Service_Resource * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @param array $optParams Optional parameters. * + * @opt_param int pageSize Optional. The maximum number of results to return + * from this request. Non-positive values are ignored. The presence of + * nextPageToken in the response indicates that more results might be available. * @opt_param string pageToken Optional. If present, then retrieve the next * batch of results from the preceding call to this method. pageToken must be * the value of nextPageToken from the previous response. The values of other * method parameters should be identical to those in the previous call. - * @opt_param int pageSize Optional. The maximum number of results to return - * from this request. Non-positive values are ignored. The presence of - * nextPageToken in the response indicates that more results might be available. * @return Google_Service_Logging_ListSinksResponse */ public function listSinks($parent, $optParams = array()) @@ -119,7 +119,7 @@ class Google_Service_Logging_Resource_Sinks extends Google_Service_Resource } /** * Updates a sink. This method replaces the following fields in the existing - * sink with values from the new sink: destination, and filter. The updated sink + * sink with values from the new sink: destination, and filter.The updated sink * might also have a new writer_identity; see the unique_writer_identity field. * (sinks.update) * @@ -149,7 +149,8 @@ class Google_Service_Logging_Resource_Sinks extends Google_Service_Resource * destination,filter,includeChildren At some point in the future, behavior will * be removed and specifying an empty updateMask will be an error.For a detailed * FieldMask definition, see https://developers.google.com/protocol- - * buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter. + * buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: + * updateMask=filter. * @return Google_Service_Logging_LogSink */ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter.php b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter.php index 1e2871fb..0307e809 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter.php +++ b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter.php @@ -46,6 +46,7 @@ class Google_Service_ManufacturerCenter extends Google_Service parent::__construct($client); $this->rootUrl = 'https://manufacturers.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'manufacturers'; @@ -99,6 +100,10 @@ class Google_Service_ManufacturerCenter extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -108,10 +113,6 @@ class Google_Service_ManufacturerCenter extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'update' => array( 'path' => 'v1/{+parent}/products/{+name}', diff --git a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php index de02a261..f2198d92 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php +++ b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php @@ -17,25 +17,18 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection { - protected $collection_key = 'manuallyDeletedAttributes'; + protected $collection_key = 'issues'; protected $attributesType = 'Google_Service_ManufacturerCenter_Attributes'; protected $attributesDataType = ''; public $contentLanguage; protected $destinationStatusesType = 'Google_Service_ManufacturerCenter_DestinationStatus'; protected $destinationStatusesDataType = 'array'; - protected $finalAttributesType = 'Google_Service_ManufacturerCenter_Attributes'; - protected $finalAttributesDataType = ''; protected $issuesType = 'Google_Service_ManufacturerCenter_Issue'; protected $issuesDataType = 'array'; - public $manuallyDeletedAttributes; - protected $manuallyProvidedAttributesType = 'Google_Service_ManufacturerCenter_Attributes'; - protected $manuallyProvidedAttributesDataType = ''; public $name; public $parent; public $productId; public $targetCountry; - protected $uploadedAttributesType = 'Google_Service_ManufacturerCenter_Attributes'; - protected $uploadedAttributesDataType = ''; /** * @param Google_Service_ManufacturerCenter_Attributes @@ -73,20 +66,6 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection { return $this->destinationStatuses; } - /** - * @param Google_Service_ManufacturerCenter_Attributes - */ - public function setFinalAttributes(Google_Service_ManufacturerCenter_Attributes $finalAttributes) - { - $this->finalAttributes = $finalAttributes; - } - /** - * @return Google_Service_ManufacturerCenter_Attributes - */ - public function getFinalAttributes() - { - return $this->finalAttributes; - } /** * @param Google_Service_ManufacturerCenter_Issue */ @@ -101,28 +80,6 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection { return $this->issues; } - public function setManuallyDeletedAttributes($manuallyDeletedAttributes) - { - $this->manuallyDeletedAttributes = $manuallyDeletedAttributes; - } - public function getManuallyDeletedAttributes() - { - return $this->manuallyDeletedAttributes; - } - /** - * @param Google_Service_ManufacturerCenter_Attributes - */ - public function setManuallyProvidedAttributes(Google_Service_ManufacturerCenter_Attributes $manuallyProvidedAttributes) - { - $this->manuallyProvidedAttributes = $manuallyProvidedAttributes; - } - /** - * @return Google_Service_ManufacturerCenter_Attributes - */ - public function getManuallyProvidedAttributes() - { - return $this->manuallyProvidedAttributes; - } public function setName($name) { $this->name = $name; @@ -155,18 +112,4 @@ class Google_Service_ManufacturerCenter_Product extends Google_Collection { return $this->targetCountry; } - /** - * @param Google_Service_ManufacturerCenter_Attributes - */ - public function setUploadedAttributes(Google_Service_ManufacturerCenter_Attributes $uploadedAttributes) - { - $this->uploadedAttributes = $uploadedAttributes; - } - /** - * @return Google_Service_ManufacturerCenter_Attributes - */ - public function getUploadedAttributes() - { - return $this->uploadedAttributes; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php index bca92135..a63896bc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php +++ b/vendor/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php @@ -78,10 +78,6 @@ class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google * * @opt_param string include The information to be included in the response. * Only sections listed here will be returned. - * - * If this parameter is not specified, ATTRIBUTES and ISSUES are returned. This - * behavior is temporary and will be removed once all clients are ready or at - * the latest end of July 2018. After that no sections will be returned. * @return Google_Service_ManufacturerCenter_Product */ public function get($parent, $name, $optParams = array()) @@ -99,15 +95,11 @@ class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google * `account_id` - The ID of the Manufacturer Center account. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The token returned by the previous request. * @opt_param int pageSize Maximum number of product statuses to return in the * response, used for paging. * @opt_param string include The information to be included in the response. * Only sections listed here will be returned. - * - * If this parameter is not specified, ATTRIBUTES and ISSUES are returned. This - * behavior is temporary and will be removed once all clients are ready or at - * the latest end of July 2018. After that no sections will be returned. - * @opt_param string pageToken The token returned by the previous request. * @return Google_Service_ManufacturerCenter_ListProductsResponse */ public function listAccountsProducts($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Mirror.php b/vendor/google/apiclient-services/src/Google/Service/Mirror.php index 7ee242f9..e4e82f90 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Mirror.php +++ b/vendor/google/apiclient-services/src/Google/Service/Mirror.php @@ -55,6 +55,7 @@ class Google_Service_Mirror extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'mirror/v1/'; + $this->batchPath = 'batch/mirror/v1'; $this->version = 'v1'; $this->serviceName = 'mirror'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring.php index bbb5144e..0d7c1617 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring.php @@ -67,6 +67,7 @@ class Google_Service_Monitoring extends Google_Service parent::__construct($client); $this->rootUrl = 'https://monitoring.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v3'; $this->serviceName = 'monitoring'; @@ -199,6 +200,10 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), + 'recursive' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'get' => array( 'path' => 'v3/{+name}', @@ -273,23 +278,23 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), - 'interval.endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'interval.startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'interval.startTime' => array( + 'interval.endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filter' => array( 'location' => 'query', 'type' => 'string', ), @@ -343,10 +348,6 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -355,6 +356,10 @@ class Google_Service_Monitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -385,10 +390,6 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -397,6 +398,10 @@ class Google_Service_Monitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -427,14 +432,14 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -579,6 +584,22 @@ class Google_Service_Monitoring extends Google_Service 'type' => 'string', 'required' => true, ), + 'aggregation.crossSeriesReducer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'aggregation.perSeriesAligner' => array( + 'location' => 'query', + 'type' => 'string', + ), 'interval.startTime' => array( 'location' => 'query', 'type' => 'string', @@ -608,22 +629,6 @@ class Google_Service_Monitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'aggregation.crossSeriesReducer' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'aggregation.perSeriesAligner' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php index a08b63ea..e8ac6530 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php @@ -17,11 +17,13 @@ class Google_Service_Monitoring_Distribution extends Google_Collection { - protected $collection_key = 'bucketCounts'; + protected $collection_key = 'exemplars'; public $bucketCounts; protected $bucketOptionsType = 'Google_Service_Monitoring_BucketOptions'; protected $bucketOptionsDataType = ''; public $count; + protected $exemplarsType = 'Google_Service_Monitoring_Exemplar'; + protected $exemplarsDataType = 'array'; public $mean; protected $rangeType = 'Google_Service_Monitoring_Range'; protected $rangeDataType = ''; @@ -57,6 +59,20 @@ class Google_Service_Monitoring_Distribution extends Google_Collection { return $this->count; } + /** + * @param Google_Service_Monitoring_Exemplar + */ + public function setExemplars($exemplars) + { + $this->exemplars = $exemplars; + } + /** + * @return Google_Service_Monitoring_Exemplar + */ + public function getExemplars() + { + return $this->exemplars; + } public function setMean($mean) { $this->mean = $mean; diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/DroppedLabels.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/DroppedLabels.php new file mode 100644 index 00000000..7fe0e305 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/DroppedLabels.php @@ -0,0 +1,30 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Exemplar.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Exemplar.php new file mode 100644 index 00000000..78dcc4e5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Exemplar.php @@ -0,0 +1,49 @@ +attachments = $attachments; + } + public function getAttachments() + { + return $this->attachments; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/InternalChecker.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/InternalChecker.php index 5830f494..aae0b8ec 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/InternalChecker.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/InternalChecker.php @@ -17,20 +17,13 @@ class Google_Service_Monitoring_InternalChecker extends Google_Model { - public $checkerId; public $displayName; public $gcpZone; + public $name; public $network; - public $projectId; + public $peerProjectId; + public $state; - public function setCheckerId($checkerId) - { - $this->checkerId = $checkerId; - } - public function getCheckerId() - { - return $this->checkerId; - } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -47,6 +40,14 @@ class Google_Service_Monitoring_InternalChecker extends Google_Model { return $this->gcpZone; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } public function setNetwork($network) { $this->network = $network; @@ -55,12 +56,20 @@ class Google_Service_Monitoring_InternalChecker extends Google_Model { return $this->network; } - public function setProjectId($projectId) + public function setPeerProjectId($peerProjectId) { - $this->projectId = $projectId; + $this->peerProjectId = $peerProjectId; } - public function getProjectId() + public function getPeerProjectId() { - return $this->projectId; + return $this->peerProjectId; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php index 0fa57498..287eb6be 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php @@ -18,10 +18,26 @@ class Google_Service_Monitoring_ListTimeSeriesResponse extends Google_Collection { protected $collection_key = 'timeSeries'; + protected $executionErrorsType = 'Google_Service_Monitoring_Status'; + protected $executionErrorsDataType = 'array'; public $nextPageToken; protected $timeSeriesType = 'Google_Service_Monitoring_TimeSeries'; protected $timeSeriesDataType = 'array'; + /** + * @param Google_Service_Monitoring_Status + */ + public function setExecutionErrors($executionErrors) + { + $this->executionErrors = $executionErrors; + } + /** + * @return Google_Service_Monitoring_Status + */ + public function getExecutionErrors() + { + return $this->executionErrors; + } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php index 01a480c5..b944a1bf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_Monitoring_MetricDescriptor extends Google_Collection public $displayName; protected $labelsType = 'Google_Service_Monitoring_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_Monitoring_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_Monitoring_MetricDescriptor extends Google_Collection { return $this->labels; } + /** + * @param Google_Service_Monitoring_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_Monitoring_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_Monitoring_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptorMetadata.php new file mode 100644 index 00000000..37580a7c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php index 4e04e612..470230c5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php @@ -49,6 +49,10 @@ class Google_Service_Monitoring_Resource_ProjectsGroups extends Google_Service_R * @param string $name The group to delete. The format is * "projects/{project_id_or_number}/groups/{group_id}". * @param array $optParams Optional parameters. + * + * @opt_param bool recursive If this field is true, then the request means to + * delete a group with all its descendants. Otherwise, the request means to + * delete a group only when it has no descendants. The default value is false. * @return Google_Service_Monitoring_MonitoringEmpty */ public function delete($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php index 61b6665e..3883f065 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php @@ -33,21 +33,21 @@ class Google_Service_Monitoring_Resource_ProjectsGroupsMembers extends Google_Se * "projects/{project_id_or_number}/groups/{group_id}". * @param array $optParams Optional parameters. * + * @opt_param string pageToken If this field is not empty then it must contain + * the nextPageToken value returned by a previous call to this method. Using + * this field causes the method to return additional results from the previous + * method call. + * @opt_param string interval.startTime Optional. The beginning of the time + * interval. The default value for the start time is the end time. The start + * time must not be later than the end time. + * @opt_param int pageSize A positive number that is the maximum number of + * results to return. * @opt_param string interval.endTime Required. The end of the time interval. * @opt_param string filter An optional list filter describing the members to be * returned. The filter may reference the type, labels, and metadata of * monitored resources that comprise the group. For example, to return only * resources representing Compute Engine VM instances, use this filter: * resource.type = "gce_instance" - * @opt_param string pageToken If this field is not empty then it must contain - * the nextPageToken value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous - * method call. - * @opt_param int pageSize A positive number that is the maximum number of - * results to return. - * @opt_param string interval.startTime Optional. The beginning of the time - * interval. The default value for the start time is the end time. The start - * time must not be later than the end time. * @return Google_Service_Monitoring_ListGroupMembersResponse */ public function listProjectsGroupsMembers($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php index ed044237..6e0aea53 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php @@ -84,8 +84,6 @@ class Google_Service_Monitoring_Resource_ProjectsMetricDescriptors extends Googl * is "projects/{project_id_or_number}". * @param array $optParams Optional parameters. * - * @opt_param int pageSize A positive number that is the maximum number of - * results to return. * @opt_param string filter If this field is empty, all custom and system- * defined metric descriptors are returned. Otherwise, the filter specifies * which metric descriptors are to be returned. For example, the following @@ -95,6 +93,8 @@ class Google_Service_Monitoring_Resource_ProjectsMetricDescriptors extends Googl * the nextPageToken value returned by a previous call to this method. Using * this field causes the method to return additional results from the previous * method call. + * @opt_param int pageSize A positive number that is the maximum number of + * results to return. * @return Google_Service_Monitoring_ListMetricDescriptorsResponse */ public function listProjectsMetricDescriptors($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php index d990f5b5..71f1b7e7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php @@ -50,8 +50,6 @@ class Google_Service_Monitoring_Resource_ProjectsMonitoredResourceDescriptors ex * is "projects/{project_id_or_number}". * @param array $optParams Optional parameters. * - * @opt_param int pageSize A positive number that is the maximum number of - * results to return. * @opt_param string filter An optional filter describing the descriptors to be * returned. The filter can reference the descriptor's type and labels. For * example, the following filter returns only Google Compute Engine descriptors @@ -61,6 +59,8 @@ class Google_Service_Monitoring_Resource_ProjectsMonitoredResourceDescriptors ex * the nextPageToken value returned by a previous call to this method. Using * this field causes the method to return additional results from the previous * method call. + * @opt_param int pageSize A positive number that is the maximum number of + * results to return. * @return Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse */ public function listProjectsMonitoredResourceDescriptors($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannelDescriptors.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannelDescriptors.php index 6fa80bd9..0b3d8a25 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannelDescriptors.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannelDescriptors.php @@ -54,12 +54,12 @@ class Google_Service_Monitoring_Resource_ProjectsNotificationChannelDescriptors * GetNotificationChannelDescriptor operation, instead. * @param array $optParams Optional parameters. * - * @opt_param string pageToken If non-empty, page_token must contain a value - * returned as the next_page_token in a previous response to request the next - * set of results. * @opt_param int pageSize The maximum number of results to return in a single * response. If not set to a positive number, a reasonable value will be chosen * by the service. + * @opt_param string pageToken If non-empty, page_token must contain a value + * returned as the next_page_token in a previous response to request the next + * set of results. * @return Google_Service_Monitoring_ListNotificationChannelDescriptorsResponse */ public function listProjectsNotificationChannelDescriptors($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannels.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannels.php index e54a6a6f..2368acad 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannels.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsNotificationChannels.php @@ -27,7 +27,7 @@ class Google_Service_Monitoring_Resource_ProjectsNotificationChannels extends Go { /** * Creates a new notification channel, representing a single notification - * endpoint such as an email address, SMS number, or pagerduty service. + * endpoint such as an email address, SMS number, or PagerDuty service. * (notificationChannels.create) * * @param string $name The project on which to execute the request. The format diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php index d3d5a52e..15e87aad 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php @@ -51,6 +51,31 @@ class Google_Service_Monitoring_Resource_ProjectsTimeSeries extends Google_Servi * is "projects/{project_id_or_number}". * @param array $optParams Optional parameters. * + * @opt_param string aggregation.crossSeriesReducer The approach to be used to + * combine time series. Not all reducer functions may be applied to all time + * series, depending on the metric type and the value type of the original time + * series. Reduction may change the metric type of value type of the time + * series.Time series data must be aligned in order to perform cross-time series + * reduction. If crossSeriesReducer is specified, then perSeriesAligner must be + * specified and not equal ALIGN_NONE and alignmentPeriod must be specified; + * otherwise, an error is returned. + * @opt_param string filter A monitoring filter that specifies which time series + * should be returned. The filter must specify a single metric type, and can + * additionally specify metric labels and other information. For example: + * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND + * metric.label.instance_name = "my-instance-name" + * @opt_param string pageToken If this field is not empty then it must contain + * the nextPageToken value returned by a previous call to this method. Using + * this field causes the method to return additional results from the previous + * method call. + * @opt_param string aggregation.perSeriesAligner The approach to be used to + * align individual time series. Not all alignment functions may be applied to + * all time series, depending on the metric type and value type of the original + * time series. Alignment may change the metric type or the value type of the + * time series.Time series data must be aligned in order to perform cross-time + * series reduction. If crossSeriesReducer is specified, then perSeriesAligner + * must be specified and not equal ALIGN_NONE and alignmentPeriod must be + * specified; otherwise, an error is returned. * @opt_param string interval.startTime Optional. The beginning of the time * interval. The default value for the start time is the end time. The start * time must not be later than the end time. @@ -77,36 +102,12 @@ class Google_Service_Monitoring_Resource_ProjectsTimeSeries extends Google_Servi * specified and does not equal ALIGN_NONE, then this field must be defined; * otherwise an error is returned. * @opt_param int pageSize A positive number that is the maximum number of - * results to return. When view field sets to FULL, it limits the number of - * Points server will return; if view field is HEADERS, it limits the number of - * TimeSeries server will return. + * results to return. If page_size is empty or more than 100,000 results, the + * effective page_size is 100,000 results. If view is set to FULL, this is the + * maximum number of Points returned. If view is set to HEADERS, this is the + * maximum number of TimeSeries returned. * @opt_param string orderBy Unsupported: must be left blank. The points in each * time series are returned in reverse time order. - * @opt_param string aggregation.crossSeriesReducer The approach to be used to - * combine time series. Not all reducer functions may be applied to all time - * series, depending on the metric type and the value type of the original time - * series. Reduction may change the metric type of value type of the time - * series.Time series data must be aligned in order to perform cross-time series - * reduction. If crossSeriesReducer is specified, then perSeriesAligner must be - * specified and not equal ALIGN_NONE and alignmentPeriod must be specified; - * otherwise, an error is returned. - * @opt_param string filter A monitoring filter that specifies which time series - * should be returned. The filter must specify a single metric type, and can - * additionally specify metric labels and other information. For example: - * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND - * metric.label.instance_name = "my-instance-name" - * @opt_param string aggregation.perSeriesAligner The approach to be used to - * align individual time series. Not all alignment functions may be applied to - * all time series, depending on the metric type and value type of the original - * time series. Alignment may change the metric type or the value type of the - * time series.Time series data must be aligned in order to perform cross-time - * series reduction. If crossSeriesReducer is specified, then perSeriesAligner - * must be specified and not equal ALIGN_NONE and alignmentPeriod must be - * specified; otherwise, an error is returned. - * @opt_param string pageToken If this field is not empty then it must contain - * the nextPageToken value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous - * method call. * @return Google_Service_Monitoring_ListTimeSeriesResponse */ public function listProjectsTimeSeries($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Monitoring/SpanContext.php b/vendor/google/apiclient-services/src/Google/Service/Monitoring/SpanContext.php new file mode 100644 index 00000000..d2a7e0d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Monitoring/SpanContext.php @@ -0,0 +1,30 @@ +spanName = $spanName; + } + public function getSpanName() + { + return $this->spanName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Oauth2.php b/vendor/google/apiclient-services/src/Google/Service/Oauth2.php index 5ca10ab0..0be0e518 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Oauth2.php +++ b/vendor/google/apiclient-services/src/Google/Service/Oauth2.php @@ -30,7 +30,7 @@ */ class Google_Service_Oauth2 extends Google_Service { - /** Know the list of people in your circles, your age range, and language. */ + /** View your basic profile info, including your age range and language. */ const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ @@ -56,6 +56,7 @@ class Google_Service_Oauth2 extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch/oauth2/v2'; $this->version = 'v2'; $this->serviceName = 'oauth2'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline.php index 516aafd0..1bbde35f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Pagespeedonline (v4). + * Service definition for Pagespeedonline (v5). * *
* Analyzes the performance of a web page and provides tailored suggestions to @@ -24,7 +24,7 @@ * *
* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -44,8 +44,9 @@ class Google_Service_Pagespeedonline extends Google_Service { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'pagespeedonline/v4/'; - $this->version = 'v4'; + $this->servicePath = 'pagespeedonline/v5/'; + $this->batchPath = 'batch/pagespeedonline/v5'; + $this->version = 'v5'; $this->serviceName = 'pagespeedonline'; $this->pagespeedapi = new Google_Service_Pagespeedonline_Resource_Pagespeedapi( @@ -63,26 +64,14 @@ class Google_Service_Pagespeedonline extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter_third_party_resources' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'rule' => array( + 'category' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'screenshot' => array( + 'locale' => array( 'location' => 'query', - 'type' => 'boolean', - ), - 'snapshots' => array( - 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'strategy' => array( 'location' => 'query', diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseAuditResultV5.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseAuditResultV5.php new file mode 100644 index 00000000..912ca0c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseAuditResultV5.php @@ -0,0 +1,111 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setDisplayValue($displayValue) + { + $this->displayValue = $displayValue; + } + public function getDisplayValue() + { + return $this->displayValue; + } + public function setErrorMessage($errorMessage) + { + $this->errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + public function setExplanation($explanation) + { + $this->explanation = $explanation; + } + public function getExplanation() + { + return $this->explanation; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setScoreDisplayMode($scoreDisplayMode) + { + $this->scoreDisplayMode = $scoreDisplayMode; + } + public function getScoreDisplayMode() + { + return $this->scoreDisplayMode; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5.php new file mode 100644 index 00000000..501df388 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5.php @@ -0,0 +1,83 @@ +auditRefs = $auditRefs; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5AuditRefs + */ + public function getAuditRefs() + { + return $this->auditRefs; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setManualDescription($manualDescription) + { + $this->manualDescription = $manualDescription; + } + public function getManualDescription() + { + return $this->manualDescription; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5AuditRefs.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5AuditRefs.php new file mode 100644 index 00000000..1435bc4c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseCategoryV5AuditRefs.php @@ -0,0 +1,48 @@ +group = $group; + } + public function getGroup() + { + return $this->group; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5.php new file mode 100644 index 00000000..27937ffd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5.php @@ -0,0 +1,204 @@ +audits = $audits; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseAuditResultV5 + */ + public function getAudits() + { + return $this->audits; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5Categories + */ + public function setCategories(Google_Service_Pagespeedonline_LighthouseResultV5Categories $categories) + { + $this->categories = $categories; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5Categories + */ + public function getCategories() + { + return $this->categories; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5CategoryGroupsElement + */ + public function setCategoryGroups($categoryGroups) + { + $this->categoryGroups = $categoryGroups; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5CategoryGroupsElement + */ + public function getCategoryGroups() + { + return $this->categoryGroups; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5ConfigSettings + */ + public function setConfigSettings(Google_Service_Pagespeedonline_LighthouseResultV5ConfigSettings $configSettings) + { + $this->configSettings = $configSettings; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5ConfigSettings + */ + public function getConfigSettings() + { + return $this->configSettings; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5Environment + */ + public function setEnvironment(Google_Service_Pagespeedonline_LighthouseResultV5Environment $environment) + { + $this->environment = $environment; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5Environment + */ + public function getEnvironment() + { + return $this->environment; + } + public function setFetchTime($fetchTime) + { + $this->fetchTime = $fetchTime; + } + public function getFetchTime() + { + return $this->fetchTime; + } + public function setFinalUrl($finalUrl) + { + $this->finalUrl = $finalUrl; + } + public function getFinalUrl() + { + return $this->finalUrl; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5I18n + */ + public function setI18n(Google_Service_Pagespeedonline_LighthouseResultV5I18n $i18n) + { + $this->i18n = $i18n; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5I18n + */ + public function getI18n() + { + return $this->i18n; + } + public function setLighthouseVersion($lighthouseVersion) + { + $this->lighthouseVersion = $lighthouseVersion; + } + public function getLighthouseVersion() + { + return $this->lighthouseVersion; + } + public function setRequestedUrl($requestedUrl) + { + $this->requestedUrl = $requestedUrl; + } + public function getRequestedUrl() + { + return $this->requestedUrl; + } + public function setRunWarnings($runWarnings) + { + $this->runWarnings = $runWarnings; + } + public function getRunWarnings() + { + return $this->runWarnings; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5RuntimeError + */ + public function setRuntimeError(Google_Service_Pagespeedonline_LighthouseResultV5RuntimeError $runtimeError) + { + $this->runtimeError = $runtimeError; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5RuntimeError + */ + public function getRuntimeError() + { + return $this->runtimeError; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5Timing + */ + public function setTiming(Google_Service_Pagespeedonline_LighthouseResultV5Timing $timing) + { + $this->timing = $timing; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5Timing + */ + public function getTiming() + { + return $this->timing; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Categories.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Categories.php new file mode 100644 index 00000000..f22d0088 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Categories.php @@ -0,0 +1,104 @@ + "best-practices", + ); + protected $accessibilityType = 'Google_Service_Pagespeedonline_LighthouseCategoryV5'; + protected $accessibilityDataType = ''; + protected $bestPracticesType = 'Google_Service_Pagespeedonline_LighthouseCategoryV5'; + protected $bestPracticesDataType = ''; + protected $performanceType = 'Google_Service_Pagespeedonline_LighthouseCategoryV5'; + protected $performanceDataType = ''; + protected $pwaType = 'Google_Service_Pagespeedonline_LighthouseCategoryV5'; + protected $pwaDataType = ''; + protected $seoType = 'Google_Service_Pagespeedonline_LighthouseCategoryV5'; + protected $seoDataType = ''; + + /** + * @param Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function setAccessibility(Google_Service_Pagespeedonline_LighthouseCategoryV5 $accessibility) + { + $this->accessibility = $accessibility; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function getAccessibility() + { + return $this->accessibility; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function setBestPractices(Google_Service_Pagespeedonline_LighthouseCategoryV5 $bestPractices) + { + $this->bestPractices = $bestPractices; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function getBestPractices() + { + return $this->bestPractices; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function setPerformance(Google_Service_Pagespeedonline_LighthouseCategoryV5 $performance) + { + $this->performance = $performance; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function getPerformance() + { + return $this->performance; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function setPwa(Google_Service_Pagespeedonline_LighthouseCategoryV5 $pwa) + { + $this->pwa = $pwa; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function getPwa() + { + return $this->pwa; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function setSeo(Google_Service_Pagespeedonline_LighthouseCategoryV5 $seo) + { + $this->seo = $seo; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseCategoryV5 + */ + public function getSeo() + { + return $this->seo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5CategoryGroupsElement.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5CategoryGroupsElement.php new file mode 100644 index 00000000..7cad20f8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5CategoryGroupsElement.php @@ -0,0 +1,39 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResults.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5ConfigSettings.php similarity index 53% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResults.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5ConfigSettings.php index e45ce4bd..173e66f6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5ConfigSettings.php @@ -15,12 +15,20 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResults extends Google_Model +class Google_Service_Pagespeedonline_LighthouseResultV5ConfigSettings extends Google_Model { + public $emulatedFormFactor; public $locale; - protected $ruleResultsType = 'Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement'; - protected $ruleResultsDataType = 'map'; + public $onlyCategories; + public function setEmulatedFormFactor($emulatedFormFactor) + { + $this->emulatedFormFactor = $emulatedFormFactor; + } + public function getEmulatedFormFactor() + { + return $this->emulatedFormFactor; + } public function setLocale($locale) { $this->locale = $locale; @@ -29,18 +37,12 @@ class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedRes { return $this->locale; } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement - */ - public function setRuleResults($ruleResults) + public function setOnlyCategories($onlyCategories) { - $this->ruleResults = $ruleResults; + $this->onlyCategories = $onlyCategories; } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement - */ - public function getRuleResults() + public function getOnlyCategories() { - return $this->ruleResults; + return $this->onlyCategories; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Environment.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Environment.php new file mode 100644 index 00000000..4745251f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Environment.php @@ -0,0 +1,48 @@ +benchmarkIndex = $benchmarkIndex; + } + public function getBenchmarkIndex() + { + return $this->benchmarkIndex; + } + public function setHostUserAgent($hostUserAgent) + { + $this->hostUserAgent = $hostUserAgent; + } + public function getHostUserAgent() + { + return $this->hostUserAgent; + } + public function setNetworkUserAgent($networkUserAgent) + { + $this->networkUserAgent = $networkUserAgent; + } + public function getNetworkUserAgent() + { + return $this->networkUserAgent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18n.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18n.php new file mode 100644 index 00000000..aa501a2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18n.php @@ -0,0 +1,37 @@ +rendererFormattedStrings = $rendererFormattedStrings; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5I18nRendererFormattedStrings + */ + public function getRendererFormattedStrings() + { + return $this->rendererFormattedStrings; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18nRendererFormattedStrings.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18nRendererFormattedStrings.php new file mode 100644 index 00000000..1f834001 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5I18nRendererFormattedStrings.php @@ -0,0 +1,165 @@ +auditGroupExpandTooltip = $auditGroupExpandTooltip; + } + public function getAuditGroupExpandTooltip() + { + return $this->auditGroupExpandTooltip; + } + public function setCrcInitialNavigation($crcInitialNavigation) + { + $this->crcInitialNavigation = $crcInitialNavigation; + } + public function getCrcInitialNavigation() + { + return $this->crcInitialNavigation; + } + public function setCrcLongestDurationLabel($crcLongestDurationLabel) + { + $this->crcLongestDurationLabel = $crcLongestDurationLabel; + } + public function getCrcLongestDurationLabel() + { + return $this->crcLongestDurationLabel; + } + public function setErrorLabel($errorLabel) + { + $this->errorLabel = $errorLabel; + } + public function getErrorLabel() + { + return $this->errorLabel; + } + public function setErrorMissingAuditInfo($errorMissingAuditInfo) + { + $this->errorMissingAuditInfo = $errorMissingAuditInfo; + } + public function getErrorMissingAuditInfo() + { + return $this->errorMissingAuditInfo; + } + public function setLabDataTitle($labDataTitle) + { + $this->labDataTitle = $labDataTitle; + } + public function getLabDataTitle() + { + return $this->labDataTitle; + } + public function setLsPerformanceCategoryDescription($lsPerformanceCategoryDescription) + { + $this->lsPerformanceCategoryDescription = $lsPerformanceCategoryDescription; + } + public function getLsPerformanceCategoryDescription() + { + return $this->lsPerformanceCategoryDescription; + } + public function setManualAuditsGroupTitle($manualAuditsGroupTitle) + { + $this->manualAuditsGroupTitle = $manualAuditsGroupTitle; + } + public function getManualAuditsGroupTitle() + { + return $this->manualAuditsGroupTitle; + } + public function setNotApplicableAuditsGroupTitle($notApplicableAuditsGroupTitle) + { + $this->notApplicableAuditsGroupTitle = $notApplicableAuditsGroupTitle; + } + public function getNotApplicableAuditsGroupTitle() + { + return $this->notApplicableAuditsGroupTitle; + } + public function setOpportunityResourceColumnLabel($opportunityResourceColumnLabel) + { + $this->opportunityResourceColumnLabel = $opportunityResourceColumnLabel; + } + public function getOpportunityResourceColumnLabel() + { + return $this->opportunityResourceColumnLabel; + } + public function setOpportunitySavingsColumnLabel($opportunitySavingsColumnLabel) + { + $this->opportunitySavingsColumnLabel = $opportunitySavingsColumnLabel; + } + public function getOpportunitySavingsColumnLabel() + { + return $this->opportunitySavingsColumnLabel; + } + public function setPassedAuditsGroupTitle($passedAuditsGroupTitle) + { + $this->passedAuditsGroupTitle = $passedAuditsGroupTitle; + } + public function getPassedAuditsGroupTitle() + { + return $this->passedAuditsGroupTitle; + } + public function setScorescaleLabel($scorescaleLabel) + { + $this->scorescaleLabel = $scorescaleLabel; + } + public function getScorescaleLabel() + { + return $this->scorescaleLabel; + } + public function setToplevelWarningsMessage($toplevelWarningsMessage) + { + $this->toplevelWarningsMessage = $toplevelWarningsMessage; + } + public function getToplevelWarningsMessage() + { + return $this->toplevelWarningsMessage; + } + public function setVarianceDisclaimer($varianceDisclaimer) + { + $this->varianceDisclaimer = $varianceDisclaimer; + } + public function getVarianceDisclaimer() + { + return $this->varianceDisclaimer; + } + public function setWarningHeader($warningHeader) + { + $this->warningHeader = $warningHeader; + } + public function getWarningHeader() + { + return $this->warningHeader; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5RuntimeError.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5RuntimeError.php new file mode 100644 index 00000000..28bf0785 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5RuntimeError.php @@ -0,0 +1,39 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/CustomAuthRequirements.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Timing.php similarity index 74% rename from vendor/google/apiclient-services/src/Google/Service/ServiceManagement/CustomAuthRequirements.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Timing.php index 69d4b0bd..34c96439 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/CustomAuthRequirements.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/LighthouseResultV5Timing.php @@ -15,16 +15,16 @@ * the License. */ -class Google_Service_ServiceManagement_CustomAuthRequirements extends Google_Model +class Google_Service_Pagespeedonline_LighthouseResultV5Timing extends Google_Model { - public $provider; + public $total; - public function setProvider($provider) + public function setTotal($total) { - $this->provider = $provider; + $this->total = $total; } - public function getProvider() + public function getTotal() { - return $this->provider; + return $this->total; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4.php deleted file mode 100644 index a842ff57..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4.php +++ /dev/null @@ -1,47 +0,0 @@ -args = $args; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4Args - */ - public function getArgs() - { - return $this->args; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4Args.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4Args.php deleted file mode 100644 index 407cd52e..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV4Args.php +++ /dev/null @@ -1,84 +0,0 @@ - "secondary_rects", - ); - public $key; - protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsRects'; - protected $rectsDataType = 'array'; - protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRects'; - protected $secondaryRectsDataType = 'array'; - public $type; - public $value; - - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsRects - */ - public function setRects($rects) - { - $this->rects = $rects; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsRects - */ - public function getRects() - { - return $this->rects; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRects - */ - public function setSecondaryRects($secondaryRects) - { - $this->secondaryRects = $secondaryRects; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4ArgsSecondaryRects - */ - public function getSecondaryRects() - { - return $this->secondaryRects; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV4.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV4.php deleted file mode 100644 index 5b796dd2..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV4.php +++ /dev/null @@ -1,86 +0,0 @@ - "mime_type", - "pageRect" => "page_rect", - ); - public $data; - public $height; - public $key; - public $mimeType; - protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV4PageRect'; - protected $pageRectDataType = ''; - public $width; - - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiImageV4PageRect - */ - public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV4PageRect $pageRect) - { - $this->pageRect = $pageRect; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiImageV4PageRect - */ - public function getPageRect() - { - return $this->pageRect; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperience.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5.php similarity index 80% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperience.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5.php index a0629674..4b81201c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperience.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperience extends Google_Model +class Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 extends Google_Model { protected $internal_gapi_mappings = array( "initialUrl" => "initial_url", @@ -23,7 +23,7 @@ class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExper ); public $id; public $initialUrl; - protected $metricsType = 'Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement'; + protected $metricsType = 'Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElement'; protected $metricsDataType = 'map'; public $overallCategory; @@ -44,14 +44,14 @@ class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExper return $this->initialUrl; } /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement + * @param Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElement */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement + * @return Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElement */ public function getMetrics() { diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElement.php similarity index 66% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElement.php index 2cc35427..578fc055 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElement.php @@ -15,13 +15,13 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElement extends Google_Collection +class Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElement extends Google_Collection { protected $collection_key = 'distributions'; public $category; - protected $distributionsType = 'Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions'; + protected $distributionsType = 'Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElementDistributions'; protected $distributionsDataType = 'array'; - public $median; + public $percentile; public function setCategory($category) { @@ -32,25 +32,25 @@ class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExper return $this->category; } /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions + * @param Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElementDistributions */ public function setDistributions($distributions) { $this->distributions = $distributions; } /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions + * @return Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElementDistributions */ public function getDistributions() { return $this->distributions; } - public function setMedian($median) + public function setPercentile($percentile) { - $this->median = $median; + $this->percentile = $percentile; } - public function getMedian() + public function getPercentile() { - return $this->median; + return $this->percentile; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElementDistributions.php similarity index 88% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElementDistributions.php index 53cf56fd..d94bf06a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiLoadingExperienceV5MetricsElementDistributions.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperienceMetricsElementDistributions extends Google_Model +class Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5MetricsElementDistributions extends Google_Model { public $max; public $min; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4.php deleted file mode 100644 index 6539e4a8..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4.php +++ /dev/null @@ -1,188 +0,0 @@ -captchaResult = $captchaResult; - } - public function getCaptchaResult() - { - return $this->captchaResult; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResults - */ - public function setFormattedResults(Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResults $formattedResults) - { - $this->formattedResults = $formattedResults; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResults - */ - public function getFormattedResults() - { - return $this->formattedResults; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInvalidRules($invalidRules) - { - $this->invalidRules = $invalidRules; - } - public function getInvalidRules() - { - return $this->invalidRules; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperience - */ - public function setLoadingExperience(Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperience $loadingExperience) - { - $this->loadingExperience = $loadingExperience; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4LoadingExperience - */ - public function getLoadingExperience() - { - return $this->loadingExperience; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4PageStats - */ - public function setPageStats(Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4PageStats $pageStats) - { - $this->pageStats = $pageStats; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4PageStats - */ - public function getPageStats() - { - return $this->pageStats; - } - public function setResponseCode($responseCode) - { - $this->responseCode = $responseCode; - } - public function getResponseCode() - { - return $this->responseCode; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4RuleGroupsElement - */ - public function setRuleGroups($ruleGroups) - { - $this->ruleGroups = $ruleGroups; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4RuleGroupsElement - */ - public function getRuleGroups() - { - return $this->ruleGroups; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiImageV4 - */ - public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV4 $screenshot) - { - $this->screenshot = $screenshot; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiImageV4 - */ - public function getScreenshot() - { - return $this->screenshot; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiImageV4 - */ - public function setSnapshots($snapshots) - { - $this->snapshots = $snapshots; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiImageV4 - */ - public function getSnapshots() - { - return $this->snapshots; - } - public function setTitle($title) - { - $this->title = $title; - } - public function getTitle() - { - return $this->title; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4Version - */ - public function setVersion(Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4Version $version) - { - $this->version = $version; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4Version - */ - public function getVersion() - { - return $this->version; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement.php deleted file mode 100644 index 7149c51b..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElement.php +++ /dev/null @@ -1,90 +0,0 @@ -beta = $beta; - } - public function getBeta() - { - return $this->beta; - } - public function setGroups($groups) - { - $this->groups = $groups; - } - public function getGroups() - { - return $this->groups; - } - public function setLocalizedRuleName($localizedRuleName) - { - $this->localizedRuleName = $localizedRuleName; - } - public function getLocalizedRuleName() - { - return $this->localizedRuleName; - } - public function setRuleImpact($ruleImpact) - { - $this->ruleImpact = $ruleImpact; - } - public function getRuleImpact() - { - return $this->ruleImpact; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 - */ - public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 $summary) - { - $this->summary = $summary; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 - */ - public function getSummary() - { - return $this->summary; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocks - */ - public function setUrlBlocks($urlBlocks) - { - $this->urlBlocks = $urlBlocks; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocks - */ - public function getUrlBlocks() - { - return $this->urlBlocks; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocks.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocks.php deleted file mode 100644 index 2bbba098..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocks.php +++ /dev/null @@ -1,54 +0,0 @@ -header = $header; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiFormatStringV4 - */ - public function getHeader() - { - return $this->header; - } - /** - * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls - */ - public function setUrls($urls) - { - $this->urls = $urls; - } - /** - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4FormattedResultsRuleResultsElementUrlBlocksUrls - */ - public function getUrls() - { - return $this->urls; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4PageStats.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4PageStats.php deleted file mode 100644 index 74c22823..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4PageStats.php +++ /dev/null @@ -1,211 +0,0 @@ -cms = $cms; - } - public function getCms() - { - return $this->cms; - } - public function setCssResponseBytes($cssResponseBytes) - { - $this->cssResponseBytes = $cssResponseBytes; - } - public function getCssResponseBytes() - { - return $this->cssResponseBytes; - } - public function setFlashResponseBytes($flashResponseBytes) - { - $this->flashResponseBytes = $flashResponseBytes; - } - public function getFlashResponseBytes() - { - return $this->flashResponseBytes; - } - public function setHtmlResponseBytes($htmlResponseBytes) - { - $this->htmlResponseBytes = $htmlResponseBytes; - } - public function getHtmlResponseBytes() - { - return $this->htmlResponseBytes; - } - public function setImageResponseBytes($imageResponseBytes) - { - $this->imageResponseBytes = $imageResponseBytes; - } - public function getImageResponseBytes() - { - return $this->imageResponseBytes; - } - public function setJavascriptResponseBytes($javascriptResponseBytes) - { - $this->javascriptResponseBytes = $javascriptResponseBytes; - } - public function getJavascriptResponseBytes() - { - return $this->javascriptResponseBytes; - } - public function setNumRenderBlockingRoundTrips($numRenderBlockingRoundTrips) - { - $this->numRenderBlockingRoundTrips = $numRenderBlockingRoundTrips; - } - public function getNumRenderBlockingRoundTrips() - { - return $this->numRenderBlockingRoundTrips; - } - public function setNumTotalRoundTrips($numTotalRoundTrips) - { - $this->numTotalRoundTrips = $numTotalRoundTrips; - } - public function getNumTotalRoundTrips() - { - return $this->numTotalRoundTrips; - } - public function setNumberCssResources($numberCssResources) - { - $this->numberCssResources = $numberCssResources; - } - public function getNumberCssResources() - { - return $this->numberCssResources; - } - public function setNumberHosts($numberHosts) - { - $this->numberHosts = $numberHosts; - } - public function getNumberHosts() - { - return $this->numberHosts; - } - public function setNumberJsResources($numberJsResources) - { - $this->numberJsResources = $numberJsResources; - } - public function getNumberJsResources() - { - return $this->numberJsResources; - } - public function setNumberResources($numberResources) - { - $this->numberResources = $numberResources; - } - public function getNumberResources() - { - return $this->numberResources; - } - public function setNumberRobotedResources($numberRobotedResources) - { - $this->numberRobotedResources = $numberRobotedResources; - } - public function getNumberRobotedResources() - { - return $this->numberRobotedResources; - } - public function setNumberStaticResources($numberStaticResources) - { - $this->numberStaticResources = $numberStaticResources; - } - public function getNumberStaticResources() - { - return $this->numberStaticResources; - } - public function setNumberTransientFetchFailureResources($numberTransientFetchFailureResources) - { - $this->numberTransientFetchFailureResources = $numberTransientFetchFailureResources; - } - public function getNumberTransientFetchFailureResources() - { - return $this->numberTransientFetchFailureResources; - } - public function setOtherResponseBytes($otherResponseBytes) - { - $this->otherResponseBytes = $otherResponseBytes; - } - public function getOtherResponseBytes() - { - return $this->otherResponseBytes; - } - public function setOverTheWireResponseBytes($overTheWireResponseBytes) - { - $this->overTheWireResponseBytes = $overTheWireResponseBytes; - } - public function getOverTheWireResponseBytes() - { - return $this->overTheWireResponseBytes; - } - public function setRobotedUrls($robotedUrls) - { - $this->robotedUrls = $robotedUrls; - } - public function getRobotedUrls() - { - return $this->robotedUrls; - } - public function setTextResponseBytes($textResponseBytes) - { - $this->textResponseBytes = $textResponseBytes; - } - public function getTextResponseBytes() - { - return $this->textResponseBytes; - } - public function setTotalRequestBytes($totalRequestBytes) - { - $this->totalRequestBytes = $totalRequestBytes; - } - public function getTotalRequestBytes() - { - return $this->totalRequestBytes; - } - public function setTransientFetchFailureUrls($transientFetchFailureUrls) - { - $this->transientFetchFailureUrls = $transientFetchFailureUrls; - } - public function getTransientFetchFailureUrls() - { - return $this->transientFetchFailureUrls; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5.php new file mode 100644 index 00000000..cd91cec8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5.php @@ -0,0 +1,121 @@ +analysisUTCTimestamp = $analysisUTCTimestamp; + } + public function getAnalysisUTCTimestamp() + { + return $this->analysisUTCTimestamp; + } + public function setCaptchaResult($captchaResult) + { + $this->captchaResult = $captchaResult; + } + public function getCaptchaResult() + { + return $this->captchaResult; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + /** + * @param Google_Service_Pagespeedonline_LighthouseResultV5 + */ + public function setLighthouseResult(Google_Service_Pagespeedonline_LighthouseResultV5 $lighthouseResult) + { + $this->lighthouseResult = $lighthouseResult; + } + /** + * @return Google_Service_Pagespeedonline_LighthouseResultV5 + */ + public function getLighthouseResult() + { + return $this->lighthouseResult; + } + /** + * @param Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 + */ + public function setLoadingExperience(Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 $loadingExperience) + { + $this->loadingExperience = $loadingExperience; + } + /** + * @return Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 + */ + public function getLoadingExperience() + { + return $this->loadingExperience; + } + /** + * @param Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 + */ + public function setOriginLoadingExperience(Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 $originLoadingExperience) + { + $this->originLoadingExperience = $originLoadingExperience; + } + /** + * @return Google_Service_Pagespeedonline_PagespeedApiLoadingExperienceV5 + */ + public function getOriginLoadingExperience() + { + return $this->originLoadingExperience; + } + /** + * @param Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5Version + */ + public function setVersion(Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5Version $version) + { + $this->version = $version; + } + /** + * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5Version + */ + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4Version.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5Version.php similarity index 96% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4Version.php rename to vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5Version.php index b4b8dfed..99dbad6a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4Version.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV5Version.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4Version extends Google_Model +class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5Version extends Google_Model { public $major; public $minor; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php index 99b3f8b3..60559ae9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php @@ -33,25 +33,19 @@ class Google_Service_Pagespeedonline_Resource_Pagespeedapi extends Google_Servic * @param string $url The URL to fetch and analyze * @param array $optParams Optional parameters. * - * @opt_param bool filter_third_party_resources Indicates if third party - * resources should be filtered out before PageSpeed analysis. + * @opt_param string category A Lighthouse category to run; if none are given, + * only Performance category will be run * @opt_param string locale The locale used to localize formatted results - * @opt_param string rule A PageSpeed rule to run; if none are given, all rules - * are run - * @opt_param bool screenshot Indicates if binary data containing a screenshot - * should be included - * @opt_param bool snapshots Indicates if binary data containing snapshot images - * should be included * @opt_param string strategy The analysis strategy (desktop or mobile) to use, * and desktop is the default * @opt_param string utm_campaign Campaign name for analytics. * @opt_param string utm_source Campaign source for analytics. - * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4 + * @return Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5 */ public function runpagespeed($url, $optParams = array()) { $params = array('url' => $url); $params = array_merge($params, $optParams); - return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4"); + return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV5"); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners.php b/vendor/google/apiclient-services/src/Google/Service/Partners.php index a8cfa90a..486542f6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners.php @@ -55,6 +55,7 @@ class Google_Service_Partners extends Google_Service parent::__construct($client); $this->rootUrl = 'https://partners.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'partners'; @@ -147,16 +148,12 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'currencyCode' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.experimentIds' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), - 'requestMetadata.trafficSource.trafficSubId' => array( + 'currencyCode' => array( 'location' => 'query', 'type' => 'string', ), @@ -164,7 +161,7 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.partnersSessionId' => array( + 'requestMetadata.trafficSource.trafficSubId' => array( 'location' => 'query', 'type' => 'string', ), @@ -172,6 +169,10 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'view' => array( 'location' => 'query', 'type' => 'string', @@ -189,6 +190,53 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/companies', 'httpMethod' => 'GET', 'parameters' => array( + 'services' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxMonthlyBudget.units' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minMonthlyBudget.nanos' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companyName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'industries' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'websiteUrl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'gpsMotivations' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'languageCodes' => array( 'location' => 'query', 'type' => 'string', @@ -220,11 +268,11 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'minMonthlyBudget.currencyCode' => array( + 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.userOverrides.userId' => array( + 'minMonthlyBudget.currencyCode' => array( 'location' => 'query', 'type' => 'string', ), @@ -248,53 +296,6 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'services' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxMonthlyBudget.units' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'minMonthlyBudget.nanos' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'companyName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'industries' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'websiteUrl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'gpsMotivations' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), ), ), ) @@ -330,22 +331,6 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/leads', 'httpMethod' => 'GET', 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.userOverrides.ipAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.experimentIds' => array( 'location' => 'query', 'type' => 'string', @@ -371,6 +356,22 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.ipAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -430,20 +431,7 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/offers/history', 'httpMethod' => 'GET', 'parameters' => array( - 'entireCompany' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSubId' => array( + 'requestMetadata.partnersSessionId' => array( 'location' => 'query', 'type' => 'string', ), @@ -451,10 +439,6 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -475,6 +459,23 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'entireCompany' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -504,6 +505,14 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/userStates', 'httpMethod' => 'GET', 'parameters' => array( + 'requestMetadata.locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.userOverrides.ipAddress' => array( + 'location' => 'query', + 'type' => 'string', + ), 'requestMetadata.experimentIds' => array( 'location' => 'query', 'type' => 'string', @@ -525,14 +534,6 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.locale' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.userOverrides.ipAddress' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -553,11 +554,11 @@ class Google_Service_Partners extends Google_Service 'type' => 'string', 'required' => true, ), - 'requestMetadata.userOverrides.userId' => array( + 'requestMetadata.partnersSessionId' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.partnersSessionId' => array( + 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', ), @@ -592,18 +593,6 @@ class Google_Service_Partners extends Google_Service 'type' => 'string', 'required' => true, ), - 'requestMetadata.userOverrides.userId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.partnersSessionId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', @@ -621,6 +610,18 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'requestMetadata.userOverrides.userId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.partnersSessionId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'get' => array( 'path' => 'v2/users/{userId}', @@ -631,11 +632,11 @@ class Google_Service_Partners extends Google_Service 'type' => 'string', 'required' => true, ), - 'requestMetadata.partnersSessionId' => array( + 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.userOverrides.userId' => array( + 'requestMetadata.partnersSessionId' => array( 'location' => 'query', 'type' => 'string', ), @@ -669,10 +670,6 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/users/profile', 'httpMethod' => 'PATCH', 'parameters' => array( - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', @@ -698,6 +695,10 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -713,10 +714,6 @@ class Google_Service_Partners extends Google_Service 'path' => 'v2/partnersstatus', 'httpMethod' => 'GET', 'parameters' => array( - 'requestMetadata.trafficSource.trafficSourceId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMetadata.locale' => array( 'location' => 'query', 'type' => 'string', @@ -742,11 +739,24 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'requestMetadata.trafficSource.trafficSourceId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'updateCompanies' => array( 'path' => 'v2/companies', 'httpMethod' => 'PATCH', 'parameters' => array( + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'requestMetadata.partnersSessionId' => array( 'location' => 'query', 'type' => 'string', @@ -771,20 +781,20 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'updateLeads' => array( 'path' => 'v2/leads', 'httpMethod' => 'PATCH', 'parameters' => array( + 'requestMetadata.experimentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'requestMetadata.trafficSource.trafficSubId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'requestMetadata.userOverrides.userId' => array( 'location' => 'query', 'type' => 'string', @@ -809,15 +819,6 @@ class Google_Service_Partners extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'requestMetadata.experimentIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'requestMetadata.trafficSource.trafficSubId' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Company.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Company.php index 3ad2289a..764448ff 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Company.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Company.php @@ -20,6 +20,7 @@ class Google_Service_Partners_Company extends Google_Collection protected $collection_key = 'specializationStatus'; public $additionalWebsites; public $autoApprovalEmailDomains; + public $badgeAuthorityInAwn; public $badgeTier; protected $certificationStatusesType = 'Google_Service_Partners_CertificationStatus'; protected $certificationStatusesDataType = 'array'; @@ -65,6 +66,14 @@ class Google_Service_Partners_Company extends Google_Collection { return $this->autoApprovalEmailDomains; } + public function setBadgeAuthorityInAwn($badgeAuthorityInAwn) + { + $this->badgeAuthorityInAwn = $badgeAuthorityInAwn; + } + public function getBadgeAuthorityInAwn() + { + return $this->badgeAuthorityInAwn; + } public function setBadgeTier($badgeTier) { $this->badgeTier = $badgeTier; diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php index ddbdf678..d33a971c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php @@ -36,22 +36,22 @@ class Google_Service_Partners_Resource_Companies extends Google_Service_Resource * created by a team which redirected the traffic to us. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use * instead of the user's geo-located IP address. + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. * @opt_param string currencyCode If the company's budget is in a different * currency code than this one, then the converted budget is converted to this * currency code. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. * @opt_param string orderBy How to order addresses within the returned company. * Currently, only `address` and `address desc` is supported which will sorted * by closest to farthest in distance from given address and farthest to closest * distance from given address respectively. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to * impersonate instead of the user's ID. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. * @opt_param string view The view of `Company` resource to be returned. This * must not be `COMPANY_VIEW_UNSPECIFIED`. * @opt_param string requestMetadata.locale Locale to use for the current @@ -72,6 +72,35 @@ class Google_Service_Partners_Resource_Companies extends Google_Service_Resource * * @param array $optParams Optional parameters. * + * @opt_param string services List of services that the returned agencies should + * provide. If this is not empty, any returned agency must have at least one of + * these services, or one of the specializations in the "specializations" field. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string maxMonthlyBudget.units The whole units of the amount. For + * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the + * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If + * `units` is positive, `nanos` must be positive or zero. If `units` is zero, + * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` + * must be negative or zero. For example $-1.75 is represented as `units`=-1 and + * `nanos`=-750,000,000. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string pageToken A token identifying a page of results that the + * server returns. Typically, this is the value of + * `ListCompaniesResponse.next_page_token` returned from the previous call to + * ListCompanies. + * @opt_param string companyName Company name to search for. + * @opt_param string industries List of industries the company can help with. + * @opt_param string websiteUrl Website URL that will help to find a better + * matched company. . + * @opt_param string gpsMotivations List of reasons for using Google Partner + * Search to get companies. * @opt_param string languageCodes List of language codes that company can * support. Only primary language subtags are accepted as defined by BCP 47 * (IETF BCP 47, "Tags for Identifying Languages"). @@ -92,10 +121,10 @@ class Google_Service_Partners_Resource_Companies extends Google_Service_Resource * "services" field. * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code * defined in ISO 4217. - * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code - * defined in ISO 4217. * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to * impersonate instead of the user's ID. + * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code + * defined in ISO 4217. * @opt_param string view The view of the `Company` resource to be returned. * This must not be `COMPANY_VIEW_UNSPECIFIED`. * @opt_param string requestMetadata.locale Locale to use for the current @@ -110,35 +139,6 @@ class Google_Service_Partners_Resource_Companies extends Google_Service_Resource * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` * must be negative or zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. - * @opt_param string services List of services that the returned agencies should - * provide. If this is not empty, any returned agency must have at least one of - * these services, or one of the specializations in the "specializations" field. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string maxMonthlyBudget.units The whole units of the amount. For - * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. - * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the - * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If - * `units` is positive, `nanos` must be positive or zero. If `units` is zero, - * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` - * must be negative or zero. For example $-1.75 is represented as `units`=-1 and - * `nanos`=-750,000,000. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string companyName Company name to search for. - * @opt_param string pageToken A token identifying a page of results that the - * server returns. Typically, this is the value of - * `ListCompaniesResponse.next_page_token` returned from the previous call to - * ListCompanies. - * @opt_param string industries List of industries the company can help with. - * @opt_param string websiteUrl Website URL that will help to find a better - * matched company. . - * @opt_param string gpsMotivations List of reasons for using Google Partner - * Search to get companies. * @return Google_Service_Partners_ListCompaniesResponse */ public function listCompanies($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php index f0d868e0..c59579af 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php @@ -31,15 +31,6 @@ class Google_Service_Partners_Resource_Leads extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param int pageSize Requested page size. Server may return fewer leads - * than requested. If unspecified, server picks an appropriate default. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. * @opt_param string requestMetadata.experimentIds Experiment IDs the current * request belongs to. * @opt_param string requestMetadata.trafficSource.trafficSubId Second level @@ -55,6 +46,15 @@ class Google_Service_Partners_Resource_Leads extends Google_Service_Resource * server returns. Typically, this is the value of * `ListLeadsResponse.next_page_token` returned from the previous call to * ListLeads. + * @opt_param int pageSize Requested page size. Server may return fewer leads + * than requested. If unspecified, server picks an appropriate default. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. * @return Google_Service_Partners_ListLeadsResponse */ public function listLeads($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php index b666e133..5bc2c3b2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php @@ -31,6 +31,19 @@ class Google_Service_Partners_Resource_OffersHistory extends Google_Service_Reso * * @param array $optParams Optional parameters. * + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string pageToken Token to retrieve a specific page. + * @opt_param int pageSize Maximum number of rows to return per page. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. * @opt_param bool entireCompany if true, show history for the entire company. * Requires user to be admin. * @opt_param string requestMetadata.experimentIds Experiment IDs the current @@ -42,19 +55,6 @@ class Google_Service_Partners_Resource_OffersHistory extends Google_Service_Reso * @opt_param string requestMetadata.trafficSource.trafficSubId Second level * identifier to indicate where the traffic comes from. An identifier has * multiple letters created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string pageToken Token to retrieve a specific page. - * @opt_param int pageSize Maximum number of rows to return per page. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. * @return Google_Service_Partners_ListOffersHistoryResponse */ public function listOffersHistory($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php index 5fb86482..bfb36404 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php @@ -30,6 +30,10 @@ class Google_Service_Partners_Resource_UserStates extends Google_Service_Resourc * * @param array $optParams Optional parameters. * + * @opt_param string requestMetadata.locale Locale to use for the current + * request. + * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use + * instead of the user's geo-located IP address. * @opt_param string requestMetadata.experimentIds Experiment IDs the current * request belongs to. * @opt_param string requestMetadata.trafficSource.trafficSubId Second level @@ -42,10 +46,6 @@ class Google_Service_Partners_Resource_UserStates extends Google_Service_Resourc * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to * indicate where the traffic comes from. An identifier has multiple letters * created by a team which redirected the traffic to us. - * @opt_param string requestMetadata.locale Locale to use for the current - * request. - * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use - * instead of the user's geo-located IP address. * @return Google_Service_Partners_ListUserStatesResponse */ public function listUserStates($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php index fdc17159..570bad43 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php @@ -34,10 +34,10 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * @param Google_Service_Partners_CompanyRelation $postBody * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. * @opt_param string requestMetadata.partnersSessionId Google Partners session * ID. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to * indicate where the traffic comes from. An identifier has multiple letters * created by a team which redirected the traffic to us. @@ -66,13 +66,6 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * currently authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to - * impersonate instead of the user's ID. - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. * @opt_param string requestMetadata.locale Locale to use for the current * request. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use @@ -82,6 +75,13 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * @opt_param string requestMetadata.trafficSource.trafficSubId Second level * identifier to indicate where the traffic comes from. An identifier has * multiple letters created by a team which redirected the traffic to us. + * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to + * impersonate instead of the user's ID. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. * @return Google_Service_Partners_PartnersEmpty */ public function deleteCompanyRelation($userId, $optParams = array()) @@ -97,10 +97,10 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * currently authenticated user. * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.partnersSessionId Google Partners session - * ID. * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to * impersonate instead of the user's ID. + * @opt_param string requestMetadata.partnersSessionId Google Partners session + * ID. * @opt_param string userView Specifies what parts of the user information to * return. * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to @@ -130,9 +130,6 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * @param Google_Service_Partners_UserProfile $postBody * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. * @opt_param string requestMetadata.locale Locale to use for the current * request. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use @@ -146,6 +143,9 @@ class Google_Service_Partners_Resource_Users extends Google_Service_Resource * impersonate instead of the user's ID. * @opt_param string requestMetadata.partnersSessionId Google Partners session * ID. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. * @return Google_Service_Partners_UserProfile */ public function updateProfile(Google_Service_Partners_UserProfile $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php index 89239916..e545b2bc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php +++ b/vendor/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php @@ -31,9 +31,6 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to - * indicate where the traffic comes from. An identifier has multiple letters - * created by a team which redirected the traffic to us. * @opt_param string requestMetadata.locale Locale to use for the current * request. * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use @@ -47,6 +44,9 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * impersonate instead of the user's ID. * @opt_param string requestMetadata.partnersSessionId Google Partners session * ID. + * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to + * indicate where the traffic comes from. An identifier has multiple letters + * created by a team which redirected the traffic to us. * @return Google_Service_Partners_GetPartnersStatusResponse */ public function getPartnersstatus($optParams = array()) @@ -62,6 +62,11 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * @param Google_Service_Partners_Company $postBody * @param array $optParams Optional parameters. * + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @opt_param string requestMetadata.partnersSessionId Google Partners session * ID. * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to @@ -75,11 +80,6 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * instead of the user's geo-located IP address. * @opt_param string updateMask Standard field mask for the set of fields to be * updated. Required with at least 1 value in FieldMask's paths. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. * @return Google_Service_Partners_Company */ public function updateCompanies(Google_Service_Partners_Company $postBody, $optParams = array()) @@ -94,6 +94,11 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * @param Google_Service_Partners_Lead $postBody * @param array $optParams Optional parameters. * + * @opt_param string requestMetadata.experimentIds Experiment IDs the current + * request belongs to. + * @opt_param string requestMetadata.trafficSource.trafficSubId Second level + * identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to * impersonate instead of the user's ID. * @opt_param string requestMetadata.partnersSessionId Google Partners session @@ -108,11 +113,6 @@ class Google_Service_Partners_Resource_V2 extends Google_Service_Resource * @opt_param string updateMask Standard field mask for the set of fields to be * updated. Required with at least 1 value in FieldMask's paths. Only `state` * and `adwords_customer_id` are currently supported. - * @opt_param string requestMetadata.experimentIds Experiment IDs the current - * request belongs to. - * @opt_param string requestMetadata.trafficSource.trafficSubId Second level - * identifier to indicate where the traffic comes from. An identifier has - * multiple letters created by a team which redirected the traffic to us. * @return Google_Service_Partners_Lead */ public function updateLeads(Google_Service_Partners_Lead $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService.php index b530e951..9cc47e5e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PeopleService.php +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService.php @@ -30,13 +30,13 @@ */ class Google_Service_PeopleService extends Google_Service { - /** Manage your contacts. */ + /** See, edit, download, and permanently delete your contacts. */ const CONTACTS = "https://www.googleapis.com/auth/contacts"; - /** View your contacts. */ + /** See and download your contacts. */ const CONTACTS_READONLY = "https://www.googleapis.com/auth/contacts.readonly"; - /** Know the list of people in your circles, your age range, and language. */ + /** View your basic profile info, including your age range and language. */ const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; /** View your street addresses. */ @@ -73,6 +73,7 @@ class Google_Service_PeopleService extends Google_Service parent::__construct($client); $this->rootUrl = 'https://people.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'people'; @@ -86,15 +87,15 @@ class Google_Service_PeopleService extends Google_Service 'path' => 'v1/contactGroups:batchGet', 'httpMethod' => 'GET', 'parameters' => array( - 'maxMembers' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'resourceNames' => array( 'location' => 'query', 'type' => 'string', 'repeated' => true, ), + 'maxMembers' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'create' => array( 'path' => 'v1/contactGroups', @@ -132,6 +133,10 @@ class Google_Service_PeopleService extends Google_Service 'path' => 'v1/contactGroups', 'httpMethod' => 'GET', 'parameters' => array( + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -140,10 +145,6 @@ class Google_Service_PeopleService extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'update' => array( 'path' => 'v1/{+resourceName}', @@ -226,10 +227,6 @@ class Google_Service_PeopleService extends Google_Service 'path' => 'v1/people:batchGet', 'httpMethod' => 'GET', 'parameters' => array( - 'personFields' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestMask.includeField' => array( 'location' => 'query', 'type' => 'string', @@ -239,6 +236,10 @@ class Google_Service_PeopleService extends Google_Service 'type' => 'string', 'repeated' => true, ), + 'personFields' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'updateContact' => array( 'path' => 'v1/{+resourceName}:updateContact', @@ -273,18 +274,6 @@ class Google_Service_PeopleService extends Google_Service 'type' => 'string', 'required' => true, ), - 'syncToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'personFields' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'sortOrder' => array( - 'location' => 'query', - 'type' => 'string', - ), 'requestSyncToken' => array( 'location' => 'query', 'type' => 'boolean', @@ -301,6 +290,18 @@ class Google_Service_PeopleService extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'syncToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'personFields' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Person.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Person.php index 77898bd8..5625b5af 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Person.php +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Person.php @@ -69,6 +69,8 @@ class Google_Service_PeopleService_Person extends Google_Collection protected $residencesType = 'Google_Service_PeopleService_Residence'; protected $residencesDataType = 'array'; public $resourceName; + protected $sipAddressesType = 'Google_Service_PeopleService_SipAddress'; + protected $sipAddressesDataType = 'array'; protected $skillsType = 'Google_Service_PeopleService_Skill'; protected $skillsDataType = 'array'; protected $taglinesType = 'Google_Service_PeopleService_Tagline'; @@ -438,6 +440,20 @@ class Google_Service_PeopleService_Person extends Google_Collection { return $this->resourceName; } + /** + * @param Google_Service_PeopleService_SipAddress + */ + public function setSipAddresses($sipAddresses) + { + $this->sipAddresses = $sipAddresses; + } + /** + * @return Google_Service_PeopleService_SipAddress + */ + public function getSipAddresses() + { + return $this->sipAddresses; + } /** * @param Google_Service_PeopleService_Skill */ diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php index 3e76d638..cb2c1281 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php @@ -31,10 +31,10 @@ class Google_Service_PeopleService_Resource_ContactGroups extends Google_Service * * @param array $optParams Optional parameters. * - * @opt_param int maxMembers Specifies the maximum number of members to return - * for each group. * @opt_param string resourceNames The resource names of the contact groups to * get. + * @opt_param int maxMembers Specifies the maximum number of members to return + * for each group. * @return Google_Service_PeopleService_BatchGetContactGroupsResponse */ public function batchGet($optParams = array()) @@ -96,13 +96,13 @@ class Google_Service_PeopleService_Resource_ContactGroups extends Google_Service * * @param array $optParams Optional parameters. * + * @opt_param string syncToken A sync token, returned by a previous call to + * `contactgroups.list`. Only resources changed since the sync token was created + * will be returned. * @opt_param string pageToken The next_page_token value returned from a * previous call to [ListContactGroups](/people/api/rest/v1/contactgroups/list). * Requests the next page of resources. * @opt_param int pageSize The maximum number of resources to return. - * @opt_param string syncToken A sync token, returned by a previous call to - * `contactgroups.list`. Only resources changed since the sync token was created - * will be returned. * @return Google_Service_PeopleService_ListContactGroupsResponse */ public function listContactGroups($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php index 46577ca9..6cf3c0e4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php @@ -80,7 +80,8 @@ class Google_Service_PeopleService_Resource_People extends Google_Service_Resour * coverPhotos * emailAddresses * events * genders * imClients * interests * * locales * memberships * metadata * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * relationshipInterests * - * relationshipStatuses * residences * skills * taglines * urls + * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * + * userDefined * @opt_param string requestMask.includeField **Required.** Comma-separated list * of person fields to be included in the response. Each path should start with * `person.`: for example, `person.names` or `person.photos`. @@ -101,15 +102,6 @@ class Google_Service_PeopleService_Resource_People extends Google_Service_Resour * * @param array $optParams Optional parameters. * - * @opt_param string personFields **Required.** A field mask to restrict which - * fields on each person are returned. Multiple fields can be specified by - * separating them with commas. Valid values are: - * - * * addresses * ageRanges * biographies * birthdays * braggingRights * - * coverPhotos * emailAddresses * events * genders * imClients * interests * - * locales * memberships * metadata * names * nicknames * occupations * - * organizations * phoneNumbers * photos * relations * relationshipInterests * - * relationshipStatuses * residences * skills * taglines * urls * @opt_param string requestMask.includeField **Required.** Comma-separated list * of person fields to be included in the response. Each path should start with * `person.`: for example, `person.names` or `person.photos`. @@ -123,6 +115,16 @@ class Google_Service_PeopleService_Resource_People extends Google_Service_Resour * [`people.connections.list`](/people/api/rest/v1/people.connections/list). * * You can include up to 50 resource names in one request. + * @opt_param string personFields **Required.** A field mask to restrict which + * fields on each person are returned. Multiple fields can be specified by + * separating them with commas. Valid values are: + * + * * addresses * ageRanges * biographies * birthdays * braggingRights * + * coverPhotos * emailAddresses * events * genders * imClients * interests * + * locales * memberships * metadata * names * nicknames * occupations * + * organizations * phoneNumbers * photos * relations * relationshipInterests * + * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * + * userDefined * @return Google_Service_PeopleService_GetPeopleResponse */ public function getBatchGet($optParams = array()) @@ -158,7 +160,8 @@ class Google_Service_PeopleService_Resource_People extends Google_Service_Resour * * * addresses * biographies * birthdays * emailAddresses * events * genders * * imClients * interests * locales * names * nicknames * occupations * - * organizations * phoneNumbers * relations * residences * urls + * organizations * phoneNumbers * relations * residences * sipAddresses * urls * + * userDefined * @return Google_Service_PeopleService_Person */ public function updateContact($resourceName, Google_Service_PeopleService_Person $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php index db230edc..48a1a24a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php @@ -36,6 +36,16 @@ class Google_Service_PeopleService_Resource_PeopleConnections extends Google_Ser * `people/me` is valid. * @param array $optParams Optional parameters. * + * @opt_param bool requestSyncToken Whether the response should include a sync + * token, which can be used to get all changes since the last request. For + * subsequent sync requests use the `sync_token` param instead. Initial sync + * requests that specify `request_sync_token` have an additional rate limit. + * @opt_param string pageToken The token of the page to be returned. + * @opt_param int pageSize The number of connections to include in the response. + * Valid values are between 1 and 2000, inclusive. Defaults to 100. + * @opt_param string requestMask.includeField **Required.** Comma-separated list + * of person fields to be included in the response. Each path should start with + * `person.`: for example, `person.names` or `person.photos`. * @opt_param string syncToken A sync token returned by a previous call to * `people.connections.list`. Only resources changed since the sync token was * created will be returned. Sync requests that specify `sync_token` have an @@ -48,19 +58,10 @@ class Google_Service_PeopleService_Resource_PeopleConnections extends Google_Ser * coverPhotos * emailAddresses * events * genders * imClients * interests * * locales * memberships * metadata * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * relationshipInterests * - * relationshipStatuses * residences * skills * taglines * urls + * relationshipStatuses * residences * sipAddresses * skills * taglines * urls * + * userDefined * @opt_param string sortOrder The order in which the connections should be * sorted. Defaults to `LAST_MODIFIED_ASCENDING`. - * @opt_param bool requestSyncToken Whether the response should include a sync - * token, which can be used to get all changes since the last request. For - * subsequent sync requests use the `sync_token` param instead. Initial sync - * requests that specify `request_sync_token` have an additional rate limit. - * @opt_param string pageToken The token of the page to be returned. - * @opt_param int pageSize The number of connections to include in the response. - * Valid values are between 1 and 2000, inclusive. Defaults to 100. - * @opt_param string requestMask.includeField **Required.** Comma-separated list - * of person fields to be included in the response. Each path should start with - * `person.`: for example, `person.names` or `person.photos`. * @return Google_Service_PeopleService_ListConnectionsResponse */ public function listPeopleConnections($resourceName, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/PeopleService/SipAddress.php b/vendor/google/apiclient-services/src/Google/Service/PeopleService/SipAddress.php new file mode 100644 index 00000000..cbe54960 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PeopleService/SipAddress.php @@ -0,0 +1,64 @@ +formattedType = $formattedType; + } + public function getFormattedType() + { + return $this->formattedType; + } + /** + * @param Google_Service_PeopleService_FieldMetadata + */ + public function setMetadata(Google_Service_PeopleService_FieldMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_PeopleService_FieldMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary.php new file mode 100644 index 00000000..9ff41350 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary.php @@ -0,0 +1,182 @@ + + * Manage photos, videos, and albums in Google Photos + * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_PhotosLibrary extends Google_Service +{ + /** View the photos, videos and albums in your Google Photos. */ + const DRIVE_PHOTOS_READONLY = + "https://www.googleapis.com/auth/drive.photos.readonly"; + /** View and manage your Google Photos library. */ + const PHOTOSLIBRARY = + "https://www.googleapis.com/auth/photoslibrary"; + /** Add to your Google Photos library. */ + const PHOTOSLIBRARY_APPENDONLY = + "https://www.googleapis.com/auth/photoslibrary.appendonly"; + /** View your Google Photos library. */ + const PHOTOSLIBRARY_READONLY = + "https://www.googleapis.com/auth/photoslibrary.readonly"; + /** Manage photos added by this app. */ + const PHOTOSLIBRARY_READONLY_APPCREATEDDATA = + "https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata"; + /** Manage and add to shared albums on your behalf. */ + const PHOTOSLIBRARY_SHARING = + "https://www.googleapis.com/auth/photoslibrary.sharing"; + + public $albums; + public $mediaItems; + public $sharedAlbums; + + /** + * Constructs the internal representation of the PhotosLibrary service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://photoslibrary.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'photoslibrary'; + + $this->albums = new Google_Service_PhotosLibrary_Resource_Albums( + $this, + $this->serviceName, + 'albums', + array( + 'methods' => array( + 'addEnrichment' => array( + 'path' => 'v1/albums/{+albumId}:addEnrichment', + 'httpMethod' => 'POST', + 'parameters' => array( + 'albumId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v1/albums', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => 'v1/albums/{+albumId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'albumId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/albums', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'share' => array( + 'path' => 'v1/albums/{+albumId}:share', + 'httpMethod' => 'POST', + 'parameters' => array( + 'albumId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->mediaItems = new Google_Service_PhotosLibrary_Resource_MediaItems( + $this, + $this->serviceName, + 'mediaItems', + array( + 'methods' => array( + 'batchCreate' => array( + 'path' => 'v1/mediaItems:batchCreate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'get' => array( + 'path' => 'v1/mediaItems/{+mediaItemId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'mediaItemId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'search' => array( + 'path' => 'v1/mediaItems:search', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + $this->sharedAlbums = new Google_Service_PhotosLibrary_Resource_SharedAlbums( + $this, + $this->serviceName, + 'sharedAlbums', + array( + 'methods' => array( + 'join' => array( + 'path' => 'v1/sharedAlbums:join', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'list' => array( + 'path' => 'v1/sharedAlbums', + 'httpMethod' => 'GET', + 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumRequest.php new file mode 100644 index 00000000..beec53e2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumRequest.php @@ -0,0 +1,53 @@ +albumPosition = $albumPosition; + } + /** + * @return Google_Service_PhotosLibrary_AlbumPosition + */ + public function getAlbumPosition() + { + return $this->albumPosition; + } + /** + * @param Google_Service_PhotosLibrary_NewEnrichmentItem + */ + public function setNewEnrichmentItem(Google_Service_PhotosLibrary_NewEnrichmentItem $newEnrichmentItem) + { + $this->newEnrichmentItem = $newEnrichmentItem; + } + /** + * @return Google_Service_PhotosLibrary_NewEnrichmentItem + */ + public function getNewEnrichmentItem() + { + return $this->newEnrichmentItem; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumResponse.php new file mode 100644 index 00000000..a6ae13d1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AddEnrichmentToAlbumResponse.php @@ -0,0 +1,37 @@ +enrichmentItem = $enrichmentItem; + } + /** + * @return Google_Service_PhotosLibrary_EnrichmentItem + */ + public function getEnrichmentItem() + { + return $this->enrichmentItem; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Album.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Album.php new file mode 100644 index 00000000..dc5b2926 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Album.php @@ -0,0 +1,91 @@ +coverPhotoBaseUrl = $coverPhotoBaseUrl; + } + public function getCoverPhotoBaseUrl() + { + return $this->coverPhotoBaseUrl; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIsWriteable($isWriteable) + { + $this->isWriteable = $isWriteable; + } + public function getIsWriteable() + { + return $this->isWriteable; + } + public function setProductUrl($productUrl) + { + $this->productUrl = $productUrl; + } + public function getProductUrl() + { + return $this->productUrl; + } + /** + * @param Google_Service_PhotosLibrary_ShareInfo + */ + public function setShareInfo(Google_Service_PhotosLibrary_ShareInfo $shareInfo) + { + $this->shareInfo = $shareInfo; + } + /** + * @return Google_Service_PhotosLibrary_ShareInfo + */ + public function getShareInfo() + { + return $this->shareInfo; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setTotalMediaItems($totalMediaItems) + { + $this->totalMediaItems = $totalMediaItems; + } + public function getTotalMediaItems() + { + return $this->totalMediaItems; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AlbumPosition.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AlbumPosition.php new file mode 100644 index 00000000..5d7d7ad7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/AlbumPosition.php @@ -0,0 +1,48 @@ +position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setRelativeEnrichmentItemId($relativeEnrichmentItemId) + { + $this->relativeEnrichmentItemId = $relativeEnrichmentItemId; + } + public function getRelativeEnrichmentItemId() + { + return $this->relativeEnrichmentItemId; + } + public function setRelativeMediaItemId($relativeMediaItemId) + { + $this->relativeMediaItemId = $relativeMediaItemId; + } + public function getRelativeMediaItemId() + { + return $this->relativeMediaItemId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsRequest.php new file mode 100644 index 00000000..e21d70f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsRequest.php @@ -0,0 +1,63 @@ +albumId = $albumId; + } + public function getAlbumId() + { + return $this->albumId; + } + /** + * @param Google_Service_PhotosLibrary_AlbumPosition + */ + public function setAlbumPosition(Google_Service_PhotosLibrary_AlbumPosition $albumPosition) + { + $this->albumPosition = $albumPosition; + } + /** + * @return Google_Service_PhotosLibrary_AlbumPosition + */ + public function getAlbumPosition() + { + return $this->albumPosition; + } + /** + * @param Google_Service_PhotosLibrary_NewMediaItem + */ + public function setNewMediaItems($newMediaItems) + { + $this->newMediaItems = $newMediaItems; + } + /** + * @return Google_Service_PhotosLibrary_NewMediaItem + */ + public function getNewMediaItems() + { + return $this->newMediaItems; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsResponse.php new file mode 100644 index 00000000..5303ff8a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/BatchCreateMediaItemsResponse.php @@ -0,0 +1,38 @@ +newMediaItemResults = $newMediaItemResults; + } + /** + * @return Google_Service_PhotosLibrary_NewMediaItemResult + */ + public function getNewMediaItemResults() + { + return $this->newMediaItemResults; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContentFilter.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContentFilter.php new file mode 100644 index 00000000..c5ceb1cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContentFilter.php @@ -0,0 +1,40 @@ +excludedContentCategories = $excludedContentCategories; + } + public function getExcludedContentCategories() + { + return $this->excludedContentCategories; + } + public function setIncludedContentCategories($includedContentCategories) + { + $this->includedContentCategories = $includedContentCategories; + } + public function getIncludedContentCategories() + { + return $this->includedContentCategories; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContributorInfo.php similarity index 57% rename from vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php rename to vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContributorInfo.php index 4db8078c..9966e298 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ContributorInfo.php @@ -15,25 +15,25 @@ * the License. */ -class Google_Service_Dfareporting_CreativeSettings extends Google_Model +class Google_Service_PhotosLibrary_ContributorInfo extends Google_Model { - public $iFrameFooter; - public $iFrameHeader; + public $displayName; + public $profilePictureBaseUrl; - public function setIFrameFooter($iFrameFooter) + public function setDisplayName($displayName) { - $this->iFrameFooter = $iFrameFooter; + $this->displayName = $displayName; } - public function getIFrameFooter() + public function getDisplayName() { - return $this->iFrameFooter; + return $this->displayName; } - public function setIFrameHeader($iFrameHeader) + public function setProfilePictureBaseUrl($profilePictureBaseUrl) { - $this->iFrameHeader = $iFrameHeader; + $this->profilePictureBaseUrl = $profilePictureBaseUrl; } - public function getIFrameHeader() + public function getProfilePictureBaseUrl() { - return $this->iFrameHeader; + return $this->profilePictureBaseUrl; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/CreateAlbumRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/CreateAlbumRequest.php new file mode 100644 index 00000000..1aadd6ab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/CreateAlbumRequest.php @@ -0,0 +1,37 @@ +album = $album; + } + /** + * @return Google_Service_PhotosLibrary_Album + */ + public function getAlbum() + { + return $this->album; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Date.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Date.php new file mode 100644 index 00000000..97274ff5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Date.php @@ -0,0 +1,48 @@ +day = $day; + } + public function getDay() + { + return $this->day; + } + public function setMonth($month) + { + $this->month = $month; + } + public function getMonth() + { + return $this->month; + } + public function setYear($year) + { + $this->year = $year; + } + public function getYear() + { + return $this->year; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateFilter.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateFilter.php new file mode 100644 index 00000000..5880428d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateFilter.php @@ -0,0 +1,54 @@ +dates = $dates; + } + /** + * @return Google_Service_PhotosLibrary_Date + */ + public function getDates() + { + return $this->dates; + } + /** + * @param Google_Service_PhotosLibrary_DateRange + */ + public function setRanges($ranges) + { + $this->ranges = $ranges; + } + /** + * @return Google_Service_PhotosLibrary_DateRange + */ + public function getRanges() + { + return $this->ranges; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateRange.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateRange.php new file mode 100644 index 00000000..6f305ae8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/DateRange.php @@ -0,0 +1,53 @@ +endDate = $endDate; + } + /** + * @return Google_Service_PhotosLibrary_Date + */ + public function getEndDate() + { + return $this->endDate; + } + /** + * @param Google_Service_PhotosLibrary_Date + */ + public function setStartDate(Google_Service_PhotosLibrary_Date $startDate) + { + $this->startDate = $startDate; + } + /** + * @return Google_Service_PhotosLibrary_Date + */ + public function getStartDate() + { + return $this->startDate; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/EnrichmentItem.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/EnrichmentItem.php new file mode 100644 index 00000000..f4b00bfb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/EnrichmentItem.php @@ -0,0 +1,30 @@ +id = $id; + } + public function getId() + { + return $this->id; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Filters.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Filters.php new file mode 100644 index 00000000..3369a6c9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Filters.php @@ -0,0 +1,78 @@ +contentFilter = $contentFilter; + } + /** + * @return Google_Service_PhotosLibrary_ContentFilter + */ + public function getContentFilter() + { + return $this->contentFilter; + } + /** + * @param Google_Service_PhotosLibrary_DateFilter + */ + public function setDateFilter(Google_Service_PhotosLibrary_DateFilter $dateFilter) + { + $this->dateFilter = $dateFilter; + } + /** + * @return Google_Service_PhotosLibrary_DateFilter + */ + public function getDateFilter() + { + return $this->dateFilter; + } + public function setIncludeArchivedMedia($includeArchivedMedia) + { + $this->includeArchivedMedia = $includeArchivedMedia; + } + public function getIncludeArchivedMedia() + { + return $this->includeArchivedMedia; + } + /** + * @param Google_Service_PhotosLibrary_MediaTypeFilter + */ + public function setMediaTypeFilter(Google_Service_PhotosLibrary_MediaTypeFilter $mediaTypeFilter) + { + $this->mediaTypeFilter = $mediaTypeFilter; + } + /** + * @return Google_Service_PhotosLibrary_MediaTypeFilter + */ + public function getMediaTypeFilter() + { + return $this->mediaTypeFilter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumRequest.php new file mode 100644 index 00000000..df44a9a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumRequest.php @@ -0,0 +1,30 @@ +shareToken = $shareToken; + } + public function getShareToken() + { + return $this->shareToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumResponse.php new file mode 100644 index 00000000..1f49fac9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/JoinSharedAlbumResponse.php @@ -0,0 +1,20 @@ +latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListAlbumsResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListAlbumsResponse.php new file mode 100644 index 00000000..3ba23f55 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListAlbumsResponse.php @@ -0,0 +1,47 @@ +albums = $albums; + } + /** + * @return Google_Service_PhotosLibrary_Album + */ + public function getAlbums() + { + return $this->albums; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListSharedAlbumsResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListSharedAlbumsResponse.php new file mode 100644 index 00000000..613375bc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ListSharedAlbumsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_PhotosLibrary_Album + */ + public function setSharedAlbums($sharedAlbums) + { + $this->sharedAlbums = $sharedAlbums; + } + /** + * @return Google_Service_PhotosLibrary_Album + */ + public function getSharedAlbums() + { + return $this->sharedAlbums; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Location.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Location.php new file mode 100644 index 00000000..d489d1e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Location.php @@ -0,0 +1,46 @@ +latlng = $latlng; + } + /** + * @return Google_Service_PhotosLibrary_LatLng + */ + public function getLatlng() + { + return $this->latlng; + } + public function setLocationName($locationName) + { + $this->locationName = $locationName; + } + public function getLocationName() + { + return $this->locationName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/LocationEnrichment.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/LocationEnrichment.php new file mode 100644 index 00000000..26699ecb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/LocationEnrichment.php @@ -0,0 +1,37 @@ +location = $location; + } + /** + * @return Google_Service_PhotosLibrary_Location + */ + public function getLocation() + { + return $this->location; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MapEnrichment.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MapEnrichment.php new file mode 100644 index 00000000..4b648ee7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MapEnrichment.php @@ -0,0 +1,53 @@ +destination = $destination; + } + /** + * @return Google_Service_PhotosLibrary_Location + */ + public function getDestination() + { + return $this->destination; + } + /** + * @param Google_Service_PhotosLibrary_Location + */ + public function setOrigin(Google_Service_PhotosLibrary_Location $origin) + { + $this->origin = $origin; + } + /** + * @return Google_Service_PhotosLibrary_Location + */ + public function getOrigin() + { + return $this->origin; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaItem.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaItem.php new file mode 100644 index 00000000..37511d2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaItem.php @@ -0,0 +1,98 @@ +baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + /** + * @param Google_Service_PhotosLibrary_ContributorInfo + */ + public function setContributorInfo(Google_Service_PhotosLibrary_ContributorInfo $contributorInfo) + { + $this->contributorInfo = $contributorInfo; + } + /** + * @return Google_Service_PhotosLibrary_ContributorInfo + */ + public function getContributorInfo() + { + return $this->contributorInfo; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_PhotosLibrary_MediaMetadata + */ + public function setMediaMetadata(Google_Service_PhotosLibrary_MediaMetadata $mediaMetadata) + { + $this->mediaMetadata = $mediaMetadata; + } + /** + * @return Google_Service_PhotosLibrary_MediaMetadata + */ + public function getMediaMetadata() + { + return $this->mediaMetadata; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setProductUrl($productUrl) + { + $this->productUrl = $productUrl; + } + public function getProductUrl() + { + return $this->productUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaMetadata.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaMetadata.php new file mode 100644 index 00000000..5ba9e097 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaMetadata.php @@ -0,0 +1,80 @@ +creationTime = $creationTime; + } + public function getCreationTime() + { + return $this->creationTime; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + /** + * @param Google_Service_PhotosLibrary_Photo + */ + public function setPhoto(Google_Service_PhotosLibrary_Photo $photo) + { + $this->photo = $photo; + } + /** + * @return Google_Service_PhotosLibrary_Photo + */ + public function getPhoto() + { + return $this->photo; + } + /** + * @param Google_Service_PhotosLibrary_Video + */ + public function setVideo(Google_Service_PhotosLibrary_Video $video) + { + $this->video = $video; + } + /** + * @return Google_Service_PhotosLibrary_Video + */ + public function getVideo() + { + return $this->video; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaTypeFilter.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaTypeFilter.php new file mode 100644 index 00000000..e1cdb37c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/MediaTypeFilter.php @@ -0,0 +1,31 @@ +mediaTypes = $mediaTypes; + } + public function getMediaTypes() + { + return $this->mediaTypes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewEnrichmentItem.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewEnrichmentItem.php new file mode 100644 index 00000000..f1068610 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewEnrichmentItem.php @@ -0,0 +1,69 @@ +locationEnrichment = $locationEnrichment; + } + /** + * @return Google_Service_PhotosLibrary_LocationEnrichment + */ + public function getLocationEnrichment() + { + return $this->locationEnrichment; + } + /** + * @param Google_Service_PhotosLibrary_MapEnrichment + */ + public function setMapEnrichment(Google_Service_PhotosLibrary_MapEnrichment $mapEnrichment) + { + $this->mapEnrichment = $mapEnrichment; + } + /** + * @return Google_Service_PhotosLibrary_MapEnrichment + */ + public function getMapEnrichment() + { + return $this->mapEnrichment; + } + /** + * @param Google_Service_PhotosLibrary_TextEnrichment + */ + public function setTextEnrichment(Google_Service_PhotosLibrary_TextEnrichment $textEnrichment) + { + $this->textEnrichment = $textEnrichment; + } + /** + * @return Google_Service_PhotosLibrary_TextEnrichment + */ + public function getTextEnrichment() + { + return $this->textEnrichment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItem.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItem.php new file mode 100644 index 00000000..0591baf8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItem.php @@ -0,0 +1,46 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_PhotosLibrary_SimpleMediaItem + */ + public function setSimpleMediaItem(Google_Service_PhotosLibrary_SimpleMediaItem $simpleMediaItem) + { + $this->simpleMediaItem = $simpleMediaItem; + } + /** + * @return Google_Service_PhotosLibrary_SimpleMediaItem + */ + public function getSimpleMediaItem() + { + return $this->simpleMediaItem; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItemResult.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItemResult.php new file mode 100644 index 00000000..479c34da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/NewMediaItemResult.php @@ -0,0 +1,62 @@ +mediaItem = $mediaItem; + } + /** + * @return Google_Service_PhotosLibrary_MediaItem + */ + public function getMediaItem() + { + return $this->mediaItem; + } + /** + * @param Google_Service_PhotosLibrary_Status + */ + public function setStatus(Google_Service_PhotosLibrary_Status $status) + { + $this->status = $status; + } + /** + * @return Google_Service_PhotosLibrary_Status + */ + public function getStatus() + { + return $this->status; + } + public function setUploadToken($uploadToken) + { + $this->uploadToken = $uploadToken; + } + public function getUploadToken() + { + return $this->uploadToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Photo.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Photo.php new file mode 100644 index 00000000..5362fb8a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Photo.php @@ -0,0 +1,75 @@ +apertureFNumber = $apertureFNumber; + } + public function getApertureFNumber() + { + return $this->apertureFNumber; + } + public function setCameraMake($cameraMake) + { + $this->cameraMake = $cameraMake; + } + public function getCameraMake() + { + return $this->cameraMake; + } + public function setCameraModel($cameraModel) + { + $this->cameraModel = $cameraModel; + } + public function getCameraModel() + { + return $this->cameraModel; + } + public function setExposureTime($exposureTime) + { + $this->exposureTime = $exposureTime; + } + public function getExposureTime() + { + return $this->exposureTime; + } + public function setFocalLength($focalLength) + { + $this->focalLength = $focalLength; + } + public function getFocalLength() + { + return $this->focalLength; + } + public function setIsoEquivalent($isoEquivalent) + { + $this->isoEquivalent = $isoEquivalent; + } + public function getIsoEquivalent() + { + return $this->isoEquivalent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/Albums.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/Albums.php new file mode 100644 index 00000000..91f17b7e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/Albums.php @@ -0,0 +1,108 @@ + + * $photoslibraryService = new Google_Service_PhotosLibrary(...); + * $albums = $photoslibraryService->albums; + * + */ +class Google_Service_PhotosLibrary_Resource_Albums extends Google_Service_Resource +{ + /** + * Adds an enrichment to a specified position in a defined album. + * (albums.addEnrichment) + * + * @param string $albumId Identifier of the album where the enrichment will be + * added. + * @param Google_Service_PhotosLibrary_AddEnrichmentToAlbumRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_AddEnrichmentToAlbumResponse + */ + public function addEnrichment($albumId, Google_Service_PhotosLibrary_AddEnrichmentToAlbumRequest $postBody, $optParams = array()) + { + $params = array('albumId' => $albumId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addEnrichment', array($params), "Google_Service_PhotosLibrary_AddEnrichmentToAlbumResponse"); + } + /** + * Creates an album in a user's Google Photos library. (albums.create) + * + * @param Google_Service_PhotosLibrary_CreateAlbumRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_Album + */ + public function create(Google_Service_PhotosLibrary_CreateAlbumRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_PhotosLibrary_Album"); + } + /** + * Returns the album specified by the given album id. (albums.get) + * + * @param string $albumId Identifier of the album to be requested. + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_Album + */ + public function get($albumId, $optParams = array()) + { + $params = array('albumId' => $albumId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PhotosLibrary_Album"); + } + /** + * Lists all albums shown to a user in the 'Albums' tab of the Google Photos + * app. (albums.listAlbums) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A continuation token to get the next page of the + * results. Adding this to the request will return the rows after the pageToken. + * The pageToken should be the value returned in the nextPageToken parameter in + * the response to the listAlbums request. + * @opt_param int pageSize Maximum number of albums to return in the response. + * The default number of albums to return at a time is 20. The maximum page size + * is 50. + * @return Google_Service_PhotosLibrary_ListAlbumsResponse + */ + public function listAlbums($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PhotosLibrary_ListAlbumsResponse"); + } + /** + * Marks an album as 'shared' and accessible to other users. This action can + * only be performed on albums which were created by the developer via the API. + * (albums.share) + * + * @param string $albumId Identifier of the album to be shared. This album id + * must belong to an album created by the developer. . + * @param Google_Service_PhotosLibrary_ShareAlbumRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_ShareAlbumResponse + */ + public function share($albumId, Google_Service_PhotosLibrary_ShareAlbumRequest $postBody, $optParams = array()) + { + $params = array('albumId' => $albumId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('share', array($params), "Google_Service_PhotosLibrary_ShareAlbumResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/MediaItems.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/MediaItems.php new file mode 100644 index 00000000..f6161e57 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/MediaItems.php @@ -0,0 +1,85 @@ + + * $photoslibraryService = new Google_Service_PhotosLibrary(...); + * $mediaItems = $photoslibraryService->mediaItems; + * + */ +class Google_Service_PhotosLibrary_Resource_MediaItems extends Google_Service_Resource +{ + /** + * Creates one or more media items in a user's Google Photos library. If an + * album id is specified, the media item(s) are also added to the album. By + * default the media item(s) will be added to the end of the library or album. + * + * If an album id and position are both defined, then the media items will be + * added to the album at the specified position. + * + * If multiple media items are given, they will be inserted at the specified + * position. (mediaItems.batchCreate) + * + * @param Google_Service_PhotosLibrary_BatchCreateMediaItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_BatchCreateMediaItemsResponse + */ + public function batchCreate(Google_Service_PhotosLibrary_BatchCreateMediaItemsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchCreate', array($params), "Google_Service_PhotosLibrary_BatchCreateMediaItemsResponse"); + } + /** + * Returns the media item specified based on a given media item id. + * (mediaItems.get) + * + * @param string $mediaItemId Identifier of media item to be requested. + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_MediaItem + */ + public function get($mediaItemId, $optParams = array()) + { + $params = array('mediaItemId' => $mediaItemId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_PhotosLibrary_MediaItem"); + } + /** + * Searches for media items in a user's Google Photos library. If no filters are + * set, then all media items in the user's library will be returned. + * + * If an album is set, all media items in the specified album will be returned. + * + * If filters are specified, anything that matches the filters from the user's + * library will be listed. + * + * If an album and filters are set, then this will result in an error. + * (mediaItems.search) + * + * @param Google_Service_PhotosLibrary_SearchMediaItemsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_SearchMediaItemsResponse + */ + public function search(Google_Service_PhotosLibrary_SearchMediaItemsRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('search', array($params), "Google_Service_PhotosLibrary_SearchMediaItemsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/SharedAlbums.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/SharedAlbums.php new file mode 100644 index 00000000..0a7d62a4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Resource/SharedAlbums.php @@ -0,0 +1,62 @@ + + * $photoslibraryService = new Google_Service_PhotosLibrary(...); + * $sharedAlbums = $photoslibraryService->sharedAlbums; + * + */ +class Google_Service_PhotosLibrary_Resource_SharedAlbums extends Google_Service_Resource +{ + /** + * Joins a shared album on behalf of the Google Photos user. (sharedAlbums.join) + * + * @param Google_Service_PhotosLibrary_JoinSharedAlbumRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_PhotosLibrary_JoinSharedAlbumResponse + */ + public function join(Google_Service_PhotosLibrary_JoinSharedAlbumRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('join', array($params), "Google_Service_PhotosLibrary_JoinSharedAlbumResponse"); + } + /** + * Lists all shared albums shown to a user in the 'Sharing' tab of the Google + * Photos app. (sharedAlbums.listSharedAlbums) + * + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A continuation token to get the next page of the + * results. Adding this to the request will return the rows after the pageToken. + * The pageToken should be the value returned in the nextPageToken parameter in + * the response to the listSharedAlbums request. + * @opt_param int pageSize Maximum number of albums to return in the response. + * The default number of albums to return at a time is 20. The maximum page size + * is 50. + * @return Google_Service_PhotosLibrary_ListSharedAlbumsResponse + */ + public function listSharedAlbums($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_PhotosLibrary_ListSharedAlbumsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsRequest.php new file mode 100644 index 00000000..ee3882d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsRequest.php @@ -0,0 +1,64 @@ +albumId = $albumId; + } + public function getAlbumId() + { + return $this->albumId; + } + /** + * @param Google_Service_PhotosLibrary_Filters + */ + public function setFilters(Google_Service_PhotosLibrary_Filters $filters) + { + $this->filters = $filters; + } + /** + * @return Google_Service_PhotosLibrary_Filters + */ + public function getFilters() + { + return $this->filters; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + public function setPageToken($pageToken) + { + $this->pageToken = $pageToken; + } + public function getPageToken() + { + return $this->pageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsResponse.php new file mode 100644 index 00000000..2523d00e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SearchMediaItemsResponse.php @@ -0,0 +1,47 @@ +mediaItems = $mediaItems; + } + /** + * @return Google_Service_PhotosLibrary_MediaItem + */ + public function getMediaItems() + { + return $this->mediaItems; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumRequest.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumRequest.php new file mode 100644 index 00000000..128caec1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumRequest.php @@ -0,0 +1,37 @@ +sharedAlbumOptions = $sharedAlbumOptions; + } + /** + * @return Google_Service_PhotosLibrary_SharedAlbumOptions + */ + public function getSharedAlbumOptions() + { + return $this->sharedAlbumOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumResponse.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumResponse.php new file mode 100644 index 00000000..988b9a58 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareAlbumResponse.php @@ -0,0 +1,37 @@ +shareInfo = $shareInfo; + } + /** + * @return Google_Service_PhotosLibrary_ShareInfo + */ + public function getShareInfo() + { + return $this->shareInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareInfo.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareInfo.php new file mode 100644 index 00000000..5796a535 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/ShareInfo.php @@ -0,0 +1,55 @@ +shareToken = $shareToken; + } + public function getShareToken() + { + return $this->shareToken; + } + public function setShareableUrl($shareableUrl) + { + $this->shareableUrl = $shareableUrl; + } + public function getShareableUrl() + { + return $this->shareableUrl; + } + /** + * @param Google_Service_PhotosLibrary_SharedAlbumOptions + */ + public function setSharedAlbumOptions(Google_Service_PhotosLibrary_SharedAlbumOptions $sharedAlbumOptions) + { + $this->sharedAlbumOptions = $sharedAlbumOptions; + } + /** + * @return Google_Service_PhotosLibrary_SharedAlbumOptions + */ + public function getSharedAlbumOptions() + { + return $this->sharedAlbumOptions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SharedAlbumOptions.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SharedAlbumOptions.php new file mode 100644 index 00000000..535d9928 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SharedAlbumOptions.php @@ -0,0 +1,39 @@ +isCollaborative = $isCollaborative; + } + public function getIsCollaborative() + { + return $this->isCollaborative; + } + public function setIsCommentable($isCommentable) + { + $this->isCommentable = $isCommentable; + } + public function getIsCommentable() + { + return $this->isCommentable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SimpleMediaItem.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SimpleMediaItem.php new file mode 100644 index 00000000..5de5ba88 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/SimpleMediaItem.php @@ -0,0 +1,30 @@ +uploadToken = $uploadToken; + } + public function getUploadToken() + { + return $this->uploadToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Status.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Status.php new file mode 100644 index 00000000..ff0ca4db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/TextEnrichment.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/TextEnrichment.php new file mode 100644 index 00000000..57d463d9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/TextEnrichment.php @@ -0,0 +1,30 @@ +text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Video.php similarity index 57% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php rename to vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Video.php index c99bd2c4..35d563ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php +++ b/vendor/google/apiclient-services/src/Google/Service/PhotosLibrary/Video.php @@ -15,28 +15,36 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment extends Google_Model +class Google_Service_PhotosLibrary_Video extends Google_Model { - public $carrier; - public $shipmentId; + public $cameraMake; + public $cameraModel; + public $fps; public $status; - public $trackingId; - public function setCarrier($carrier) + public function setCameraMake($cameraMake) { - $this->carrier = $carrier; + $this->cameraMake = $cameraMake; } - public function getCarrier() + public function getCameraMake() { - return $this->carrier; + return $this->cameraMake; } - public function setShipmentId($shipmentId) + public function setCameraModel($cameraModel) { - $this->shipmentId = $shipmentId; + $this->cameraModel = $cameraModel; } - public function getShipmentId() + public function getCameraModel() { - return $this->shipmentId; + return $this->cameraModel; + } + public function setFps($fps) + { + $this->fps = $fps; + } + public function getFps() + { + return $this->fps; } public function setStatus($status) { @@ -46,12 +54,4 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment { return $this->status; } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Playcustomapp.php b/vendor/google/apiclient-services/src/Google/Service/Playcustomapp.php index 8e1fed15..3c2b592d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Playcustomapp.php +++ b/vendor/google/apiclient-services/src/Google/Service/Playcustomapp.php @@ -46,6 +46,7 @@ class Google_Service_Playcustomapp extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'playcustomapp/v1/accounts/'; + $this->batchPath = 'batch/playcustomapp/v1'; $this->version = 'v1'; $this->serviceName = 'playcustomapp'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Plus.php b/vendor/google/apiclient-services/src/Google/Service/Plus.php index a400c3fb..23a8c7d0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Plus.php +++ b/vendor/google/apiclient-services/src/Google/Service/Plus.php @@ -30,7 +30,7 @@ */ class Google_Service_Plus extends Google_Service { - /** Know the list of people in your circles, your age range, and language. */ + /** View your basic profile info, including your age range and language. */ const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ @@ -57,6 +57,7 @@ class Google_Service_Plus extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plus/v1/'; + $this->batchPath = 'batch/plus/v1'; $this->version = 'v1'; $this->serviceName = 'plus'; diff --git a/vendor/google/apiclient-services/src/Google/Service/PlusDomains.php b/vendor/google/apiclient-services/src/Google/Service/PlusDomains.php index ec8d9228..dd7d1df8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PlusDomains.php +++ b/vendor/google/apiclient-services/src/Google/Service/PlusDomains.php @@ -36,7 +36,7 @@ class Google_Service_PlusDomains extends Google_Service /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */ const PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; - /** Know the list of people in your circles, your age range, and language. */ + /** View your basic profile info, including your age range and language. */ const PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"; /** Know who you are on Google. */ @@ -78,6 +78,7 @@ class Google_Service_PlusDomains extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plusDomains/v1/'; + $this->batchPath = 'batch/plusDomains/v1'; $this->version = 'v1'; $this->serviceName = 'plusDomains'; diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService.php b/vendor/google/apiclient-services/src/Google/Service/PolyService.php index 872c12a0..61aaf4bb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PolyService.php +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService.php @@ -19,7 +19,8 @@ * Service definition for PolyService (v1). * *- * The Poly API provides read-only access to assets hosted on poly.google.com.
+ * The Poly API provides read access to assets hosted on poly.google.com to all, + * and upload access to poly.google.com for whitelisted accounts. * ** For more information about this service, see the API @@ -46,6 +47,7 @@ class Google_Service_PolyService extends Google_Service parent::__construct($client); $this->rootUrl = 'https://poly.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'poly'; @@ -69,18 +71,6 @@ class Google_Service_PolyService extends Google_Service 'path' => 'v1/assets', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxComplexity' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'keywords' => array( 'location' => 'query', 'type' => 'string', @@ -101,6 +91,18 @@ class Google_Service_PolyService extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxComplexity' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -161,14 +163,6 @@ class Google_Service_PolyService extends Google_Service 'type' => 'string', 'required' => true, ), - 'orderBy' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -177,6 +171,14 @@ class Google_Service_PolyService extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService/Asset.php b/vendor/google/apiclient-services/src/Google/Service/PolyService/Asset.php index a0fa6992..1b677228 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PolyService/Asset.php +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService/Asset.php @@ -30,6 +30,8 @@ class Google_Service_PolyService_Asset extends Google_Collection public $name; protected $presentationParamsType = 'Google_Service_PolyService_PresentationParams'; protected $presentationParamsDataType = ''; + protected $remixInfoType = 'Google_Service_PolyService_RemixInfo'; + protected $remixInfoDataType = ''; protected $thumbnailType = 'Google_Service_PolyService_PolyFile'; protected $thumbnailDataType = ''; public $updateTime; @@ -127,6 +129,20 @@ class Google_Service_PolyService_Asset extends Google_Collection { return $this->presentationParams; } + /** + * @param Google_Service_PolyService_RemixInfo + */ + public function setRemixInfo(Google_Service_PolyService_RemixInfo $remixInfo) + { + $this->remixInfo = $remixInfo; + } + /** + * @return Google_Service_PolyService_RemixInfo + */ + public function getRemixInfo() + { + return $this->remixInfo; + } /** * @param Google_Service_PolyService_PolyFile */ diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService/PresentationParams.php b/vendor/google/apiclient-services/src/Google/Service/PolyService/PresentationParams.php index 477c4ebf..930e994e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PolyService/PresentationParams.php +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService/PresentationParams.php @@ -17,10 +17,19 @@ class Google_Service_PolyService_PresentationParams extends Google_Model { + public $backgroundColor; public $colorSpace; protected $orientingRotationType = 'Google_Service_PolyService_Quaternion'; protected $orientingRotationDataType = ''; + public function setBackgroundColor($backgroundColor) + { + $this->backgroundColor = $backgroundColor; + } + public function getBackgroundColor() + { + return $this->backgroundColor; + } public function setColorSpace($colorSpace) { $this->colorSpace = $colorSpace; diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService/RemixInfo.php b/vendor/google/apiclient-services/src/Google/Service/PolyService/RemixInfo.php new file mode 100644 index 00000000..bba5c68d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService/RemixInfo.php @@ -0,0 +1,31 @@ +sourceAsset = $sourceAsset; + } + public function getSourceAsset() + { + return $this->sourceAsset; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/Assets.php b/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/Assets.php index 069c1a27..40a59c45 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/Assets.php +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/Assets.php @@ -47,14 +47,6 @@ class Google_Service_PolyService_Resource_Assets extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string pageToken Specifies a continuation token from a previous - * search whose results were split into multiple pages. To get the next page, - * submit the same request specifying the value from next_page_token. - * @opt_param string maxComplexity Returns assets that are of the specified - * complexity or less. Defaults to COMPLEX. For example, a request for MEDIUM - * assets also includes SIMPLE assets. - * @opt_param int pageSize The maximum number of assets to be returned. This - * value must be between `1` and `100`. Defaults to `20`. * @opt_param string keywords One or more search terms to be matched against all * text that Poly has indexed for assets, which includes display_name, * description, and tags. Multiple keywords should be separated by spaces. @@ -68,6 +60,14 @@ class Google_Service_PolyService_Resource_Assets extends Google_Service_Resource * @opt_param string category Filter assets based on the specified category. * Supported values are: `animals`, `architecture`, `art`, `food`, `nature`, * `objects`, `people`, `scenes`, `technology`, and `transport`. + * @opt_param string pageToken Specifies a continuation token from a previous + * search whose results were split into multiple pages. To get the next page, + * submit the same request specifying the value from next_page_token. + * @opt_param string maxComplexity Returns assets that are of the specified + * complexity or less. Defaults to COMPLEX. For example, a request for MEDIUM + * assets also includes SIMPLE assets. + * @opt_param int pageSize The maximum number of assets to be returned. This + * value must be between `1` and `100`. Defaults to `20`. * @return Google_Service_PolyService_ListAssetsResponse */ public function listAssets($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/UsersLikedassets.php b/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/UsersLikedassets.php index 3a443f49..cef5e40c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/UsersLikedassets.php +++ b/vendor/google/apiclient-services/src/Google/Service/PolyService/Resource/UsersLikedassets.php @@ -35,16 +35,16 @@ class Google_Service_PolyService_Resource_UsersLikedassets extends Google_Servic * must pass an OAuth token with the request. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The maximum number of assets to be returned. This + * value must be between `1` and `100`. Defaults to `20`. + * @opt_param string format Return only assets with the matching format. + * Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. * @opt_param string orderBy Specifies an ordering for assets. Acceptable values * are: `BEST`, `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, * which ranks assets based on how recently they were liked. * @opt_param string pageToken Specifies a continuation token from a previous * search whose results were split into multiple pages. To get the next page, * submit the same request specifying the value from next_page_token. - * @opt_param int pageSize The maximum number of assets to be returned. This - * value must be between `1` and `100`. Defaults to `20`. - * @opt_param string format Return only assets with the matching format. - * Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. * @return Google_Service_PolyService_ListLikedAssetsResponse */ public function listUsersLikedassets($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon.php b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon.php index 43770866..8891121a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon.php +++ b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon.php @@ -51,6 +51,7 @@ class Google_Service_Proximitybeacon extends Google_Service parent::__construct($client); $this->rootUrl = 'https://proximitybeacon.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1beta1'; $this->serviceName = 'proximitybeacon'; @@ -148,10 +149,6 @@ class Google_Service_Proximitybeacon extends Google_Service 'path' => 'v1beta1/beacons', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'q' => array( 'location' => 'query', 'type' => 'string', @@ -164,6 +161,10 @@ class Google_Service_Proximitybeacon extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'register' => array( 'path' => 'v1beta1/beacons:register', @@ -253,11 +254,11 @@ class Google_Service_Proximitybeacon extends Google_Service 'type' => 'string', 'required' => true, ), - 'projectId' => array( + 'namespacedType' => array( 'location' => 'query', 'type' => 'string', ), - 'namespacedType' => array( + 'projectId' => array( 'location' => 'query', 'type' => 'string', ), diff --git a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php index 803ecd06..fe56492e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php +++ b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php @@ -187,8 +187,6 @@ class Google_Service_Proximitybeacon_Resource_Beacons extends Google_Service_Res * * @param array $optParams Optional parameters. * - * @opt_param string pageToken A pagination token obtained from a previous - * request to list beacons. * @opt_param string q Filter query string that supports the following field * filters: * @@ -248,6 +246,8 @@ class Google_Service_Proximitybeacon_Resource_Beacons extends Google_Service_Res * @opt_param string projectId The project id to list beacons under. If not * present then the project credential that made the request is used as the * project. Optional. + * @opt_param string pageToken A pagination token obtained from a previous + * request to list beacons. * @return Google_Service_Proximitybeacon_ListBeaconsResponse */ public function listBeacons($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php index 0b2ff42f..7f3dd852 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php +++ b/vendor/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php @@ -151,14 +151,14 @@ class Google_Service_Proximitybeacon_Resource_BeaconsAttachments extends Google_ * the current EID or the beacon's "stable" UID. Required. * @param array $optParams Optional parameters. * + * @opt_param string namespacedType Specifies the namespace and type of + * attachment to include in response in namespace/type format. Accepts `*` to + * specify "all types in all namespaces". * @opt_param string projectId The project id to list beacon attachments under. * This field can be used when "*" is specified to mean all attachment * namespaces. Projects may have multiple attachments with multiple namespaces. * If "*" is specified and the projectId string is empty, then the project * making the request is used. Optional. - * @opt_param string namespacedType Specifies the namespace and type of - * attachment to include in response in namespace/type format. Accepts `*` to - * specify "all types in all namespaces". * @return Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse */ public function listBeaconsAttachments($beaconName, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub.php index 0afcbfcc..f378aaf7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub.php @@ -53,6 +53,7 @@ class Google_Service_Pubsub extends Google_Service parent::__construct($client); $this->rootUrl = 'https://pubsub.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'pubsub'; @@ -366,6 +367,16 @@ class Google_Service_Pubsub extends Google_Service 'type' => 'integer', ), ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'publish' => array( 'path' => 'v1/{+topic}:publish', 'httpMethod' => 'POST', @@ -443,14 +454,14 @@ class Google_Service_Pubsub extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Binding.php index bfa91597..1750520f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Binding.php @@ -18,9 +18,25 @@ class Google_Service_Pubsub_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_Pubsub_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_Pubsub_Expr + */ + public function setCondition(Google_Service_Pubsub_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Pubsub_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/CreateSnapshotRequest.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/CreateSnapshotRequest.php index e6f43ee4..ae1c3f88 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/CreateSnapshotRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/CreateSnapshotRequest.php @@ -17,8 +17,17 @@ class Google_Service_Pubsub_CreateSnapshotRequest extends Google_Model { + public $labels; public $subscription; + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setSubscription($subscription) { $this->subscription = $subscription; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/ExpirationPolicy.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/ExpirationPolicy.php new file mode 100644 index 00000000..299c995d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/ExpirationPolicy.php @@ -0,0 +1,30 @@ +ttl = $ttl; + } + public function getTtl() + { + return $this->ttl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Expr.php new file mode 100644 index 00000000..793e3dd7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php index 93f45471..93622909 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php @@ -26,25 +26,31 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Resource { /** - * [ALPHA] This method is a part of a closed Alpha API. Creates a snapshot from - * the requested subscription. If the snapshot already exists, returns - * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns - * `NOT_FOUND`. If the backlog in the subscription is too old -- and the + * Creates a snapshot from the requested subscription. Snapshots are used in + * Seek operations, which allow you to manage message acknowledgments in bulk. + * That is, you can set the acknowledgment state of messages in an existing + * subscription to the state captured by a snapshot. + * + * BETA: This feature is part of a beta release. This API might be changed in + * backward-incompatible ways and is not recommended for production use. It is + * not subject to any SLA or deprecation policy. If the snapshot already exists, + * returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, + * returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the * resulting snapshot would expire in less than 1 hour -- then * `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. - * * If the name is not provided in the request, the server will assign a random * name for this snapshot on the same project as the subscription, conforming to * the [resource name - * format](https://cloud.google.com/pubsub/docs/overview#names). The generated - * name is populated in the returned Snapshot object. Note that for REST API - * requests, you must specify a name in the request. (snapshots.create) + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for + * REST API requests, you must specify a name in the request. (snapshots.create) * * @param string $name Optional user-provided name for this snapshot. If the * name is not provided in the request, the server will assign a random name for * this snapshot on the same project as the subscription. Note that for REST API - * requests, you must specify a name. Format is - * `projects/{project}/snapshots/{snap}`. + * requests, you must specify a name. See the + * + * resource name rules. Format is `projects/{project}/snapshots/{snap}`. * @param Google_Service_Pubsub_CreateSnapshotRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Snapshot @@ -56,11 +62,16 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re return $this->call('create', array($params), "Google_Service_Pubsub_Snapshot"); } /** - * Removes an existing snapshot. All messages retained in the snapshot are - * immediately dropped. After a snapshot is deleted, a new one may be created - * with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. [ALPHA] This - * method is a part of a closed Alpha API. (snapshots.delete) + * Removes an existing snapshot. Snapshots are used in Seek operations, which + * allow you to manage message acknowledgments in bulk. That is, you can set the + * acknowledgment state of messages in an existing subscription to the state + * captured by a snapshot. BETA: This feature is part of a beta release. This + * API might be changed in backward-incompatible ways and is not recommended for + * production use. It is not subject to any SLA or deprecation policy. When the + * snapshot is deleted, all messages retained in the snapshot are immediately + * dropped. After a snapshot is deleted, a new one may be created with the same + * name, but the new one has no association with the old snapshot or its + * subscription, unless the same subscription is specified. (snapshots.delete) * * @param string $snapshot The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. @@ -74,8 +85,13 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re return $this->call('delete', array($params), "Google_Service_Pubsub_PubsubEmpty"); } /** - * Gets the configuration details of a snapshot. [ALPHA] This method is a part - * of a closed Alpha API. (snapshots.get) + * Gets the configuration details of a snapshot. Snapshots are used in Seek + * operations, which allow you to manage message acknowledgments in bulk. That + * is, you can set the acknowledgment state of messages in an existing + * subscription to the state captured by a snapshot. BETA: This feature is part + * of a beta release. This API might be changed in backward-incompatible ways + * and is not recommended for production use. It is not subject to any SLA or + * deprecation policy. (snapshots.get) * * @param string $snapshot The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. @@ -105,11 +121,16 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); } /** - * Lists the existing snapshots. [ALPHA] This method is a part of a closed Alpha - * API. (snapshots.listProjectsSnapshots) + * Lists the existing snapshots. Snapshots are used in Seek operations, which + * allow you to manage message acknowledgments in bulk. That is, you can set the + * acknowledgment state of messages in an existing subscription to the state + * captured by a snapshot. BETA: This feature is part of a beta release. This + * API might be changed in backward-incompatible ways and is not recommended for + * production use. It is not subject to any SLA or deprecation policy. + * (snapshots.listProjectsSnapshots) * - * @param string $project The name of the cloud project that snapshots belong - * to. Format is `projects/{project}`. + * @param string $project The name of the project in which to list snapshots. + * Format is `projects/{project-id}`. * @param array $optParams Optional parameters. * * @opt_param int pageSize Maximum number of snapshots to return. @@ -126,9 +147,13 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re return $this->call('list', array($params), "Google_Service_Pubsub_ListSnapshotsResponse"); } /** - * Updates an existing snapshot. Note that certain properties of a snapshot are - * not modifiable. [ALPHA] This method is a part of a closed Alpha API. - * (snapshots.patch) + * Updates an existing snapshot. Snapshots are used in Seek operations, which + * allow you to manage message acknowledgments in bulk. That is, you can set the + * acknowledgment state of messages in an existing subscription to the state + * captured by a snapshot. BETA: This feature is part of a beta release. This + * API might be changed in backward-incompatible ways and is not recommended for + * production use. It is not subject to any SLA or deprecation policy. Note that + * certain properties of a snapshot are not modifiable. (snapshots.patch) * * @param string $name The name of the snapshot. * @param Google_Service_Pubsub_UpdateSnapshotRequest $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php index 84a377c1..ea5dd51c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php @@ -47,16 +47,19 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic return $this->call('acknowledge', array($params), "Google_Service_Pubsub_PubsubEmpty"); } /** - * Creates a subscription to a given topic. If the subscription already exists, - * returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * Creates a subscription to a given topic. See the + * + * resource name rules. If the subscription already exists, returns + * `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns * `NOT_FOUND`. * * If the name is not provided in the request, the server will assign a random * name for this subscription on the same project as the topic, conforming to * the [resource name - * format](https://cloud.google.com/pubsub/docs/overview#names). The generated - * name is populated in the returned Subscription object. Note that for REST API - * requests, you must specify a name in the request. (subscriptions.create) + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Subscription object. Note that + * for REST API requests, you must specify a name in the request. + * (subscriptions.create) * * @param string $name The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must @@ -125,8 +128,8 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic /** * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) * - * @param string $project The name of the cloud project that subscriptions - * belong to. Format is `projects/{project}`. + * @param string $project The name of the project in which to list + * subscriptions. Format is `projects/{project-id}`. * @param array $optParams Optional parameters. * * @opt_param string pageToken The value returned by the last @@ -204,10 +207,9 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic return $this->call('patch', array($params), "Google_Service_Pubsub_Subscription"); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The server may return `UNAVAILABLE` if - * there are too many concurrent pull requests pending for the given - * subscription. (subscriptions.pull) + * Pulls messages from the server. The server may return `UNAVAILABLE` if there + * are too many concurrent pull requests pending for the given subscription. + * (subscriptions.pull) * * @param string $subscription The subscription from which messages should be * pulled. Format is `projects/{project}/subscriptions/{sub}`. @@ -223,8 +225,14 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic } /** * Seeks an existing subscription to a point in time or to a given snapshot, - * whichever is provided in the request. [ALPHA] This method is a part of a - * closed Alpha API. (subscriptions.seek) + * whichever is provided in the request. Snapshots are used in Seek operations, + * which allow you to manage message acknowledgments in bulk. That is, you can + * set the acknowledgment state of messages in an existing subscription to the + * state captured by a snapshot. Note that both the subscription and the + * snapshot must be on the same topic. BETA: This feature is part of a beta + * release. This API might be changed in backward-incompatible ways and is not + * recommended for production use. It is not subject to any SLA or deprecation + * policy. (subscriptions.seek) * * @param string $subscription The subscription to affect. * @param Google_Service_Pubsub_SeekRequest $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php index 720523d1..d62a1318 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php @@ -26,7 +26,9 @@ class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resource { /** - * Creates the given topic with the given name. (topics.create) + * Creates the given topic with the given name. See the + * + * resource name rules. (topics.create) * * @param string $name The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, @@ -95,8 +97,8 @@ class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resou /** * Lists matching topics. (topics.listProjectsTopics) * - * @param string $project The name of the cloud project that topics belong to. - * Format is `projects/{project}`. + * @param string $project The name of the project in which to list topics. + * Format is `projects/{project-id}`. * @param array $optParams Optional parameters. * * @opt_param string pageToken The value returned by the last @@ -111,10 +113,29 @@ class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resou $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } + /** + * Updates an existing topic. Note that certain properties of a topic are not + * modifiable. (topics.patch) + * + * @param string $name The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs + * (`%`). It must be between 3 and 255 characters in length, and it must not + * start with `"goog"`. + * @param Google_Service_Pubsub_UpdateTopicRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Topic + */ + public function patch($name, Google_Service_Pubsub_UpdateTopicRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Pubsub_Topic"); + } /** * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does - * not exist. The message payload must not be empty; it must contain either a - * non-empty data field, or at least one attribute. (topics.publish) + * not exist. (topics.publish) * * @param string $topic The messages in the request will be published on this * topic. Format is `projects/{project}/topics/{topic}`. diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSnapshots.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSnapshots.php index 93448665..ab42ee74 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSnapshots.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSnapshots.php @@ -26,8 +26,13 @@ class Google_Service_Pubsub_Resource_ProjectsTopicsSnapshots extends Google_Service_Resource { /** - * Lists the names of the snapshots on this topic. [ALPHA] This method is a part - * of a closed Alpha API. (snapshots.listProjectsTopicsSnapshots) + * Lists the names of the snapshots on this topic. Snapshots are used in Seek + * operations, which allow you to manage message acknowledgments in bulk. That + * is, you can set the acknowledgment state of messages in an existing + * subscription to the state captured by a snapshot. BETA: This feature is part + * of a beta release. This API might be changed in backward-incompatible ways + * and is not recommended for production use. It is not subject to any SLA or + * deprecation policy. (snapshots.listProjectsTopicsSnapshots) * * @param string $topic The name of the topic that snapshots are attached to. * Format is `projects/{project}/topics/{topic}`. diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php index 442fb4bc..5508dd07 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php @@ -33,11 +33,11 @@ class Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions extends Google_ * to. Format is `projects/{project}/topics/{topic}`. * @param array $optParams Optional parameters. * + * @opt_param int pageSize Maximum number of subscription names to return. * @opt_param string pageToken The value returned by the last * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a * prior `ListTopicSubscriptions` call, and that the system should return the * next page of data. - * @opt_param int pageSize Maximum number of subscription names to return. * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse */ public function listProjectsTopicsSubscriptions($topic, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Snapshot.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Snapshot.php index 73f1e2b4..d64f3a4c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Snapshot.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Snapshot.php @@ -18,6 +18,7 @@ class Google_Service_Pubsub_Snapshot extends Google_Model { public $expireTime; + public $labels; public $name; public $topic; @@ -29,6 +30,14 @@ class Google_Service_Pubsub_Snapshot extends Google_Model { return $this->expireTime; } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php index fdd9a9e1..cf792f2f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php @@ -18,6 +18,9 @@ class Google_Service_Pubsub_Subscription extends Google_Model { public $ackDeadlineSeconds; + protected $expirationPolicyType = 'Google_Service_Pubsub_ExpirationPolicy'; + protected $expirationPolicyDataType = ''; + public $labels; public $messageRetentionDuration; public $name; protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; @@ -33,6 +36,28 @@ class Google_Service_Pubsub_Subscription extends Google_Model { return $this->ackDeadlineSeconds; } + /** + * @param Google_Service_Pubsub_ExpirationPolicy + */ + public function setExpirationPolicy(Google_Service_Pubsub_ExpirationPolicy $expirationPolicy) + { + $this->expirationPolicy = $expirationPolicy; + } + /** + * @return Google_Service_Pubsub_ExpirationPolicy + */ + public function getExpirationPolicy() + { + return $this->expirationPolicy; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setMessageRetentionDuration($messageRetentionDuration) { $this->messageRetentionDuration = $messageRetentionDuration; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Topic.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Topic.php index 43685176..5bee6663 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pubsub/Topic.php +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/Topic.php @@ -17,8 +17,17 @@ class Google_Service_Pubsub_Topic extends Google_Model { + public $labels; public $name; + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/Pubsub/UpdateTopicRequest.php b/vendor/google/apiclient-services/src/Google/Service/Pubsub/UpdateTopicRequest.php new file mode 100644 index 00000000..d27cad8e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Pubsub/UpdateTopicRequest.php @@ -0,0 +1,46 @@ +topic = $topic; + } + /** + * @return Google_Service_Pubsub_Topic + */ + public function getTopic() + { + return $this->topic; + } + public function setUpdateMask($updateMask) + { + $this->updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution.php new file mode 100644 index 00000000..0a89255f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution.php @@ -0,0 +1,240 @@ + + * Supplies a Remote Execution API service for tools such as bazel.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_RemoteBuildExecution extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $actionResults; + public $actions; + public $blobs; + public $operations; + public $v2; + + /** + * Constructs the internal representation of the RemoteBuildExecution service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://remotebuildexecution.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v2'; + $this->serviceName = 'remotebuildexecution'; + + $this->actionResults = new Google_Service_RemoteBuildExecution_Resource_ActionResults( + $this, + $this->serviceName, + 'actionResults', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v2/{+instanceName}/actionResults/{hash}/{sizeBytes}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hash' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeBytes' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v2/{+instanceName}/actionResults/{hash}/{sizeBytes}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hash' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeBytes' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'resultsCachePolicy.priority' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->actions = new Google_Service_RemoteBuildExecution_Resource_Actions( + $this, + $this->serviceName, + 'actions', + array( + 'methods' => array( + 'execute' => array( + 'path' => 'v2/{+instanceName}/actions:execute', + 'httpMethod' => 'POST', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->blobs = new Google_Service_RemoteBuildExecution_Resource_Blobs( + $this, + $this->serviceName, + 'blobs', + array( + 'methods' => array( + 'batchRead' => array( + 'path' => 'v2/{+instanceName}/blobs:batchRead', + 'httpMethod' => 'POST', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'batchUpdate' => array( + 'path' => 'v2/{+instanceName}/blobs:batchUpdate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'findMissing' => array( + 'path' => 'v2/{+instanceName}/blobs:findMissing', + 'httpMethod' => 'POST', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getTree' => array( + 'path' => 'v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree', + 'httpMethod' => 'GET', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'hash' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeBytes' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_RemoteBuildExecution_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'waitExecution' => array( + 'path' => 'v2/{+name}:waitExecution', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->v2 = new Google_Service_RemoteBuildExecution_Resource_V2( + $this, + $this->serviceName, + 'v2', + array( + 'methods' => array( + 'getCapabilities' => array( + 'path' => 'v2/{+instanceName}/capabilities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'instanceName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Action.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Action.php new file mode 100644 index 00000000..28f03063 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Action.php @@ -0,0 +1,71 @@ +commandDigest = $commandDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getCommandDigest() + { + return $this->commandDigest; + } + public function setDoNotCache($doNotCache) + { + $this->doNotCache = $doNotCache; + } + public function getDoNotCache() + { + return $this->doNotCache; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setInputRootDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $inputRootDigest) + { + $this->inputRootDigest = $inputRootDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getInputRootDigest() + { + return $this->inputRootDigest; + } + public function setTimeout($timeout) + { + $this->timeout = $timeout; + } + public function getTimeout() + { + return $this->timeout; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities.php new file mode 100644 index 00000000..b3cd9c99 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities.php @@ -0,0 +1,30 @@ +updateEnabled = $updateEnabled; + } + public function getUpdateEnabled() + { + return $this->updateEnabled; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionResult.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionResult.php new file mode 100644 index 00000000..fa39a6a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ActionResult.php @@ -0,0 +1,161 @@ +executionMetadata = $executionMetadata; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutedActionMetadata + */ + public function getExecutionMetadata() + { + return $this->executionMetadata; + } + public function setExitCode($exitCode) + { + $this->exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputDirectory + */ + public function setOutputDirectories($outputDirectories) + { + $this->outputDirectories = $outputDirectories; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputDirectory + */ + public function getOutputDirectories() + { + return $this->outputDirectories; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputSymlink + */ + public function setOutputDirectorySymlinks($outputDirectorySymlinks) + { + $this->outputDirectorySymlinks = $outputDirectorySymlinks; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputSymlink + */ + public function getOutputDirectorySymlinks() + { + return $this->outputDirectorySymlinks; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputSymlink + */ + public function setOutputFileSymlinks($outputFileSymlinks) + { + $this->outputFileSymlinks = $outputFileSymlinks; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputSymlink + */ + public function getOutputFileSymlinks() + { + return $this->outputFileSymlinks; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputFile + */ + public function setOutputFiles($outputFiles) + { + $this->outputFiles = $outputFiles; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2OutputFile + */ + public function getOutputFiles() + { + return $this->outputFiles; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setStderrDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $stderrDigest) + { + $this->stderrDigest = $stderrDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getStderrDigest() + { + return $this->stderrDigest; + } + public function setStderrRaw($stderrRaw) + { + $this->stderrRaw = $stderrRaw; + } + public function getStderrRaw() + { + return $this->stderrRaw; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setStdoutDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $stdoutDigest) + { + $this->stdoutDigest = $stdoutDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getStdoutDigest() + { + return $this->stdoutDigest; + } + public function setStdoutRaw($stdoutRaw) + { + $this->stdoutRaw = $stdoutRaw; + } + public function getStdoutRaw() + { + return $this->stdoutRaw; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsRequest.php new file mode 100644 index 00000000..0dd868ea --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsRequest.php @@ -0,0 +1,38 @@ +digests = $digests; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigests() + { + return $this->digests; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponse.php new file mode 100644 index 00000000..46996064 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse.php new file mode 100644 index 00000000..ab1776a9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse.php @@ -0,0 +1,62 @@ +data = $data; + } + public function getData() + { + return $this->data; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $digest) + { + $this->digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setStatus(Google_Service_RemoteBuildExecution_GoogleRpcStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest.php new file mode 100644 index 00000000..67a1543f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest.php @@ -0,0 +1,38 @@ +requests = $requests; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest + */ + public function getRequests() + { + return $this->requests; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest.php new file mode 100644 index 00000000..95abb35c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest.php @@ -0,0 +1,46 @@ +data = $data; + } + public function getData() + { + return $this->data; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $digest) + { + $this->digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.php new file mode 100644 index 00000000..10001500 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse.php new file mode 100644 index 00000000..4e72452a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse.php @@ -0,0 +1,53 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setStatus(Google_Service_RemoteBuildExecution_GoogleRpcStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CacheCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CacheCapabilities.php new file mode 100644 index 00000000..307204cf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CacheCapabilities.php @@ -0,0 +1,81 @@ +actionCacheUpdateCapabilities = $actionCacheUpdateCapabilities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities + */ + public function getActionCacheUpdateCapabilities() + { + return $this->actionCacheUpdateCapabilities; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities + */ + public function setCachePriorityCapabilities(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities $cachePriorityCapabilities) + { + $this->cachePriorityCapabilities = $cachePriorityCapabilities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities + */ + public function getCachePriorityCapabilities() + { + return $this->cachePriorityCapabilities; + } + public function setDigestFunction($digestFunction) + { + $this->digestFunction = $digestFunction; + } + public function getDigestFunction() + { + return $this->digestFunction; + } + public function setMaxBatchTotalSizeBytes($maxBatchTotalSizeBytes) + { + $this->maxBatchTotalSizeBytes = $maxBatchTotalSizeBytes; + } + public function getMaxBatchTotalSizeBytes() + { + return $this->maxBatchTotalSizeBytes; + } + public function setSymlinkAbsolutePathStrategy($symlinkAbsolutePathStrategy) + { + $this->symlinkAbsolutePathStrategy = $symlinkAbsolutePathStrategy; + } + public function getSymlinkAbsolutePathStrategy() + { + return $this->symlinkAbsolutePathStrategy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Command.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Command.php new file mode 100644 index 00000000..51767db9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Command.php @@ -0,0 +1,90 @@ +arguments = $arguments; + } + public function getArguments() + { + return $this->arguments; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2CommandEnvironmentVariable + */ + public function setEnvironmentVariables($environmentVariables) + { + $this->environmentVariables = $environmentVariables; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2CommandEnvironmentVariable + */ + public function getEnvironmentVariables() + { + return $this->environmentVariables; + } + public function setOutputDirectories($outputDirectories) + { + $this->outputDirectories = $outputDirectories; + } + public function getOutputDirectories() + { + return $this->outputDirectories; + } + public function setOutputFiles($outputFiles) + { + $this->outputFiles = $outputFiles; + } + public function getOutputFiles() + { + return $this->outputFiles; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Platform + */ + public function setPlatform(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Platform $platform) + { + $this->platform = $platform; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Platform + */ + public function getPlatform() + { + return $this->platform; + } + public function setWorkingDirectory($workingDirectory) + { + $this->workingDirectory = $workingDirectory; + } + public function getWorkingDirectory() + { + return $this->workingDirectory; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CommandEnvironmentVariable.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CommandEnvironmentVariable.php new file mode 100644 index 00000000..e25ee997 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2CommandEnvironmentVariable.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Digest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Digest.php new file mode 100644 index 00000000..2d88eb26 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Digest.php @@ -0,0 +1,39 @@ +hash = $hash; + } + public function getHash() + { + return $this->hash; + } + public function setSizeBytes($sizeBytes) + { + $this->sizeBytes = $sizeBytes; + } + public function getSizeBytes() + { + return $this->sizeBytes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Directory.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Directory.php new file mode 100644 index 00000000..ce546225 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Directory.php @@ -0,0 +1,70 @@ +directories = $directories; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2DirectoryNode + */ + public function getDirectories() + { + return $this->directories; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FileNode + */ + public function setFiles($files) + { + $this->files = $files; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FileNode + */ + public function getFiles() + { + return $this->files; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2SymlinkNode + */ + public function setSymlinks($symlinks) + { + $this->symlinks = $symlinks; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2SymlinkNode + */ + public function getSymlinks() + { + return $this->symlinks; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2DirectoryNode.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2DirectoryNode.php new file mode 100644 index 00000000..993bb6c0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2DirectoryNode.php @@ -0,0 +1,46 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteOperationMetadata.php new file mode 100644 index 00000000..6b416ffd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteOperationMetadata.php @@ -0,0 +1,64 @@ +actionDigest = $actionDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getActionDigest() + { + return $this->actionDigest; + } + public function setStage($stage) + { + $this->stage = $stage; + } + public function getStage() + { + return $this->stage; + } + public function setStderrStreamName($stderrStreamName) + { + $this->stderrStreamName = $stderrStreamName; + } + public function getStderrStreamName() + { + return $this->stderrStreamName; + } + public function setStdoutStreamName($stdoutStreamName) + { + $this->stdoutStreamName = $stdoutStreamName; + } + public function getStdoutStreamName() + { + return $this->stdoutStreamName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteRequest.php new file mode 100644 index 00000000..c94b22f8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteRequest.php @@ -0,0 +1,78 @@ +actionDigest = $actionDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getActionDigest() + { + return $this->actionDigest; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionPolicy + */ + public function setExecutionPolicy(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionPolicy $executionPolicy) + { + $this->executionPolicy = $executionPolicy; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionPolicy + */ + public function getExecutionPolicy() + { + return $this->executionPolicy; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ResultsCachePolicy + */ + public function setResultsCachePolicy(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ResultsCachePolicy $resultsCachePolicy) + { + $this->resultsCachePolicy = $resultsCachePolicy; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ResultsCachePolicy + */ + public function getResultsCachePolicy() + { + return $this->resultsCachePolicy; + } + public function setSkipCacheLookup($skipCacheLookup) + { + $this->skipCacheLookup = $skipCacheLookup; + } + public function getSkipCacheLookup() + { + return $this->skipCacheLookup; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteResponse.php new file mode 100644 index 00000000..a072bffc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecuteResponse.php @@ -0,0 +1,87 @@ +cachedResult = $cachedResult; + } + public function getCachedResult() + { + return $this->cachedResult; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult + */ + public function setResult(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult $result) + { + $this->result = $result; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult + */ + public function getResult() + { + return $this->result; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2LogFile + */ + public function setServerLogs($serverLogs) + { + $this->serverLogs = $serverLogs; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2LogFile + */ + public function getServerLogs() + { + return $this->serverLogs; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setStatus(Google_Service_RemoteBuildExecution_GoogleRpcStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutedActionMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutedActionMetadata.php new file mode 100644 index 00000000..7b3c4f71 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutedActionMetadata.php @@ -0,0 +1,111 @@ +executionCompletedTimestamp = $executionCompletedTimestamp; + } + public function getExecutionCompletedTimestamp() + { + return $this->executionCompletedTimestamp; + } + public function setExecutionStartTimestamp($executionStartTimestamp) + { + $this->executionStartTimestamp = $executionStartTimestamp; + } + public function getExecutionStartTimestamp() + { + return $this->executionStartTimestamp; + } + public function setInputFetchCompletedTimestamp($inputFetchCompletedTimestamp) + { + $this->inputFetchCompletedTimestamp = $inputFetchCompletedTimestamp; + } + public function getInputFetchCompletedTimestamp() + { + return $this->inputFetchCompletedTimestamp; + } + public function setInputFetchStartTimestamp($inputFetchStartTimestamp) + { + $this->inputFetchStartTimestamp = $inputFetchStartTimestamp; + } + public function getInputFetchStartTimestamp() + { + return $this->inputFetchStartTimestamp; + } + public function setOutputUploadCompletedTimestamp($outputUploadCompletedTimestamp) + { + $this->outputUploadCompletedTimestamp = $outputUploadCompletedTimestamp; + } + public function getOutputUploadCompletedTimestamp() + { + return $this->outputUploadCompletedTimestamp; + } + public function setOutputUploadStartTimestamp($outputUploadStartTimestamp) + { + $this->outputUploadStartTimestamp = $outputUploadStartTimestamp; + } + public function getOutputUploadStartTimestamp() + { + return $this->outputUploadStartTimestamp; + } + public function setQueuedTimestamp($queuedTimestamp) + { + $this->queuedTimestamp = $queuedTimestamp; + } + public function getQueuedTimestamp() + { + return $this->queuedTimestamp; + } + public function setWorker($worker) + { + $this->worker = $worker; + } + public function getWorker() + { + return $this->worker; + } + public function setWorkerCompletedTimestamp($workerCompletedTimestamp) + { + $this->workerCompletedTimestamp = $workerCompletedTimestamp; + } + public function getWorkerCompletedTimestamp() + { + return $this->workerCompletedTimestamp; + } + public function setWorkerStartTimestamp($workerStartTimestamp) + { + $this->workerStartTimestamp = $workerStartTimestamp; + } + public function getWorkerStartTimestamp() + { + return $this->workerStartTimestamp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionCapabilities.php new file mode 100644 index 00000000..6126cafc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionCapabilities.php @@ -0,0 +1,55 @@ +digestFunction = $digestFunction; + } + public function getDigestFunction() + { + return $this->digestFunction; + } + public function setExecEnabled($execEnabled) + { + $this->execEnabled = $execEnabled; + } + public function getExecEnabled() + { + return $this->execEnabled; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities + */ + public function setExecutionPriorityCapabilities(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities $executionPriorityCapabilities) + { + $this->executionPriorityCapabilities = $executionPriorityCapabilities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilities + */ + public function getExecutionPriorityCapabilities() + { + return $this->executionPriorityCapabilities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionPolicy.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionPolicy.php new file mode 100644 index 00000000..a4e4552e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ExecutionPolicy.php @@ -0,0 +1,30 @@ +priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FileNode.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FileNode.php new file mode 100644 index 00000000..208dc796 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FileNode.php @@ -0,0 +1,55 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setIsExecutable($isExecutable) + { + $this->isExecutable = $isExecutable; + } + public function getIsExecutable() + { + return $this->isExecutable; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsRequest.php new file mode 100644 index 00000000..c020077d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsRequest.php @@ -0,0 +1,38 @@ +blobDigests = $blobDigests; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getBlobDigests() + { + return $this->blobDigests; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsResponse.php new file mode 100644 index 00000000..af545237 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2FindMissingBlobsResponse.php @@ -0,0 +1,38 @@ +missingBlobDigests = $missingBlobDigests; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getMissingBlobDigests() + { + return $this->missingBlobDigests; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2GetTreeResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2GetTreeResponse.php new file mode 100644 index 00000000..e2e44331 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2GetTreeResponse.php @@ -0,0 +1,47 @@ +directories = $directories; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Directory + */ + public function getDirectories() + { + return $this->directories; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2LogFile.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2LogFile.php new file mode 100644 index 00000000..192c877b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2LogFile.php @@ -0,0 +1,46 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setHumanReadable($humanReadable) + { + $this->humanReadable = $humanReadable; + } + public function getHumanReadable() + { + return $this->humanReadable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputDirectory.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputDirectory.php new file mode 100644 index 00000000..bdf4cac4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputDirectory.php @@ -0,0 +1,46 @@ +path = $path; + } + public function getPath() + { + return $this->path; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function setTreeDigest(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest $treeDigest) + { + $this->treeDigest = $treeDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getTreeDigest() + { + return $this->treeDigest; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputFile.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputFile.php new file mode 100644 index 00000000..3b802b24 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputFile.php @@ -0,0 +1,55 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setIsExecutable($isExecutable) + { + $this->isExecutable = $isExecutable; + } + public function getIsExecutable() + { + return $this->isExecutable; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputSymlink.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputSymlink.php new file mode 100644 index 00000000..7e590af3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2OutputSymlink.php @@ -0,0 +1,39 @@ +path = $path; + } + public function getPath() + { + return $this->path; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Platform.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Platform.php new file mode 100644 index 00000000..f2529e5f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Platform.php @@ -0,0 +1,38 @@ +properties = $properties; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PlatformProperty + */ + public function getProperties() + { + return $this->properties; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PlatformProperty.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PlatformProperty.php new file mode 100644 index 00000000..83498665 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PlatformProperty.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilities.php new file mode 100644 index 00000000..52f99cac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilities.php @@ -0,0 +1,38 @@ +priorities = $priorities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange + */ + public function getPriorities() + { + return $this->priorities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange.php new file mode 100644 index 00000000..1961958b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange.php @@ -0,0 +1,39 @@ +maxPriority = $maxPriority; + } + public function getMaxPriority() + { + return $this->maxPriority; + } + public function setMinPriority($minPriority) + { + $this->minPriority = $minPriority; + } + public function getMinPriority() + { + return $this->minPriority; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2RequestMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2RequestMetadata.php new file mode 100644 index 00000000..49fe92ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2RequestMetadata.php @@ -0,0 +1,64 @@ +actionId = $actionId; + } + public function getActionId() + { + return $this->actionId; + } + public function setCorrelatedInvocationsId($correlatedInvocationsId) + { + $this->correlatedInvocationsId = $correlatedInvocationsId; + } + public function getCorrelatedInvocationsId() + { + return $this->correlatedInvocationsId; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ToolDetails + */ + public function setToolDetails(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ToolDetails $toolDetails) + { + $this->toolDetails = $toolDetails; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ToolDetails + */ + public function getToolDetails() + { + return $this->toolDetails; + } + public function setToolInvocationId($toolInvocationId) + { + $this->toolInvocationId = $toolInvocationId; + } + public function getToolInvocationId() + { + return $this->toolInvocationId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ResultsCachePolicy.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ResultsCachePolicy.php new file mode 100644 index 00000000..49aa9b75 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ResultsCachePolicy.php @@ -0,0 +1,30 @@ +priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ServerCapabilities.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ServerCapabilities.php new file mode 100644 index 00000000..71f1093a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ServerCapabilities.php @@ -0,0 +1,101 @@ +cacheCapabilities = $cacheCapabilities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2CacheCapabilities + */ + public function getCacheCapabilities() + { + return $this->cacheCapabilities; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function setDeprecatedApiVersion(Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer $deprecatedApiVersion) + { + $this->deprecatedApiVersion = $deprecatedApiVersion; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function getDeprecatedApiVersion() + { + return $this->deprecatedApiVersion; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionCapabilities + */ + public function setExecutionCapabilities(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionCapabilities $executionCapabilities) + { + $this->executionCapabilities = $executionCapabilities; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecutionCapabilities + */ + public function getExecutionCapabilities() + { + return $this->executionCapabilities; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function setHighApiVersion(Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer $highApiVersion) + { + $this->highApiVersion = $highApiVersion; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function getHighApiVersion() + { + return $this->highApiVersion; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function setLowApiVersion(Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer $lowApiVersion) + { + $this->lowApiVersion = $lowApiVersion; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelSemverSemVer + */ + public function getLowApiVersion() + { + return $this->lowApiVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2SymlinkNode.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2SymlinkNode.php new file mode 100644 index 00000000..10c767bf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2SymlinkNode.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setTarget($target) + { + $this->target = $target; + } + public function getTarget() + { + return $this->target; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ToolDetails.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ToolDetails.php new file mode 100644 index 00000000..ef794e90 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2ToolDetails.php @@ -0,0 +1,39 @@ +toolName = $toolName; + } + public function getToolName() + { + return $this->toolName; + } + public function setToolVersion($toolVersion) + { + $this->toolVersion = $toolVersion; + } + public function getToolVersion() + { + return $this->toolVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Tree.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Tree.php new file mode 100644 index 00000000..4ce11411 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2Tree.php @@ -0,0 +1,54 @@ +children = $children; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Directory + */ + public function getChildren() + { + return $this->children; + } + /** + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Directory + */ + public function setRoot(Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Directory $root) + { + $this->root = $root; + } + /** + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2Directory + */ + public function getRoot() + { + return $this->root; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2WaitExecutionRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2WaitExecutionRequest.php new file mode 100644 index 00000000..67741fe7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/BuildBazelRemoteExecutionV2WaitExecutionRequest.php @@ -0,0 +1,20 @@ +major = $major; + } + public function getMajor() + { + return $this->major; + } + public function setMinor($minor) + { + $this->minor = $minor; + } + public function getMinor() + { + return $this->minor; + } + public function setPatch($patch) + { + $this->patch = $patch; + } + public function getPatch() + { + return $this->patch; + } + public function setPrerelease($prerelease) + { + $this->prerelease = $prerelease; + } + public function getPrerelease() + { + return $this->prerelease; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandDurations.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandDurations.php new file mode 100644 index 00000000..f224d4d8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandDurations.php @@ -0,0 +1,84 @@ +dockerPrep = $dockerPrep; + } + public function getDockerPrep() + { + return $this->dockerPrep; + } + public function setDownload($download) + { + $this->download = $download; + } + public function getDownload() + { + return $this->download; + } + public function setExecution($execution) + { + $this->execution = $execution; + } + public function getExecution() + { + return $this->execution; + } + public function setIsoPrepDone($isoPrepDone) + { + $this->isoPrepDone = $isoPrepDone; + } + public function getIsoPrepDone() + { + return $this->isoPrepDone; + } + public function setOverall($overall) + { + $this->overall = $overall; + } + public function getOverall() + { + return $this->overall; + } + public function setStdout($stdout) + { + $this->stdout = $stdout; + } + public function getStdout() + { + return $this->stdout; + } + public function setUpload($upload) + { + $this->upload = $upload; + } + public function getUpload() + { + return $this->upload; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandEvents.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandEvents.php new file mode 100644 index 00000000..7b6de39c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildbotCommandEvents.php @@ -0,0 +1,57 @@ +dockerCacheHit = $dockerCacheHit; + } + public function getDockerCacheHit() + { + return $this->dockerCacheHit; + } + public function setInputCacheMiss($inputCacheMiss) + { + $this->inputCacheMiss = $inputCacheMiss; + } + public function getInputCacheMiss() + { + return $this->inputCacheMiss; + } + public function setNumErrors($numErrors) + { + $this->numErrors = $numErrors; + } + public function getNumErrors() + { + return $this->numErrors; + } + public function setNumWarnings($numWarnings) + { + $this->numWarnings = $numWarnings; + } + public function getNumWarnings() + { + return $this->numWarnings; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest.php new file mode 100644 index 00000000..15ffe967 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest.php @@ -0,0 +1,55 @@ +instance = $instance; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance + */ + public function getInstance() + { + return $this->instance; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setParent($parent) + { + $this->parent = $parent; + } + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest.php new file mode 100644 index 00000000..87d08e87 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest.php @@ -0,0 +1,55 @@ +parent = $parent; + } + public function getParent() + { + return $this->parent; + } + public function setPoolId($poolId) + { + $this->poolId = $poolId; + } + public function getPoolId() + { + return $this->poolId; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool + */ + public function setWorkerPool(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool $workerPool) + { + $this->workerPool = $workerPool; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool + */ + public function getWorkerPool() + { + return $this->workerPool; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest.php new file mode 100644 index 00000000..c06532da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteInstanceRequest.php @@ -0,0 +1,30 @@ +name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest.php new file mode 100644 index 00000000..eb757d29 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaDeleteWorkerPoolRequest.php @@ -0,0 +1,30 @@ +name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest.php new file mode 100644 index 00000000..71b0a4b4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest.php @@ -0,0 +1,30 @@ +name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest.php new file mode 100644 index 00000000..5ad0cd45 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetWorkerPoolRequest.php @@ -0,0 +1,30 @@ +name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.php new file mode 100644 index 00000000..e8f858f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.php @@ -0,0 +1,57 @@ +location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setLoggingEnabled($loggingEnabled) + { + $this->loggingEnabled = $loggingEnabled; + } + public function getLoggingEnabled() + { + return $this->loggingEnabled; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest.php new file mode 100644 index 00000000..55722301 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest.php @@ -0,0 +1,30 @@ +parent = $parent; + } + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.php similarity index 60% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php rename to vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.php index 25778d92..c97859c7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse.php @@ -15,15 +15,22 @@ * the License. */ -class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection +class Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse extends Google_Collection { protected $collection_key = 'instances'; - public $instances; + protected $instancesType = 'Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance'; + protected $instancesDataType = 'array'; + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance + */ public function setInstances($instances) { $this->instances = $instances; } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance + */ public function getInstances() { return $this->instances; diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest.php new file mode 100644 index 00000000..a8340b5a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest.php @@ -0,0 +1,30 @@ +parent = $parent; + } + public function getParent() + { + return $this->parent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse.php new file mode 100644 index 00000000..2d1f3291 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse.php @@ -0,0 +1,38 @@ +workerPools = $workerPools; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool + */ + public function getWorkerPools() + { + return $this->workerPools; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest.php new file mode 100644 index 00000000..05a64d9b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest.php @@ -0,0 +1,46 @@ +updateMask = $updateMask; + } + public function getUpdateMask() + { + return $this->updateMask; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool + */ + public function setWorkerPool(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool $workerPool) + { + $this->workerPool = $workerPool; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool + */ + public function getWorkerPool() + { + return $this->workerPool; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.php new file mode 100644 index 00000000..3ad3ab37 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.php @@ -0,0 +1,66 @@ +diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } + public function setMinCpuPlatform($minCpuPlatform) + { + $this->minCpuPlatform = $minCpuPlatform; + } + public function getMinCpuPlatform() + { + return $this->minCpuPlatform; + } + public function setReserved($reserved) + { + $this->reserved = $reserved; + } + public function getReserved() + { + return $this->reserved; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.php new file mode 100644 index 00000000..1ce79f3b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.php @@ -0,0 +1,64 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig + */ + public function setWorkerConfig(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig $workerConfig) + { + $this->workerConfig = $workerConfig; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig + */ + public function getWorkerConfig() + { + return $this->workerConfig; + } + public function setWorkerCount($workerCount) + { + $this->workerCount = $workerCount; + } + public function getWorkerCount() + { + return $this->workerCount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testActionResult.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testActionResult.php new file mode 100644 index 00000000..34ec09c8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testActionResult.php @@ -0,0 +1,113 @@ +exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testOutputDirectory + */ + public function setOutputDirectories($outputDirectories) + { + $this->outputDirectories = $outputDirectories; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testOutputDirectory + */ + public function getOutputDirectories() + { + return $this->outputDirectories; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testOutputFile + */ + public function setOutputFiles($outputFiles) + { + $this->outputFiles = $outputFiles; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testOutputFile + */ + public function getOutputFiles() + { + return $this->outputFiles; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function setStderrDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest $stderrDigest) + { + $this->stderrDigest = $stderrDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getStderrDigest() + { + return $this->stderrDigest; + } + public function setStderrRaw($stderrRaw) + { + $this->stderrRaw = $stderrRaw; + } + public function getStderrRaw() + { + return $this->stderrRaw; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function setStdoutDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest $stdoutDigest) + { + $this->stdoutDigest = $stdoutDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getStdoutDigest() + { + return $this->stdoutDigest; + } + public function setStdoutRaw($stdoutRaw) + { + $this->stdoutRaw = $stdoutRaw; + } + public function getStdoutRaw() + { + return $this->stdoutRaw; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommand.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommand.php new file mode 100644 index 00000000..e2188cc4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommand.php @@ -0,0 +1,47 @@ +arguments = $arguments; + } + public function getArguments() + { + return $this->arguments; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable + */ + public function setEnvironmentVariables($environmentVariables) + { + $this->environmentVariables = $environmentVariables; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable + */ + public function getEnvironmentVariables() + { + return $this->environmentVariables; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable.php new file mode 100644 index 00000000..66a49329 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testCommandEnvironmentVariable.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDigest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDigest.php new file mode 100644 index 00000000..6b28839a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDigest.php @@ -0,0 +1,39 @@ +hash = $hash; + } + public function getHash() + { + return $this->hash; + } + public function setSizeBytes($sizeBytes) + { + $this->sizeBytes = $sizeBytes; + } + public function getSizeBytes() + { + return $this->sizeBytes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectory.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectory.php new file mode 100644 index 00000000..a72040b8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectory.php @@ -0,0 +1,54 @@ +directories = $directories; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDirectoryNode + */ + public function getDirectories() + { + return $this->directories; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testFileNode + */ + public function setFiles($files) + { + $this->files = $files; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testFileNode + */ + public function getFiles() + { + return $this->files; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectoryNode.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectoryNode.php new file mode 100644 index 00000000..245e59a7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testDirectoryNode.php @@ -0,0 +1,46 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getDigest() + { + return $this->digest; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata.php new file mode 100644 index 00000000..532ebf33 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteOperationMetadata.php @@ -0,0 +1,64 @@ +actionDigest = $actionDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getActionDigest() + { + return $this->actionDigest; + } + public function setStage($stage) + { + $this->stage = $stage; + } + public function getStage() + { + return $this->stage; + } + public function setStderrStreamName($stderrStreamName) + { + $this->stderrStreamName = $stderrStreamName; + } + public function getStderrStreamName() + { + return $this->stderrStreamName; + } + public function setStdoutStreamName($stdoutStreamName) + { + $this->stdoutStreamName = $stdoutStreamName; + } + public function getStdoutStreamName() + { + return $this->stdoutStreamName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteResponse.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteResponse.php new file mode 100644 index 00000000..b2ef8283 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testExecuteResponse.php @@ -0,0 +1,78 @@ +cachedResult = $cachedResult; + } + public function getCachedResult() + { + return $this->cachedResult; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testActionResult + */ + public function setResult(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testActionResult $result) + { + $this->result = $result; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testActionResult + */ + public function getResult() + { + return $this->result; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testLogFile + */ + public function setServerLogs($serverLogs) + { + $this->serverLogs = $serverLogs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testLogFile + */ + public function getServerLogs() + { + return $this->serverLogs; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setStatus(Google_Service_RemoteBuildExecution_GoogleRpcStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testFileNode.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testFileNode.php new file mode 100644 index 00000000..0b0f4f3b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testFileNode.php @@ -0,0 +1,55 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getDigest() + { + return $this->digest; + } + public function setIsExecutable($isExecutable) + { + $this->isExecutable = $isExecutable; + } + public function getIsExecutable() + { + return $this->isExecutable; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testLogFile.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testLogFile.php new file mode 100644 index 00000000..55b21bf8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testLogFile.php @@ -0,0 +1,46 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getDigest() + { + return $this->digest; + } + public function setHumanReadable($humanReadable) + { + $this->humanReadable = $humanReadable; + } + public function getHumanReadable() + { + return $this->humanReadable; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputDirectory.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputDirectory.php new file mode 100644 index 00000000..b4a38cfa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputDirectory.php @@ -0,0 +1,62 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getDigest() + { + return $this->digest; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function setTreeDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest $treeDigest) + { + $this->treeDigest = $treeDigest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getTreeDigest() + { + return $this->treeDigest; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputFile.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputFile.php new file mode 100644 index 00000000..957f6c10 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testOutputFile.php @@ -0,0 +1,64 @@ +content = $content; + } + public function getContent() + { + return $this->content; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function setDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest $digest) + { + $this->digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDigest + */ + public function getDigest() + { + return $this->digest; + } + public function setIsExecutable($isExecutable) + { + $this->isExecutable = $isExecutable; + } + public function getIsExecutable() + { + return $this->isExecutable; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testRequestMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testRequestMetadata.php new file mode 100644 index 00000000..1830ff52 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testRequestMetadata.php @@ -0,0 +1,64 @@ +actionId = $actionId; + } + public function getActionId() + { + return $this->actionId; + } + public function setCorrelatedInvocationsId($correlatedInvocationsId) + { + $this->correlatedInvocationsId = $correlatedInvocationsId; + } + public function getCorrelatedInvocationsId() + { + return $this->correlatedInvocationsId; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testToolDetails + */ + public function setToolDetails(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testToolDetails $toolDetails) + { + $this->toolDetails = $toolDetails; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testToolDetails + */ + public function getToolDetails() + { + return $this->toolDetails; + } + public function setToolInvocationId($toolInvocationId) + { + $this->toolInvocationId = $toolInvocationId; + } + public function getToolInvocationId() + { + return $this->toolInvocationId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/CancelLeaseRequest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testToolDetails.php similarity index 59% rename from vendor/google/apiclient-services/src/Google/Service/CloudTasks/CancelLeaseRequest.php rename to vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testToolDetails.php index b4a20282..f9d148ee 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudTasks/CancelLeaseRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testToolDetails.php @@ -15,25 +15,25 @@ * the License. */ -class Google_Service_CloudTasks_CancelLeaseRequest extends Google_Model +class Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testToolDetails extends Google_Model { - public $responseView; - public $scheduleTime; + public $toolName; + public $toolVersion; - public function setResponseView($responseView) + public function setToolName($toolName) { - $this->responseView = $responseView; + $this->toolName = $toolName; } - public function getResponseView() + public function getToolName() { - return $this->responseView; + return $this->toolName; } - public function setScheduleTime($scheduleTime) + public function setToolVersion($toolVersion) { - $this->scheduleTime = $scheduleTime; + $this->toolVersion = $toolVersion; } - public function getScheduleTime() + public function getToolVersion() { - return $this->scheduleTime; + return $this->toolVersion; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testTree.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testTree.php new file mode 100644 index 00000000..6500d371 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteexecutionV1testTree.php @@ -0,0 +1,54 @@ +children = $children; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDirectory + */ + public function getChildren() + { + return $this->children; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDirectory + */ + public function setRoot(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDirectory $root) + { + $this->root = $root; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteexecutionV1testDirectory + */ + public function getRoot() + { + return $this->root; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2AdminTemp.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2AdminTemp.php new file mode 100644 index 00000000..b3965b15 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2AdminTemp.php @@ -0,0 +1,39 @@ +arg = $arg; + } + public function getArg() + { + return $this->arg; + } + public function setCommand($command) + { + $this->command = $command; + } + public function getCommand() + { + return $this->command; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Blob.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Blob.php new file mode 100644 index 00000000..2dbc9d5e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Blob.php @@ -0,0 +1,46 @@ +contents = $contents; + } + public function getContents() + { + return $this->contents; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function setDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest $digest) + { + $this->digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getDigest() + { + return $this->digest; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOutputs.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOutputs.php new file mode 100644 index 00000000..7e938335 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOutputs.php @@ -0,0 +1,46 @@ +exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function setOutputs(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest $outputs) + { + $this->outputs = $outputs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getOutputs() + { + return $this->outputs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOverhead.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOverhead.php new file mode 100644 index 00000000..e94ce20f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandOverhead.php @@ -0,0 +1,39 @@ +duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setOverhead($overhead) + { + $this->overhead = $overhead; + } + public function getOverhead() + { + return $this->overhead; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandResult.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandResult.php new file mode 100644 index 00000000..6dbcf09b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandResult.php @@ -0,0 +1,90 @@ +duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setExitCode($exitCode) + { + $this->exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function setOutputs(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest $outputs) + { + $this->outputs = $outputs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getOutputs() + { + return $this->outputs; + } + public function setOverhead($overhead) + { + $this->overhead = $overhead; + } + public function getOverhead() + { + return $this->overhead; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setStatus(Google_Service_RemoteBuildExecution_GoogleRpcStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTask.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTask.php new file mode 100644 index 00000000..41c51243 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTask.php @@ -0,0 +1,69 @@ +expectedOutputs = $expectedOutputs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs + */ + public function getExpectedOutputs() + { + return $this->expectedOutputs; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs + */ + public function setInputs(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs $inputs) + { + $this->inputs = $inputs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs + */ + public function getInputs() + { + return $this->inputs; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts + */ + public function setTimeouts(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts $timeouts) + { + $this->timeouts = $timeouts; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts + */ + public function getTimeouts() + { + return $this->timeouts; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs.php new file mode 100644 index 00000000..211e9057 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs.php @@ -0,0 +1,79 @@ +arguments = $arguments; + } + public function getArguments() + { + return $this->arguments; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable + */ + public function setEnvironmentVariables($environmentVariables) + { + $this->environmentVariables = $environmentVariables; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable + */ + public function getEnvironmentVariables() + { + return $this->environmentVariables; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function setFiles($files) + { + $this->files = $files; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getFiles() + { + return $this->files; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Blob + */ + public function setInlineBlobs($inlineBlobs) + { + $this->inlineBlobs = $inlineBlobs; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Blob + */ + public function getInlineBlobs() + { + return $this->inlineBlobs; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable.php new file mode 100644 index 00000000..c9ed5846 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs.php new file mode 100644 index 00000000..227671ec --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs.php @@ -0,0 +1,58 @@ +directories = $directories; + } + public function getDirectories() + { + return $this->directories; + } + public function setFiles($files) + { + $this->files = $files; + } + public function getFiles() + { + return $this->files; + } + public function setStderrDestination($stderrDestination) + { + $this->stderrDestination = $stderrDestination; + } + public function getStderrDestination() + { + return $this->stderrDestination; + } + public function setStdoutDestination($stdoutDestination) + { + $this->stdoutDestination = $stdoutDestination; + } + public function getStdoutDestination() + { + return $this->stdoutDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.php new file mode 100644 index 00000000..fe17a3c4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.php @@ -0,0 +1,48 @@ +execution = $execution; + } + public function getExecution() + { + return $this->execution; + } + public function setIdle($idle) + { + $this->idle = $idle; + } + public function getIdle() + { + return $this->idle; + } + public function setShutdown($shutdown) + { + $this->shutdown = $shutdown; + } + public function getShutdown() + { + return $this->shutdown; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Digest.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Digest.php new file mode 100644 index 00000000..4d4a5a59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Digest.php @@ -0,0 +1,39 @@ +hash = $hash; + } + public function getHash() + { + return $this->hash; + } + public function setSizeBytes($sizeBytes) + { + $this->sizeBytes = $sizeBytes; + } + public function getSizeBytes() + { + return $this->sizeBytes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Directory.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Directory.php new file mode 100644 index 00000000..947923be --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2Directory.php @@ -0,0 +1,54 @@ +directories = $directories; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata + */ + public function getDirectories() + { + return $this->directories; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2FileMetadata + */ + public function setFiles($files) + { + $this->files = $files; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2FileMetadata + */ + public function getFiles() + { + return $this->files; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata.php new file mode 100644 index 00000000..a7b89090 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata.php @@ -0,0 +1,46 @@ +digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2FileMetadata.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2FileMetadata.php new file mode 100644 index 00000000..6b917bf7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleDevtoolsRemoteworkersV1test2FileMetadata.php @@ -0,0 +1,64 @@ +contents = $contents; + } + public function getContents() + { + return $this->contents; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function setDigest(Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest $digest) + { + $this->digest = $digest; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleDevtoolsRemoteworkersV1test2Digest + */ + public function getDigest() + { + return $this->digest; + } + public function setIsExecutable($isExecutable) + { + $this->isExecutable = $isExecutable; + } + public function getIsExecutable() + { + return $this->isExecutable; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleLongrunningOperation.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleLongrunningOperation.php new file mode 100644 index 00000000..4c348bac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleLongrunningOperation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function setError(Google_Service_RemoteBuildExecution_GoogleRpcStatus $error) + { + $this->error = $error; + } + /** + * @return Google_Service_RemoteBuildExecution_GoogleRpcStatus + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleRpcStatus.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleRpcStatus.php new file mode 100644 index 00000000..29409f3e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/GoogleRpcStatus.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/ActionResults.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/ActionResults.php new file mode 100644 index 00000000..e68e7a57 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/ActionResults.php @@ -0,0 +1,97 @@ + + * $remotebuildexecutionService = new Google_Service_RemoteBuildExecution(...); + * $actionResults = $remotebuildexecutionService->actionResults; + * + */ +class Google_Service_RemoteBuildExecution_Resource_ActionResults extends Google_Service_Resource +{ + /** + * Retrieve a cached execution result. + * + * Errors: + * + * * `NOT_FOUND`: The requested `ActionResult` is not in the cache. + * (actionResults.get) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param string $hash The hash. In the case of SHA-256, it will always be a + * lowercase hex string exactly 64 characters long. + * @param string $sizeBytes The size of the blob, in bytes. + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult + */ + public function get($instanceName, $hash, $sizeBytes, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'hash' => $hash, 'sizeBytes' => $sizeBytes); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult"); + } + /** + * Upload a new execution result. + * + * In order to allow the server to perform access control based on the type of + * action, and to assist with client debugging, the client MUST first upload the + * Action that produced the result, along with its Command, into the + * `ContentAddressableStorage`. + * + * Errors: + * + * * `INVALID_ARGUMENT`: One or more arguments are invalid. * + * `FAILED_PRECONDITION`: One or more errors occurred in updating the action + * result, such as a missing command or action. * `RESOURCE_EXHAUSTED`: There is + * insufficient storage space to add the entry to the cache. + * (actionResults.update) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param string $hash The hash. In the case of SHA-256, it will always be a + * lowercase hex string exactly 64 characters long. + * @param string $sizeBytes The size of the blob, in bytes. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult $postBody + * @param array $optParams Optional parameters. + * + * @opt_param int resultsCachePolicy.priority The priority (relative importance) + * of this content in the overall cache. Generally, a lower value means a longer + * retention time or other advantage, but the interpretation of a given value is + * server-dependent. A priority of 0 means a *default* value, decided by the + * server. + * + * The particular semantics of this field is up to the server. In particular, + * every server will have their own supported range of priorities, and will + * decide how these map into retention/eviction policy. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult + */ + public function update($instanceName, $hash, $sizeBytes, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult $postBody, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'hash' => $hash, 'sizeBytes' => $sizeBytes, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ActionResult"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Actions.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Actions.php new file mode 100644 index 00000000..d87c834e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Actions.php @@ -0,0 +1,97 @@ + + * $remotebuildexecutionService = new Google_Service_RemoteBuildExecution(...); + * $actions = $remotebuildexecutionService->actions; + * + */ +class Google_Service_RemoteBuildExecution_Resource_Actions extends Google_Service_Resource +{ + /** + * Execute an action remotely. + * + * In order to execute an action, the client must first upload all of the + * inputs, the Command to run, and the Action into the + * ContentAddressableStorage. It then calls `Execute` with an `action_digest` + * referring to them. The server will run the action and eventually return the + * result. + * + * The input `Action`'s fields MUST meet the various canonicalization + * requirements specified in the documentation for their types so that it has + * the same digest as other logically equivalent `Action`s. The server MAY + * enforce the requirements and return errors if a non-canonical input is + * received. It MAY also proceed without verifying some or all of the + * requirements, such as for performance reasons. If the server does not verify + * the requirement, then it will treat the `Action` as distinct from another + * logically equivalent action if they hash differently. + * + * Returns a stream of google.longrunning.Operation messages describing the + * resulting execution, with eventual `response` ExecuteResponse. The `metadata` + * on the operation is of type ExecuteOperationMetadata. + * + * If the client remains connected after the first response is returned after + * the server, then updates are streamed as if the client had called + * WaitExecution until the execution completes or the request reaches an error. + * The operation can also be queried using Operations API. + * + * The server NEED NOT implement other methods or functionality of the + * Operations API. + * + * Errors discovered during creation of the `Operation` will be reported as gRPC + * Status errors, while errors that occurred while running the action will be + * reported in the `status` field of the `ExecuteResponse`. The server MUST NOT + * set the `error` field of the `Operation` proto. The possible errors include: + * + * * `INVALID_ARGUMENT`: One or more arguments are invalid. * + * `FAILED_PRECONDITION`: One or more errors occurred in setting up the action + * requested, such as a missing input or command or no worker being available. + * The client may be able to fix the errors and retry. * `RESOURCE_EXHAUSTED`: + * There is insufficient quota of some resource to run the action. * + * `UNAVAILABLE`: Due to a transient condition, such as all workers being + * occupied (and the server does not support a queue), the action could not be + * started. The client should retry. * `INTERNAL`: An internal error occurred in + * the execution engine or the worker. * `DEADLINE_EXCEEDED`: The execution + * timed out. * `CANCELLED`: The operation was cancelled by the client. This + * status is only possible if the server implements the Operations API + * CancelOperation method, and it was called for the current execution. + * + * In the case of a missing input or command, the server SHOULD additionally + * send a PreconditionFailure error detail where, for each requested blob not + * present in the CAS, there is a `Violation` with a `type` of `MISSING` and a + * `subject` of `"blobs/{hash}/{size}"` indicating the digest of the missing + * blob. (actions.execute) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecuteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_GoogleLongrunningOperation + */ + public function execute($instanceName, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ExecuteRequest $postBody, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('execute', array($params), "Google_Service_RemoteBuildExecution_GoogleLongrunningOperation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Blobs.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Blobs.php new file mode 100644 index 00000000..da808c9a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Blobs.php @@ -0,0 +1,170 @@ + + * $remotebuildexecutionService = new Google_Service_RemoteBuildExecution(...); + * $blobs = $remotebuildexecutionService->blobs; + * + */ +class Google_Service_RemoteBuildExecution_Resource_Blobs extends Google_Service_Resource +{ + /** + * Download many blobs at once. + * + * The server may enforce a limit of the combined total size of blobs to be + * downloaded using this API. This limit may be obtained using the Capabilities + * API. Requests exceeding the limit should either be split into smaller chunks + * or downloaded using the ByteStream API, as appropriate. + * + * This request is equivalent to calling a Bytestream `Read` request on each + * individual blob, in parallel. The requests may succeed or fail independently. + * + * Errors: + * + * * `INVALID_ARGUMENT`: The client attempted to read more than the server + * supported limit. + * + * Every error on individual read will be returned in the corresponding digest + * status. (blobs.batchRead) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchReadBlobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchReadBlobsResponse + */ + public function batchRead($instanceName, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchReadBlobsRequest $postBody, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchRead', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchReadBlobsResponse"); + } + /** + * Upload many blobs at once. + * + * The server may enforce a limit of the combined total size of blobs to be + * uploaded using this API. This limit may be obtained using the Capabilities + * API. Requests exceeding the limit should either be split into smaller chunks + * or uploaded using the ByteStream API, as appropriate. + * + * This request is equivalent to calling a Bytestream `Write` request on each + * individual blob, in parallel. The requests may succeed or fail independently. + * + * Errors: + * + * * `INVALID_ARGUMENT`: The client attempted to upload more than the server + * supported limit. + * + * Individual requests may return the following errors, additionally: + * + * * `RESOURCE_EXHAUSTED`: There is insufficient disk quota to store the blob. * + * `INVALID_ARGUMENT`: The Digest does not match the provided data. + * (blobs.batchUpdate) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse + */ + public function batchUpdate($instanceName, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest $postBody, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('batchUpdate', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse"); + } + /** + * Determine if blobs are present in the CAS. + * + * Clients can use this API before uploading blobs to determine which ones are + * already present in the CAS and do not need to be uploaded again. + * + * There are no method-specific errors. (blobs.findMissing) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FindMissingBlobsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FindMissingBlobsResponse + */ + public function findMissing($instanceName, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FindMissingBlobsRequest $postBody, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('findMissing', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2FindMissingBlobsResponse"); + } + /** + * Fetch the entire directory tree rooted at a node. + * + * This request must be targeted at a Directory stored in the + * ContentAddressableStorage (CAS). The server will enumerate the `Directory` + * tree recursively and return every node descended from the root. + * + * The GetTreeRequest.page_token parameter can be used to skip ahead in the + * stream (e.g. when retrying a partially completed and aborted request), by + * setting it to a value taken from GetTreeResponse.next_page_token of the last + * successfully processed GetTreeResponse). + * + * The exact traversal order is unspecified and, unless retrieving subsequent + * pages from an earlier request, is not guaranteed to be stable across multiple + * invocations of `GetTree`. + * + * If part of the tree is missing from the CAS, the server will return the + * portion present and omit the rest. + * + * * `NOT_FOUND`: The requested tree root is not present in the CAS. + * (blobs.getTree) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param string $hash The hash. In the case of SHA-256, it will always be a + * lowercase hex string exactly 64 characters long. + * @param string $sizeBytes The size of the blob, in bytes. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A page token, which must be a value received in a + * previous GetTreeResponse. If present, the server will use it to return the + * following page of results. + * @opt_param int pageSize A maximum page size to request. If present, the + * server will request no more than this many items. Regardless of whether a + * page size is specified, the server may place its own limit on the number of + * items to be returned and require the client to retrieve more items using a + * subsequent request. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2GetTreeResponse + */ + public function getTree($instanceName, $hash, $sizeBytes, $optParams = array()) + { + $params = array('instanceName' => $instanceName, 'hash' => $hash, 'sizeBytes' => $sizeBytes); + $params = array_merge($params, $optParams); + return $this->call('getTree', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2GetTreeResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Operations.php new file mode 100644 index 00000000..e6992634 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/Operations.php @@ -0,0 +1,48 @@ + + * $remotebuildexecutionService = new Google_Service_RemoteBuildExecution(...); + * $operations = $remotebuildexecutionService->operations; + * + */ +class Google_Service_RemoteBuildExecution_Resource_Operations extends Google_Service_Resource +{ + /** + * Wait for an execution operation to complete. When the client initially makes + * the request, the server immediately responds with the current status of the + * execution. The server will leave the request stream open until the operation + * completes, and then respond with the completed operation. The server MAY + * choose to stream additional updates as execution progresses, such as to + * provide an update as to the state of the execution. + * (operations.waitExecution) + * + * @param string $name The name of the Operation returned by Execute. + * @param Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2WaitExecutionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_GoogleLongrunningOperation + */ + public function waitExecution($name, Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2WaitExecutionRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('waitExecution', array($params), "Google_Service_RemoteBuildExecution_GoogleLongrunningOperation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/V2.php b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/V2.php new file mode 100644 index 00000000..0055da7d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/RemoteBuildExecution/Resource/V2.php @@ -0,0 +1,46 @@ + + * $remotebuildexecutionService = new Google_Service_RemoteBuildExecution(...); + * $v2 = $remotebuildexecutionService->v2; + * + */ +class Google_Service_RemoteBuildExecution_Resource_V2 extends Google_Service_Resource +{ + /** + * GetCapabilities returns the server capabilities configuration. + * (v2.getCapabilities) + * + * @param string $instanceName The instance of the execution system to operate + * against. A server may support multiple instances of the execution system + * (with their own workers, storage, caches, etc.). The server MAY require use + * of this field to select between them in an implementation-defined fashion, + * otherwise it can be omitted. + * @param array $optParams Optional parameters. + * @return Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ServerCapabilities + */ + public function getCapabilities($instanceName, $optParams = array()) + { + $params = array('instanceName' => $instanceName); + $params = array_merge($params, $optParams); + return $this->call('getCapabilities', array($params), "Google_Service_RemoteBuildExecution_BuildBazelRemoteExecutionV2ServerCapabilities"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool.php index 607ab9bf..60f59017 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool.php +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool.php @@ -16,15 +16,15 @@ */ /** - * Service definition for Replicapool (v1beta2). + * Service definition for Replicapool (v1beta1). * *- * [Deprecated. Please use Instance Group Manager in Compute API] Provides - * groups of homogenous Compute Engine instances.
+ * The Replica Pool API allows users to declaratively provision and manage + * groups of Google Compute Engine instances based on a common template. * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -37,15 +37,21 @@ class Google_Service_Replicapool extends Google_Service /** View your data across Google Cloud Platform services. */ const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; - /** View and manage your Google Compute Engine resources. */ - const COMPUTE = - "https://www.googleapis.com/auth/compute"; - /** View your Google Compute Engine resources. */ - const COMPUTE_READONLY = - "https://www.googleapis.com/auth/compute.readonly"; + /** View and manage your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN = + "https://www.googleapis.com/auth/ndev.cloudman"; + /** View your Google Cloud Platform management resources and deployment status information. */ + const NDEV_CLOUDMAN_READONLY = + "https://www.googleapis.com/auth/ndev.cloudman.readonly"; + /** View and manage replica pools. */ + const REPLICAPOOL = + "https://www.googleapis.com/auth/replicapool"; + /** View replica pools. */ + const REPLICAPOOL_READONLY = + "https://www.googleapis.com/auth/replicapool.readonly"; - public $instanceGroupManagers; - public $zoneOperations; + public $pools; + public $replicas; /** * Constructs the internal representation of the Replicapool service. @@ -56,21 +62,22 @@ class Google_Service_Replicapool extends Google_Service { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'replicapool/v1beta2/projects/'; - $this->version = 'v1beta2'; + $this->servicePath = 'replicapool/v1beta1/projects/'; + $this->batchPath = 'batch/replicapool/v1beta1'; + $this->version = 'v1beta1'; $this->serviceName = 'replicapool'; - $this->instanceGroupManagers = new Google_Service_Replicapool_Resource_InstanceGroupManagers( + $this->pools = new Google_Service_Replicapool_Resource_Pools( $this, $this->serviceName, - 'instanceGroupManagers', + 'pools', array( 'methods' => array( - 'abandonInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', + 'delete' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}', 'httpMethod' => 'POST', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -80,57 +87,17 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'deleteInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( + 'poolName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'path' => '{projectName}/zones/{zone}/pools/{poolName}', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -140,17 +107,17 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( + 'poolName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'path' => '{projectName}/zones/{zone}/pools', 'httpMethod' => 'POST', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -160,17 +127,12 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'size' => array( - 'location' => 'query', - 'type' => 'integer', - 'required' => true, - ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'path' => '{projectName}/zones/{zone}/pools', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -180,10 +142,6 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -193,31 +151,11 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', ), ), - ),'recreateInstances' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'resize' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/resize', 'httpMethod' => 'POST', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -227,22 +165,21 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( + 'poolName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'size' => array( + 'numReplicas' => array( 'location' => 'query', 'type' => 'integer', - 'required' => true, ), ), - ),'setInstanceTemplate' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', + ),'updatetemplate' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate', 'httpMethod' => 'POST', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -252,27 +189,7 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setTargetPools' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instanceGroupManager' => array( + 'poolName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -282,17 +199,17 @@ class Google_Service_Replicapool extends Google_Service ) ) ); - $this->zoneOperations = new Google_Service_Replicapool_Resource_ZoneOperations( + $this->replicas = new Google_Service_Replicapool_Resource_Replicas( $this, $this->serviceName, - 'zoneOperations', + 'replicas', array( 'methods' => array( - 'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', - 'httpMethod' => 'GET', + 'delete' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', + 'httpMethod' => 'POST', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -302,17 +219,47 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'operation' => array( + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas', 'httpMethod' => 'GET', 'parameters' => array( - 'project' => array( + 'projectName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -322,9 +269,10 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'poolName' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), 'maxResults' => array( 'location' => 'query', @@ -335,6 +283,31 @@ class Google_Service_Replicapool extends Google_Service 'type' => 'string', ), ), + ),'restart' => array( + 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'poolName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replicaName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/AccessConfig.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/AccessConfig.php new file mode 100644 index 00000000..28d870d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/AccessConfig.php @@ -0,0 +1,48 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setNatIp($natIp) + { + $this->natIp = $natIp; + } + public function getNatIp() + { + return $this->natIp; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Action.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Action.php new file mode 100644 index 00000000..d2bf0248 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Action.php @@ -0,0 +1,56 @@ +commands = $commands; + } + public function getCommands() + { + return $this->commands; + } + /** + * @param Google_Service_Replicapool_EnvVariable + */ + public function setEnvVariables($envVariables) + { + $this->envVariables = $envVariables; + } + /** + * @return Google_Service_Replicapool_EnvVariable + */ + public function getEnvVariables() + { + return $this->envVariables; + } + public function setTimeoutMilliSeconds($timeoutMilliSeconds) + { + $this->timeoutMilliSeconds = $timeoutMilliSeconds; + } + public function getTimeoutMilliSeconds() + { + return $this->timeoutMilliSeconds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/DiskAttachment.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/DiskAttachment.php new file mode 100644 index 00000000..2b741a99 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/DiskAttachment.php @@ -0,0 +1,39 @@ +deviceName = $deviceName; + } + public function getDeviceName() + { + return $this->deviceName; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/EnvVariable.php similarity index 72% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php rename to vendor/google/apiclient-services/src/Google/Service/Replicapool/EnvVariable.php index dcfda743..13b1d55b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/EnvVariable.php @@ -15,13 +15,20 @@ * the License. */ -class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model +class Google_Service_Replicapool_EnvVariable extends Google_Model { + public $hidden; public $name; - public $type; - public $unit; public $value; + public function setHidden($hidden) + { + $this->hidden = $hidden; + } + public function getHidden() + { + return $this->hidden; + } public function setName($name) { $this->name = $name; @@ -30,22 +37,6 @@ class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model { return $this->name; } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setUnit($unit) - { - $this->unit = $unit; - } - public function getUnit() - { - return $this->unit; - } public function setValue($value) { $this->value = $value; diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ExistingDisk.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ExistingDisk.php new file mode 100644 index 00000000..e97e7bee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ExistingDisk.php @@ -0,0 +1,46 @@ +attachment = $attachment; + } + /** + * @return Google_Service_Replicapool_DiskAttachment + */ + public function getAttachment() + { + return $this->attachment; + } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/HealthCheck.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/HealthCheck.php new file mode 100644 index 00000000..9cd2939f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/HealthCheck.php @@ -0,0 +1,102 @@ +checkIntervalSec = $checkIntervalSec; + } + public function getCheckIntervalSec() + { + return $this->checkIntervalSec; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setHealthyThreshold($healthyThreshold) + { + $this->healthyThreshold = $healthyThreshold; + } + public function getHealthyThreshold() + { + return $this->healthyThreshold; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setTimeoutSec($timeoutSec) + { + $this->timeoutSec = $timeoutSec; + } + public function getTimeoutSec() + { + return $this->timeoutSec; + } + public function setUnhealthyThreshold($unhealthyThreshold) + { + $this->unhealthyThreshold = $unhealthyThreshold; + } + public function getUnhealthyThreshold() + { + return $this->unhealthyThreshold; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php deleted file mode 100644 index b8338257..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php +++ /dev/null @@ -1,31 +0,0 @@ -instances = $instances; - } - public function getInstances() - { - return $this->instances; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Label.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Label.php new file mode 100644 index 00000000..87323c89 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Label.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Metadata.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Metadata.php new file mode 100644 index 00000000..ddec7721 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Metadata.php @@ -0,0 +1,47 @@ +fingerPrint = $fingerPrint; + } + public function getFingerPrint() + { + return $this->fingerPrint; + } + /** + * @param Google_Service_Replicapool_MetadataItem + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return Google_Service_Replicapool_MetadataItem + */ + public function getItems() + { + return $this->items; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/MetadataItem.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/MetadataItem.php new file mode 100644 index 00000000..d201d962 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/MetadataItem.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/NetworkInterface.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NetworkInterface.php new file mode 100644 index 00000000..6acb644f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NetworkInterface.php @@ -0,0 +1,56 @@ +accessConfigs = $accessConfigs; + } + /** + * @return Google_Service_Replicapool_AccessConfig + */ + public function getAccessConfigs() + { + return $this->accessConfigs; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNetworkIp($networkIp) + { + $this->networkIp = $networkIp; + } + public function getNetworkIp() + { + return $this->networkIp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDisk.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDisk.php new file mode 100644 index 00000000..6e8b0cc8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDisk.php @@ -0,0 +1,71 @@ +attachment = $attachment; + } + /** + * @return Google_Service_Replicapool_DiskAttachment + */ + public function getAttachment() + { + return $this->attachment; + } + public function setAutoDelete($autoDelete) + { + $this->autoDelete = $autoDelete; + } + public function getAutoDelete() + { + return $this->autoDelete; + } + public function setBoot($boot) + { + $this->boot = $boot; + } + public function getBoot() + { + return $this->boot; + } + /** + * @param Google_Service_Replicapool_NewDiskInitializeParams + */ + public function setInitializeParams(Google_Service_Replicapool_NewDiskInitializeParams $initializeParams) + { + $this->initializeParams = $initializeParams; + } + /** + * @return Google_Service_Replicapool_NewDiskInitializeParams + */ + public function getInitializeParams() + { + return $this->initializeParams; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDiskInitializeParams.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDiskInitializeParams.php new file mode 100644 index 00000000..35307414 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/NewDiskInitializeParams.php @@ -0,0 +1,48 @@ +diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setSourceImage($sourceImage) + { + $this->sourceImage = $sourceImage; + } + public function getSourceImage() + { + return $this->sourceImage; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Operation.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Operation.php deleted file mode 100644 index 2aefe672..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Operation.php +++ /dev/null @@ -1,234 +0,0 @@ -clientOperationId = $clientOperationId; - } - public function getClientOperationId() - { - return $this->clientOperationId; - } - public function setCreationTimestamp($creationTimestamp) - { - $this->creationTimestamp = $creationTimestamp; - } - public function getCreationTimestamp() - { - return $this->creationTimestamp; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - /** - * @param Google_Service_Replicapool_OperationError - */ - public function setError(Google_Service_Replicapool_OperationError $error) - { - $this->error = $error; - } - /** - * @return Google_Service_Replicapool_OperationError - */ - public function getError() - { - return $this->error; - } - public function setHttpErrorMessage($httpErrorMessage) - { - $this->httpErrorMessage = $httpErrorMessage; - } - public function getHttpErrorMessage() - { - return $this->httpErrorMessage; - } - public function setHttpErrorStatusCode($httpErrorStatusCode) - { - $this->httpErrorStatusCode = $httpErrorStatusCode; - } - public function getHttpErrorStatusCode() - { - return $this->httpErrorStatusCode; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInsertTime($insertTime) - { - $this->insertTime = $insertTime; - } - public function getInsertTime() - { - return $this->insertTime; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setProgress($progress) - { - $this->progress = $progress; - } - public function getProgress() - { - return $this->progress; - } - public function setRegion($region) - { - $this->region = $region; - } - public function getRegion() - { - return $this->region; - } - public function setSelfLink($selfLink) - { - $this->selfLink = $selfLink; - } - public function getSelfLink() - { - return $this->selfLink; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setStatusMessage($statusMessage) - { - $this->statusMessage = $statusMessage; - } - public function getStatusMessage() - { - return $this->statusMessage; - } - public function setTargetId($targetId) - { - $this->targetId = $targetId; - } - public function getTargetId() - { - return $this->targetId; - } - public function setTargetLink($targetLink) - { - $this->targetLink = $targetLink; - } - public function getTargetLink() - { - return $this->targetLink; - } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } - /** - * @param Google_Service_Replicapool_OperationWarnings - */ - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - /** - * @return Google_Service_Replicapool_OperationWarnings - */ - public function getWarnings() - { - return $this->warnings; - } - public function setZone($zone) - { - $this->zone = $zone; - } - public function getZone() - { - return $this->zone; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Pool.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Pool.php new file mode 100644 index 00000000..c588b170 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Pool.php @@ -0,0 +1,178 @@ +autoRestart = $autoRestart; + } + public function getAutoRestart() + { + return $this->autoRestart; + } + public function setBaseInstanceName($baseInstanceName) + { + $this->baseInstanceName = $baseInstanceName; + } + public function getBaseInstanceName() + { + return $this->baseInstanceName; + } + public function setCurrentNumReplicas($currentNumReplicas) + { + $this->currentNumReplicas = $currentNumReplicas; + } + public function getCurrentNumReplicas() + { + return $this->currentNumReplicas; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_Replicapool_HealthCheck + */ + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + /** + * @return Google_Service_Replicapool_HealthCheck + */ + public function getHealthChecks() + { + return $this->healthChecks; + } + public function setInitialNumReplicas($initialNumReplicas) + { + $this->initialNumReplicas = $initialNumReplicas; + } + public function getInitialNumReplicas() + { + return $this->initialNumReplicas; + } + /** + * @param Google_Service_Replicapool_Label + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return Google_Service_Replicapool_Label + */ + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNumReplicas($numReplicas) + { + $this->numReplicas = $numReplicas; + } + public function getNumReplicas() + { + return $this->numReplicas; + } + public function setResourceViews($resourceViews) + { + $this->resourceViews = $resourceViews; + } + public function getResourceViews() + { + return $this->resourceViews; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTargetPool($targetPool) + { + $this->targetPool = $targetPool; + } + public function getTargetPool() + { + return $this->targetPool; + } + public function setTargetPools($targetPools) + { + $this->targetPools = $targetPools; + } + public function getTargetPools() + { + return $this->targetPools; + } + /** + * @param Google_Service_Replicapool_Template + */ + public function setTemplate(Google_Service_Replicapool_Template $template) + { + $this->template = $template; + } + /** + * @return Google_Service_Replicapool_Template + */ + public function getTemplate() + { + return $this->template; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsDeleteRequest.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsDeleteRequest.php new file mode 100644 index 00000000..0e9e39f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsDeleteRequest.php @@ -0,0 +1,31 @@ +abandonInstances = $abandonInstances; + } + public function getAbandonInstances() + { + return $this->abandonInstances; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsListResponse.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsListResponse.php new file mode 100644 index 00000000..e690ff18 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/PoolsListResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Replicapool_Pool + */ + public function setResources($resources) + { + $this->resources = $resources; + } + /** + * @return Google_Service_Replicapool_Pool + */ + public function getResources() + { + return $this->resources; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Replica.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Replica.php new file mode 100644 index 00000000..f6b19819 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Replica.php @@ -0,0 +1,55 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + /** + * @param Google_Service_Replicapool_ReplicaStatus + */ + public function setStatus(Google_Service_Replicapool_ReplicaStatus $status) + { + $this->status = $status; + } + /** + * @return Google_Service_Replicapool_ReplicaStatus + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaStatus.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaStatus.php new file mode 100644 index 00000000..a7897891 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicaStatus.php @@ -0,0 +1,66 @@ +details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setTemplateVersion($templateVersion) + { + $this->templateVersion = $templateVersion; + } + public function getTemplateVersion() + { + return $this->templateVersion; + } + public function setVmLink($vmLink) + { + $this->vmLink = $vmLink; + } + public function getVmLink() + { + return $this->vmLink; + } + public function setVmStartTime($vmStartTime) + { + $this->vmStartTime = $vmStartTime; + } + public function getVmStartTime() + { + return $this->vmStartTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasDeleteRequest.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasDeleteRequest.php new file mode 100644 index 00000000..b54ad503 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasDeleteRequest.php @@ -0,0 +1,30 @@ +abandonInstance = $abandonInstance; + } + public function getAbandonInstance() + { + return $this->abandonInstance; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasListResponse.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasListResponse.php new file mode 100644 index 00000000..19b52bbf --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ReplicasListResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Replicapool_Replica + */ + public function setResources($resources) + { + $this->resources = $resources; + } + /** + * @return Google_Service_Replicapool_Replica + */ + public function getResources() + { + return $this->resources; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php deleted file mode 100644 index 2fbdc99e..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php +++ /dev/null @@ -1,223 +0,0 @@ - - * $replicapoolService = new Google_Service_Replicapool(...); - * $instanceGroupManagers = $replicapoolService->instanceGroupManagers; - * - */ -class Google_Service_Replicapool_Resource_InstanceGroupManagers extends Google_Service_Resource -{ - /** - * Removes the specified instances from the managed instance group, and from any - * target pools of which they were members, without deleting the instances. - * (instanceGroupManagers.abandonInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Deletes the instance group manager and all instances contained within. If - * you'd like to delete the manager without deleting the instances, you must - * first abandon the instances to remove them from the group. - * (instanceGroupManagers.delete) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager Name of the Instance Group Manager - * resource to delete. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function delete($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Deletes the specified instances. The instances are deleted, then removed from - * the instance group and any target pools of which they were a member. The - * targetSize of the instance group manager is reduced by the number of - * instances deleted. (instanceGroupManagers.deleteInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Returns the specified Instance Group Manager resource. - * (instanceGroupManagers.get) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager Name of the instance resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_InstanceGroupManager - */ - public function get($project, $zone, $instanceGroupManager, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager"); - } - /** - * Creates an instance group manager, as well as the instance group and the - * specified number of instances. (instanceGroupManagers.insert) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param int $size Number of instances that should exist. - * @param Google_Service_Replicapool_InstanceGroupManager $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Retrieves the list of Instance Group Manager resources contained within the - * specified zone. (instanceGroupManagers.listInstanceGroupManagers) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @return Google_Service_Replicapool_InstanceGroupManagerList - */ - public function listInstanceGroupManagers($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList"); - } - /** - * Recreates the specified instances. The instances are deleted, then recreated - * using the instance group manager's current instance template. - * (instanceGroupManagers.recreateInstances) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Resizes the managed instance group up or down. If resized up, new instances - * are created using the current instance template. If resized down, instances - * are removed in the order outlined in Resizing a managed instance group. - * (instanceGroupManagers.resize) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param int $size Number of instances that should exist in this Instance Group - * Manager. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size); - $params = array_merge($params, $optParams); - return $this->call('resize', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Sets the instance template to use when creating new instances in this group. - * Existing instances are not affected. - * (instanceGroupManagers.setInstanceTemplate) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Modifies the target pools to which all new instances in this group are - * assigned. Existing instances in the group are not affected. - * (instanceGroupManagers.setTargetPools) - * - * @param string $project The Google Developers Console project name. - * @param string $zone The name of the zone in which the instance group manager - * resides. - * @param string $instanceGroupManager The name of the instance group manager. - * @param Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Pools.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Pools.php new file mode 100644 index 00000000..31db835e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Pools.php @@ -0,0 +1,129 @@ + + * $replicapoolService = new Google_Service_Replicapool(...); + * $pools = $replicapoolService->pools; + * + */ +class Google_Service_Replicapool_Resource_Pools extends Google_Service_Resource +{ + /** + * Deletes a replica pool. (pools.delete) + * + * @param string $projectName The project ID for this replica pool. + * @param string $zone The zone for this replica pool. + * @param string $poolName The name of the replica pool for this request. + * @param Google_Service_Replicapool_PoolsDeleteRequest $postBody + * @param array $optParams Optional parameters. + */ + public function delete($projectName, $zone, $poolName, Google_Service_Replicapool_PoolsDeleteRequest $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets information about a single replica pool. (pools.get) + * + * @param string $projectName The project ID for this replica pool. + * @param string $zone The zone for this replica pool. + * @param string $poolName The name of the replica pool for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Pool + */ + public function get($projectName, $zone, $poolName, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapool_Pool"); + } + /** + * Inserts a new replica pool. (pools.insert) + * + * @param string $projectName The project ID for this replica pool. + * @param string $zone The zone for this replica pool. + * @param Google_Service_Replicapool_Pool $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Pool + */ + public function insert($projectName, $zone, Google_Service_Replicapool_Pool $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Replicapool_Pool"); + } + /** + * List all replica pools. (pools.listPools) + * + * @param string $projectName The project ID for this request. + * @param string $zone The zone for this replica pool. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken Set this to the nextPageToken value returned by a + * previous list request to obtain the next page of results from the previous + * list request. + * @return Google_Service_Replicapool_PoolsListResponse + */ + public function listPools($projectName, $zone, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapool_PoolsListResponse"); + } + /** + * Resize a pool. This is an asynchronous operation, and multiple overlapping + * resize requests can be made. Replica Pools will use the information from the + * last resize request. (pools.resize) + * + * @param string $projectName The project ID for this replica pool. + * @param string $zone The zone for this replica pool. + * @param string $poolName The name of the replica pool for this request. + * @param array $optParams Optional parameters. + * + * @opt_param int numReplicas The desired number of replicas to resize to. If + * this number is larger than the existing number of replicas, new replicas will + * be added. If the number is smaller, then existing replicas will be deleted. + * @return Google_Service_Replicapool_Pool + */ + public function resize($projectName, $zone, $poolName, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('resize', array($params), "Google_Service_Replicapool_Pool"); + } + /** + * Update the template used by the pool. (pools.updatetemplate) + * + * @param string $projectName The project ID for this replica pool. + * @param string $zone The zone for this replica pool. + * @param string $poolName The name of the replica pool for this request. + * @param Google_Service_Replicapool_Template $postBody + * @param array $optParams Optional parameters. + */ + public function updatetemplate($projectName, $zone, $poolName, Google_Service_Replicapool_Template $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatetemplate', array($params)); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Replicas.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Replicas.php new file mode 100644 index 00000000..528b8c98 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/Replicas.php @@ -0,0 +1,98 @@ + + * $replicapoolService = new Google_Service_Replicapool(...); + * $replicas = $replicapoolService->replicas; + * + */ +class Google_Service_Replicapool_Resource_Replicas extends Google_Service_Resource +{ + /** + * Deletes a replica from the pool. (replicas.delete) + * + * @param string $projectName The project ID for this request. + * @param string $zone The zone where the replica lives. + * @param string $poolName The replica pool name for this request. + * @param string $replicaName The name of the replica for this request. + * @param Google_Service_Replicapool_ReplicasDeleteRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function delete($projectName, $zone, $poolName, $replicaName, Google_Service_Replicapool_ReplicasDeleteRequest $postBody, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Replicapool_Replica"); + } + /** + * Gets information about a specific replica. (replicas.get) + * + * @param string $projectName The project ID for this request. + * @param string $zone The zone where the replica lives. + * @param string $poolName The replica pool name for this request. + * @param string $replicaName The name of the replica for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function get($projectName, $zone, $poolName, $replicaName, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapool_Replica"); + } + /** + * Lists all replicas in a pool. (replicas.listReplicas) + * + * @param string $projectName The project ID for this request. + * @param string $zone The zone where the replica pool lives. + * @param string $poolName The replica pool name for this request. + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum count of results to be returned. Acceptable + * values are 0 to 100, inclusive. (Default: 50) + * @opt_param string pageToken Set this to the nextPageToken value returned by a + * previous list request to obtain the next page of results from the previous + * list request. + * @return Google_Service_Replicapool_ReplicasListResponse + */ + public function listReplicas($projectName, $zone, $poolName, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Replicapool_ReplicasListResponse"); + } + /** + * Restarts a replica in a pool. (replicas.restart) + * + * @param string $projectName The project ID for this request. + * @param string $zone The zone where the replica lives. + * @param string $poolName The replica pool name for this request. + * @param string $replicaName The name of the replica for this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapool_Replica + */ + public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array()) + { + $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName); + $params = array_merge($params, $optParams); + return $this->call('restart', array($params), "Google_Service_Replicapool_Replica"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php deleted file mode 100644 index 6e9d094c..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php +++ /dev/null @@ -1,66 +0,0 @@ - - * $replicapoolService = new Google_Service_Replicapool(...); - * $zoneOperations = $replicapoolService->zoneOperations; - * - */ -class Google_Service_Replicapool_Resource_ZoneOperations extends Google_Service_Resource -{ - /** - * Retrieves the specified zone-specific operation resource. - * (zoneOperations.get) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $operation Name of the operation resource to return. - * @param array $optParams Optional parameters. - * @return Google_Service_Replicapool_Operation - */ - public function get($project, $zone, $operation, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapool_Operation"); - } - /** - * Retrieves the list of operation resources contained within the specified - * zone. (zoneOperations.listZoneOperations) - * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param array $optParams Optional parameters. - * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @return Google_Service_Replicapool_OperationList - */ - public function listZoneOperations($project, $zone, $optParams = array()) - { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapool_OperationList"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/ServiceAccount.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ServiceAccount.php new file mode 100644 index 00000000..9c82a4d8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/ServiceAccount.php @@ -0,0 +1,40 @@ +email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + public function getScopes() + { + return $this->scopes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Tag.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Tag.php new file mode 100644 index 00000000..03c1aad3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Tag.php @@ -0,0 +1,40 @@ +fingerPrint = $fingerPrint; + } + public function getFingerPrint() + { + return $this->fingerPrint; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/Template.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Template.php new file mode 100644 index 00000000..84ba301f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/Template.php @@ -0,0 +1,79 @@ +action = $action; + } + /** + * @return Google_Service_Replicapool_Action + */ + public function getAction() + { + return $this->action; + } + /** + * @param Google_Service_Replicapool_HealthCheck + */ + public function setHealthChecks($healthChecks) + { + $this->healthChecks = $healthChecks; + } + /** + * @return Google_Service_Replicapool_HealthCheck + */ + public function getHealthChecks() + { + return $this->healthChecks; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + /** + * @param Google_Service_Replicapool_VmParams + */ + public function setVmParams(Google_Service_Replicapool_VmParams $vmParams) + { + $this->vmParams = $vmParams; + } + /** + * @return Google_Service_Replicapool_VmParams + */ + public function getVmParams() + { + return $this->vmParams; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/VmParams.php b/vendor/google/apiclient-services/src/Google/Service/Replicapool/VmParams.php new file mode 100644 index 00000000..0e8c72b1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Replicapool/VmParams.php @@ -0,0 +1,163 @@ +baseInstanceName = $baseInstanceName; + } + public function getBaseInstanceName() + { + return $this->baseInstanceName; + } + public function setCanIpForward($canIpForward) + { + $this->canIpForward = $canIpForward; + } + public function getCanIpForward() + { + return $this->canIpForward; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + /** + * @param Google_Service_Replicapool_ExistingDisk + */ + public function setDisksToAttach($disksToAttach) + { + $this->disksToAttach = $disksToAttach; + } + /** + * @return Google_Service_Replicapool_ExistingDisk + */ + public function getDisksToAttach() + { + return $this->disksToAttach; + } + /** + * @param Google_Service_Replicapool_NewDisk + */ + public function setDisksToCreate($disksToCreate) + { + $this->disksToCreate = $disksToCreate; + } + /** + * @return Google_Service_Replicapool_NewDisk + */ + public function getDisksToCreate() + { + return $this->disksToCreate; + } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } + /** + * @param Google_Service_Replicapool_Metadata + */ + public function setMetadata(Google_Service_Replicapool_Metadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_Replicapool_Metadata + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param Google_Service_Replicapool_NetworkInterface + */ + public function setNetworkInterfaces($networkInterfaces) + { + $this->networkInterfaces = $networkInterfaces; + } + /** + * @return Google_Service_Replicapool_NetworkInterface + */ + public function getNetworkInterfaces() + { + return $this->networkInterfaces; + } + public function setOnHostMaintenance($onHostMaintenance) + { + $this->onHostMaintenance = $onHostMaintenance; + } + public function getOnHostMaintenance() + { + return $this->onHostMaintenance; + } + /** + * @param Google_Service_Replicapool_ServiceAccount + */ + public function setServiceAccounts($serviceAccounts) + { + $this->serviceAccounts = $serviceAccounts; + } + /** + * @return Google_Service_Replicapool_ServiceAccount + */ + public function getServiceAccounts() + { + return $this->serviceAccounts; + } + /** + * @param Google_Service_Replicapool_Tag + */ + public function setTags(Google_Service_Replicapool_Tag $tags) + { + $this->tags = $tags; + } + /** + * @return Google_Service_Replicapool_Tag + */ + public function getTags() + { + return $this->tags; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Reports.php b/vendor/google/apiclient-services/src/Google/Service/Reports.php index 1b61a55e..0568d456 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Reports.php +++ b/vendor/google/apiclient-services/src/Google/Service/Reports.php @@ -54,6 +54,7 @@ class Google_Service_Reports extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/reports/v1/'; + $this->batchPath = 'batch/admin/reports_v1'; $this->version = 'reports_v1'; $this->serviceName = 'admin'; @@ -101,6 +102,10 @@ class Google_Service_Reports extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'orgUnitID' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -148,6 +153,10 @@ class Google_Service_Reports extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'orgUnitID' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -289,6 +298,10 @@ class Google_Service_Reports extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'orgUnitID' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', diff --git a/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php b/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php index 1a2ab1b1..fbc0babe 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php +++ b/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php @@ -48,6 +48,8 @@ class Google_Service_Reports_Resource_Activities extends Google_Service_Resource * value],... * @opt_param int maxResults Number of activity records to be shown in each * page. + * @opt_param string orgUnitID the organizational unit's(OU) ID to filter + * activities from users belonging to a specific OU or one of its sub-OU(s) * @opt_param string pageToken Token to specify next page. * @opt_param string startTime Return events which occurred at or after this * time. @@ -82,6 +84,8 @@ class Google_Service_Reports_Resource_Activities extends Google_Service_Resource * value],... * @opt_param int maxResults Number of activity records to be shown in each * page. + * @opt_param string orgUnitID the organizational unit's(OU) ID to filter + * activities from users belonging to a specific OU or one of its sub-OU(s) * @opt_param string pageToken Token to specify next page. * @opt_param string startTime Return events which occurred at or after this * time. diff --git a/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php b/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php index 26c8a098..39caa95a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php +++ b/vendor/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php @@ -41,6 +41,8 @@ class Google_Service_Reports_Resource_UserUsageReport extends Google_Service_Res * operator value. * @opt_param string maxResults Maximum number of results to return. Maximum * allowed is 1000 + * @opt_param string orgUnitID the organizational unit's ID to filter usage + * parameters from users belonging to a specific OU or one of its sub-OU(s). * @opt_param string pageToken Token to specify next page. * @opt_param string parameters Represents the application name, parameter name * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2. diff --git a/vendor/google/apiclient-services/src/Google/Service/Reseller.php b/vendor/google/apiclient-services/src/Google/Service/Reseller.php index aa5c49c4..31e01ebf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Reseller.php +++ b/vendor/google/apiclient-services/src/Google/Service/Reseller.php @@ -51,6 +51,7 @@ class Google_Service_Reseller extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/reseller/v1/'; + $this->batchPath = 'batch/reseller/v1'; $this->version = 'v1'; $this->serviceName = 'reseller'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php b/vendor/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php index e3691b86..007c65b6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php @@ -117,7 +117,7 @@ class Google_Service_Reseller_Resource_Subscriptions extends Google_Service_Reso return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription"); } /** - * Cancel, suspend or transfer a subscription to direct. (subscriptions.delete) + * Cancel or transfer a subscription to direct. (subscriptions.delete) * * @param string $customerId Either the customer's primary domain name or the * customer's unique identifier. If using the domain name, we do not recommend diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin.php index a2dfe112..39a9ead6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin.php @@ -19,8 +19,8 @@ * Service definition for SQLAdmin (v1beta4). * *- * Creates and configures Cloud SQL instances, which provide fully-managed MySQL - * databases.
+ * Creates and manages Cloud SQL instances, which provide fully managed MySQL or + * PostgreSQL databases. * ** For more information about this service, see the API @@ -57,6 +57,7 @@ class Google_Service_SQLAdmin extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'sql/v1beta4/'; + $this->batchPath = 'batch/sqladmin/v1beta4'; $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; @@ -293,7 +294,22 @@ class Google_Service_SQLAdmin extends Google_Service 'instances', array( 'methods' => array( - 'clone' => array( + 'addServerCa' => array( + 'path' => 'projects/{project}/instances/{instance}/addServerCa', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'clone' => array( 'path' => 'projects/{project}/instances/{instance}/clone', 'httpMethod' => 'POST', 'parameters' => array( @@ -430,6 +446,21 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', ), ), + ),'listServerCas' => array( + 'path' => 'projects/{project}/instances/{instance}/listServerCas', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'patch' => array( 'path' => 'projects/{project}/instances/{instance}', 'httpMethod' => 'PATCH', @@ -505,6 +536,21 @@ class Google_Service_SQLAdmin extends Google_Service 'required' => true, ), ), + ),'rotateServerCa' => array( + 'path' => 'projects/{project}/instances/{instance}/rotateServerCa', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'startReplica' => array( 'path' => 'projects/{project}/instances/{instance}/startReplica', 'httpMethod' => 'POST', @@ -807,16 +853,15 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), 'name' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ApiWarning.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ApiWarning.php new file mode 100644 index 00000000..03bc9bcb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ApiWarning.php @@ -0,0 +1,39 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php index de5bcc5c..e67ccacb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php @@ -18,9 +18,25 @@ class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection { protected $collection_key = 'tables'; + protected $mysqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptionsMysqlExportOptions'; + protected $mysqlExportOptionsDataType = ''; public $schemaOnly; public $tables; + /** + * @param Google_Service_SQLAdmin_ExportContextSqlExportOptionsMysqlExportOptions + */ + public function setMysqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptionsMysqlExportOptions $mysqlExportOptions) + { + $this->mysqlExportOptions = $mysqlExportOptions; + } + /** + * @return Google_Service_SQLAdmin_ExportContextSqlExportOptionsMysqlExportOptions + */ + public function getMysqlExportOptions() + { + return $this->mysqlExportOptions; + } public function setSchemaOnly($schemaOnly) { $this->schemaOnly = $schemaOnly; diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptionsMysqlExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptionsMysqlExportOptions.php new file mode 100644 index 00000000..efbd6f16 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptionsMysqlExportOptions.php @@ -0,0 +1,30 @@ +masterData = $masterData; + } + public function getMasterData() + { + return $this->masterData; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php index d92d1e40..d3bbdd90 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php @@ -20,6 +20,7 @@ class Google_Service_SQLAdmin_Flag extends Google_Collection protected $collection_key = 'appliesTo'; public $allowedStringValues; public $appliesTo; + public $inBeta; public $kind; public $maxValue; public $minValue; @@ -43,6 +44,14 @@ class Google_Service_SQLAdmin_Flag extends Google_Collection { return $this->appliesTo; } + public function setInBeta($inBeta) + { + $this->inBeta = $inBeta; + } + public function getInBeta() + { + return $this->inBeta; + } public function setKind($kind) { $this->kind = $kind; diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php index 6de5dcc7..11c4daa8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php @@ -17,11 +17,13 @@ class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'warnings'; protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; + protected $warningsType = 'Google_Service_SQLAdmin_ApiWarning'; + protected $warningsDataType = 'array'; /** * @param Google_Service_SQLAdmin_DatabaseInstance @@ -53,4 +55,18 @@ class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { return $this->nextPageToken; } + /** + * @param Google_Service_SQLAdmin_ApiWarning + */ + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + /** + * @return Google_Service_SQLAdmin_ApiWarning + */ + public function getWarnings() + { + return $this->warnings; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListServerCasResponse.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListServerCasResponse.php new file mode 100644 index 00000000..5e901b5c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListServerCasResponse.php @@ -0,0 +1,56 @@ +activeVersion = $activeVersion; + } + public function getActiveVersion() + { + return $this->activeVersion; + } + /** + * @param Google_Service_SQLAdmin_SslCert + */ + public function setCerts($certs) + { + $this->certs = $certs; + } + /** + * @return Google_Service_SQLAdmin_SslCert + */ + public function getCerts() + { + return $this->certs; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRotateServerCaRequest.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRotateServerCaRequest.php new file mode 100644 index 00000000..b5ded6d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRotateServerCaRequest.php @@ -0,0 +1,37 @@ +rotateServerCaContext = $rotateServerCaContext; + } + /** + * @return Google_Service_SQLAdmin_RotateServerCaContext + */ + public function getRotateServerCaContext() + { + return $this->rotateServerCaContext; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php index f5f29bff..ee70b566 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php @@ -21,6 +21,7 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; protected $authorizedNetworksDataType = 'array'; public $ipv4Enabled; + public $privateNetwork; public $requireSsl; /** @@ -45,6 +46,14 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { return $this->ipv4Enabled; } + public function setPrivateNetwork($privateNetwork) + { + $this->privateNetwork = $privateNetwork; + } + public function getPrivateNetwork() + { + return $this->privateNetwork; + } public function setRequireSsl($requireSsl) { $this->requireSsl = $requireSsl; diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php index f7f522c2..b6110c44 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php @@ -78,7 +78,7 @@ class Google_Service_SQLAdmin_Resource_BackupRuns extends Google_Service_Resourc } /** * Lists all backup runs associated with a given instance and configuration in - * the reverse chronological order of the enqueued time. + * the reverse chronological order of the backup initiation time. * (backupRuns.listBackupRuns) * * @param string $project Project ID of the project that contains the instance. diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php index f21b28df..58282e38 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php @@ -79,8 +79,7 @@ class Google_Service_SQLAdmin_Resource_Databases extends Google_Service_Resource * Lists databases in the specified Cloud SQL instance. * (databases.listDatabases) * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. + * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php index 7e9dcb7c..4abfd854 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php @@ -26,13 +26,13 @@ class Google_Service_SQLAdmin_Resource_Flags extends Google_Service_Resource { /** - * List all available database flags for Google Cloud SQL instances. - * (flags.listFlags) + * List all available database flags for Cloud SQL instances. (flags.listFlags) * * @param array $optParams Optional parameters. * - * @opt_param string databaseVersion Database version for flag retrieval. Flags - * are specific to the database version. + * @opt_param string databaseVersion Database type and version you want to + * retrieve flags for. By default, this method returns flags for all database + * types and versions. * @return Google_Service_SQLAdmin_FlagsListResponse */ public function listFlags($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php index b78e6398..c3a2843c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php @@ -26,8 +26,27 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource { /** - * Creates a Cloud SQL instance as a clone of the source instance. The API is - * not ready for Second Generation instances yet. (instances.cloneInstances) + * Add a new trusted Certificate Authority (CA) version for the specified + * instance. Required to prepare for a certificate rotation. If a CA version was + * previously added but never used in a certificate rotation, this operation + * replaces that version. There cannot be more than one CA version waiting to be + * rotated in. (instances.addServerCa) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function addServerCa($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('addServerCa', array($params), "Google_Service_SQLAdmin_Operation"); + } + /** + * Creates a Cloud SQL instance as a clone of the source instance. + * (instances.cloneInstances) * * @param string $project Project ID of the source as well as the clone Cloud * SQL instance. @@ -60,7 +79,8 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Reserved for future use. (instances.demoteMaster) + * Demotes the stand-alone instance to be a Cloud SQL read replica for an + * external database server. (instances.demoteMaster) * * @param string $project ID of the project that contains the instance. * @param string $instance Cloud SQL instance name. @@ -75,8 +95,8 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource return $this->call('demoteMaster', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - * MySQL dump file. (instances.export) + * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL + * dump or CSV file. (instances.export) * * @param string $project Project ID of the project that contains the instance * to be exported. @@ -125,7 +145,7 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance"); } /** - * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + * Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud * Storage. (instances.import) * * @param string $project Project ID of the project that contains the instance. @@ -178,6 +198,25 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse"); } + /** + * Lists all of the trusted Certificate Authorities (CAs) for the specified + * instance. There can be up to three CAs listed: the CA that was used to sign + * the certificate that is currently in use, a CA that has been added but not + * yet used to sign a certificate, and a CA used to sign a certificate that has + * previously rotated out. (instances.listServerCas) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_InstancesListServerCasResponse + */ + public function listServerCas($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('listServerCas', array($params), "Google_Service_SQLAdmin_InstancesListServerCasResponse"); + } /** * Updates settings of a Cloud SQL instance. Caution: This is not a partial * update, so you must include values for all the settings that you want to @@ -214,9 +253,7 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource } /** * Deletes all client certificates and generates a new server SSL certificate - * for the instance. The changes will not take effect until the instance is - * restarted. Existing instances without a server certificate will need to call - * this once to set a server certificate. (instances.resetSslConfig) + * for the instance. (instances.resetSslConfig) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the @@ -262,6 +299,24 @@ class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); } + /** + * Rotates the server certificate to one signed by the Certificate Authority + * (CA) version previously added with the addServerCA method. + * (instances.rotateServerCa) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param Google_Service_SQLAdmin_InstancesRotateServerCaRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function rotateServerCa($project, $instance, Google_Service_SQLAdmin_InstancesRotateServerCaRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('rotateServerCa', array($params), "Google_Service_SQLAdmin_Operation"); + } /** * Starts the replication in the read replica instance. (instances.startReplica) * diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php index 20827e39..b4d3bf43 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php @@ -45,11 +45,10 @@ class Google_Service_SQLAdmin_Resource_SslCerts extends Google_Service_Resource return $this->call('createEphemeral', array($params), "Google_Service_SQLAdmin_SslCert"); } /** - * Deletes the SSL certificate. The change will not take effect until the - * instance is restarted. (sslCerts.delete) + * Deletes the SSL certificate. For First Generation instances, the certificate + * remains valid until the instance is restarted. (sslCerts.delete) * - * @param string $project Project ID of the project that contains the instance - * to be deleted. + * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param string $sha1Fingerprint Sha1 FingerPrint. @@ -85,8 +84,7 @@ class Google_Service_SQLAdmin_Resource_SslCerts extends Google_Service_Resource * server certificate authority. The new certificate will not be usable until * the instance is restarted. (sslCerts.insert) * - * @param string $project Project ID of the project to which the newly created - * Cloud SQL instances should belong. + * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param Google_Service_SQLAdmin_SslCertsInsertRequest $postBody @@ -103,8 +101,7 @@ class Google_Service_SQLAdmin_Resource_SslCerts extends Google_Service_Resource * Lists all of the current SSL certificates for the instance. * (sslCerts.listSslCerts) * - * @param string $project Project ID of the project for which to list Cloud SQL - * instances. + * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php index 77bd023c..061e577a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php @@ -26,8 +26,8 @@ class Google_Service_SQLAdmin_Resource_Tiers extends Google_Service_Resource { /** - * Lists all available service tiers for Google Cloud SQL, for example D1, D2. - * For related information, see Pricing. (tiers.listTiers) + * Lists all available machine types (tiers) for Cloud SQL, for example, + * db-n1-standard-1. For related information, see Pricing. (tiers.listTiers) * * @param string $project Project ID of the project for which to list tiers. * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php index 13fec757..e860c388 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php @@ -79,15 +79,16 @@ class Google_Service_SQLAdmin_Resource_Users extends Google_Service_Resource * @param string $project Project ID of the project that contains the instance. * @param string $instance Database instance ID. This does not include the * project ID. - * @param string $host Host of the user in the instance. * @param string $name Name of the user in the instance. * @param Google_Service_SQLAdmin_User $postBody * @param array $optParams Optional parameters. + * + * @opt_param string host Host of the user in the instance. * @return Google_Service_SQLAdmin_Operation */ - public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + public function update($project, $instance, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); + $params = array('project' => $project, 'instance' => $instance, 'name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); } diff --git a/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/RotateServerCaContext.php b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/RotateServerCaContext.php new file mode 100644 index 00000000..c52f2ec2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/SQLAdmin/RotateServerCaContext.php @@ -0,0 +1,39 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextVersion($nextVersion) + { + $this->nextVersion = $nextVersion; + } + public function getNextVersion() + { + return $this->nextVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Safebrowsing.php b/vendor/google/apiclient-services/src/Google/Service/Safebrowsing.php index 156441b4..d0e8f30a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Safebrowsing.php +++ b/vendor/google/apiclient-services/src/Google/Service/Safebrowsing.php @@ -51,6 +51,7 @@ class Google_Service_Safebrowsing extends Google_Service parent::__construct($client); $this->rootUrl = 'https://safebrowsing.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v4'; $this->serviceName = 'safebrowsing'; @@ -69,11 +70,11 @@ class Google_Service_Safebrowsing extends Google_Service 'type' => 'string', 'required' => true, ), - 'clientVersion' => array( + 'clientId' => array( 'location' => 'query', 'type' => 'string', ), - 'clientId' => array( + 'clientVersion' => array( 'location' => 'query', 'type' => 'string', ), diff --git a/vendor/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php b/vendor/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php index dd20d3a7..74d787c4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php @@ -31,9 +31,9 @@ class Google_Service_Safebrowsing_Resource_EncodedFullHashes extends Google_Serv * @param string $encodedRequest A serialized FindFullHashesRequest proto. * @param array $optParams Optional parameters. * - * @opt_param string clientVersion The version of the client implementation. * @opt_param string clientId A client ID that (hopefully) uniquely identifies * the client implementation of the Safe Browsing API. + * @opt_param string clientVersion The version of the client implementation. * @return Google_Service_Safebrowsing_FindFullHashesResponse */ public function get($encodedRequest, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Script.php b/vendor/google/apiclient-services/src/Google/Service/Script.php index 783fb18b..95c46bd2 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script.php +++ b/vendor/google/apiclient-services/src/Google/Service/Script.php @@ -19,7 +19,7 @@ * Service definition for Script (v1). * *
- * An API for managing and executing Google Apps Script projects.
+ * Manages and executes Google Apps Script projects. * ** For more information about this service, see the API @@ -30,13 +30,13 @@ */ class Google_Service_Script extends Google_Service { - /** Read, send, delete, and manage your email. */ + /** Read, compose, send, and permanently delete all your email from Gmail. */ const MAIL_GOOGLE_COM = "https://mail.google.com/"; - /** Manage your calendars. */ + /** See, edit, share, and permanently delete all the calendars you can access using Google Calendar. */ const WWW_GOOGLE_COM_CALENDAR_FEEDS = "https://www.google.com/calendar/feeds"; - /** Manage your contacts. */ + /** See, edit, download, and permanently delete your contacts. */ const WWW_GOOGLE_COM_M8_FEEDS = "https://www.google.com/m8/feeds"; /** View and manage the provisioning of groups on your domain. */ @@ -45,7 +45,10 @@ class Google_Service_Script extends Google_Service /** View and manage the provisioning of users on your domain. */ const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user"; - /** View and manage the files in your Google Drive. */ + /** View and manage your Google Docs documents. */ + const DOCUMENTS = + "https://www.googleapis.com/auth/documents"; + /** See, edit, create, and delete all of your Google Drive files. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage your forms in Google Drive. */ @@ -57,7 +60,25 @@ class Google_Service_Script extends Google_Service /** View and manage your Google Groups. */ const GROUPS = "https://www.googleapis.com/auth/groups"; - /** View and manage your spreadsheets in Google Drive. */ + /** Create and update Google Apps Script deployments. */ + const SCRIPT_DEPLOYMENTS = + "https://www.googleapis.com/auth/script.deployments"; + /** View Google Apps Script deployments. */ + const SCRIPT_DEPLOYMENTS_READONLY = + "https://www.googleapis.com/auth/script.deployments.readonly"; + /** View Google Apps Script project's metrics. */ + const SCRIPT_METRICS = + "https://www.googleapis.com/auth/script.metrics"; + /** View Google Apps Script processes. */ + const SCRIPT_PROCESSES = + "https://www.googleapis.com/auth/script.processes"; + /** Create and update Google Apps Script projects. */ + const SCRIPT_PROJECTS = + "https://www.googleapis.com/auth/script.projects"; + /** View Google Apps Script projects. */ + const SCRIPT_PROJECTS_READONLY = + "https://www.googleapis.com/auth/script.projects.readonly"; + /** See, edit, create, and delete your spreadsheets in Google Drive. */ const SPREADSHEETS = "https://www.googleapis.com/auth/spreadsheets"; /** View your email address. */ @@ -80,6 +101,7 @@ class Google_Service_Script extends Google_Service parent::__construct($client); $this->rootUrl = 'https://script.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'script'; @@ -93,39 +115,6 @@ class Google_Service_Script extends Google_Service 'path' => 'v1/processes', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProcessFilter.endTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'userProcessFilter.startTime' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProcessFilter.projectName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProcessFilter.userAccessLevels' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'userProcessFilter.functionName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'userProcessFilter.scriptId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'userProcessFilter.types' => array( 'location' => 'query', 'type' => 'string', @@ -140,15 +129,44 @@ class Google_Service_Script extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'userProcessFilter.endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'userProcessFilter.startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProcessFilter.userAccessLevels' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'userProcessFilter.projectName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProcessFilter.functionName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProcessFilter.scriptId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'listScriptProcesses' => array( 'path' => 'v1/processes:listScriptProcesses', 'httpMethod' => 'GET', 'parameters' => array( - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'scriptProcessFilter.endTime' => array( 'location' => 'query', 'type' => 'string', @@ -163,11 +181,19 @@ class Google_Service_Script extends Google_Service 'type' => 'string', 'repeated' => true, ), + 'scriptProcessFilter.functionName' => array( + 'location' => 'query', + 'type' => 'string', + ), 'scriptProcessFilter.startTime' => array( 'location' => 'query', 'type' => 'string', ), - 'scriptProcessFilter.functionName' => array( + 'scriptProcessFilter.deploymentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scriptId' => array( 'location' => 'query', 'type' => 'string', ), @@ -176,18 +202,14 @@ class Google_Service_Script extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'scriptId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'scriptProcessFilter.deploymentId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -314,14 +336,14 @@ class Google_Service_Script extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'v1/projects/{scriptId}/deployments/{deploymentId}', diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/Deployment.php b/vendor/google/apiclient-services/src/Google/Service/Script/Deployment.php index 452a01d9..3ff90e2c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/Deployment.php +++ b/vendor/google/apiclient-services/src/Google/Service/Script/Deployment.php @@ -23,10 +23,6 @@ class Google_Service_Script_Deployment extends Google_Collection public $deploymentId; protected $entryPointsType = 'Google_Service_Script_EntryPoint'; protected $entryPointsDataType = 'array'; - protected $functionSetType = 'Google_Service_Script_GoogleAppsScriptTypeFunctionSet'; - protected $functionSetDataType = ''; - protected $scopeSetType = 'Google_Service_Script_GoogleAppsScriptTypeScopeSet'; - protected $scopeSetDataType = ''; public $updateTime; /** @@ -65,34 +61,6 @@ class Google_Service_Script_Deployment extends Google_Collection { return $this->entryPoints; } - /** - * @param Google_Service_Script_GoogleAppsScriptTypeFunctionSet - */ - public function setFunctionSet(Google_Service_Script_GoogleAppsScriptTypeFunctionSet $functionSet) - { - $this->functionSet = $functionSet; - } - /** - * @return Google_Service_Script_GoogleAppsScriptTypeFunctionSet - */ - public function getFunctionSet() - { - return $this->functionSet; - } - /** - * @param Google_Service_Script_GoogleAppsScriptTypeScopeSet - */ - public function setScopeSet(Google_Service_Script_GoogleAppsScriptTypeScopeSet $scopeSet) - { - $this->scopeSet = $scopeSet; - } - /** - * @return Google_Service_Script_GoogleAppsScriptTypeScopeSet - */ - public function getScopeSet() - { - return $this->scopeSet; - } public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Processes.php b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Processes.php index e5d7f627..4e048bc1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Processes.php +++ b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Processes.php @@ -31,28 +31,6 @@ class Google_Service_Script_Resource_Processes extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The token for continuing a previous list request - * on the next page. This should be set to the value of `nextPageToken` from a - * previous response. - * @opt_param string userProcessFilter.endTime Optional field used to limit - * returned processes to those that completed on or before the given timestamp. - * @opt_param int pageSize The maximum number of returned processes per page of - * results. Defaults to 50. - * @opt_param string userProcessFilter.startTime Optional field used to limit - * returned processes to those that were started on or after the given - * timestamp. - * @opt_param string userProcessFilter.projectName Optional field used to limit - * returned processes to those originating from projects with project names - * containing a specific string. - * @opt_param string userProcessFilter.userAccessLevels Optional field used to - * limit returned processes to those having one of the specified user access - * levels. - * @opt_param string userProcessFilter.functionName Optional field used to limit - * returned processes to those originating from a script function with the given - * function name. - * @opt_param string userProcessFilter.scriptId Optional field used to limit - * returned processes to those originating from projects with a specific script - * ID. * @opt_param string userProcessFilter.types Optional field used to limit * returned processes to those having one of the specified process types. * @opt_param string userProcessFilter.statuses Optional field used to limit @@ -60,6 +38,28 @@ class Google_Service_Script_Resource_Processes extends Google_Service_Resource * @opt_param string userProcessFilter.deploymentId Optional field used to limit * returned processes to those originating from projects with a specific * deployment ID. + * @opt_param string userProcessFilter.endTime Optional field used to limit + * returned processes to those that completed on or before the given timestamp. + * @opt_param string pageToken The token for continuing a previous list request + * on the next page. This should be set to the value of `nextPageToken` from a + * previous response. + * @opt_param int pageSize The maximum number of returned processes per page of + * results. Defaults to 50. + * @opt_param string userProcessFilter.startTime Optional field used to limit + * returned processes to those that were started on or after the given + * timestamp. + * @opt_param string userProcessFilter.userAccessLevels Optional field used to + * limit returned processes to those having one of the specified user access + * levels. + * @opt_param string userProcessFilter.projectName Optional field used to limit + * returned processes to those originating from projects with project names + * containing a specific string. + * @opt_param string userProcessFilter.functionName Optional field used to limit + * returned processes to those originating from a script function with the given + * function name. + * @opt_param string userProcessFilter.scriptId Optional field used to limit + * returned processes to those originating from projects with a specific script + * ID. * @return Google_Service_Script_ListUserProcessesResponse */ public function listProcesses($optParams = array()) @@ -74,8 +74,6 @@ class Google_Service_Script_Resource_Processes extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param int pageSize The maximum number of returned processes per page of - * results. Defaults to 50. * @opt_param string scriptProcessFilter.endTime Optional field used to limit * returned processes to those that completed on or before the given timestamp. * @opt_param string scriptProcessFilter.userAccessLevels Optional field used to @@ -83,22 +81,24 @@ class Google_Service_Script_Resource_Processes extends Google_Service_Resource * levels. * @opt_param string scriptProcessFilter.statuses Optional field used to limit * returned processes to those having one of the specified process statuses. - * @opt_param string scriptProcessFilter.startTime Optional field used to limit - * returned processes to those that were started on or after the given - * timestamp. * @opt_param string scriptProcessFilter.functionName Optional field used to * limit returned processes to those originating from a script function with the * given function name. - * @opt_param string scriptProcessFilter.types Optional field used to limit - * returned processes to those having one of the specified process types. - * @opt_param string scriptId The script ID of the project whose processes are - * listed. + * @opt_param string scriptProcessFilter.startTime Optional field used to limit + * returned processes to those that were started on or after the given + * timestamp. * @opt_param string scriptProcessFilter.deploymentId Optional field used to * limit returned processes to those originating from projects with a specific * deployment ID. + * @opt_param string scriptId The script ID of the project whose processes are + * listed. + * @opt_param string scriptProcessFilter.types Optional field used to limit + * returned processes to those having one of the specified process types. * @opt_param string pageToken The token for continuing a previous list request * on the next page. This should be set to the value of `nextPageToken` from a * previous response. + * @opt_param int pageSize The maximum number of returned processes per page of + * results. Defaults to 50. * @return Google_Service_Script_ListScriptProcessesResponse */ public function listScriptProcesses($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/ProjectsDeployments.php b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/ProjectsDeployments.php index e8aa9b42..702ac7ae 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/ProjectsDeployments.php +++ b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/ProjectsDeployments.php @@ -74,11 +74,11 @@ class Google_Service_Script_Resource_ProjectsDeployments extends Google_Service_ * @param string $scriptId The script project's Drive ID. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The maximum number of deployments on each returned + * page. Defaults to 50. * @opt_param string pageToken The token for continuing a previous list request * on the next page. This should be set to the value of `nextPageToken` from a * previous response. - * @opt_param int pageSize The maximum number of deployments on each returned - * page. Defaults to 50. * @return Google_Service_Script_ListDeploymentsResponse */ public function listProjectsDeployments($scriptId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php index 1c5a0eb8..d4bf85f4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php +++ b/vendor/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php @@ -26,15 +26,20 @@ class Google_Service_Script_Resource_Scripts extends Google_Service_Resource { /** - * Runs a function in an Apps Script project. The project must be deployed for - * use with the Apps Script API. + * Runs a function in an Apps Script project. The script project must be + * deployed for use with the Apps Script API and the calling application must + * share the same Cloud Platform project. * * This method requires authorization with an OAuth 2.0 token that includes at * least one of the scopes listed in the [Authorization](#authorization) * section; script projects that do not require authorization cannot be executed * through this API. To find the correct scopes to include in the authentication * token, open the project in the script editor, then select **File > Project - * properties** and click the **Scopes** tab. (scripts.run) + * properties** and click the **Scopes** tab. + * + * The error `403, PERMISSION_DENIED: The caller does not have permission` + * indicates that the Cloud Platform project used to authorize the request is + * not the same as the one used by the script. (scripts.run) * * @param string $scriptId The script ID of the script to be executed. To find * the script ID, open the project in the script editor and select **File > diff --git a/vendor/google/apiclient-services/src/Google/Service/SearchConsole.php b/vendor/google/apiclient-services/src/Google/Service/SearchConsole.php index 671f2ca8..55e3d496 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SearchConsole.php +++ b/vendor/google/apiclient-services/src/Google/Service/SearchConsole.php @@ -44,6 +44,7 @@ class Google_Service_SearchConsole extends Google_Service parent::__construct($client); $this->rootUrl = 'https://searchconsole.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'searchconsole'; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker.php new file mode 100644 index 00000000..f3cf5c70 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker.php @@ -0,0 +1,96 @@ + + * The Google Cloud Platform Service Broker API provides Google hosted + * implementation of the Open Service Broker API + * (https://www.openservicebrokerapi.org/).
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_ServiceBroker extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $v1; + + /** + * Constructs the internal representation of the ServiceBroker service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://servicebroker.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'servicebroker'; + + $this->v1 = new Google_Service_ServiceBroker_Resource_V1( + $this, + $this->serviceName, + 'v1', + array( + 'methods' => array( + 'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Binding.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Binding.php new file mode 100644 index 00000000..e4ec18a6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Binding.php @@ -0,0 +1,56 @@ +condition = $condition; + } + /** + * @return Google_Service_ServiceBroker_GoogleTypeExpr + */ + public function getCondition() + { + return $this->condition; + } + public function setMembers($members) + { + $this->members = $members; + } + public function getMembers() + { + return $this->members; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Policy.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Policy.php new file mode 100644 index 00000000..d8ec59e0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Policy.php @@ -0,0 +1,56 @@ +bindings = $bindings; + } + /** + * @return Google_Service_ServiceBroker_GoogleIamV1Binding + */ + public function getBindings() + { + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1SetIamPolicyRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1SetIamPolicyRequest.php new file mode 100644 index 00000000..8ed4b587 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1SetIamPolicyRequest.php @@ -0,0 +1,37 @@ +policy = $policy; + } + /** + * @return Google_Service_ServiceBroker_GoogleIamV1Policy + */ + public function getPolicy() + { + return $this->policy; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsRequest.php new file mode 100644 index 00000000..17a4375b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsRequest.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsResponse.php new file mode 100644 index 00000000..b8dc70d4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1TestIamPermissionsResponse.php @@ -0,0 +1,31 @@ +permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleTypeExpr.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleTypeExpr.php new file mode 100644 index 00000000..bf7e3739 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleTypeExpr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/Resource/V1.php b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/Resource/V1.php new file mode 100644 index 00000000..bbf5b9df --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/Resource/V1.php @@ -0,0 +1,83 @@ + + * $servicebrokerService = new Google_Service_ServiceBroker(...); + * $v1 = $servicebrokerService->v1; + * + */ +class Google_Service_ServiceBroker_Resource_V1 extends Google_Service_Resource +{ + /** + * Gets the access control policy for a resource. Returns an empty policy if the + * resource exists and does not have a policy set. (v1.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See the operation documentation for the appropriate value for this + * field. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceBroker_GoogleIamV1Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_ServiceBroker_GoogleIamV1Policy"); + } + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (v1.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See the operation documentation for the appropriate value for this + * field. + * @param Google_Service_ServiceBroker_GoogleIamV1SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceBroker_GoogleIamV1Policy + */ + public function setIamPolicy($resource, Google_Service_ServiceBroker_GoogleIamV1SetIamPolicyRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', array($params), "Google_Service_ServiceBroker_GoogleIamV1Policy"); + } + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of permissions, not a + * NOT_FOUND error. + * + * Note: This operation is designed to be used for building permission-aware UIs + * and command-line tools, not for authorization checking. This operation may + * "fail open" without warning. (v1.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See the operation documentation for the appropriate value + * for this field. + * @param Google_Service_ServiceBroker_GoogleIamV1TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceBroker_GoogleIamV1TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_ServiceBroker_GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_ServiceBroker_GoogleIamV1TestIamPermissionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement.php index 579f2713..79d10026 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement.php @@ -19,8 +19,7 @@ * Service definition for ServiceConsumerManagement (v1). * *- * Provides management methods for configuring service producer resources on - * Google Cloud.
+ * Manages the service consumers of a Service Infrastructure service. * ** For more information about this service, see the API @@ -34,9 +33,6 @@ class Google_Service_ServiceConsumerManagement extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google API service configuration. */ - const SERVICE_MANAGEMENT = - "https://www.googleapis.com/auth/service.management"; public $operations; public $services; @@ -53,6 +49,7 @@ class Google_Service_ServiceConsumerManagement extends Google_Service parent::__construct($client); $this->rootUrl = 'https://serviceconsumermanagement.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'serviceconsumermanagement'; @@ -133,10 +130,6 @@ class Google_Service_ServiceConsumerManagement extends Google_Service 'type' => 'string', 'required' => true, ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -145,6 +138,10 @@ class Google_Service_ServiceConsumerManagement extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -166,6 +163,26 @@ class Google_Service_ServiceConsumerManagement extends Google_Service 'required' => true, ), ), + ),'applyProjectConfig' => array( + 'path' => 'v1/{+name}:applyProjectConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'attachProject' => array( + 'path' => 'v1/{+name}:attachProject', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'create' => array( 'path' => 'v1/{+parent}/tenancyUnits', 'httpMethod' => 'POST', @@ -195,10 +212,6 @@ class Google_Service_ServiceConsumerManagement extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -207,6 +220,10 @@ class Google_Service_ServiceConsumerManagement extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'removeProject' => array( 'path' => 'v1/{+name}:removeProject', diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/ApplyTenantProjectConfigRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/ApplyTenantProjectConfigRequest.php new file mode 100644 index 00000000..c44b974d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/ApplyTenantProjectConfigRequest.php @@ -0,0 +1,46 @@ +projectConfig = $projectConfig; + } + /** + * @return Google_Service_ServiceConsumerManagement_TenantProjectConfig + */ + public function getProjectConfig() + { + return $this->projectConfig; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AttachTenantProjectRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AttachTenantProjectRequest.php new file mode 100644 index 00000000..715d866d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AttachTenantProjectRequest.php @@ -0,0 +1,48 @@ +externalResource = $externalResource; + } + public function getExternalResource() + { + return $this->externalResource; + } + public function setReservedResource($reservedResource) + { + $this->reservedResource = $reservedResource; + } + public function getReservedResource() + { + return $this->reservedResource; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthenticationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthenticationRule.php index 3d838a8e..b7ec71ae 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthenticationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/AuthenticationRule.php @@ -19,8 +19,6 @@ class Google_Service_ServiceConsumerManagement_AuthenticationRule extends Google { protected $collection_key = 'requirements'; public $allowWithoutCredential; - protected $customAuthType = 'Google_Service_ServiceConsumerManagement_CustomAuthRequirements'; - protected $customAuthDataType = ''; protected $oauthType = 'Google_Service_ServiceConsumerManagement_OAuthRequirements'; protected $oauthDataType = ''; protected $requirementsType = 'Google_Service_ServiceConsumerManagement_AuthRequirement'; @@ -35,20 +33,6 @@ class Google_Service_ServiceConsumerManagement_AuthenticationRule extends Google { return $this->allowWithoutCredential; } - /** - * @param Google_Service_ServiceConsumerManagement_CustomAuthRequirements - */ - public function setCustomAuth(Google_Service_ServiceConsumerManagement_CustomAuthRequirements $customAuth) - { - $this->customAuth = $customAuth; - } - /** - * @return Google_Service_ServiceConsumerManagement_CustomAuthRequirements - */ - public function getCustomAuth() - { - return $this->customAuth; - } /** * @param Google_Service_ServiceConsumerManagement_OAuthRequirements */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/BackendRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/BackendRule.php index 5d581a47..68e23871 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/BackendRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/BackendRule.php @@ -19,7 +19,10 @@ class Google_Service_ServiceConsumerManagement_BackendRule extends Google_Model { public $address; public $deadline; + public $jwtAudience; public $minDeadline; + public $operationDeadline; + public $pathTranslation; public $selector; public function setAddress($address) @@ -38,6 +41,14 @@ class Google_Service_ServiceConsumerManagement_BackendRule extends Google_Model { return $this->deadline; } + public function setJwtAudience($jwtAudience) + { + $this->jwtAudience = $jwtAudience; + } + public function getJwtAudience() + { + return $this->jwtAudience; + } public function setMinDeadline($minDeadline) { $this->minDeadline = $minDeadline; @@ -46,6 +57,22 @@ class Google_Service_ServiceConsumerManagement_BackendRule extends Google_Model { return $this->minDeadline; } + public function setOperationDeadline($operationDeadline) + { + $this->operationDeadline = $operationDeadline; + } + public function getOperationDeadline() + { + return $this->operationDeadline; + } + public function setPathTranslation($pathTranslation) + { + $this->pathTranslation = $pathTranslation; + } + public function getPathTranslation() + { + return $this->pathTranslation; + } public function setSelector($selector) { $this->selector = $selector; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/HttpRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/HttpRule.php index a580012f..b94713ac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/HttpRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/HttpRule.php @@ -17,25 +17,18 @@ class Google_Service_ServiceConsumerManagement_HttpRule extends Google_Collection { - protected $collection_key = 'authorizations'; + protected $collection_key = 'additionalBindings'; protected $additionalBindingsType = 'Google_Service_ServiceConsumerManagement_HttpRule'; protected $additionalBindingsDataType = 'array'; - protected $authorizationsType = 'Google_Service_ServiceConsumerManagement_AuthorizationRule'; - protected $authorizationsDataType = 'array'; public $body; protected $customType = 'Google_Service_ServiceConsumerManagement_CustomHttpPattern'; protected $customDataType = ''; public $delete; public $get; - protected $mediaDownloadType = 'Google_Service_ServiceConsumerManagement_MediaDownload'; - protected $mediaDownloadDataType = ''; - protected $mediaUploadType = 'Google_Service_ServiceConsumerManagement_MediaUpload'; - protected $mediaUploadDataType = ''; public $patch; public $post; public $put; - public $restCollection; - public $restMethodName; + public $responseBody; public $selector; /** @@ -52,20 +45,6 @@ class Google_Service_ServiceConsumerManagement_HttpRule extends Google_Collectio { return $this->additionalBindings; } - /** - * @param Google_Service_ServiceConsumerManagement_AuthorizationRule - */ - public function setAuthorizations($authorizations) - { - $this->authorizations = $authorizations; - } - /** - * @return Google_Service_ServiceConsumerManagement_AuthorizationRule - */ - public function getAuthorizations() - { - return $this->authorizations; - } public function setBody($body) { $this->body = $body; @@ -104,34 +83,6 @@ class Google_Service_ServiceConsumerManagement_HttpRule extends Google_Collectio { return $this->get; } - /** - * @param Google_Service_ServiceConsumerManagement_MediaDownload - */ - public function setMediaDownload(Google_Service_ServiceConsumerManagement_MediaDownload $mediaDownload) - { - $this->mediaDownload = $mediaDownload; - } - /** - * @return Google_Service_ServiceConsumerManagement_MediaDownload - */ - public function getMediaDownload() - { - return $this->mediaDownload; - } - /** - * @param Google_Service_ServiceConsumerManagement_MediaUpload - */ - public function setMediaUpload(Google_Service_ServiceConsumerManagement_MediaUpload $mediaUpload) - { - $this->mediaUpload = $mediaUpload; - } - /** - * @return Google_Service_ServiceConsumerManagement_MediaUpload - */ - public function getMediaUpload() - { - return $this->mediaUpload; - } public function setPatch($patch) { $this->patch = $patch; @@ -156,21 +107,13 @@ class Google_Service_ServiceConsumerManagement_HttpRule extends Google_Collectio { return $this->put; } - public function setRestCollection($restCollection) + public function setResponseBody($responseBody) { - $this->restCollection = $restCollection; + $this->responseBody = $responseBody; } - public function getRestCollection() + public function getResponseBody() { - return $this->restCollection; - } - public function setRestMethodName($restMethodName) - { - $this->restMethodName = $restMethodName; - } - public function getRestMethodName() - { - return $this->restMethodName; + return $this->responseBody; } public function setSelector($selector) { diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaDownload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaDownload.php deleted file mode 100644 index e96d9de7..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaDownload.php +++ /dev/null @@ -1,75 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDownloadService($downloadService) - { - $this->downloadService = $downloadService; - } - public function getDownloadService() - { - return $this->downloadService; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxDirectDownloadSize($maxDirectDownloadSize) - { - $this->maxDirectDownloadSize = $maxDirectDownloadSize; - } - public function getMaxDirectDownloadSize() - { - return $this->maxDirectDownloadSize; - } - public function setUseDirectDownload($useDirectDownload) - { - $this->useDirectDownload = $useDirectDownload; - } - public function getUseDirectDownload() - { - return $this->useDirectDownload; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaUpload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaUpload.php deleted file mode 100644 index cc3e633f..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MediaUpload.php +++ /dev/null @@ -1,94 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxSize($maxSize) - { - $this->maxSize = $maxSize; - } - public function getMaxSize() - { - return $this->maxSize; - } - public function setMimeTypes($mimeTypes) - { - $this->mimeTypes = $mimeTypes; - } - public function getMimeTypes() - { - return $this->mimeTypes; - } - public function setProgressNotification($progressNotification) - { - $this->progressNotification = $progressNotification; - } - public function getProgressNotification() - { - return $this->progressNotification; - } - public function setStartNotification($startNotification) - { - $this->startNotification = $startNotification; - } - public function getStartNotification() - { - return $this->startNotification; - } - public function setUploadService($uploadService) - { - $this->uploadService = $uploadService; - } - public function getUploadService() - { - return $this->uploadService; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptor.php index c31c9063..4b291b64 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_ServiceConsumerManagement_MetricDescriptor extends Google_C public $displayName; protected $labelsType = 'Google_Service_ServiceConsumerManagement_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_ServiceConsumerManagement_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_ServiceConsumerManagement_MetricDescriptor extends Google_C { return $this->labels; } + /** + * @param Google_Service_ServiceConsumerManagement_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_ServiceConsumerManagement_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_ServiceConsumerManagement_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptorMetadata.php new file mode 100644 index 00000000..46eb20ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/Services.php index 435b748c..8a415f6b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/Services.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/Services.php @@ -33,6 +33,17 @@ class Google_Service_ServiceConsumerManagement_Resource_Services extends Google_ * 'service.googleapis.com'. * @param array $optParams Optional parameters. * + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of `nextPageToken` from the previous response. + * + * Optional. + * @opt_param int pageSize The maximum number of results returned by this + * request. Currently, the default maximum is set to 1000. If page_size is not + * provided or the size provided is a number larger than 1000, it will be + * automatically set to 1000. + * + * Optional. * @opt_param string query Set a query `{expression}` for querying tenancy * units. Your `{expression}` must be in the format: * `field_name=literal_string`. The `field_name` is the name of the field you @@ -50,17 +61,6 @@ class Google_Service_ServiceConsumerManagement_Resource_Services extends Google_ * `tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456` * * Optional. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of `nextPageToken` from the previous response. - * - * Optional. - * @opt_param int pageSize The maximum number of results returned by this - * request. Currently, the default maximum is set to 1000. If page_size is not - * provided or the size provided is a number larger than 1000, it will be - * automatically set to 1000. - * - * Optional. * @return Google_Service_ServiceConsumerManagement_SearchTenancyUnitsResponse */ public function search($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/ServicesTenancyUnits.php b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/ServicesTenancyUnits.php index 0016f3c1..ced68083 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/ServicesTenancyUnits.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceConsumerManagement/Resource/ServicesTenancyUnits.php @@ -43,6 +43,55 @@ class Google_Service_ServiceConsumerManagement_Resource_ServicesTenancyUnits ext $params = array_merge($params, $optParams); return $this->call('addProject', array($params), "Google_Service_ServiceConsumerManagement_Operation"); } + /** + * Apply configuration to an existing tenant project. This project must exist in + * active state and have the original owner account. Caller must have the + * permission to add a project to the given tenancy unit. Configuration will be + * applied, but any existing settings on the project will not be modified. + * Specified policy bindings will be applied. Existing binding will not be + * modified. Specified services will be activated. No service will be + * deactivated. New billing configuration will be applied if specified. Omit + * billing configuration to keep the existing one. Service account in the + * project will be created if previously non existing. Specified folder will be + * ignored, moving tenant project to a different folder is not supported. + * Operation fails if any of the steps fail, but no rollback of already applied + * configuration changes is attempted. Operation. + * (tenancyUnits.applyProjectConfig) + * + * @param string $name Name of the tenancy unit. + * @param Google_Service_ServiceConsumerManagement_ApplyTenantProjectConfigRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceConsumerManagement_Operation + */ + public function applyProjectConfig($name, Google_Service_ServiceConsumerManagement_ApplyTenantProjectConfigRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('applyProjectConfig', array($params), "Google_Service_ServiceConsumerManagement_Operation"); + } + /** + * Attach an existing project to the tenancy unit as a new tenant resource. The + * project could be either the tenant project reserved by calling + * AddTenantProject under tenancy unit for the producer project of service, or + * from outside. Caller will be checked against the permission as if calling + * AddTenantProject on the same consumer. To trigger the attachement, the + * targeted tenant project must be in a folder. Please also make sure + * ServiceConsumerManagement service account is the owner of that project. Note + * that these two requirements are already met if the project is reserved + * through AddTenantProject. Operation. (tenancyUnits.attachProject) + * + * @param string $name Name of the tenancy unit that project will be attached + * to. + * @param Google_Service_ServiceConsumerManagement_AttachTenantProjectRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceConsumerManagement_Operation + */ + public function attachProject($name, Google_Service_ServiceConsumerManagement_AttachTenantProjectRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('attachProject', array($params), "Google_Service_ServiceConsumerManagement_Operation"); + } /** * Creates a tenancy unit with no tenant resources. (tenancyUnits.create) * @@ -64,7 +113,8 @@ class Google_Service_ServiceConsumerManagement_Resource_ServicesTenancyUnits ext } /** * Delete a tenancy unit. Before the tenancy unit is deleted, there should be - * no tenant resources in it. Operation. (tenancyUnits.delete) + * no tenant resources in it not in DELETED state. Operation. + * (tenancyUnits.delete) * * @param string $name Name of the tenancy unit to be deleted. * @param array $optParams Optional parameters. @@ -91,13 +141,13 @@ class Google_Service_ServiceConsumerManagement_Resource_ServicesTenancyUnits ext * example 'service.googleapis.com'. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of `nextPageToken` from the previous response. * @opt_param int pageSize The maximum number of results returned by this * request. * @opt_param string filter Filter expression over tenancy resources field. * Optional. + * @opt_param string pageToken The continuation token, which is used to page + * through large result sets. To get the next page of results, set this + * parameter to the value of `nextPageToken` from the previous response. * @return Google_Service_ServiceConsumerManagement_ListTenancyUnitsResponse */ public function listServicesTenancyUnits($parent, $optParams = array()) @@ -110,7 +160,10 @@ class Google_Service_ServiceConsumerManagement_Resource_ServicesTenancyUnits ext * Removes specified project resource identified by tenant resource tag. It will * remove project lien with 'TenantManager' origin if that was added. It will * then attempt to delete the project. If that operation fails, this method - * fails. Operation. (tenancyUnits.removeProject) + * fails. Calls to remove already removed or non-existent tenant project will + * succeed. After the project has been deleted, or if was already in DELETED + * state, resource metadata is permanently removed from the tenancy unit. + * Operation. (tenancyUnits.removeProject) * * @param string $name Name of the tenancy unit. Such as * 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl.php index 64cab2a8..a48423aa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl.php @@ -19,8 +19,8 @@ * Service definition for ServiceControl (v1). * *
- * Google Service Control provides control plane functionality to managed - * services, such as logging, monitoring, and status checks.
+ * Provides control plane functionality to managed services, such as logging, + * monitoring, and status checks. * ** For more information about this service, see the API @@ -50,6 +50,7 @@ class Google_Service_ServiceControl extends Google_Service parent::__construct($client); $this->rootUrl = 'https://servicecontrol.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'servicecontrol'; @@ -79,26 +80,6 @@ class Google_Service_ServiceControl extends Google_Service 'required' => true, ), ), - ),'endReconciliation' => array( - 'path' => 'v1/services/{serviceName}:endReconciliation', - 'httpMethod' => 'POST', - 'parameters' => array( - 'serviceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'releaseQuota' => array( - 'path' => 'v1/services/{serviceName}:releaseQuota', - 'httpMethod' => 'POST', - 'parameters' => array( - 'serviceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'report' => array( 'path' => 'v1/services/{serviceName}:report', 'httpMethod' => 'POST', @@ -109,16 +90,6 @@ class Google_Service_ServiceControl extends Google_Service 'required' => true, ), ), - ),'startReconciliation' => array( - 'path' => 'v1/services/{serviceName}:startReconciliation', - 'httpMethod' => 'POST', - 'parameters' => array( - 'serviceName' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ), ) ) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php index 35728bc0..c3d30d04 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php @@ -28,7 +28,10 @@ class Google_Service_ServiceControl_AuditLog extends Google_Collection public $request; protected $requestMetadataType = 'Google_Service_ServiceControl_RequestMetadata'; protected $requestMetadataDataType = ''; + protected $resourceLocationType = 'Google_Service_ServiceControl_ResourceLocation'; + protected $resourceLocationDataType = ''; public $resourceName; + public $resourceOriginalState; public $response; public $serviceData; public $serviceName; @@ -109,6 +112,20 @@ class Google_Service_ServiceControl_AuditLog extends Google_Collection { return $this->requestMetadata; } + /** + * @param Google_Service_ServiceControl_ResourceLocation + */ + public function setResourceLocation(Google_Service_ServiceControl_ResourceLocation $resourceLocation) + { + $this->resourceLocation = $resourceLocation; + } + /** + * @return Google_Service_ServiceControl_ResourceLocation + */ + public function getResourceLocation() + { + return $this->resourceLocation; + } public function setResourceName($resourceName) { $this->resourceName = $resourceName; @@ -117,6 +134,14 @@ class Google_Service_ServiceControl_AuditLog extends Google_Collection { return $this->resourceName; } + public function setResourceOriginalState($resourceOriginalState) + { + $this->resourceOriginalState = $resourceOriginalState; + } + public function getResourceOriginalState() + { + return $this->resourceOriginalState; + } public function setResponse($response) { $this->response = $response; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Auth.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Auth.php new file mode 100644 index 00000000..d3a91014 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Auth.php @@ -0,0 +1,67 @@ +accessLevels = $accessLevels; + } + public function getAccessLevels() + { + return $this->accessLevels; + } + public function setAudiences($audiences) + { + $this->audiences = $audiences; + } + public function getAudiences() + { + return $this->audiences; + } + public function setClaims($claims) + { + $this->claims = $claims; + } + public function getClaims() + { + return $this->claims; + } + public function setPresenter($presenter) + { + $this->presenter = $presenter; + } + public function getPresenter() + { + return $this->presenter; + } + public function setPrincipal($principal) + { + $this->principal = $principal; + } + public function getPrincipal() + { + return $this->principal; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php index 583b521c..d371218d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php @@ -15,10 +15,14 @@ * the License. */ -class Google_Service_ServiceControl_AuthenticationInfo extends Google_Model +class Google_Service_ServiceControl_AuthenticationInfo extends Google_Collection { + protected $collection_key = 'serviceAccountDelegationInfo'; public $authoritySelector; public $principalEmail; + protected $serviceAccountDelegationInfoType = 'Google_Service_ServiceControl_ServiceAccountDelegationInfo'; + protected $serviceAccountDelegationInfoDataType = 'array'; + public $serviceAccountKeyName; public $thirdPartyPrincipal; public function setAuthoritySelector($authoritySelector) @@ -37,6 +41,28 @@ class Google_Service_ServiceControl_AuthenticationInfo extends Google_Model { return $this->principalEmail; } + /** + * @param Google_Service_ServiceControl_ServiceAccountDelegationInfo + */ + public function setServiceAccountDelegationInfo($serviceAccountDelegationInfo) + { + $this->serviceAccountDelegationInfo = $serviceAccountDelegationInfo; + } + /** + * @return Google_Service_ServiceControl_ServiceAccountDelegationInfo + */ + public function getServiceAccountDelegationInfo() + { + return $this->serviceAccountDelegationInfo; + } + public function setServiceAccountKeyName($serviceAccountKeyName) + { + $this->serviceAccountKeyName = $serviceAccountKeyName; + } + public function getServiceAccountKeyName() + { + return $this->serviceAccountKeyName; + } public function setThirdPartyPrincipal($thirdPartyPrincipal) { $this->thirdPartyPrincipal = $thirdPartyPrincipal; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php index 71f0c5fe..a77d4ddc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php @@ -20,6 +20,8 @@ class Google_Service_ServiceControl_AuthorizationInfo extends Google_Model public $granted; public $permission; public $resource; + protected $resourceAttributesType = 'Google_Service_ServiceControl_ServicecontrolResource'; + protected $resourceAttributesDataType = ''; public function setGranted($granted) { @@ -45,4 +47,18 @@ class Google_Service_ServiceControl_AuthorizationInfo extends Google_Model { return $this->resource; } + /** + * @param Google_Service_ServiceControl_ServicecontrolResource + */ + public function setResourceAttributes(Google_Service_ServiceControl_ServicecontrolResource $resourceAttributes) + { + $this->resourceAttributes = $resourceAttributes; + } + /** + * @return Google_Service_ServiceControl_ServicecontrolResource + */ + public function getResourceAttributes() + { + return $this->resourceAttributes; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php index fc809567..c6f4379d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php @@ -19,6 +19,8 @@ class Google_Service_ServiceControl_CheckError extends Google_Model { public $code; public $detail; + protected $statusType = 'Google_Service_ServiceControl_Status'; + protected $statusDataType = ''; public $subject; public function setCode($code) @@ -37,6 +39,20 @@ class Google_Service_ServiceControl_CheckError extends Google_Model { return $this->detail; } + /** + * @param Google_Service_ServiceControl_Status + */ + public function setStatus(Google_Service_ServiceControl_Status $status) + { + $this->status = $status; + } + /** + * @return Google_Service_ServiceControl_Status + */ + public function getStatus() + { + return $this->status; + } public function setSubject($subject) { $this->subject = $subject; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ConsumerInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ConsumerInfo.php index d80cdd66..21047cb9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ConsumerInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ConsumerInfo.php @@ -17,8 +17,18 @@ class Google_Service_ServiceControl_ConsumerInfo extends Google_Model { + public $consumerNumber; public $projectNumber; + public $type; + public function setConsumerNumber($consumerNumber) + { + $this->consumerNumber = $consumerNumber; + } + public function getConsumerNumber() + { + return $this->consumerNumber; + } public function setProjectNumber($projectNumber) { $this->projectNumber = $projectNumber; @@ -27,4 +37,12 @@ class Google_Service_ServiceControl_ConsumerInfo extends Google_Model { return $this->projectNumber; } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php deleted file mode 100644 index 20f7d715..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php +++ /dev/null @@ -1,46 +0,0 @@ -reconciliationOperation = $reconciliationOperation; - } - /** - * @return Google_Service_ServiceControl_QuotaOperation - */ - public function getReconciliationOperation() - { - return $this->reconciliationOperation; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php deleted file mode 100644 index ee321700..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - /** - * @param Google_Service_ServiceControl_MetricValueSet - */ - public function setQuotaMetrics($quotaMetrics) - { - $this->quotaMetrics = $quotaMetrics; - } - /** - * @return Google_Service_ServiceControl_MetricValueSet - */ - public function getQuotaMetrics() - { - return $this->quotaMetrics; - } - /** - * @param Google_Service_ServiceControl_QuotaError - */ - public function setReconciliationErrors($reconciliationErrors) - { - $this->reconciliationErrors = $reconciliationErrors; - } - /** - * @return Google_Service_ServiceControl_QuotaError - */ - public function getReconciliationErrors() - { - return $this->reconciliationErrors; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/FirstPartyPrincipal.php similarity index 58% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceControl/FirstPartyPrincipal.php index 15484239..00541c6a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/FirstPartyPrincipal.php @@ -15,25 +15,25 @@ * the License. */ -class Google_Service_ShoppingContent_ProductDestination extends Google_Model +class Google_Service_ServiceControl_FirstPartyPrincipal extends Google_Model { - public $destinationName; - public $intention; + public $principalEmail; + public $serviceMetadata; - public function setDestinationName($destinationName) + public function setPrincipalEmail($principalEmail) { - $this->destinationName = $destinationName; + $this->principalEmail = $principalEmail; } - public function getDestinationName() + public function getPrincipalEmail() { - return $this->destinationName; + return $this->principalEmail; } - public function setIntention($intention) + public function setServiceMetadata($serviceMetadata) { - $this->intention = $intention; + $this->serviceMetadata = $serviceMetadata; } - public function getIntention() + public function getServiceMetadata() { - return $this->intention; + return $this->serviceMetadata; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/HttpRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/HttpRequest.php new file mode 100644 index 00000000..05f408af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/HttpRequest.php @@ -0,0 +1,156 @@ +cacheFillBytes = $cacheFillBytes; + } + public function getCacheFillBytes() + { + return $this->cacheFillBytes; + } + public function setCacheHit($cacheHit) + { + $this->cacheHit = $cacheHit; + } + public function getCacheHit() + { + return $this->cacheHit; + } + public function setCacheLookup($cacheLookup) + { + $this->cacheLookup = $cacheLookup; + } + public function getCacheLookup() + { + return $this->cacheLookup; + } + public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer) + { + $this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer; + } + public function getCacheValidatedWithOriginServer() + { + return $this->cacheValidatedWithOriginServer; + } + public function setLatency($latency) + { + $this->latency = $latency; + } + public function getLatency() + { + return $this->latency; + } + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + public function getProtocol() + { + return $this->protocol; + } + public function setReferer($referer) + { + $this->referer = $referer; + } + public function getReferer() + { + return $this->referer; + } + public function setRemoteIp($remoteIp) + { + $this->remoteIp = $remoteIp; + } + public function getRemoteIp() + { + return $this->remoteIp; + } + public function setRequestMethod($requestMethod) + { + $this->requestMethod = $requestMethod; + } + public function getRequestMethod() + { + return $this->requestMethod; + } + public function setRequestSize($requestSize) + { + $this->requestSize = $requestSize; + } + public function getRequestSize() + { + return $this->requestSize; + } + public function setRequestUrl($requestUrl) + { + $this->requestUrl = $requestUrl; + } + public function getRequestUrl() + { + return $this->requestUrl; + } + public function setResponseSize($responseSize) + { + $this->responseSize = $responseSize; + } + public function getResponseSize() + { + return $this->responseSize; + } + public function setServerIp($serverIp) + { + $this->serverIp = $serverIp; + } + public function getServerIp() + { + return $this->serverIp; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php index 301d303e..59df6467 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php @@ -17,15 +17,34 @@ class Google_Service_ServiceControl_LogEntry extends Google_Model { + protected $httpRequestType = 'Google_Service_ServiceControl_HttpRequest'; + protected $httpRequestDataType = ''; public $insertId; public $labels; public $name; + protected $operationType = 'Google_Service_ServiceControl_LogEntryOperation'; + protected $operationDataType = ''; public $protoPayload; public $severity; public $structPayload; public $textPayload; public $timestamp; + public $trace; + /** + * @param Google_Service_ServiceControl_HttpRequest + */ + public function setHttpRequest(Google_Service_ServiceControl_HttpRequest $httpRequest) + { + $this->httpRequest = $httpRequest; + } + /** + * @return Google_Service_ServiceControl_HttpRequest + */ + public function getHttpRequest() + { + return $this->httpRequest; + } public function setInsertId($insertId) { $this->insertId = $insertId; @@ -50,6 +69,20 @@ class Google_Service_ServiceControl_LogEntry extends Google_Model { return $this->name; } + /** + * @param Google_Service_ServiceControl_LogEntryOperation + */ + public function setOperation(Google_Service_ServiceControl_LogEntryOperation $operation) + { + $this->operation = $operation; + } + /** + * @return Google_Service_ServiceControl_LogEntryOperation + */ + public function getOperation() + { + return $this->operation; + } public function setProtoPayload($protoPayload) { $this->protoPayload = $protoPayload; @@ -90,4 +123,12 @@ class Google_Service_ServiceControl_LogEntry extends Google_Model { return $this->timestamp; } + public function setTrace($trace) + { + $this->trace = $trace; + } + public function getTrace() + { + return $this->trace; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntryOperation.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntryOperation.php new file mode 100644 index 00000000..09df6675 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/LogEntryOperation.php @@ -0,0 +1,57 @@ +first = $first; + } + public function getFirst() + { + return $this->first; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLast($last) + { + $this->last = $last; + } + public function getLast() + { + return $this->last; + } + public function setProducer($producer) + { + $this->producer = $producer; + } + public function getProducer() + { + return $this->producer; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Peer.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Peer.php new file mode 100644 index 00000000..0778b3e2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Peer.php @@ -0,0 +1,75 @@ +ip = $ip; + } + public function getIp() + { + return $this->ip; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setPrincipal($principal) + { + $this->principal = $principal; + } + public function getPrincipal() + { + return $this->principal; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php deleted file mode 100644 index 4f1a941a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php +++ /dev/null @@ -1,46 +0,0 @@ -releaseOperation = $releaseOperation; - } - /** - * @return Google_Service_ServiceControl_QuotaOperation - */ - public function getReleaseOperation() - { - return $this->releaseOperation; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php deleted file mode 100644 index fa6d5af7..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - /** - * @param Google_Service_ServiceControl_MetricValueSet - */ - public function setQuotaMetrics($quotaMetrics) - { - $this->quotaMetrics = $quotaMetrics; - } - /** - * @return Google_Service_ServiceControl_MetricValueSet - */ - public function getQuotaMetrics() - { - return $this->quotaMetrics; - } - /** - * @param Google_Service_ServiceControl_QuotaError - */ - public function setReleaseErrors($releaseErrors) - { - $this->releaseErrors = $releaseErrors; - } - /** - * @return Google_Service_ServiceControl_QuotaError - */ - public function getReleaseErrors() - { - return $this->releaseErrors; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Request.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Request.php new file mode 100644 index 00000000..7ca0db2b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Request.php @@ -0,0 +1,145 @@ +auth = $auth; + } + /** + * @return Google_Service_ServiceControl_Auth + */ + public function getAuth() + { + return $this->auth; + } + public function setFragment($fragment) + { + $this->fragment = $fragment; + } + public function getFragment() + { + return $this->fragment; + } + public function setHeaders($headers) + { + $this->headers = $headers; + } + public function getHeaders() + { + return $this->headers; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + public function getProtocol() + { + return $this->protocol; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setScheme($scheme) + { + $this->scheme = $scheme; + } + public function getScheme() + { + return $this->scheme; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php index 8097c9a8..b2672ada 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php @@ -20,6 +20,10 @@ class Google_Service_ServiceControl_RequestMetadata extends Google_Model public $callerIp; public $callerNetwork; public $callerSuppliedUserAgent; + protected $destinationAttributesType = 'Google_Service_ServiceControl_Peer'; + protected $destinationAttributesDataType = ''; + protected $requestAttributesType = 'Google_Service_ServiceControl_Request'; + protected $requestAttributesDataType = ''; public function setCallerIp($callerIp) { @@ -45,4 +49,32 @@ class Google_Service_ServiceControl_RequestMetadata extends Google_Model { return $this->callerSuppliedUserAgent; } + /** + * @param Google_Service_ServiceControl_Peer + */ + public function setDestinationAttributes(Google_Service_ServiceControl_Peer $destinationAttributes) + { + $this->destinationAttributes = $destinationAttributes; + } + /** + * @return Google_Service_ServiceControl_Peer + */ + public function getDestinationAttributes() + { + return $this->destinationAttributes; + } + /** + * @param Google_Service_ServiceControl_Request + */ + public function setRequestAttributes(Google_Service_ServiceControl_Request $requestAttributes) + { + $this->requestAttributes = $requestAttributes; + } + /** + * @return Google_Service_ServiceControl_Request + */ + public function getRequestAttributes() + { + return $this->requestAttributes; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php index 30c0f023..0280d3fe 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php @@ -85,54 +85,6 @@ class Google_Service_ServiceControl_Resource_Services extends Google_Service_Res $params = array_merge($params, $optParams); return $this->call('check', array($params), "Google_Service_ServiceControl_CheckResponse"); } - /** - * Signals the quota controller that service ends the ongoing usage - * reconciliation. - * - * This method requires the `servicemanagement.services.quota` permission on the - * specified service. For more information, see [Google Cloud - * IAM](https://cloud.google.com/iam). (services.endReconciliation) - * - * @param string $serviceName Name of the service as specified in the service - * configuration. For example, `"pubsub.googleapis.com"`. - * - * See google.api.Service for the definition of a service name. - * @param Google_Service_ServiceControl_EndReconciliationRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceControl_EndReconciliationResponse - */ - public function endReconciliation($serviceName, Google_Service_ServiceControl_EndReconciliationRequest $postBody, $optParams = array()) - { - $params = array('serviceName' => $serviceName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('endReconciliation', array($params), "Google_Service_ServiceControl_EndReconciliationResponse"); - } - /** - * Releases previously allocated quota done through AllocateQuota method. - * - * This method requires the `servicemanagement.services.quota` permission on the - * specified service. For more information, see [Cloud - * IAM](https://cloud.google.com/iam). - * - * **NOTE:** The client **must** fail-open on server errors `INTERNAL`, - * `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system - * reliability, the server may inject these errors to prohibit any hard - * dependency on the quota functionality. (services.releaseQuota) - * - * @param string $serviceName Name of the service as specified in the service - * configuration. For example, `"pubsub.googleapis.com"`. - * - * See google.api.Service for the definition of a service name. - * @param Google_Service_ServiceControl_ReleaseQuotaRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceControl_ReleaseQuotaResponse - */ - public function releaseQuota($serviceName, Google_Service_ServiceControl_ReleaseQuotaRequest $postBody, $optParams = array()) - { - $params = array('serviceName' => $serviceName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('releaseQuota', array($params), "Google_Service_ServiceControl_ReleaseQuotaResponse"); - } /** * Reports operation results to Google Service Control, such as logs and * metrics. It should be called after an operation is completed. @@ -165,43 +117,4 @@ class Google_Service_ServiceControl_Resource_Services extends Google_Service_Res $params = array_merge($params, $optParams); return $this->call('report', array($params), "Google_Service_ServiceControl_ReportResponse"); } - /** - * Unlike rate quota, allocation quota does not get refilled periodically. So, - * it is possible that the quota usage as seen by the service differs from what - * the One Platform considers the usage is. This is expected to happen only - * rarely, but over time this can accumulate. Services can invoke - * StartReconciliation and EndReconciliation to correct this usage drift, as - * described below: 1. Service sends StartReconciliation with a timestamp in - * future for each metric that needs to be reconciled. The timestamp being in - * future allows to account for in-flight AllocateQuota and ReleaseQuota - * requests for the same metric. 2. One Platform records this timestamp and - * starts tracking subsequent AllocateQuota and ReleaseQuota requests until - * EndReconciliation is called. 3. At or after the time specified in the - * StartReconciliation, service sends EndReconciliation with the usage that - * needs to be reconciled to. 4. One Platform adjusts its own record of usage - * for that metric to the value specified in EndReconciliation by taking in - * to account any allocation or release between StartReconciliation and - * EndReconciliation. - * - * Signals the quota controller that the service wants to perform a usage - * reconciliation as specified in the request. - * - * This method requires the `servicemanagement.services.quota` permission on the - * specified service. For more information, see [Google Cloud - * IAM](https://cloud.google.com/iam). (services.startReconciliation) - * - * @param string $serviceName Name of the service as specified in the service - * configuration. For example, `"pubsub.googleapis.com"`. - * - * See google.api.Service for the definition of a service name. - * @param Google_Service_ServiceControl_StartReconciliationRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ServiceControl_StartReconciliationResponse - */ - public function startReconciliation($serviceName, Google_Service_ServiceControl_StartReconciliationRequest $postBody, $optParams = array()) - { - $params = array('serviceName' => $serviceName, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('startReconciliation', array($params), "Google_Service_ServiceControl_StartReconciliationResponse"); - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceInfo.php index 356a3d1f..490a7ac1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceInfo.php @@ -18,6 +18,7 @@ class Google_Service_ServiceControl_ResourceInfo extends Google_Model { public $resourceContainer; + public $resourceLocation; public $resourceName; public function setResourceContainer($resourceContainer) @@ -28,6 +29,14 @@ class Google_Service_ServiceControl_ResourceInfo extends Google_Model { return $this->resourceContainer; } + public function setResourceLocation($resourceLocation) + { + $this->resourceLocation = $resourceLocation; + } + public function getResourceLocation() + { + return $this->resourceLocation; + } public function setResourceName($resourceName) { $this->resourceName = $resourceName; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceLocation.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceLocation.php new file mode 100644 index 00000000..bd32ceb7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ResourceLocation.php @@ -0,0 +1,40 @@ +currentLocations = $currentLocations; + } + public function getCurrentLocations() + { + return $this->currentLocations; + } + public function setOriginalLocations($originalLocations) + { + $this->originalLocations = $originalLocations; + } + public function getOriginalLocations() + { + return $this->originalLocations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServiceAccountDelegationInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServiceAccountDelegationInfo.php new file mode 100644 index 00000000..3b5b22b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServiceAccountDelegationInfo.php @@ -0,0 +1,53 @@ +firstPartyPrincipal = $firstPartyPrincipal; + } + /** + * @return Google_Service_ServiceControl_FirstPartyPrincipal + */ + public function getFirstPartyPrincipal() + { + return $this->firstPartyPrincipal; + } + /** + * @param Google_Service_ServiceControl_ThirdPartyPrincipal + */ + public function setThirdPartyPrincipal(Google_Service_ServiceControl_ThirdPartyPrincipal $thirdPartyPrincipal) + { + $this->thirdPartyPrincipal = $thirdPartyPrincipal; + } + /** + * @return Google_Service_ServiceControl_ThirdPartyPrincipal + */ + public function getThirdPartyPrincipal() + { + return $this->thirdPartyPrincipal; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServicecontrolResource.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServicecontrolResource.php new file mode 100644 index 00000000..2eb008aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ServicecontrolResource.php @@ -0,0 +1,57 @@ +labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php deleted file mode 100644 index 28fa5cf1..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php +++ /dev/null @@ -1,46 +0,0 @@ -reconciliationOperation = $reconciliationOperation; - } - /** - * @return Google_Service_ServiceControl_QuotaOperation - */ - public function getReconciliationOperation() - { - return $this->reconciliationOperation; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php deleted file mode 100644 index 128d1d0b..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - /** - * @param Google_Service_ServiceControl_MetricValueSet - */ - public function setQuotaMetrics($quotaMetrics) - { - $this->quotaMetrics = $quotaMetrics; - } - /** - * @return Google_Service_ServiceControl_MetricValueSet - */ - public function getQuotaMetrics() - { - return $this->quotaMetrics; - } - /** - * @param Google_Service_ServiceControl_QuotaError - */ - public function setReconciliationErrors($reconciliationErrors) - { - $this->reconciliationErrors = $reconciliationErrors; - } - /** - * @return Google_Service_ServiceControl_QuotaError - */ - public function getReconciliationErrors() - { - return $this->reconciliationErrors; - } - public function setServiceConfigId($serviceConfigId) - { - $this->serviceConfigId = $serviceConfigId; - } - public function getServiceConfigId() - { - return $this->serviceConfigId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ThirdPartyPrincipal.php b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ThirdPartyPrincipal.php new file mode 100644 index 00000000..df182aab --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceControl/ThirdPartyPrincipal.php @@ -0,0 +1,30 @@ +thirdPartyClaims = $thirdPartyClaims; + } + public function getThirdPartyClaims() + { + return $this->thirdPartyClaims; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement.php index 69f7732a..5bb510ea 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement.php @@ -61,6 +61,7 @@ class Google_Service_ServiceManagement extends Google_Service parent::__construct($client); $this->rootUrl = 'https://servicemanagement.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'servicemanagement'; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php index d1428506..6a7ddc2d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php @@ -19,8 +19,6 @@ class Google_Service_ServiceManagement_AuthenticationRule extends Google_Collect { protected $collection_key = 'requirements'; public $allowWithoutCredential; - protected $customAuthType = 'Google_Service_ServiceManagement_CustomAuthRequirements'; - protected $customAuthDataType = ''; protected $oauthType = 'Google_Service_ServiceManagement_OAuthRequirements'; protected $oauthDataType = ''; protected $requirementsType = 'Google_Service_ServiceManagement_AuthRequirement'; @@ -35,20 +33,6 @@ class Google_Service_ServiceManagement_AuthenticationRule extends Google_Collect { return $this->allowWithoutCredential; } - /** - * @param Google_Service_ServiceManagement_CustomAuthRequirements - */ - public function setCustomAuth(Google_Service_ServiceManagement_CustomAuthRequirements $customAuth) - { - $this->customAuth = $customAuth; - } - /** - * @return Google_Service_ServiceManagement_CustomAuthRequirements - */ - public function getCustomAuth() - { - return $this->customAuth; - } /** * @param Google_Service_ServiceManagement_OAuthRequirements */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php index 2210eff8..71c32604 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php @@ -19,7 +19,10 @@ class Google_Service_ServiceManagement_BackendRule extends Google_Model { public $address; public $deadline; + public $jwtAudience; public $minDeadline; + public $operationDeadline; + public $pathTranslation; public $selector; public function setAddress($address) @@ -38,6 +41,14 @@ class Google_Service_ServiceManagement_BackendRule extends Google_Model { return $this->deadline; } + public function setJwtAudience($jwtAudience) + { + $this->jwtAudience = $jwtAudience; + } + public function getJwtAudience() + { + return $this->jwtAudience; + } public function setMinDeadline($minDeadline) { $this->minDeadline = $minDeadline; @@ -46,6 +57,22 @@ class Google_Service_ServiceManagement_BackendRule extends Google_Model { return $this->minDeadline; } + public function setOperationDeadline($operationDeadline) + { + $this->operationDeadline = $operationDeadline; + } + public function getOperationDeadline() + { + return $this->operationDeadline; + } + public function setPathTranslation($pathTranslation) + { + $this->pathTranslation = $pathTranslation; + } + public function getPathTranslation() + { + return $this->pathTranslation; + } public function setSelector($selector) { $this->selector = $selector; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php index d72f823b..ec88461f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php @@ -18,9 +18,25 @@ class Google_Service_ServiceManagement_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_ServiceManagement_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_ServiceManagement_Expr + */ + public function setCondition(Google_Service_ServiceManagement_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_ServiceManagement_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Expr.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Expr.php new file mode 100644 index 00000000..a0d851ff --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php index 83b86347..d8186772 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php @@ -25,13 +25,10 @@ class Google_Service_ServiceManagement_HttpRule extends Google_Collection protected $customDataType = ''; public $delete; public $get; - protected $mediaDownloadType = 'Google_Service_ServiceManagement_MediaDownload'; - protected $mediaDownloadDataType = ''; - protected $mediaUploadType = 'Google_Service_ServiceManagement_MediaUpload'; - protected $mediaUploadDataType = ''; public $patch; public $post; public $put; + public $responseBody; public $selector; /** @@ -86,34 +83,6 @@ class Google_Service_ServiceManagement_HttpRule extends Google_Collection { return $this->get; } - /** - * @param Google_Service_ServiceManagement_MediaDownload - */ - public function setMediaDownload(Google_Service_ServiceManagement_MediaDownload $mediaDownload) - { - $this->mediaDownload = $mediaDownload; - } - /** - * @return Google_Service_ServiceManagement_MediaDownload - */ - public function getMediaDownload() - { - return $this->mediaDownload; - } - /** - * @param Google_Service_ServiceManagement_MediaUpload - */ - public function setMediaUpload(Google_Service_ServiceManagement_MediaUpload $mediaUpload) - { - $this->mediaUpload = $mediaUpload; - } - /** - * @return Google_Service_ServiceManagement_MediaUpload - */ - public function getMediaUpload() - { - return $this->mediaUpload; - } public function setPatch($patch) { $this->patch = $patch; @@ -138,6 +107,14 @@ class Google_Service_ServiceManagement_HttpRule extends Google_Collection { return $this->put; } + public function setResponseBody($responseBody) + { + $this->responseBody = $responseBody; + } + public function getResponseBody() + { + return $this->responseBody; + } public function setSelector($selector) { $this->selector = $selector; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php deleted file mode 100644 index 76a55ff0..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php +++ /dev/null @@ -1,75 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDownloadService($downloadService) - { - $this->downloadService = $downloadService; - } - public function getDownloadService() - { - return $this->downloadService; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxDirectDownloadSize($maxDirectDownloadSize) - { - $this->maxDirectDownloadSize = $maxDirectDownloadSize; - } - public function getMaxDirectDownloadSize() - { - return $this->maxDirectDownloadSize; - } - public function setUseDirectDownload($useDirectDownload) - { - $this->useDirectDownload = $useDirectDownload; - } - public function getUseDirectDownload() - { - return $this->useDirectDownload; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php deleted file mode 100644 index 71c439f0..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php +++ /dev/null @@ -1,94 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxSize($maxSize) - { - $this->maxSize = $maxSize; - } - public function getMaxSize() - { - return $this->maxSize; - } - public function setMimeTypes($mimeTypes) - { - $this->mimeTypes = $mimeTypes; - } - public function getMimeTypes() - { - return $this->mimeTypes; - } - public function setProgressNotification($progressNotification) - { - $this->progressNotification = $progressNotification; - } - public function getProgressNotification() - { - return $this->progressNotification; - } - public function setStartNotification($startNotification) - { - $this->startNotification = $startNotification; - } - public function getStartNotification() - { - return $this->startNotification; - } - public function setUploadService($uploadService) - { - $this->uploadService = $uploadService; - } - public function getUploadService() - { - return $this->uploadService; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php index e2b9a338..9d3d2176 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_ServiceManagement_MetricDescriptor extends Google_Collectio public $displayName; protected $labelsType = 'Google_Service_ServiceManagement_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_ServiceManagement_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_ServiceManagement_MetricDescriptor extends Google_Collectio { return $this->labels; } + /** + * @param Google_Service_ServiceManagement_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_ServiceManagement_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_ServiceManagement_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptorMetadata.php new file mode 100644 index 00000000..63d7c91b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php index deff84d8..7d65fafa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php @@ -146,6 +146,9 @@ class Google_Service_ServiceManagement_Resource_Services extends Google_Service_ * @param array $optParams Optional parameters. * * @opt_param string configId The id of the service configuration resource. + * + * This field must be specified for the server to return all fields, including + * `SourceInfo`. * @opt_param string view Specifies which parts of the Service Config should be * returned in the response. * @return Google_Service_ServiceManagement_Service @@ -193,7 +196,8 @@ class Google_Service_ServiceManagement_Resource_Services extends Google_Service_ * project: * @opt_param string pageToken Token identifying which result to start with; * returned by a previous list call. - * @opt_param int pageSize Requested size of the next page of data. + * @opt_param int pageSize The max number of items to include in the response + * list. Page size is 50 if not specified. Maximum value is 100. * @opt_param string producerProjectId Include services produced by the * specified project. * @return Google_Service_ServiceManagement_ListServicesResponse diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php index d0061b08..faf5b781 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php @@ -54,6 +54,9 @@ class Google_Service_ServiceManagement_Resource_ServicesConfigs extends Google_S * ](/service-management/overview) for naming requirements. For example: * `example.googleapis.com`. * @param string $configId The id of the service configuration resource. + * + * This field must be specified for the server to return all fields, including + * `SourceInfo`. * @param array $optParams Optional parameters. * * @opt_param string view Specifies which parts of the Service Config should be @@ -77,7 +80,7 @@ class Google_Service_ServiceManagement_Resource_ServicesConfigs extends Google_S * * @opt_param string pageToken The token of the page to retrieve. * @opt_param int pageSize The max number of items to include in the response - * list. + * list. Page size is 50 if not specified. Maximum value is 100. * @return Google_Service_ServiceManagement_ListServiceConfigsResponse */ public function listServicesConfigs($serviceName, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php index 34e9095c..8cf314d6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php @@ -87,7 +87,7 @@ class Google_Service_ServiceManagement_Resource_ServicesRollouts extends Google_ * 'FAILED', use filter='status=CANCELLED OR status=FAILED' * @opt_param string pageToken The token of the page to retrieve. * @opt_param int pageSize The max number of items to include in the response - * list. + * list. Page size is 50 if not specified. Maximum value is 100. * @return Google_Service_ServiceManagement_ListServiceRolloutsResponse */ public function listServicesRollouts($serviceName, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking.php new file mode 100644 index 00000000..b4601f45 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking.php @@ -0,0 +1,162 @@ + + * Provides automatic management of network configurations necessary for certain + * services.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_ServiceNetworking extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google API service configuration. */ + const SERVICE_MANAGEMENT = + "https://www.googleapis.com/auth/service.management"; + + public $operations; + public $services; + public $services_connections; + + /** + * Constructs the internal representation of the ServiceNetworking service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://servicenetworking.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1beta'; + $this->serviceName = 'servicenetworking'; + + $this->operations = new Google_Service_ServiceNetworking_Resource_Operations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1beta/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->services = new Google_Service_ServiceNetworking_Resource_Services( + $this, + $this->serviceName, + 'services', + array( + 'methods' => array( + 'addSubnetwork' => array( + 'path' => 'v1beta/{+parent}:addSubnetwork', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'searchRange' => array( + 'path' => 'v1beta/{+parent}:searchRange', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updateConnections' => array( + 'path' => 'v1beta/{+name}/connections', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'force' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->services_connections = new Google_Service_ServiceNetworking_Resource_ServicesConnections( + $this, + $this->serviceName, + 'connections', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta/{+parent}/connections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta/{+parent}/connections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'network' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AddSubnetworkRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AddSubnetworkRequest.php new file mode 100644 index 00000000..8d7c5961 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AddSubnetworkRequest.php @@ -0,0 +1,94 @@ +consumer = $consumer; + } + public function getConsumer() + { + return $this->consumer; + } + public function setConsumerNetwork($consumerNetwork) + { + $this->consumerNetwork = $consumerNetwork; + } + public function getConsumerNetwork() + { + return $this->consumerNetwork; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setIpPrefixLength($ipPrefixLength) + { + $this->ipPrefixLength = $ipPrefixLength; + } + public function getIpPrefixLength() + { + return $this->ipPrefixLength; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setRequestedAddress($requestedAddress) + { + $this->requestedAddress = $requestedAddress; + } + public function getRequestedAddress() + { + return $this->requestedAddress; + } + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + public function getSubnetwork() + { + return $this->subnetwork; + } + public function setSubnetworkUsers($subnetworkUsers) + { + $this->subnetworkUsers = $subnetworkUsers; + } + public function getSubnetworkUsers() + { + return $this->subnetworkUsers; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Api.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Api.php new file mode 100644 index 00000000..c8fb8712 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Api.php @@ -0,0 +1,113 @@ +methods = $methods; + } + /** + * @return Google_Service_ServiceNetworking_Method + */ + public function getMethods() + { + return $this->methods; + } + /** + * @param Google_Service_ServiceNetworking_Mixin + */ + public function setMixins($mixins) + { + $this->mixins = $mixins; + } + /** + * @return Google_Service_ServiceNetworking_Mixin + */ + public function getMixins() + { + return $this->mixins; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } + /** + * @param Google_Service_ServiceNetworking_SourceContext + */ + public function setSourceContext(Google_Service_ServiceNetworking_SourceContext $sourceContext) + { + $this->sourceContext = $sourceContext; + } + /** + * @return Google_Service_ServiceNetworking_SourceContext + */ + public function getSourceContext() + { + return $this->sourceContext; + } + public function setSyntax($syntax) + { + $this->syntax = $syntax; + } + public function getSyntax() + { + return $this->syntax; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthProvider.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthProvider.php new file mode 100644 index 00000000..b01394cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthProvider.php @@ -0,0 +1,66 @@ +audiences = $audiences; + } + public function getAudiences() + { + return $this->audiences; + } + public function setAuthorizationUrl($authorizationUrl) + { + $this->authorizationUrl = $authorizationUrl; + } + public function getAuthorizationUrl() + { + return $this->authorizationUrl; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIssuer($issuer) + { + $this->issuer = $issuer; + } + public function getIssuer() + { + return $this->issuer; + } + public function setJwksUri($jwksUri) + { + $this->jwksUri = $jwksUri; + } + public function getJwksUri() + { + return $this->jwksUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthRequirement.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthRequirement.php new file mode 100644 index 00000000..e6ee9f1b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthRequirement.php @@ -0,0 +1,39 @@ +audiences = $audiences; + } + public function getAudiences() + { + return $this->audiences; + } + public function setProviderId($providerId) + { + $this->providerId = $providerId; + } + public function getProviderId() + { + return $this->providerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Authentication.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Authentication.php new file mode 100644 index 00000000..d8a9b06a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Authentication.php @@ -0,0 +1,54 @@ +providers = $providers; + } + /** + * @return Google_Service_ServiceNetworking_AuthProvider + */ + public function getProviders() + { + return $this->providers; + } + /** + * @param Google_Service_ServiceNetworking_AuthenticationRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_AuthenticationRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthenticationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthenticationRule.php new file mode 100644 index 00000000..d441be28 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthenticationRule.php @@ -0,0 +1,72 @@ +allowWithoutCredential = $allowWithoutCredential; + } + public function getAllowWithoutCredential() + { + return $this->allowWithoutCredential; + } + /** + * @param Google_Service_ServiceNetworking_OAuthRequirements + */ + public function setOauth(Google_Service_ServiceNetworking_OAuthRequirements $oauth) + { + $this->oauth = $oauth; + } + /** + * @return Google_Service_ServiceNetworking_OAuthRequirements + */ + public function getOauth() + { + return $this->oauth; + } + /** + * @param Google_Service_ServiceNetworking_AuthRequirement + */ + public function setRequirements($requirements) + { + $this->requirements = $requirements; + } + /** + * @return Google_Service_ServiceNetworking_AuthRequirement + */ + public function getRequirements() + { + return $this->requirements; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CustomAuthRequirements.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthorizationConfig.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CustomAuthRequirements.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthorizationConfig.php index 5e16aa7d..70799849 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CustomAuthRequirements.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/AuthorizationConfig.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_ServiceUsage_CustomAuthRequirements extends Google_Model +class Google_Service_ServiceNetworking_AuthorizationConfig extends Google_Model { public $provider; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Backend.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Backend.php new file mode 100644 index 00000000..0b895c14 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Backend.php @@ -0,0 +1,38 @@ +rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_BackendRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BackendRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BackendRule.php new file mode 100644 index 00000000..f247c612 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BackendRule.php @@ -0,0 +1,84 @@ +address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setDeadline($deadline) + { + $this->deadline = $deadline; + } + public function getDeadline() + { + return $this->deadline; + } + public function setJwtAudience($jwtAudience) + { + $this->jwtAudience = $jwtAudience; + } + public function getJwtAudience() + { + return $this->jwtAudience; + } + public function setMinDeadline($minDeadline) + { + $this->minDeadline = $minDeadline; + } + public function getMinDeadline() + { + return $this->minDeadline; + } + public function setOperationDeadline($operationDeadline) + { + $this->operationDeadline = $operationDeadline; + } + public function getOperationDeadline() + { + return $this->operationDeadline; + } + public function setPathTranslation($pathTranslation) + { + $this->pathTranslation = $pathTranslation; + } + public function getPathTranslation() + { + return $this->pathTranslation; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Billing.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Billing.php new file mode 100644 index 00000000..18f68df0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Billing.php @@ -0,0 +1,38 @@ +consumerDestinations = $consumerDestinations; + } + /** + * @return Google_Service_ServiceNetworking_BillingDestination + */ + public function getConsumerDestinations() + { + return $this->consumerDestinations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BillingDestination.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BillingDestination.php new file mode 100644 index 00000000..839b5e60 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/BillingDestination.php @@ -0,0 +1,40 @@ +metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setMonitoredResource($monitoredResource) + { + $this->monitoredResource = $monitoredResource; + } + public function getMonitoredResource() + { + return $this->monitoredResource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Connection.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Connection.php new file mode 100644 index 00000000..87627bb9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Connection.php @@ -0,0 +1,58 @@ +network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setPeering($peering) + { + $this->peering = $peering; + } + public function getPeering() + { + return $this->peering; + } + public function setReservedPeeringRanges($reservedPeeringRanges) + { + $this->reservedPeeringRanges = $reservedPeeringRanges; + } + public function getReservedPeeringRanges() + { + return $this->reservedPeeringRanges; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Context.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Context.php new file mode 100644 index 00000000..3a6323a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Context.php @@ -0,0 +1,38 @@ +rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_ContextRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ContextRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ContextRule.php new file mode 100644 index 00000000..c0eb840b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ContextRule.php @@ -0,0 +1,67 @@ +allowedRequestExtensions = $allowedRequestExtensions; + } + public function getAllowedRequestExtensions() + { + return $this->allowedRequestExtensions; + } + public function setAllowedResponseExtensions($allowedResponseExtensions) + { + $this->allowedResponseExtensions = $allowedResponseExtensions; + } + public function getAllowedResponseExtensions() + { + return $this->allowedResponseExtensions; + } + public function setProvided($provided) + { + $this->provided = $provided; + } + public function getProvided() + { + return $this->provided; + } + public function setRequested($requested) + { + $this->requested = $requested; + } + public function getRequested() + { + return $this->requested; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Control.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Control.php new file mode 100644 index 00000000..2a8df264 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Control.php @@ -0,0 +1,30 @@ +environment = $environment; + } + public function getEnvironment() + { + return $this->environment; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomError.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomError.php new file mode 100644 index 00000000..d9fde693 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomError.php @@ -0,0 +1,47 @@ +rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_CustomErrorRule + */ + public function getRules() + { + return $this->rules; + } + public function setTypes($types) + { + $this->types = $types; + } + public function getTypes() + { + return $this->types; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomErrorRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomErrorRule.php new file mode 100644 index 00000000..3403ea37 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomErrorRule.php @@ -0,0 +1,39 @@ +isErrorType = $isErrorType; + } + public function getIsErrorType() + { + return $this->isErrorType; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStoragePath.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomHttpPattern.php similarity index 77% rename from vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStoragePath.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomHttpPattern.php index b4b6d9f3..39c1c25c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/DLP/GooglePrivacyDlpV2beta1CloudStoragePath.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/CustomHttpPattern.php @@ -15,10 +15,19 @@ * the License. */ -class Google_Service_DLP_GooglePrivacyDlpV2beta1CloudStoragePath extends Google_Model +class Google_Service_ServiceNetworking_CustomHttpPattern extends Google_Model { + public $kind; public $path; + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } public function setPath($path) { $this->path = $path; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Documentation.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Documentation.php new file mode 100644 index 00000000..31828f8c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Documentation.php @@ -0,0 +1,81 @@ +documentationRootUrl = $documentationRootUrl; + } + public function getDocumentationRootUrl() + { + return $this->documentationRootUrl; + } + public function setOverview($overview) + { + $this->overview = $overview; + } + public function getOverview() + { + return $this->overview; + } + /** + * @param Google_Service_ServiceNetworking_Page + */ + public function setPages($pages) + { + $this->pages = $pages; + } + /** + * @return Google_Service_ServiceNetworking_Page + */ + public function getPages() + { + return $this->pages; + } + /** + * @param Google_Service_ServiceNetworking_DocumentationRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_DocumentationRule + */ + public function getRules() + { + return $this->rules; + } + public function setSummary($summary) + { + $this->summary = $summary; + } + public function getSummary() + { + return $this->summary; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/DocumentationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/DocumentationRule.php new file mode 100644 index 00000000..875c278f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/DocumentationRule.php @@ -0,0 +1,48 @@ +deprecationDescription = $deprecationDescription; + } + public function getDeprecationDescription() + { + return $this->deprecationDescription; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Endpoint.php similarity index 53% rename from vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Endpoint.php index ba9af41c..7a316a1d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Endpoint.php @@ -15,37 +15,46 @@ * the License. */ -class Google_Service_Appengine_OperationMetadataV1Beta5 extends Google_Model +class Google_Service_ServiceNetworking_Endpoint extends Google_Collection { - public $endTime; - public $insertTime; - public $method; + protected $collection_key = 'features'; + public $aliases; + public $allowCors; + public $features; + public $name; public $target; - public $user; - public function setEndTime($endTime) + public function setAliases($aliases) { - $this->endTime = $endTime; + $this->aliases = $aliases; } - public function getEndTime() + public function getAliases() { - return $this->endTime; + return $this->aliases; } - public function setInsertTime($insertTime) + public function setAllowCors($allowCors) { - $this->insertTime = $insertTime; + $this->allowCors = $allowCors; } - public function getInsertTime() + public function getAllowCors() { - return $this->insertTime; + return $this->allowCors; } - public function setMethod($method) + public function setFeatures($features) { - $this->method = $method; + $this->features = $features; } - public function getMethod() + public function getFeatures() { - return $this->method; + return $this->features; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; } public function setTarget($target) { @@ -55,12 +64,4 @@ class Google_Service_Appengine_OperationMetadataV1Beta5 extends Google_Model { return $this->target; } - public function setUser($user) - { - $this->user = $user; - } - public function getUser() - { - return $this->user; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Enum.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Enum.php new file mode 100644 index 00000000..cb4c72ee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Enum.php @@ -0,0 +1,88 @@ +enumvalue = $enumvalue; + } + /** + * @return Google_Service_ServiceNetworking_EnumValue + */ + public function getEnumvalue() + { + return $this->enumvalue; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } + /** + * @param Google_Service_ServiceNetworking_SourceContext + */ + public function setSourceContext(Google_Service_ServiceNetworking_SourceContext $sourceContext) + { + $this->sourceContext = $sourceContext; + } + /** + * @return Google_Service_ServiceNetworking_SourceContext + */ + public function getSourceContext() + { + return $this->sourceContext; + } + public function setSyntax($syntax) + { + $this->syntax = $syntax; + } + public function getSyntax() + { + return $this->syntax; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/EnumValue.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/EnumValue.php new file mode 100644 index 00000000..9775bd25 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/EnumValue.php @@ -0,0 +1,56 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setNumber($number) + { + $this->number = $number; + } + public function getNumber() + { + return $this->number; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Experimental.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Experimental.php new file mode 100644 index 00000000..827df48b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Experimental.php @@ -0,0 +1,37 @@ +authorization = $authorization; + } + /** + * @return Google_Service_ServiceNetworking_AuthorizationConfig + */ + public function getAuthorization() + { + return $this->authorization; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Field.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Field.php new file mode 100644 index 00000000..c61bc33b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Field.php @@ -0,0 +1,119 @@ +cardinality = $cardinality; + } + public function getCardinality() + { + return $this->cardinality; + } + public function setDefaultValue($defaultValue) + { + $this->defaultValue = $defaultValue; + } + public function getDefaultValue() + { + return $this->defaultValue; + } + public function setJsonName($jsonName) + { + $this->jsonName = $jsonName; + } + public function getJsonName() + { + return $this->jsonName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNumber($number) + { + $this->number = $number; + } + public function getNumber() + { + return $this->number; + } + public function setOneofIndex($oneofIndex) + { + $this->oneofIndex = $oneofIndex; + } + public function getOneofIndex() + { + return $this->oneofIndex; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } + public function setPacked($packed) + { + $this->packed = $packed; + } + public function getPacked() + { + return $this->packed; + } + public function setTypeUrl($typeUrl) + { + $this->typeUrl = $typeUrl; + } + public function getTypeUrl() + { + return $this->typeUrl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/GoogleCloudServicenetworkingV1betaSubnetwork.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/GoogleCloudServicenetworkingV1betaSubnetwork.php new file mode 100644 index 00000000..8b97a893 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/GoogleCloudServicenetworkingV1betaSubnetwork.php @@ -0,0 +1,57 @@ +ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setOutsideAllocation($outsideAllocation) + { + $this->outsideAllocation = $outsideAllocation; + } + public function getOutsideAllocation() + { + return $this->outsideAllocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Http.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Http.php new file mode 100644 index 00000000..c331344e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Http.php @@ -0,0 +1,47 @@ +fullyDecodeReservedExpansion = $fullyDecodeReservedExpansion; + } + public function getFullyDecodeReservedExpansion() + { + return $this->fullyDecodeReservedExpansion; + } + /** + * @param Google_Service_ServiceNetworking_HttpRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_HttpRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/HttpRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/HttpRule.php new file mode 100644 index 00000000..2efeadd2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/HttpRule.php @@ -0,0 +1,126 @@ +additionalBindings = $additionalBindings; + } + /** + * @return Google_Service_ServiceNetworking_HttpRule + */ + public function getAdditionalBindings() + { + return $this->additionalBindings; + } + public function setBody($body) + { + $this->body = $body; + } + public function getBody() + { + return $this->body; + } + /** + * @param Google_Service_ServiceNetworking_CustomHttpPattern + */ + public function setCustom(Google_Service_ServiceNetworking_CustomHttpPattern $custom) + { + $this->custom = $custom; + } + /** + * @return Google_Service_ServiceNetworking_CustomHttpPattern + */ + public function getCustom() + { + return $this->custom; + } + public function setDelete($delete) + { + $this->delete = $delete; + } + public function getDelete() + { + return $this->delete; + } + public function setGet($get) + { + $this->get = $get; + } + public function getGet() + { + return $this->get; + } + public function setPatch($patch) + { + $this->patch = $patch; + } + public function getPatch() + { + return $this->patch; + } + public function setPost($post) + { + $this->post = $post; + } + public function getPost() + { + return $this->post; + } + public function setPut($put) + { + $this->put = $put; + } + public function getPut() + { + return $this->put; + } + public function setResponseBody($responseBody) + { + $this->responseBody = $responseBody; + } + public function getResponseBody() + { + return $this->responseBody; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LabelDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LabelDescriptor.php new file mode 100644 index 00000000..637da6cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LabelDescriptor.php @@ -0,0 +1,48 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValueType($valueType) + { + $this->valueType = $valueType; + } + public function getValueType() + { + return $this->valueType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ListConnectionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ListConnectionsResponse.php new file mode 100644 index 00000000..d4819a27 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/ListConnectionsResponse.php @@ -0,0 +1,38 @@ +connections = $connections; + } + /** + * @return Google_Service_ServiceNetworking_Connection + */ + public function getConnections() + { + return $this->connections; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LogDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LogDescriptor.php new file mode 100644 index 00000000..ee138c3f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LogDescriptor.php @@ -0,0 +1,65 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_ServiceNetworking_LabelDescriptor + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return Google_Service_ServiceNetworking_LabelDescriptor + */ + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Logging.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Logging.php new file mode 100644 index 00000000..e589dd02 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Logging.php @@ -0,0 +1,54 @@ +consumerDestinations = $consumerDestinations; + } + /** + * @return Google_Service_ServiceNetworking_LoggingDestination + */ + public function getConsumerDestinations() + { + return $this->consumerDestinations; + } + /** + * @param Google_Service_ServiceNetworking_LoggingDestination + */ + public function setProducerDestinations($producerDestinations) + { + $this->producerDestinations = $producerDestinations; + } + /** + * @return Google_Service_ServiceNetworking_LoggingDestination + */ + public function getProducerDestinations() + { + return $this->producerDestinations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LoggingDestination.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LoggingDestination.php new file mode 100644 index 00000000..9700fc4c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/LoggingDestination.php @@ -0,0 +1,40 @@ +logs = $logs; + } + public function getLogs() + { + return $this->logs; + } + public function setMonitoredResource($monitoredResource) + { + $this->monitoredResource = $monitoredResource; + } + public function getMonitoredResource() + { + return $this->monitoredResource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Method.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Method.php new file mode 100644 index 00000000..5003f172 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Method.php @@ -0,0 +1,92 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } + public function setRequestStreaming($requestStreaming) + { + $this->requestStreaming = $requestStreaming; + } + public function getRequestStreaming() + { + return $this->requestStreaming; + } + public function setRequestTypeUrl($requestTypeUrl) + { + $this->requestTypeUrl = $requestTypeUrl; + } + public function getRequestTypeUrl() + { + return $this->requestTypeUrl; + } + public function setResponseStreaming($responseStreaming) + { + $this->responseStreaming = $responseStreaming; + } + public function getResponseStreaming() + { + return $this->responseStreaming; + } + public function setResponseTypeUrl($responseTypeUrl) + { + $this->responseTypeUrl = $responseTypeUrl; + } + public function getResponseTypeUrl() + { + return $this->responseTypeUrl; + } + public function setSyntax($syntax) + { + $this->syntax = $syntax; + } + public function getSyntax() + { + return $this->syntax; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptor.php new file mode 100644 index 00000000..317e8599 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptor.php @@ -0,0 +1,117 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_ServiceNetworking_LabelDescriptor + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return Google_Service_ServiceNetworking_LabelDescriptor + */ + public function getLabels() + { + return $this->labels; + } + /** + * @param Google_Service_ServiceNetworking_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_ServiceNetworking_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_ServiceNetworking_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setMetricKind($metricKind) + { + $this->metricKind = $metricKind; + } + public function getMetricKind() + { + return $this->metricKind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValueType($valueType) + { + $this->valueType = $valueType; + } + public function getValueType() + { + return $this->valueType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptorMetadata.php new file mode 100644 index 00000000..0a3297ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricRule.php new file mode 100644 index 00000000..1e1b2e10 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MetricRule.php @@ -0,0 +1,39 @@ +metricCosts = $metricCosts; + } + public function getMetricCosts() + { + return $this->metricCosts; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Mixin.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Mixin.php new file mode 100644 index 00000000..0d1325b0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Mixin.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setRoot($root) + { + $this->root = $root; + } + public function getRoot() + { + return $this->root; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoredResourceDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoredResourceDescriptor.php new file mode 100644 index 00000000..8a82ee49 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoredResourceDescriptor.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_ServiceNetworking_LabelDescriptor + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return Google_Service_ServiceNetworking_LabelDescriptor + */ + public function getLabels() + { + return $this->labels; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Monitoring.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Monitoring.php new file mode 100644 index 00000000..0fc4f0cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Monitoring.php @@ -0,0 +1,54 @@ +consumerDestinations = $consumerDestinations; + } + /** + * @return Google_Service_ServiceNetworking_MonitoringDestination + */ + public function getConsumerDestinations() + { + return $this->consumerDestinations; + } + /** + * @param Google_Service_ServiceNetworking_MonitoringDestination + */ + public function setProducerDestinations($producerDestinations) + { + $this->producerDestinations = $producerDestinations; + } + /** + * @return Google_Service_ServiceNetworking_MonitoringDestination + */ + public function getProducerDestinations() + { + return $this->producerDestinations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoringDestination.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoringDestination.php new file mode 100644 index 00000000..8b93397c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/MonitoringDestination.php @@ -0,0 +1,40 @@ +metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } + public function setMonitoredResource($monitoredResource) + { + $this->monitoredResource = $monitoredResource; + } + public function getMonitoredResource() + { + return $this->monitoredResource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/OAuthRequirements.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/OAuthRequirements.php new file mode 100644 index 00000000..4d002745 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/OAuthRequirements.php @@ -0,0 +1,30 @@ +canonicalScopes = $canonicalScopes; + } + public function getCanonicalScopes() + { + return $this->canonicalScopes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Operation.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Operation.php new file mode 100644 index 00000000..a8e662f6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Operation.php @@ -0,0 +1,73 @@ +done = $done; + } + public function getDone() + { + return $this->done; + } + /** + * @param Google_Service_ServiceNetworking_Status + */ + public function setError(Google_Service_ServiceNetworking_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_ServiceNetworking_Status + */ + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Option.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Option.php new file mode 100644 index 00000000..9badf312 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Option.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Page.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Page.php new file mode 100644 index 00000000..a3af5937 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Page.php @@ -0,0 +1,56 @@ +content = $content; + } + public function getContent() + { + return $this->content; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_ServiceNetworking_Page + */ + public function setSubpages($subpages) + { + $this->subpages = $subpages; + } + /** + * @return Google_Service_ServiceNetworking_Page + */ + public function getSubpages() + { + return $this->subpages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Quota.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Quota.php new file mode 100644 index 00000000..84c943f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Quota.php @@ -0,0 +1,54 @@ +limits = $limits; + } + /** + * @return Google_Service_ServiceNetworking_QuotaLimit + */ + public function getLimits() + { + return $this->limits; + } + /** + * @param Google_Service_ServiceNetworking_MetricRule + */ + public function setMetricRules($metricRules) + { + $this->metricRules = $metricRules; + } + /** + * @return Google_Service_ServiceNetworking_MetricRule + */ + public function getMetricRules() + { + return $this->metricRules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/QuotaLimit.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/QuotaLimit.php new file mode 100644 index 00000000..4472e011 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/QuotaLimit.php @@ -0,0 +1,111 @@ +defaultLimit = $defaultLimit; + } + public function getDefaultLimit() + { + return $this->defaultLimit; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setFreeTier($freeTier) + { + $this->freeTier = $freeTier; + } + public function getFreeTier() + { + return $this->freeTier; + } + public function setMaxLimit($maxLimit) + { + $this->maxLimit = $maxLimit; + } + public function getMaxLimit() + { + return $this->maxLimit; + } + public function setMetric($metric) + { + $this->metric = $metric; + } + public function getMetric() + { + return $this->metric; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValues($values) + { + $this->values = $values; + } + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Range.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Range.php new file mode 100644 index 00000000..6fddbeb1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Range.php @@ -0,0 +1,39 @@ +ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Operations.php new file mode 100644 index 00000000..6402d8b2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Operations.php @@ -0,0 +1,43 @@ + + * $servicenetworkingService = new Google_Service_ServiceNetworking(...); + * $operations = $servicenetworkingService->operations; + * + */ +class Google_Service_ServiceNetworking_Resource_Operations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceNetworking_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ServiceNetworking_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Services.php new file mode 100644 index 00000000..043b77f5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/Services.php @@ -0,0 +1,101 @@ + + * $servicenetworkingService = new Google_Service_ServiceNetworking(...); + * $services = $servicenetworkingService->services; + * + */ +class Google_Service_ServiceNetworking_Resource_Services extends Google_Service_Resource +{ + /** + * For service producers, provisions a new subnet in a peered service's shared + * VPC network in the requested region and with the requested size that's + * expressed as a CIDR range (number of leading bits of ipV4 network mask). The + * method checks against the assigned allocated ranges to find a non-conflicting + * IP address range. The method will reuse a subnet if subsequent calls contain + * the same subnet name, region, and prefix length. This method will make + * producer's tenant project to be a shared VPC service project as needed. The + * response from the `get` operation will be of type `Subnetwork` if the + * operation successfully completes. (services.addSubnetwork) + * + * @param string $parent Required. A tenant project in the service producer + * organization, in the following format: services/{service}/{collection-id + * }/{resource-id}. {collection-id} is the cloud resource collection type that + * represents the tenant project. Only `projects` are supported. {resource-id} + * is the tenant project numeric id, such as `123456`. {service} the name of the + * peering service, such as `service-peering.example.com`. This service must + * already be enabled in the service consumer's project. + * @param Google_Service_ServiceNetworking_AddSubnetworkRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceNetworking_Operation + */ + public function addSubnetwork($parent, Google_Service_ServiceNetworking_AddSubnetworkRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addSubnetwork', array($params), "Google_Service_ServiceNetworking_Operation"); + } + /** + * Service producers can use this method to find a currently unused range within + * consumer allocated ranges. This returned range is not reserved, and not + * guaranteed to remain unused. It will validate previously provided allocated + * ranges, find non-conflicting sub-range of requested size (expressed in number + * of leading bits of ipv4 network mask, as in CIDR range notation). Operation + * (services.searchRange) + * + * @param string $parent Required. This is in a form services/{service}. + * {service} the name of the private access management service, for example + * 'service-peering.example.com'. + * @param Google_Service_ServiceNetworking_SearchRangeRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceNetworking_Operation + */ + public function searchRange($parent, Google_Service_ServiceNetworking_SearchRangeRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('searchRange', array($params), "Google_Service_ServiceNetworking_Operation"); + } + /** + * Updates the allocated ranges that are assigned to a connection. The response + * from the `get` operation will be of type `Connection` if the operation + * successfully completes. (services.updateConnections) + * + * @param string $name The service producer peering service that is managing + * peering connectivity for a service producer organization. For Google services + * that support this functionality, this is + * `services/servicenetworking.googleapis.com`. + * @param Google_Service_ServiceNetworking_Connection $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The update mask. If this is omitted, it defaults + * to "*". You can only update the listed peering ranges. + * @opt_param bool force If a previously defined allocated range is removed, + * force flag must be set to true. + * @return Google_Service_ServiceNetworking_Operation + */ + public function updateConnections($name, Google_Service_ServiceNetworking_Connection $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateConnections', array($params), "Google_Service_ServiceNetworking_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/ServicesConnections.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/ServicesConnections.php new file mode 100644 index 00000000..6e6a22bd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Resource/ServicesConnections.php @@ -0,0 +1,77 @@ + + * $servicenetworkingService = new Google_Service_ServiceNetworking(...); + * $connections = $servicenetworkingService->connections; + * + */ +class Google_Service_ServiceNetworking_Resource_ServicesConnections extends Google_Service_Resource +{ + /** + * Creates a private connection that establishes a VPC Network Peering + * connection to a VPC network in the service producer's organization. The + * administrator of the service consumer's VPC network invokes this method. The + * administrator must assign one or more allocated IP ranges for provisioning + * subnetworks in the service producer's VPC network. This connection is used + * for all supported services in the service producer's organization, so it only + * needs to be invoked once. The response from the `get` operation will be of + * type `Connection` if the operation successfully completes. + * (connections.create) + * + * @param string $parent The service that is managing peering connectivity for a + * service producer's organization. For Google services that support this + * functionality, this value is `services/servicenetworking.googleapis.com`. + * @param Google_Service_ServiceNetworking_Connection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceNetworking_Operation + */ + public function create($parent, Google_Service_ServiceNetworking_Connection $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_ServiceNetworking_Operation"); + } + /** + * List the private connections that are configured in a service consumer's VPC + * network. (connections.listServicesConnections) + * + * @param string $parent The service that is managing peering connectivity for a + * service producer's organization. For Google services that support this + * functionality, this value is `services/servicenetworking.googleapis.com`. If + * you specify `-` as the parameter value, all configured public peering + * services are listed. + * @param array $optParams Optional parameters. + * + * @opt_param string network The name of service consumer's VPC network that's + * connected with service producer network through a private connection. The + * network name must be in the following format: + * `projects/{project}/global/networks/{network}`. {project} is a project + * number, such as in `12345` that includes the VPC service consumer's VPC + * network. {network} is the name of the service consumer's VPC network. + * @return Google_Service_ServiceNetworking_ListConnectionsResponse + */ + public function listServicesConnections($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ServiceNetworking_ListConnectionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SearchRangeRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SearchRangeRequest.php new file mode 100644 index 00000000..8194787f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SearchRangeRequest.php @@ -0,0 +1,39 @@ +ipPrefixLength = $ipPrefixLength; + } + public function getIpPrefixLength() + { + return $this->ipPrefixLength; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Service.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Service.php new file mode 100644 index 00000000..d82000a0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Service.php @@ -0,0 +1,435 @@ +apis = $apis; + } + /** + * @return Google_Service_ServiceNetworking_Api + */ + public function getApis() + { + return $this->apis; + } + /** + * @param Google_Service_ServiceNetworking_Authentication + */ + public function setAuthentication(Google_Service_ServiceNetworking_Authentication $authentication) + { + $this->authentication = $authentication; + } + /** + * @return Google_Service_ServiceNetworking_Authentication + */ + public function getAuthentication() + { + return $this->authentication; + } + /** + * @param Google_Service_ServiceNetworking_Backend + */ + public function setBackend(Google_Service_ServiceNetworking_Backend $backend) + { + $this->backend = $backend; + } + /** + * @return Google_Service_ServiceNetworking_Backend + */ + public function getBackend() + { + return $this->backend; + } + /** + * @param Google_Service_ServiceNetworking_Billing + */ + public function setBilling(Google_Service_ServiceNetworking_Billing $billing) + { + $this->billing = $billing; + } + /** + * @return Google_Service_ServiceNetworking_Billing + */ + public function getBilling() + { + return $this->billing; + } + public function setConfigVersion($configVersion) + { + $this->configVersion = $configVersion; + } + public function getConfigVersion() + { + return $this->configVersion; + } + /** + * @param Google_Service_ServiceNetworking_Context + */ + public function setContext(Google_Service_ServiceNetworking_Context $context) + { + $this->context = $context; + } + /** + * @return Google_Service_ServiceNetworking_Context + */ + public function getContext() + { + return $this->context; + } + /** + * @param Google_Service_ServiceNetworking_Control + */ + public function setControl(Google_Service_ServiceNetworking_Control $control) + { + $this->control = $control; + } + /** + * @return Google_Service_ServiceNetworking_Control + */ + public function getControl() + { + return $this->control; + } + /** + * @param Google_Service_ServiceNetworking_CustomError + */ + public function setCustomError(Google_Service_ServiceNetworking_CustomError $customError) + { + $this->customError = $customError; + } + /** + * @return Google_Service_ServiceNetworking_CustomError + */ + public function getCustomError() + { + return $this->customError; + } + /** + * @param Google_Service_ServiceNetworking_Documentation + */ + public function setDocumentation(Google_Service_ServiceNetworking_Documentation $documentation) + { + $this->documentation = $documentation; + } + /** + * @return Google_Service_ServiceNetworking_Documentation + */ + public function getDocumentation() + { + return $this->documentation; + } + /** + * @param Google_Service_ServiceNetworking_Endpoint + */ + public function setEndpoints($endpoints) + { + $this->endpoints = $endpoints; + } + /** + * @return Google_Service_ServiceNetworking_Endpoint + */ + public function getEndpoints() + { + return $this->endpoints; + } + /** + * @param Google_Service_ServiceNetworking_Enum + */ + public function setEnums($enums) + { + $this->enums = $enums; + } + /** + * @return Google_Service_ServiceNetworking_Enum + */ + public function getEnums() + { + return $this->enums; + } + /** + * @param Google_Service_ServiceNetworking_Experimental + */ + public function setExperimental(Google_Service_ServiceNetworking_Experimental $experimental) + { + $this->experimental = $experimental; + } + /** + * @return Google_Service_ServiceNetworking_Experimental + */ + public function getExperimental() + { + return $this->experimental; + } + /** + * @param Google_Service_ServiceNetworking_Http + */ + public function setHttp(Google_Service_ServiceNetworking_Http $http) + { + $this->http = $http; + } + /** + * @return Google_Service_ServiceNetworking_Http + */ + public function getHttp() + { + return $this->http; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_ServiceNetworking_Logging + */ + public function setLogging(Google_Service_ServiceNetworking_Logging $logging) + { + $this->logging = $logging; + } + /** + * @return Google_Service_ServiceNetworking_Logging + */ + public function getLogging() + { + return $this->logging; + } + /** + * @param Google_Service_ServiceNetworking_LogDescriptor + */ + public function setLogs($logs) + { + $this->logs = $logs; + } + /** + * @return Google_Service_ServiceNetworking_LogDescriptor + */ + public function getLogs() + { + return $this->logs; + } + /** + * @param Google_Service_ServiceNetworking_MetricDescriptor + */ + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + /** + * @return Google_Service_ServiceNetworking_MetricDescriptor + */ + public function getMetrics() + { + return $this->metrics; + } + /** + * @param Google_Service_ServiceNetworking_MonitoredResourceDescriptor + */ + public function setMonitoredResources($monitoredResources) + { + $this->monitoredResources = $monitoredResources; + } + /** + * @return Google_Service_ServiceNetworking_MonitoredResourceDescriptor + */ + public function getMonitoredResources() + { + return $this->monitoredResources; + } + /** + * @param Google_Service_ServiceNetworking_Monitoring + */ + public function setMonitoring(Google_Service_ServiceNetworking_Monitoring $monitoring) + { + $this->monitoring = $monitoring; + } + /** + * @return Google_Service_ServiceNetworking_Monitoring + */ + public function getMonitoring() + { + return $this->monitoring; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProducerProjectId($producerProjectId) + { + $this->producerProjectId = $producerProjectId; + } + public function getProducerProjectId() + { + return $this->producerProjectId; + } + /** + * @param Google_Service_ServiceNetworking_Quota + */ + public function setQuota(Google_Service_ServiceNetworking_Quota $quota) + { + $this->quota = $quota; + } + /** + * @return Google_Service_ServiceNetworking_Quota + */ + public function getQuota() + { + return $this->quota; + } + /** + * @param Google_Service_ServiceNetworking_SourceInfo + */ + public function setSourceInfo(Google_Service_ServiceNetworking_SourceInfo $sourceInfo) + { + $this->sourceInfo = $sourceInfo; + } + /** + * @return Google_Service_ServiceNetworking_SourceInfo + */ + public function getSourceInfo() + { + return $this->sourceInfo; + } + /** + * @param Google_Service_ServiceNetworking_SystemParameters + */ + public function setSystemParameters(Google_Service_ServiceNetworking_SystemParameters $systemParameters) + { + $this->systemParameters = $systemParameters; + } + /** + * @return Google_Service_ServiceNetworking_SystemParameters + */ + public function getSystemParameters() + { + return $this->systemParameters; + } + /** + * @param Google_Service_ServiceNetworking_Type + */ + public function setSystemTypes($systemTypes) + { + $this->systemTypes = $systemTypes; + } + /** + * @return Google_Service_ServiceNetworking_Type + */ + public function getSystemTypes() + { + return $this->systemTypes; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + /** + * @param Google_Service_ServiceNetworking_Type + */ + public function setTypes($types) + { + $this->types = $types; + } + /** + * @return Google_Service_ServiceNetworking_Type + */ + public function getTypes() + { + return $this->types; + } + /** + * @param Google_Service_ServiceNetworking_Usage + */ + public function setUsage(Google_Service_ServiceNetworking_Usage $usage) + { + $this->usage = $usage; + } + /** + * @return Google_Service_ServiceNetworking_Usage + */ + public function getUsage() + { + return $this->usage; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceContext.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceContext.php new file mode 100644 index 00000000..001f99b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceContext.php @@ -0,0 +1,30 @@ +fileName = $fileName; + } + public function getFileName() + { + return $this->fileName; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceInfo.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceInfo.php new file mode 100644 index 00000000..46316237 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SourceInfo.php @@ -0,0 +1,31 @@ +sourceFiles = $sourceFiles; + } + public function getSourceFiles() + { + return $this->sourceFiles; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Status.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Status.php new file mode 100644 index 00000000..e3c40383 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Status.php @@ -0,0 +1,49 @@ +code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Subnetwork.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Subnetwork.php new file mode 100644 index 00000000..96752a4b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Subnetwork.php @@ -0,0 +1,57 @@ +ipCidrRange = $ipCidrRange; + } + public function getIpCidrRange() + { + return $this->ipCidrRange; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setOutsideAllocation($outsideAllocation) + { + $this->outsideAllocation = $outsideAllocation; + } + public function getOutsideAllocation() + { + return $this->outsideAllocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameter.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameter.php new file mode 100644 index 00000000..7c8208ed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameter.php @@ -0,0 +1,48 @@ +httpHeader = $httpHeader; + } + public function getHttpHeader() + { + return $this->httpHeader; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUrlQueryParameter($urlQueryParameter) + { + $this->urlQueryParameter = $urlQueryParameter; + } + public function getUrlQueryParameter() + { + return $this->urlQueryParameter; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameterRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameterRule.php new file mode 100644 index 00000000..03b613ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameterRule.php @@ -0,0 +1,47 @@ +parameters = $parameters; + } + /** + * @return Google_Service_ServiceNetworking_SystemParameter + */ + public function getParameters() + { + return $this->parameters; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameters.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameters.php new file mode 100644 index 00000000..99e4bf85 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/SystemParameters.php @@ -0,0 +1,38 @@ +rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_SystemParameterRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Type.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Type.php new file mode 100644 index 00000000..7319baad --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Type.php @@ -0,0 +1,97 @@ +fields = $fields; + } + /** + * @return Google_Service_ServiceNetworking_Field + */ + public function getFields() + { + return $this->fields; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOneofs($oneofs) + { + $this->oneofs = $oneofs; + } + public function getOneofs() + { + return $this->oneofs; + } + /** + * @param Google_Service_ServiceNetworking_Option + */ + public function setOptions($options) + { + $this->options = $options; + } + /** + * @return Google_Service_ServiceNetworking_Option + */ + public function getOptions() + { + return $this->options; + } + /** + * @param Google_Service_ServiceNetworking_SourceContext + */ + public function setSourceContext(Google_Service_ServiceNetworking_SourceContext $sourceContext) + { + $this->sourceContext = $sourceContext; + } + /** + * @return Google_Service_ServiceNetworking_SourceContext + */ + public function getSourceContext() + { + return $this->sourceContext; + } + public function setSyntax($syntax) + { + $this->syntax = $syntax; + } + public function getSyntax() + { + return $this->syntax; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Usage.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Usage.php new file mode 100644 index 00000000..fed00226 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/Usage.php @@ -0,0 +1,56 @@ +producerNotificationChannel = $producerNotificationChannel; + } + public function getProducerNotificationChannel() + { + return $this->producerNotificationChannel; + } + public function setRequirements($requirements) + { + $this->requirements = $requirements; + } + public function getRequirements() + { + return $this->requirements; + } + /** + * @param Google_Service_ServiceNetworking_UsageRule + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return Google_Service_ServiceNetworking_UsageRule + */ + public function getRules() + { + return $this->rules; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/UsageRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/UsageRule.php new file mode 100644 index 00000000..8fbb43ae --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceNetworking/UsageRule.php @@ -0,0 +1,48 @@ +allowUnregisteredCalls = $allowUnregisteredCalls; + } + public function getAllowUnregisteredCalls() + { + return $this->allowUnregisteredCalls; + } + public function setSelector($selector) + { + $this->selector = $selector; + } + public function getSelector() + { + return $this->selector; + } + public function setSkipServiceControl($skipServiceControl) + { + $this->skipServiceControl = $skipServiceControl; + } + public function getSkipServiceControl() + { + return $this->skipServiceControl; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage.php index 03257c4f..d7e01e8f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage.php @@ -16,7 +16,7 @@ */ /** - * Service definition for ServiceUsage (v1beta1). + * Service definition for ServiceUsage (v1). * ** Enables services that service consumers want to use on Google Cloud Platform, @@ -55,7 +55,8 @@ class Google_Service_ServiceUsage extends Google_Service parent::__construct($client); $this->rootUrl = 'https://serviceusage.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta1'; + $this->batchPath = 'batch'; + $this->version = 'v1'; $this->serviceName = 'serviceusage'; $this->operations = new Google_Service_ServiceUsage_Resource_Operations( @@ -64,8 +65,28 @@ class Google_Service_ServiceUsage extends Google_Service 'operations', array( 'methods' => array( - 'get' => array( - 'path' => 'v1beta1/{+name}', + 'cancel' => array( + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -75,13 +96,9 @@ class Google_Service_ServiceUsage extends Google_Service ), ), ),'list' => array( - 'path' => 'v1beta1/operations', + 'path' => 'v1/operations', 'httpMethod' => 'GET', 'parameters' => array( - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'name' => array( 'location' => 'query', 'type' => 'string', @@ -94,6 +111,10 @@ class Google_Service_ServiceUsage extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -106,7 +127,7 @@ class Google_Service_ServiceUsage extends Google_Service array( 'methods' => array( 'batchEnable' => array( - 'path' => 'v1beta1/{+parent}/services:batchEnable', + 'path' => 'v1/{+parent}/services:batchEnable', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -116,7 +137,7 @@ class Google_Service_ServiceUsage extends Google_Service ), ), ),'disable' => array( - 'path' => 'v1beta1/{+name}:disable', + 'path' => 'v1/{+name}:disable', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -126,7 +147,7 @@ class Google_Service_ServiceUsage extends Google_Service ), ), ),'enable' => array( - 'path' => 'v1beta1/{+name}:enable', + 'path' => 'v1/{+name}:enable', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -136,7 +157,7 @@ class Google_Service_ServiceUsage extends Google_Service ), ), ),'get' => array( - 'path' => 'v1beta1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -146,7 +167,7 @@ class Google_Service_ServiceUsage extends Google_Service ), ), ),'list' => array( - 'path' => 'v1beta1/{+parent}/services', + 'path' => 'v1/{+parent}/services', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -154,10 +175,6 @@ class Google_Service_ServiceUsage extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -166,6 +183,10 @@ class Google_Service_ServiceUsage extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthenticationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthenticationRule.php index e131350c..3e1d7177 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthenticationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/AuthenticationRule.php @@ -19,8 +19,6 @@ class Google_Service_ServiceUsage_AuthenticationRule extends Google_Collection { protected $collection_key = 'requirements'; public $allowWithoutCredential; - protected $customAuthType = 'Google_Service_ServiceUsage_CustomAuthRequirements'; - protected $customAuthDataType = ''; protected $oauthType = 'Google_Service_ServiceUsage_OAuthRequirements'; protected $oauthDataType = ''; protected $requirementsType = 'Google_Service_ServiceUsage_AuthRequirement'; @@ -35,20 +33,6 @@ class Google_Service_ServiceUsage_AuthenticationRule extends Google_Collection { return $this->allowWithoutCredential; } - /** - * @param Google_Service_ServiceUsage_CustomAuthRequirements - */ - public function setCustomAuth(Google_Service_ServiceUsage_CustomAuthRequirements $customAuth) - { - $this->customAuth = $customAuth; - } - /** - * @return Google_Service_ServiceUsage_CustomAuthRequirements - */ - public function getCustomAuth() - { - return $this->customAuth; - } /** * @param Google_Service_ServiceUsage_OAuthRequirements */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BackendRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BackendRule.php index 07551392..b9f0fa7e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BackendRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BackendRule.php @@ -19,7 +19,10 @@ class Google_Service_ServiceUsage_BackendRule extends Google_Model { public $address; public $deadline; + public $jwtAudience; public $minDeadline; + public $operationDeadline; + public $pathTranslation; public $selector; public function setAddress($address) @@ -38,6 +41,14 @@ class Google_Service_ServiceUsage_BackendRule extends Google_Model { return $this->deadline; } + public function setJwtAudience($jwtAudience) + { + $this->jwtAudience = $jwtAudience; + } + public function getJwtAudience() + { + return $this->jwtAudience; + } public function setMinDeadline($minDeadline) { $this->minDeadline = $minDeadline; @@ -46,6 +57,22 @@ class Google_Service_ServiceUsage_BackendRule extends Google_Model { return $this->minDeadline; } + public function setOperationDeadline($operationDeadline) + { + $this->operationDeadline = $operationDeadline; + } + public function getOperationDeadline() + { + return $this->operationDeadline; + } + public function setPathTranslation($pathTranslation) + { + $this->pathTranslation = $pathTranslation; + } + public function getPathTranslation() + { + return $this->pathTranslation; + } public function setSelector($selector) { $this->selector = $selector; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BatchEnableServicesResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BatchEnableServicesResponse.php new file mode 100644 index 00000000..3ee8e2a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/BatchEnableServicesResponse.php @@ -0,0 +1,54 @@ +failures = $failures; + } + /** + * @return Google_Service_ServiceUsage_EnableFailure + */ + public function getFailures() + { + return $this->failures; + } + /** + * @param Google_Service_ServiceUsage_GoogleApiServiceusageV1Service + */ + public function setServices($services) + { + $this->services = $services; + } + /** + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1Service + */ + public function getServices() + { + return $this->services; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CancelOperationRequest.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CancelOperationRequest.php new file mode 100644 index 00000000..29993455 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/CancelOperationRequest.php @@ -0,0 +1,20 @@ +disableDependentServices = $disableDependentServices; + } + public function getDisableDependentServices() + { + return $this->disableDependentServices; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/DisableServiceResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/DisableServiceResponse.php new file mode 100644 index 00000000..e9d8fe59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/DisableServiceResponse.php @@ -0,0 +1,37 @@ +service = $service; + } + /** + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1Service + */ + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableFailure.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableFailure.php new file mode 100644 index 00000000..30252b51 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableFailure.php @@ -0,0 +1,39 @@ +errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + public function setServiceId($serviceId) + { + $this->serviceId = $serviceId; + } + public function getServiceId() + { + return $this->serviceId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableServiceResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableServiceResponse.php new file mode 100644 index 00000000..70f5f78d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/EnableServiceResponse.php @@ -0,0 +1,37 @@ +service = $service; + } + /** + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1Service + */ + public function getService() + { + return $this->service; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1OperationMetadata.php new file mode 100644 index 00000000..3133ebf5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1OperationMetadata.php @@ -0,0 +1,31 @@ +resourceNames = $resourceNames; + } + public function getResourceNames() + { + return $this->resourceNames; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Service.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1Service.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Service.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1Service.php index 7df06437..bff783c8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Service.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1Service.php @@ -15,23 +15,23 @@ * the License. */ -class Google_Service_ServiceUsage_Service extends Google_Model +class Google_Service_ServiceUsage_GoogleApiServiceusageV1Service extends Google_Model { - protected $configType = 'Google_Service_ServiceUsage_ServiceConfig'; + protected $configType = 'Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig'; protected $configDataType = ''; public $name; public $parent; public $state; /** - * @param Google_Service_ServiceUsage_ServiceConfig + * @param Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig */ - public function setConfig(Google_Service_ServiceUsage_ServiceConfig $config) + public function setConfig(Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig $config) { $this->config = $config; } /** - * @return Google_Service_ServiceUsage_ServiceConfig + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig */ public function getConfig() { diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceConfig.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1ServiceConfig.php similarity index 97% rename from vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceConfig.php rename to vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1ServiceConfig.php index 5574c039..931f940e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/GoogleApiServiceusageV1ServiceConfig.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_ServiceUsage_ServiceConfig extends Google_Collection +class Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig extends Google_Collection { protected $collection_key = 'endpoints'; protected $apisType = 'Google_Service_ServiceUsage_Api'; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/HttpRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/HttpRule.php index 8c1e30a9..f9f70c8f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/HttpRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/HttpRule.php @@ -17,25 +17,18 @@ class Google_Service_ServiceUsage_HttpRule extends Google_Collection { - protected $collection_key = 'authorizations'; + protected $collection_key = 'additionalBindings'; protected $additionalBindingsType = 'Google_Service_ServiceUsage_HttpRule'; protected $additionalBindingsDataType = 'array'; - protected $authorizationsType = 'Google_Service_ServiceUsage_AuthorizationRule'; - protected $authorizationsDataType = 'array'; public $body; protected $customType = 'Google_Service_ServiceUsage_CustomHttpPattern'; protected $customDataType = ''; public $delete; public $get; - protected $mediaDownloadType = 'Google_Service_ServiceUsage_MediaDownload'; - protected $mediaDownloadDataType = ''; - protected $mediaUploadType = 'Google_Service_ServiceUsage_MediaUpload'; - protected $mediaUploadDataType = ''; public $patch; public $post; public $put; - public $restCollection; - public $restMethodName; + public $responseBody; public $selector; /** @@ -52,20 +45,6 @@ class Google_Service_ServiceUsage_HttpRule extends Google_Collection { return $this->additionalBindings; } - /** - * @param Google_Service_ServiceUsage_AuthorizationRule - */ - public function setAuthorizations($authorizations) - { - $this->authorizations = $authorizations; - } - /** - * @return Google_Service_ServiceUsage_AuthorizationRule - */ - public function getAuthorizations() - { - return $this->authorizations; - } public function setBody($body) { $this->body = $body; @@ -104,34 +83,6 @@ class Google_Service_ServiceUsage_HttpRule extends Google_Collection { return $this->get; } - /** - * @param Google_Service_ServiceUsage_MediaDownload - */ - public function setMediaDownload(Google_Service_ServiceUsage_MediaDownload $mediaDownload) - { - $this->mediaDownload = $mediaDownload; - } - /** - * @return Google_Service_ServiceUsage_MediaDownload - */ - public function getMediaDownload() - { - return $this->mediaDownload; - } - /** - * @param Google_Service_ServiceUsage_MediaUpload - */ - public function setMediaUpload(Google_Service_ServiceUsage_MediaUpload $mediaUpload) - { - $this->mediaUpload = $mediaUpload; - } - /** - * @return Google_Service_ServiceUsage_MediaUpload - */ - public function getMediaUpload() - { - return $this->mediaUpload; - } public function setPatch($patch) { $this->patch = $patch; @@ -156,21 +107,13 @@ class Google_Service_ServiceUsage_HttpRule extends Google_Collection { return $this->put; } - public function setRestCollection($restCollection) + public function setResponseBody($responseBody) { - $this->restCollection = $restCollection; + $this->responseBody = $responseBody; } - public function getRestCollection() + public function getResponseBody() { - return $this->restCollection; - } - public function setRestMethodName($restMethodName) - { - $this->restMethodName = $restMethodName; - } - public function getRestMethodName() - { - return $this->restMethodName; + return $this->responseBody; } public function setSelector($selector) { diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ListServicesResponse.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ListServicesResponse.php index 9fd70b38..e5230fef 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ListServicesResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ListServicesResponse.php @@ -19,7 +19,7 @@ class Google_Service_ServiceUsage_ListServicesResponse extends Google_Collection { protected $collection_key = 'services'; public $nextPageToken; - protected $servicesType = 'Google_Service_ServiceUsage_Service'; + protected $servicesType = 'Google_Service_ServiceUsage_GoogleApiServiceusageV1Service'; protected $servicesDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -31,14 +31,14 @@ class Google_Service_ServiceUsage_ListServicesResponse extends Google_Collection return $this->nextPageToken; } /** - * @param Google_Service_ServiceUsage_Service + * @param Google_Service_ServiceUsage_GoogleApiServiceusageV1Service */ public function setServices($services) { $this->services = $services; } /** - * @return Google_Service_ServiceUsage_Service + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1Service */ public function getServices() { diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaDownload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaDownload.php deleted file mode 100644 index 60f7cf1d..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaDownload.php +++ /dev/null @@ -1,75 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDownloadService($downloadService) - { - $this->downloadService = $downloadService; - } - public function getDownloadService() - { - return $this->downloadService; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxDirectDownloadSize($maxDirectDownloadSize) - { - $this->maxDirectDownloadSize = $maxDirectDownloadSize; - } - public function getMaxDirectDownloadSize() - { - return $this->maxDirectDownloadSize; - } - public function setUseDirectDownload($useDirectDownload) - { - $this->useDirectDownload = $useDirectDownload; - } - public function getUseDirectDownload() - { - return $this->useDirectDownload; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaUpload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaUpload.php deleted file mode 100644 index 53205a7a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MediaUpload.php +++ /dev/null @@ -1,94 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxSize($maxSize) - { - $this->maxSize = $maxSize; - } - public function getMaxSize() - { - return $this->maxSize; - } - public function setMimeTypes($mimeTypes) - { - $this->mimeTypes = $mimeTypes; - } - public function getMimeTypes() - { - return $this->mimeTypes; - } - public function setProgressNotification($progressNotification) - { - $this->progressNotification = $progressNotification; - } - public function getProgressNotification() - { - return $this->progressNotification; - } - public function setStartNotification($startNotification) - { - $this->startNotification = $startNotification; - } - public function getStartNotification() - { - return $this->startNotification; - } - public function setUploadService($uploadService) - { - $this->uploadService = $uploadService; - } - public function getUploadService() - { - return $this->uploadService; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptor.php index 091be761..97670692 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_ServiceUsage_MetricDescriptor extends Google_Collection public $displayName; protected $labelsType = 'Google_Service_ServiceUsage_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_ServiceUsage_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_ServiceUsage_MetricDescriptor extends Google_Collection { return $this->labels; } + /** + * @param Google_Service_ServiceUsage_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_ServiceUsage_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_ServiceUsage_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptorMetadata.php new file mode 100644 index 00000000..347ca34c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/OperationMetadata.php index 3fb3f725..7e5d1826 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/OperationMetadata.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/OperationMetadata.php @@ -17,21 +17,9 @@ class Google_Service_ServiceUsage_OperationMetadata extends Google_Collection { - protected $collection_key = 'steps'; - public $progressPercentage; + protected $collection_key = 'resourceNames'; public $resourceNames; - public $startTime; - protected $stepsType = 'Google_Service_ServiceUsage_Step'; - protected $stepsDataType = 'array'; - public function setProgressPercentage($progressPercentage) - { - $this->progressPercentage = $progressPercentage; - } - public function getProgressPercentage() - { - return $this->progressPercentage; - } public function setResourceNames($resourceNames) { $this->resourceNames = $resourceNames; @@ -40,26 +28,4 @@ class Google_Service_ServiceUsage_OperationMetadata extends Google_Collection { return $this->resourceNames; } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - /** - * @param Google_Service_ServiceUsage_Step - */ - public function setSteps($steps) - { - $this->steps = $steps; - } - /** - * @return Google_Service_ServiceUsage_Step - */ - public function getSteps() - { - return $this->steps; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Operations.php index 7ee0a066..494537d0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Operations.php @@ -25,6 +25,44 @@ */ class Google_Service_ServiceUsage_Resource_Operations extends Google_Service_Resource { + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param Google_Service_ServiceUsage_CancelOperationRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceUsage_ServiceusageEmpty + */ + public function cancel($name, Google_Service_ServiceUsage_CancelOperationRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_ServiceUsage_ServiceusageEmpty"); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_ServiceUsage_ServiceusageEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_ServiceUsage_ServiceusageEmpty"); + } /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API @@ -54,10 +92,10 @@ class Google_Service_ServiceUsage_Resource_Operations extends Google_Service_Res * * @param array $optParams Optional parameters. * - * @opt_param string filter The standard list filter. * @opt_param string name The name of the operation's parent resource. * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. * @return Google_Service_ServiceUsage_ListOperationsResponse */ public function listOperations($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Services.php index a0ebc02c..3592a6d8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Services.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Resource/Services.php @@ -28,8 +28,7 @@ class Google_Service_ServiceUsage_Resource_Services extends Google_Service_Resou /** * Enable multiple services on a project. The operation is atomic: if enabling * any service fails, then the entire batch fails, and no state changes occur. - * - * Operation (services.batchEnable) + * (services.batchEnable) * * @param string $parent Parent to enable services on. * @@ -54,9 +53,7 @@ class Google_Service_ServiceUsage_Resource_Services extends Google_Service_Resou * * It is not valid to call the disable method on a service that is not currently * enabled. Callers will receive a `FAILED_PRECONDITION` status if the target - * service is not currently enabled. - * - * Operation (services.disable) + * service is not currently enabled. (services.disable) * * @param string $name Name of the consumer and service to disable the service * on. @@ -76,9 +73,7 @@ class Google_Service_ServiceUsage_Resource_Services extends Google_Service_Resou return $this->call('disable', array($params), "Google_Service_ServiceUsage_Operation"); } /** - * Enable a service so that it can be used with a project. - * - * Operation (services.enable) + * Enable a service so that it can be used with a project. (services.enable) * * @param string $name Name of the consumer and service to enable the service * on. @@ -111,13 +106,13 @@ class Google_Service_ServiceUsage_Resource_Services extends Google_Service_Resou * An example name would be: `projects/123/services/serviceusage.googleapis.com` * where `123` is the project number (not project ID). * @param array $optParams Optional parameters. - * @return Google_Service_ServiceUsage_Service + * @return Google_Service_ServiceUsage_GoogleApiServiceusageV1Service */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_ServiceUsage_Service"); + return $this->call('get', array($params), "Google_Service_ServiceUsage_GoogleApiServiceusageV1Service"); } /** * List all services available to the specified project, and the current state @@ -134,12 +129,12 @@ class Google_Service_ServiceUsage_Resource_Services extends Google_Service_Resou * (not project ID). * @param array $optParams Optional parameters. * - * @opt_param int pageSize Requested size of the next page of data. Requested - * page size cannot exceed 200. If not set, the default page size is 50. * @opt_param string filter Only list services that conform to the given filter. * The allowed filter strings are `state:ENABLED` and `state:DISABLED`. * @opt_param string pageToken Token identifying which result to start with, * which is returned by a previous list call. + * @opt_param int pageSize Requested size of the next page of data. Requested + * page size cannot exceed 200. If not set, the default page size is 50. * @return Google_Service_ServiceUsage_ListServicesResponse */ public function listServices($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceusageEmpty.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceusageEmpty.php new file mode 100644 index 00000000..1c1c200a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/ServiceusageEmpty.php @@ -0,0 +1,20 @@ + 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -116,14 +116,14 @@ class Google_Service_ServiceUser extends Google_Service 'path' => 'v1/services:search', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php index b6bd933b..f1bad9be 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php @@ -19,8 +19,6 @@ class Google_Service_ServiceUser_AuthenticationRule extends Google_Collection { protected $collection_key = 'requirements'; public $allowWithoutCredential; - protected $customAuthType = 'Google_Service_ServiceUser_CustomAuthRequirements'; - protected $customAuthDataType = ''; protected $oauthType = 'Google_Service_ServiceUser_OAuthRequirements'; protected $oauthDataType = ''; protected $requirementsType = 'Google_Service_ServiceUser_AuthRequirement'; @@ -35,20 +33,6 @@ class Google_Service_ServiceUser_AuthenticationRule extends Google_Collection { return $this->allowWithoutCredential; } - /** - * @param Google_Service_ServiceUser_CustomAuthRequirements - */ - public function setCustomAuth(Google_Service_ServiceUser_CustomAuthRequirements $customAuth) - { - $this->customAuth = $customAuth; - } - /** - * @return Google_Service_ServiceUser_CustomAuthRequirements - */ - public function getCustomAuth() - { - return $this->customAuth; - } /** * @param Google_Service_ServiceUser_OAuthRequirements */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php index 3e465a5b..8ab47e18 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php @@ -25,13 +25,10 @@ class Google_Service_ServiceUser_HttpRule extends Google_Collection protected $customDataType = ''; public $delete; public $get; - protected $mediaDownloadType = 'Google_Service_ServiceUser_MediaDownload'; - protected $mediaDownloadDataType = ''; - protected $mediaUploadType = 'Google_Service_ServiceUser_MediaUpload'; - protected $mediaUploadDataType = ''; public $patch; public $post; public $put; + public $responseBody; public $selector; /** @@ -86,34 +83,6 @@ class Google_Service_ServiceUser_HttpRule extends Google_Collection { return $this->get; } - /** - * @param Google_Service_ServiceUser_MediaDownload - */ - public function setMediaDownload(Google_Service_ServiceUser_MediaDownload $mediaDownload) - { - $this->mediaDownload = $mediaDownload; - } - /** - * @return Google_Service_ServiceUser_MediaDownload - */ - public function getMediaDownload() - { - return $this->mediaDownload; - } - /** - * @param Google_Service_ServiceUser_MediaUpload - */ - public function setMediaUpload(Google_Service_ServiceUser_MediaUpload $mediaUpload) - { - $this->mediaUpload = $mediaUpload; - } - /** - * @return Google_Service_ServiceUser_MediaUpload - */ - public function getMediaUpload() - { - return $this->mediaUpload; - } public function setPatch($patch) { $this->patch = $patch; @@ -138,6 +107,14 @@ class Google_Service_ServiceUser_HttpRule extends Google_Collection { return $this->put; } + public function setResponseBody($responseBody) + { + $this->responseBody = $responseBody; + } + public function getResponseBody() + { + return $this->responseBody; + } public function setSelector($selector) { $this->selector = $selector; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php deleted file mode 100644 index c44129aa..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php +++ /dev/null @@ -1,75 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDownloadService($downloadService) - { - $this->downloadService = $downloadService; - } - public function getDownloadService() - { - return $this->downloadService; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxDirectDownloadSize($maxDirectDownloadSize) - { - $this->maxDirectDownloadSize = $maxDirectDownloadSize; - } - public function getMaxDirectDownloadSize() - { - return $this->maxDirectDownloadSize; - } - public function setUseDirectDownload($useDirectDownload) - { - $this->useDirectDownload = $useDirectDownload; - } - public function getUseDirectDownload() - { - return $this->useDirectDownload; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php deleted file mode 100644 index 76f5c80a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php +++ /dev/null @@ -1,94 +0,0 @@ -completeNotification = $completeNotification; - } - public function getCompleteNotification() - { - return $this->completeNotification; - } - public function setDropzone($dropzone) - { - $this->dropzone = $dropzone; - } - public function getDropzone() - { - return $this->dropzone; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setMaxSize($maxSize) - { - $this->maxSize = $maxSize; - } - public function getMaxSize() - { - return $this->maxSize; - } - public function setMimeTypes($mimeTypes) - { - $this->mimeTypes = $mimeTypes; - } - public function getMimeTypes() - { - return $this->mimeTypes; - } - public function setProgressNotification($progressNotification) - { - $this->progressNotification = $progressNotification; - } - public function getProgressNotification() - { - return $this->progressNotification; - } - public function setStartNotification($startNotification) - { - $this->startNotification = $startNotification; - } - public function getStartNotification() - { - return $this->startNotification; - } - public function setUploadService($uploadService) - { - $this->uploadService = $uploadService; - } - public function getUploadService() - { - return $this->uploadService; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php index 0c1aee46..cc9c9022 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php @@ -22,6 +22,8 @@ class Google_Service_ServiceUser_MetricDescriptor extends Google_Collection public $displayName; protected $labelsType = 'Google_Service_ServiceUser_LabelDescriptor'; protected $labelsDataType = 'array'; + protected $metadataType = 'Google_Service_ServiceUser_MetricDescriptorMetadata'; + protected $metadataDataType = ''; public $metricKind; public $name; public $type; @@ -58,6 +60,20 @@ class Google_Service_ServiceUser_MetricDescriptor extends Google_Collection { return $this->labels; } + /** + * @param Google_Service_ServiceUser_MetricDescriptorMetadata + */ + public function setMetadata(Google_Service_ServiceUser_MetricDescriptorMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_ServiceUser_MetricDescriptorMetadata + */ + public function getMetadata() + { + return $this->metadata; + } public function setMetricKind($metricKind) { $this->metricKind = $metricKind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptorMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptorMetadata.php new file mode 100644 index 00000000..b61d84e0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptorMetadata.php @@ -0,0 +1,48 @@ +ingestDelay = $ingestDelay; + } + public function getIngestDelay() + { + return $this->ingestDelay; + } + public function setLaunchStage($launchStage) + { + $this->launchStage = $launchStage; + } + public function getLaunchStage() + { + return $this->launchStage; + } + public function setSamplePeriod($samplePeriod) + { + $this->samplePeriod = $samplePeriod; + } + public function getSamplePeriod() + { + return $this->samplePeriod; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php index c892411a..20081750 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php @@ -37,8 +37,8 @@ class Google_Service_ServiceUser_Resource_ProjectsServices extends Google_Servic * The Service User implementation accepts the following forms for consumer: - * "project:" * - * A valid path would be: - /v1/projects/my- - * project/services/servicemanagement.googleapis.com:disable + * A valid path would be: - projects/my- + * project/services/servicemanagement.googleapis.com * @param Google_Service_ServiceUser_DisableServiceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_ServiceUser_Operation @@ -58,8 +58,8 @@ class Google_Service_ServiceUser_Resource_ProjectsServices extends Google_Servic * @param string $name Name of the consumer and the service to enable for that * consumer. * - * A valid path would be: - /v1/projects/my- - * project/services/servicemanagement.googleapis.com:enable + * A valid path would be: - projects/my- + * project/services/servicemanagement.googleapis.com * @param Google_Service_ServiceUser_EnableServiceRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_ServiceUser_Operation @@ -79,9 +79,9 @@ class Google_Service_ServiceUser_Resource_ProjectsServices extends Google_Servic * An example valid parent would be: - projects/my-project * @param array $optParams Optional parameters. * - * @opt_param int pageSize Requested size of the next page of data. * @opt_param string pageToken Token identifying which result to start with; * returned by a previous list call. + * @opt_param int pageSize Requested size of the next page of data. * @return Google_Service_ServiceUser_ListEnabledServicesResponse */ public function listProjectsServices($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php index 6fc3a316..0865aeac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php +++ b/vendor/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php @@ -34,9 +34,9 @@ class Google_Service_ServiceUser_Resource_Services extends Google_Service_Resour * * @param array $optParams Optional parameters. * + * @opt_param int pageSize Requested size of the next page of data. * @opt_param string pageToken Token identifying which result to start with; * returned by a previous list call. - * @opt_param int pageSize Requested size of the next page of data. * @return Google_Service_ServiceUser_SearchServicesResponse */ public function search($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets.php b/vendor/google/apiclient-services/src/Google/Service/Sheets.php index 573dad9e..7823f533 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets.php @@ -30,16 +30,16 @@ */ class Google_Service_Sheets extends Google_Service { - /** View and manage the files in your Google Drive. */ + /** See, edit, create, and delete all of your Google Drive files. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage Google Drive files and folders that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; - /** View the files in your Google Drive. */ + /** See and download all your Google Drive files. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; - /** View and manage your spreadsheets in Google Drive. */ + /** See, edit, create, and delete your spreadsheets in Google Drive. */ const SPREADSHEETS = "https://www.googleapis.com/auth/spreadsheets"; /** View your Google Spreadsheets. */ @@ -61,6 +61,7 @@ class Google_Service_Sheets extends Google_Service parent::__construct($client); $this->rootUrl = 'https://sheets.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v4'; $this->serviceName = 'sheets'; @@ -197,6 +198,10 @@ class Google_Service_Sheets extends Google_Service 'type' => 'string', 'required' => true, ), + 'includeValuesInResponse' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'responseValueRenderOption' => array( 'location' => 'query', 'type' => 'string', @@ -213,10 +218,6 @@ class Google_Service_Sheets extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'includeValuesInResponse' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'batchClear' => array( 'path' => 'v4/spreadsheets/{spreadsheetId}/values:batchClear', @@ -247,6 +248,14 @@ class Google_Service_Sheets extends Google_Service 'type' => 'string', 'required' => true, ), + 'valueRenderOption' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'dateTimeRenderOption' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ranges' => array( 'location' => 'query', 'type' => 'string', @@ -256,14 +265,6 @@ class Google_Service_Sheets extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'valueRenderOption' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'dateTimeRenderOption' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'batchGetByDataFilter' => array( 'path' => 'v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter', @@ -351,10 +352,6 @@ class Google_Service_Sheets extends Google_Service 'type' => 'string', 'required' => true, ), - 'responseDateTimeRenderOption' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeValuesInResponse' => array( 'location' => 'query', 'type' => 'boolean', @@ -367,6 +364,10 @@ class Google_Service_Sheets extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'responseDateTimeRenderOption' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupRequest.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupRequest.php new file mode 100644 index 00000000..45f5c30a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupRequest.php @@ -0,0 +1,37 @@ +range = $range; + } + /** + * @return Google_Service_Sheets_DimensionRange + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupResponse.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupResponse.php new file mode 100644 index 00000000..5c9c6f30 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/AddDimensionGroupResponse.php @@ -0,0 +1,38 @@ +dimensionGroups = $dimensionGroups; + } + /** + * @return Google_Service_Sheets_DimensionGroup + */ + public function getDimensionGroups() + { + return $this->dimensionGroups; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/DateTimeRule.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/DateTimeRule.php new file mode 100644 index 00000000..5be5457a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/DateTimeRule.php @@ -0,0 +1,30 @@ +type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupRequest.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupRequest.php new file mode 100644 index 00000000..20239741 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupRequest.php @@ -0,0 +1,37 @@ +range = $range; + } + /** + * @return Google_Service_Sheets_DimensionRange + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupResponse.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupResponse.php new file mode 100644 index 00000000..3408a59e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionGroupResponse.php @@ -0,0 +1,38 @@ +dimensionGroups = $dimensionGroups; + } + /** + * @return Google_Service_Sheets_DimensionGroup + */ + public function getDimensionGroups() + { + return $this->dimensionGroups; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/DimensionGroup.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/DimensionGroup.php new file mode 100644 index 00000000..7a162578 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/DimensionGroup.php @@ -0,0 +1,55 @@ +collapsed = $collapsed; + } + public function getCollapsed() + { + return $this->collapsed; + } + public function setDepth($depth) + { + $this->depth = $depth; + } + public function getDepth() + { + return $this->depth; + } + /** + * @param Google_Service_Sheets_DimensionRange + */ + public function setRange(Google_Service_Sheets_DimensionRange $range) + { + $this->range = $range; + } + /** + * @return Google_Service_Sheets_DimensionRange + */ + public function getRange() + { + return $this->range; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php index f2e494cd..e7fd5000 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php @@ -18,10 +18,12 @@ class Google_Service_Sheets_GridProperties extends Google_Model { public $columnCount; + public $columnGroupControlAfter; public $frozenColumnCount; public $frozenRowCount; public $hideGridlines; public $rowCount; + public $rowGroupControlAfter; public function setColumnCount($columnCount) { @@ -31,6 +33,14 @@ class Google_Service_Sheets_GridProperties extends Google_Model { return $this->columnCount; } + public function setColumnGroupControlAfter($columnGroupControlAfter) + { + $this->columnGroupControlAfter = $columnGroupControlAfter; + } + public function getColumnGroupControlAfter() + { + return $this->columnGroupControlAfter; + } public function setFrozenColumnCount($frozenColumnCount) { $this->frozenColumnCount = $frozenColumnCount; @@ -63,4 +73,12 @@ class Google_Service_Sheets_GridProperties extends Google_Model { return $this->rowCount; } + public function setRowGroupControlAfter($rowGroupControlAfter) + { + $this->rowGroupControlAfter = $rowGroupControlAfter; + } + public function getRowGroupControlAfter() + { + return $this->rowGroupControlAfter; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotGroupRule.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotGroupRule.php index 5a0a4ec4..ceb79c6e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotGroupRule.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/PivotGroupRule.php @@ -17,11 +17,27 @@ class Google_Service_Sheets_PivotGroupRule extends Google_Model { + protected $dateTimeRuleType = 'Google_Service_Sheets_DateTimeRule'; + protected $dateTimeRuleDataType = ''; protected $histogramRuleType = 'Google_Service_Sheets_HistogramRule'; protected $histogramRuleDataType = ''; protected $manualRuleType = 'Google_Service_Sheets_ManualRule'; protected $manualRuleDataType = ''; + /** + * @param Google_Service_Sheets_DateTimeRule + */ + public function setDateTimeRule(Google_Service_Sheets_DateTimeRule $dateTimeRule) + { + $this->dateTimeRule = $dateTimeRule; + } + /** + * @return Google_Service_Sheets_DateTimeRule + */ + public function getDateTimeRule() + { + return $this->dateTimeRule; + } /** * @param Google_Service_Sheets_HistogramRule */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/Request.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/Request.php index 07f2a6b9..09a840ee 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/Request.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/Request.php @@ -23,6 +23,8 @@ class Google_Service_Sheets_Request extends Google_Model protected $addChartDataType = ''; protected $addConditionalFormatRuleType = 'Google_Service_Sheets_AddConditionalFormatRuleRequest'; protected $addConditionalFormatRuleDataType = ''; + protected $addDimensionGroupType = 'Google_Service_Sheets_AddDimensionGroupRequest'; + protected $addDimensionGroupDataType = ''; protected $addFilterViewType = 'Google_Service_Sheets_AddFilterViewRequest'; protected $addFilterViewDataType = ''; protected $addNamedRangeType = 'Google_Service_Sheets_AddNamedRangeRequest'; @@ -55,6 +57,8 @@ class Google_Service_Sheets_Request extends Google_Model protected $deleteDeveloperMetadataDataType = ''; protected $deleteDimensionType = 'Google_Service_Sheets_DeleteDimensionRequest'; protected $deleteDimensionDataType = ''; + protected $deleteDimensionGroupType = 'Google_Service_Sheets_DeleteDimensionGroupRequest'; + protected $deleteDimensionGroupDataType = ''; protected $deleteEmbeddedObjectType = 'Google_Service_Sheets_DeleteEmbeddedObjectRequest'; protected $deleteEmbeddedObjectDataType = ''; protected $deleteFilterViewType = 'Google_Service_Sheets_DeleteFilterViewRequest'; @@ -109,6 +113,8 @@ class Google_Service_Sheets_Request extends Google_Model protected $updateConditionalFormatRuleDataType = ''; protected $updateDeveloperMetadataType = 'Google_Service_Sheets_UpdateDeveloperMetadataRequest'; protected $updateDeveloperMetadataDataType = ''; + protected $updateDimensionGroupType = 'Google_Service_Sheets_UpdateDimensionGroupRequest'; + protected $updateDimensionGroupDataType = ''; protected $updateDimensionPropertiesType = 'Google_Service_Sheets_UpdateDimensionPropertiesRequest'; protected $updateDimensionPropertiesDataType = ''; protected $updateEmbeddedObjectPositionType = 'Google_Service_Sheets_UpdateEmbeddedObjectPositionRequest'; @@ -166,6 +172,20 @@ class Google_Service_Sheets_Request extends Google_Model { return $this->addConditionalFormatRule; } + /** + * @param Google_Service_Sheets_AddDimensionGroupRequest + */ + public function setAddDimensionGroup(Google_Service_Sheets_AddDimensionGroupRequest $addDimensionGroup) + { + $this->addDimensionGroup = $addDimensionGroup; + } + /** + * @return Google_Service_Sheets_AddDimensionGroupRequest + */ + public function getAddDimensionGroup() + { + return $this->addDimensionGroup; + } /** * @param Google_Service_Sheets_AddFilterViewRequest */ @@ -390,6 +410,20 @@ class Google_Service_Sheets_Request extends Google_Model { return $this->deleteDimension; } + /** + * @param Google_Service_Sheets_DeleteDimensionGroupRequest + */ + public function setDeleteDimensionGroup(Google_Service_Sheets_DeleteDimensionGroupRequest $deleteDimensionGroup) + { + $this->deleteDimensionGroup = $deleteDimensionGroup; + } + /** + * @return Google_Service_Sheets_DeleteDimensionGroupRequest + */ + public function getDeleteDimensionGroup() + { + return $this->deleteDimensionGroup; + } /** * @param Google_Service_Sheets_DeleteEmbeddedObjectRequest */ @@ -768,6 +802,20 @@ class Google_Service_Sheets_Request extends Google_Model { return $this->updateDeveloperMetadata; } + /** + * @param Google_Service_Sheets_UpdateDimensionGroupRequest + */ + public function setUpdateDimensionGroup(Google_Service_Sheets_UpdateDimensionGroupRequest $updateDimensionGroup) + { + $this->updateDimensionGroup = $updateDimensionGroup; + } + /** + * @return Google_Service_Sheets_UpdateDimensionGroupRequest + */ + public function getUpdateDimensionGroup() + { + return $this->updateDimensionGroup; + } /** * @param Google_Service_Sheets_UpdateDimensionPropertiesRequest */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php index a4fe4a4c..9c0255a9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php @@ -44,6 +44,9 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * @param Google_Service_Sheets_ValueRange $postBody * @param array $optParams Optional parameters. * + * @opt_param bool includeValuesInResponse Determines if the update response + * should include the values of the cells that were appended. By default, + * responses do not include the updated values. * @opt_param string responseValueRenderOption Determines how values in the * response should be rendered. The default render option is * ValueRenderOption.FORMATTED_VALUE. @@ -53,9 +56,6 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * and durations in the response should be rendered. This is ignored if * response_value_render_option is FORMATTED_VALUE. The default dateTime render * option is [DateTimeRenderOption.SERIAL_NUMBER]. - * @opt_param bool includeValuesInResponse Determines if the update response - * should include the values of the cells that were appended. By default, - * responses do not include the updated values. * @return Google_Service_Sheets_AppendValuesResponse */ public function append($spreadsheetId, $range, Google_Service_Sheets_ValueRange $postBody, $optParams = array()) @@ -106,6 +106,12 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * @param string $spreadsheetId The ID of the spreadsheet to retrieve data from. * @param array $optParams Optional parameters. * + * @opt_param string valueRenderOption How values should be represented in the + * output. The default render option is ValueRenderOption.FORMATTED_VALUE. + * @opt_param string dateTimeRenderOption How dates, times, and durations should + * be represented in the output. This is ignored if value_render_option is + * FORMATTED_VALUE. The default dateTime render option is + * [DateTimeRenderOption.SERIAL_NUMBER]. * @opt_param string ranges The A1 notation of the values to retrieve. * @opt_param string majorDimension The major dimension that results should use. * @@ -113,12 +119,6 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * requesting `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`, * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return * `[[1,3],[2,4]]`. - * @opt_param string valueRenderOption How values should be represented in the - * output. The default render option is ValueRenderOption.FORMATTED_VALUE. - * @opt_param string dateTimeRenderOption How dates, times, and durations should - * be represented in the output. This is ignored if value_render_option is - * FORMATTED_VALUE. The default dateTime render option is - * [DateTimeRenderOption.SERIAL_NUMBER]. * @return Google_Service_Sheets_BatchGetValuesResponse */ public function batchGet($spreadsheetId, $optParams = array()) @@ -230,10 +230,6 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * @param Google_Service_Sheets_ValueRange $postBody * @param array $optParams Optional parameters. * - * @opt_param string responseDateTimeRenderOption Determines how dates, times, - * and durations in the response should be rendered. This is ignored if - * response_value_render_option is FORMATTED_VALUE. The default dateTime render - * option is [DateTimeRenderOption.SERIAL_NUMBER]. * @opt_param bool includeValuesInResponse Determines if the update response * should include the values of the cells that were updated. By default, * responses do not include the updated values. If the range to write was larger @@ -243,6 +239,10 @@ class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_R * response should be rendered. The default render option is * ValueRenderOption.FORMATTED_VALUE. * @opt_param string valueInputOption How the input data should be interpreted. + * @opt_param string responseDateTimeRenderOption Determines how dates, times, + * and durations in the response should be rendered. This is ignored if + * response_value_render_option is FORMATTED_VALUE. The default dateTime render + * option is DateTimeRenderOption.SERIAL_NUMBER. * @return Google_Service_Sheets_UpdateValuesResponse */ public function update($spreadsheetId, $range, Google_Service_Sheets_ValueRange $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/Response.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/Response.php index cae85f37..1ad5e807 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/Response.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/Response.php @@ -21,6 +21,8 @@ class Google_Service_Sheets_Response extends Google_Model protected $addBandingDataType = ''; protected $addChartType = 'Google_Service_Sheets_AddChartResponse'; protected $addChartDataType = ''; + protected $addDimensionGroupType = 'Google_Service_Sheets_AddDimensionGroupResponse'; + protected $addDimensionGroupDataType = ''; protected $addFilterViewType = 'Google_Service_Sheets_AddFilterViewResponse'; protected $addFilterViewDataType = ''; protected $addNamedRangeType = 'Google_Service_Sheets_AddNamedRangeResponse'; @@ -35,6 +37,8 @@ class Google_Service_Sheets_Response extends Google_Model protected $deleteConditionalFormatRuleDataType = ''; protected $deleteDeveloperMetadataType = 'Google_Service_Sheets_DeleteDeveloperMetadataResponse'; protected $deleteDeveloperMetadataDataType = ''; + protected $deleteDimensionGroupType = 'Google_Service_Sheets_DeleteDimensionGroupResponse'; + protected $deleteDimensionGroupDataType = ''; protected $duplicateFilterViewType = 'Google_Service_Sheets_DuplicateFilterViewResponse'; protected $duplicateFilterViewDataType = ''; protected $duplicateSheetType = 'Google_Service_Sheets_DuplicateSheetResponse'; @@ -76,6 +80,20 @@ class Google_Service_Sheets_Response extends Google_Model { return $this->addChart; } + /** + * @param Google_Service_Sheets_AddDimensionGroupResponse + */ + public function setAddDimensionGroup(Google_Service_Sheets_AddDimensionGroupResponse $addDimensionGroup) + { + $this->addDimensionGroup = $addDimensionGroup; + } + /** + * @return Google_Service_Sheets_AddDimensionGroupResponse + */ + public function getAddDimensionGroup() + { + return $this->addDimensionGroup; + } /** * @param Google_Service_Sheets_AddFilterViewResponse */ @@ -174,6 +192,20 @@ class Google_Service_Sheets_Response extends Google_Model { return $this->deleteDeveloperMetadata; } + /** + * @param Google_Service_Sheets_DeleteDimensionGroupResponse + */ + public function setDeleteDimensionGroup(Google_Service_Sheets_DeleteDimensionGroupResponse $deleteDimensionGroup) + { + $this->deleteDimensionGroup = $deleteDimensionGroup; + } + /** + * @return Google_Service_Sheets_DeleteDimensionGroupResponse + */ + public function getDeleteDimensionGroup() + { + return $this->deleteDimensionGroup; + } /** * @param Google_Service_Sheets_DuplicateFilterViewResponse */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/Sheet.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/Sheet.php index bf50fb1e..8b448d7d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Sheets/Sheet.php +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/Sheet.php @@ -17,13 +17,15 @@ class Google_Service_Sheets_Sheet extends Google_Collection { - protected $collection_key = 'protectedRanges'; + protected $collection_key = 'rowGroups'; protected $bandedRangesType = 'Google_Service_Sheets_BandedRange'; protected $bandedRangesDataType = 'array'; protected $basicFilterType = 'Google_Service_Sheets_BasicFilter'; protected $basicFilterDataType = ''; protected $chartsType = 'Google_Service_Sheets_EmbeddedChart'; protected $chartsDataType = 'array'; + protected $columnGroupsType = 'Google_Service_Sheets_DimensionGroup'; + protected $columnGroupsDataType = 'array'; protected $conditionalFormatsType = 'Google_Service_Sheets_ConditionalFormatRule'; protected $conditionalFormatsDataType = 'array'; protected $dataType = 'Google_Service_Sheets_GridData'; @@ -38,6 +40,8 @@ class Google_Service_Sheets_Sheet extends Google_Collection protected $propertiesDataType = ''; protected $protectedRangesType = 'Google_Service_Sheets_ProtectedRange'; protected $protectedRangesDataType = 'array'; + protected $rowGroupsType = 'Google_Service_Sheets_DimensionGroup'; + protected $rowGroupsDataType = 'array'; /** * @param Google_Service_Sheets_BandedRange @@ -81,6 +85,20 @@ class Google_Service_Sheets_Sheet extends Google_Collection { return $this->charts; } + /** + * @param Google_Service_Sheets_DimensionGroup + */ + public function setColumnGroups($columnGroups) + { + $this->columnGroups = $columnGroups; + } + /** + * @return Google_Service_Sheets_DimensionGroup + */ + public function getColumnGroups() + { + return $this->columnGroups; + } /** * @param Google_Service_Sheets_ConditionalFormatRule */ @@ -179,4 +197,18 @@ class Google_Service_Sheets_Sheet extends Google_Collection { return $this->protectedRanges; } + /** + * @param Google_Service_Sheets_DimensionGroup + */ + public function setRowGroups($rowGroups) + { + $this->rowGroups = $rowGroups; + } + /** + * @return Google_Service_Sheets_DimensionGroup + */ + public function getRowGroups() + { + return $this->rowGroups; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionGroupRequest.php b/vendor/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionGroupRequest.php new file mode 100644 index 00000000..05222ca0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionGroupRequest.php @@ -0,0 +1,46 @@ +dimensionGroup = $dimensionGroup; + } + /** + * @return Google_Service_Sheets_DimensionGroup + */ + public function getDimensionGroup() + { + return $this->dimensionGroup; + } + public function setFields($fields) + { + $this->fields = $fields; + } + public function getFields() + { + return $this->fields; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent.php index e6f91534..89aaa7c1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent.php @@ -16,7 +16,7 @@ */ /** - * Service definition for ShoppingContent (v2). + * Service definition for ShoppingContent (v2.1). * *
* Manages product items, inventory, and Merchant Center accounts for Google @@ -40,12 +40,15 @@ class Google_Service_ShoppingContent extends Google_Service public $accounttax; public $datafeeds; public $datafeedstatuses; - public $inventory; public $liasettings; + public $orderinvoices; + public $orderreports; + public $orderreturns; public $orders; public $pos; public $products; public $productstatuses; + public $regionalinventory; public $shippingsettings; /** @@ -57,8 +60,9 @@ class Google_Service_ShoppingContent extends Google_Service { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; - $this->servicePath = 'content/v2/'; - $this->version = 'v2'; + $this->servicePath = 'content/v2.1/'; + $this->batchPath = 'batch/content/v2.1'; + $this->version = 'v2.1'; $this->serviceName = 'content'; $this->accounts = new Google_Service_ShoppingContent_Resource_Accounts( @@ -93,12 +97,7 @@ class Google_Service_ShoppingContent extends Google_Service ),'custombatch' => array( 'path' => 'accounts/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'delete' => array( 'path' => '{merchantId}/accounts/{accountId}', 'httpMethod' => 'DELETE', @@ -113,10 +112,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'force' => array( 'location' => 'query', 'type' => 'boolean', @@ -146,9 +141,20 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', + ), + ),'link' => array( + 'path' => '{merchantId}/accounts/{accountId}/link', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ),'list' => array( @@ -169,25 +175,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{merchantId}/accounts/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), ),'update' => array( 'path' => '{merchantId}/accounts/{accountId}', 'httpMethod' => 'PUT', @@ -202,10 +189,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ), ) @@ -277,12 +260,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'accounttax/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'get' => array( 'path' => '{merchantId}/accounttax/{accountId}', 'httpMethod' => 'GET', @@ -316,25 +294,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{merchantId}/accounttax/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), ),'update' => array( 'path' => '{merchantId}/accounttax/{accountId}', 'httpMethod' => 'PUT', @@ -349,10 +308,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ), ) @@ -367,12 +322,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'datafeeds/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'delete' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', 'httpMethod' => 'DELETE', @@ -387,10 +337,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'fetchnow' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}/fetchNow', @@ -406,10 +352,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'get' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', @@ -435,10 +377,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'list' => array( 'path' => '{merchantId}/datafeeds', @@ -458,25 +396,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{merchantId}/datafeeds/{datafeedId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'datafeedId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), ),'update' => array( 'path' => '{merchantId}/datafeeds/{datafeedId}', 'httpMethod' => 'PUT', @@ -491,10 +410,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ), ) @@ -555,49 +470,6 @@ class Google_Service_ShoppingContent extends Google_Service ) ) ); - $this->inventory = new Google_Service_ShoppingContent_Resource_Inventory( - $this, - $this->serviceName, - 'inventory', - array( - 'methods' => array( - 'custombatch' => array( - 'path' => 'inventory/batch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'set' => array( - 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'storeCode' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'productId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ), - ) - ) - ); $this->liasettings = new Google_Service_ShoppingContent_Resource_Liasettings( $this, $this->serviceName, @@ -607,12 +479,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'liasettings/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'get' => array( 'path' => '{merchantId}/liasettings/{accountId}', 'httpMethod' => 'GET', @@ -661,25 +528,10 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{merchantId}/liasettings/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + ),'listposdataproviders' => array( + 'path' => 'liasettings/posdataproviders', + 'httpMethod' => 'GET', + 'parameters' => array(), ),'requestgmbaccess' => array( 'path' => '{merchantId}/liasettings/{accountId}/requestgmbaccess', 'httpMethod' => 'POST', @@ -697,6 +549,7 @@ class Google_Service_ShoppingContent extends Google_Service 'gmbEmail' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), ), ),'requestinventoryverification' => array( @@ -736,18 +589,50 @@ class Google_Service_ShoppingContent extends Google_Service 'contactEmail' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), 'contactName' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), 'country' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), 'language' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, + ), + ), + ),'setposdataprovider' => array( + 'path' => '{merchantId}/liasettings/{accountId}/setposdataprovider', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'country' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'posDataProviderId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'posExternalAccountId' => array( + 'location' => 'query', + 'type' => 'string', ), ), ),'update' => array( @@ -764,9 +649,169 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( + ), + ), + ) + ) + ); + $this->orderinvoices = new Google_Service_ShoppingContent_Resource_Orderinvoices( + $this, + $this->serviceName, + 'orderinvoices', + array( + 'methods' => array( + 'createchargeinvoice' => array( + 'path' => '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'createrefundinvoice' => array( + 'path' => '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->orderreports = new Google_Service_ShoppingContent_Resource_Orderreports( + $this, + $this->serviceName, + 'orderreports', + array( + 'methods' => array( + 'listdisbursements' => array( + 'path' => '{merchantId}/orderreports/disbursements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disbursementStartDate' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', + 'required' => true, + ), + 'disbursementEndDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listtransactions' => array( + 'path' => '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'disbursementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'transactionStartDate' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'transactionEndDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->orderreturns = new Google_Service_ShoppingContent_Resource_Orderreturns( + $this, + $this->serviceName, + 'orderreturns', + array( + 'methods' => array( + 'get' => array( + 'path' => '{merchantId}/orderreturns/{returnId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'returnId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/orderreturns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'createdEndDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'createdStartDate' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', ), ), ), @@ -839,6 +884,21 @@ class Google_Service_ShoppingContent extends Google_Service 'required' => true, ), ), + ),'canceltestorderbycustomer' => array( + 'path' => '{merchantId}/testorders/{orderId}/cancelByCustomer', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'createtestorder' => array( 'path' => '{merchantId}/testorders', 'httpMethod' => 'POST', @@ -849,10 +909,21 @@ class Google_Service_ShoppingContent extends Google_Service 'required' => true, ), ), - ),'custombatch' => array( - 'path' => 'orders/batch', + ),'createtestreturn' => array( + 'path' => '{merchantId}/orders/{orderId}/testreturn', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => '{merchantId}/orders/{orderId}', 'httpMethod' => 'GET', @@ -897,6 +968,10 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), + 'country' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'instorerefundlineitem' => array( 'path' => '{merchantId}/orders/{orderId}/inStoreRefundLineItem', @@ -952,21 +1027,6 @@ class Google_Service_ShoppingContent extends Google_Service 'repeated' => true, ), ), - ),'refund' => array( - 'path' => '{merchantId}/orders/{orderId}/refund', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'rejectreturnlineitem' => array( 'path' => '{merchantId}/orders/{orderId}/rejectReturnLineItem', 'httpMethod' => 'POST', @@ -982,21 +1042,6 @@ class Google_Service_ShoppingContent extends Google_Service 'required' => true, ), ), - ),'returnlineitem' => array( - 'path' => '{merchantId}/orders/{orderId}/returnLineItem', - 'httpMethod' => 'POST', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'orderId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'returnrefundlineitem' => array( 'path' => '{merchantId}/orders/{orderId}/returnRefundLineItem', 'httpMethod' => 'POST', @@ -1100,12 +1145,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'pos/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'delete' => array( 'path' => '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', 'httpMethod' => 'DELETE', @@ -1125,10 +1165,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'get' => array( 'path' => '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', @@ -1164,10 +1200,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'inventory' => array( 'path' => '{merchantId}/pos/{targetMerchantId}/inventory', @@ -1183,10 +1215,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'list' => array( 'path' => '{merchantId}/pos/{targetMerchantId}/store', @@ -1217,10 +1245,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ), ) @@ -1235,12 +1259,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'products/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'delete' => array( 'path' => '{merchantId}/products/{productId}', 'httpMethod' => 'DELETE', @@ -1255,10 +1274,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'get' => array( 'path' => '{merchantId}/products/{productId}', @@ -1284,10 +1299,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'list' => array( 'path' => '{merchantId}/products', @@ -1298,10 +1309,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'includeInvalidInsertedItems' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1324,12 +1331,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'productstatuses/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'includeAttributes' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'get' => array( 'path' => '{merchantId}/productstatuses/{productId}', 'httpMethod' => 'GET', @@ -1349,10 +1351,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'includeAttributes' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ),'list' => array( 'path' => '{merchantId}/productstatuses', @@ -1368,14 +1366,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'repeated' => true, ), - 'includeAttributes' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'includeInvalidInsertedItems' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1389,6 +1379,35 @@ class Google_Service_ShoppingContent extends Google_Service ) ) ); + $this->regionalinventory = new Google_Service_ShoppingContent_Resource_Regionalinventory( + $this, + $this->serviceName, + 'regionalinventory', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'regionalinventory/batch', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'insert' => array( + 'path' => '{merchantId}/products/{productId}/regionalinventory', + 'httpMethod' => 'POST', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->shippingsettings = new Google_Service_ShoppingContent_Resource_Shippingsettings( $this, $this->serviceName, @@ -1398,12 +1417,7 @@ class Google_Service_ShoppingContent extends Google_Service 'custombatch' => array( 'path' => 'shippingsettings/batch', 'httpMethod' => 'POST', - 'parameters' => array( - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), + 'parameters' => array(), ),'get' => array( 'path' => '{merchantId}/shippingsettings/{accountId}', 'httpMethod' => 'GET', @@ -1457,25 +1471,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{merchantId}/shippingsettings/{accountId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'merchantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), ),'update' => array( 'path' => '{merchantId}/shippingsettings/{accountId}', 'httpMethod' => 'PUT', @@ -1490,10 +1485,6 @@ class Google_Service_ShoppingContent extends Google_Service 'type' => 'string', 'required' => true, ), - 'dryRun' => array( - 'location' => 'query', - 'type' => 'boolean', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php index 7f42f9db..cb4a9702 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php @@ -18,15 +18,16 @@ class Google_Service_ShoppingContent_Account extends Google_Collection { protected $collection_key = 'youtubeChannelLinks'; + protected $adsLinksType = 'Google_Service_ShoppingContent_AccountAdsLink'; + protected $adsLinksDataType = 'array'; public $adultContent; - protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink'; - protected $adwordsLinksDataType = 'array'; + protected $businessInformationType = 'Google_Service_ShoppingContent_AccountBusinessInformation'; + protected $businessInformationDataType = ''; protected $googleMyBusinessLinkType = 'Google_Service_ShoppingContent_AccountGoogleMyBusinessLink'; protected $googleMyBusinessLinkDataType = ''; public $id; public $kind; public $name; - public $reviewsUrl; public $sellerId; protected $usersType = 'Google_Service_ShoppingContent_AccountUser'; protected $usersDataType = 'array'; @@ -34,6 +35,20 @@ class Google_Service_ShoppingContent_Account extends Google_Collection protected $youtubeChannelLinksType = 'Google_Service_ShoppingContent_AccountYouTubeChannelLink'; protected $youtubeChannelLinksDataType = 'array'; + /** + * @param Google_Service_ShoppingContent_AccountAdsLink + */ + public function setAdsLinks($adsLinks) + { + $this->adsLinks = $adsLinks; + } + /** + * @return Google_Service_ShoppingContent_AccountAdsLink + */ + public function getAdsLinks() + { + return $this->adsLinks; + } public function setAdultContent($adultContent) { $this->adultContent = $adultContent; @@ -43,18 +58,18 @@ class Google_Service_ShoppingContent_Account extends Google_Collection return $this->adultContent; } /** - * @param Google_Service_ShoppingContent_AccountAdwordsLink + * @param Google_Service_ShoppingContent_AccountBusinessInformation */ - public function setAdwordsLinks($adwordsLinks) + public function setBusinessInformation(Google_Service_ShoppingContent_AccountBusinessInformation $businessInformation) { - $this->adwordsLinks = $adwordsLinks; + $this->businessInformation = $businessInformation; } /** - * @return Google_Service_ShoppingContent_AccountAdwordsLink + * @return Google_Service_ShoppingContent_AccountBusinessInformation */ - public function getAdwordsLinks() + public function getBusinessInformation() { - return $this->adwordsLinks; + return $this->businessInformation; } /** * @param Google_Service_ShoppingContent_AccountGoogleMyBusinessLink @@ -94,14 +109,6 @@ class Google_Service_ShoppingContent_Account extends Google_Collection { return $this->name; } - public function setReviewsUrl($reviewsUrl) - { - $this->reviewsUrl = $reviewsUrl; - } - public function getReviewsUrl() - { - return $this->reviewsUrl; - } public function setSellerId($sellerId) { $this->sellerId = $sellerId; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAddress.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAddress.php new file mode 100644 index 00000000..907f4e4c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAddress.php @@ -0,0 +1,66 @@ +country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setLocality($locality) + { + $this->locality = $locality; + } + public function getLocality() + { + return $this->locality; + } + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + public function getPostalCode() + { + return $this->postalCode; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setStreetAddress($streetAddress) + { + $this->streetAddress = $streetAddress; + } + public function getStreetAddress() + { + return $this->streetAddress; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdsLink.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdsLink.php index 78357cd9..1ff91cfe 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdsLink.php @@ -15,18 +15,18 @@ * the License. */ -class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model +class Google_Service_ShoppingContent_AccountAdsLink extends Google_Model { - public $adwordsId; + public $adsId; public $status; - public function setAdwordsId($adwordsId) + public function setAdsId($adsId) { - $this->adwordsId = $adwordsId; + $this->adsId = $adsId; } - public function getAdwordsId() + public function getAdsId() { - return $this->adwordsId; + return $this->adsId; } public function setStatus($status) { diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountBusinessInformation.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountBusinessInformation.php new file mode 100644 index 00000000..5770e8e1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountBusinessInformation.php @@ -0,0 +1,62 @@ +address = $address; + } + /** + * @return Google_Service_ShoppingContent_AccountAddress + */ + public function getAddress() + { + return $this->address; + } + /** + * @param Google_Service_ShoppingContent_AccountCustomerService + */ + public function setCustomerService(Google_Service_ShoppingContent_AccountCustomerService $customerService) + { + $this->customerService = $customerService; + } + /** + * @return Google_Service_ShoppingContent_AccountCustomerService + */ + public function getCustomerService() + { + return $this->customerService; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountCustomerService.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountCustomerService.php new file mode 100644 index 00000000..090f8029 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountCustomerService.php @@ -0,0 +1,48 @@ +email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + public function getPhoneNumber() + { + return $this->phoneNumber; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php index 25ba5e5c..e8774973 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php @@ -17,13 +17,13 @@ class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { - protected $collection_key = 'dataQualityIssues'; + protected $collection_key = 'products'; public $accountId; protected $accountLevelIssuesType = 'Google_Service_ShoppingContent_AccountStatusAccountLevelIssue'; protected $accountLevelIssuesDataType = 'array'; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; public $kind; + protected $productsType = 'Google_Service_ShoppingContent_AccountStatusProducts'; + protected $productsDataType = 'array'; public $websiteClaimed; public function setAccountId($accountId) @@ -48,20 +48,6 @@ class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { return $this->accountLevelIssues; } - /** - * @param Google_Service_ShoppingContent_AccountStatusDataQualityIssue - */ - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - /** - * @return Google_Service_ShoppingContent_AccountStatusDataQualityIssue - */ - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } public function setKind($kind) { $this->kind = $kind; @@ -70,6 +56,20 @@ class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { return $this->kind; } + /** + * @param Google_Service_ShoppingContent_AccountStatusProducts + */ + public function setProducts($products) + { + $this->products = $products; + } + /** + * @return Google_Service_ShoppingContent_AccountStatusProducts + */ + public function getProducts() + { + return $this->products; + } public function setWebsiteClaimed($websiteClaimed) { $this->websiteClaimed = $websiteClaimed; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusAccountLevelIssue.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusAccountLevelIssue.php index 95db3470..6d5e4f77 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusAccountLevelIssue.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusAccountLevelIssue.php @@ -20,6 +20,7 @@ class Google_Service_ShoppingContent_AccountStatusAccountLevelIssue extends Goog public $country; public $destination; public $detail; + public $documentation; public $id; public $severity; public $title; @@ -48,6 +49,14 @@ class Google_Service_ShoppingContent_AccountStatusAccountLevelIssue extends Goog { return $this->detail; } + public function setDocumentation($documentation) + { + $this->documentation = $documentation; + } + public function getDocumentation() + { + return $this->documentation; + } public function setId($id) { $this->id = $id; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php deleted file mode 100644 index 12e07bba..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php +++ /dev/null @@ -1,128 +0,0 @@ -country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setDetail($detail) - { - $this->detail = $detail; - } - public function getDetail() - { - return $this->detail; - } - public function setDisplayedValue($displayedValue) - { - $this->displayedValue = $displayedValue; - } - public function getDisplayedValue() - { - return $this->displayedValue; - } - /** - * @param Google_Service_ShoppingContent_AccountStatusExampleItem - */ - public function setExampleItems($exampleItems) - { - $this->exampleItems = $exampleItems; - } - /** - * @return Google_Service_ShoppingContent_AccountStatusExampleItem - */ - public function getExampleItems() - { - return $this->exampleItems; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLastChecked($lastChecked) - { - $this->lastChecked = $lastChecked; - } - public function getLastChecked() - { - return $this->lastChecked; - } - public function setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setNumItems($numItems) - { - $this->numItems = $numItems; - } - public function getNumItems() - { - return $this->numItems; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setSubmittedValue($submittedValue) - { - $this->submittedValue = $submittedValue; - } - public function getSubmittedValue() - { - return $this->submittedValue; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusItemLevelIssue.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusItemLevelIssue.php new file mode 100644 index 00000000..185e0fdc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusItemLevelIssue.php @@ -0,0 +1,93 @@ +attributeName = $attributeName; + } + public function getAttributeName() + { + return $this->attributeName; + } + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDetail($detail) + { + $this->detail = $detail; + } + public function getDetail() + { + return $this->detail; + } + public function setDocumentation($documentation) + { + $this->documentation = $documentation; + } + public function getDocumentation() + { + return $this->documentation; + } + public function setNumItems($numItems) + { + $this->numItems = $numItems; + } + public function getNumItems() + { + return $this->numItems; + } + public function setResolution($resolution) + { + $this->resolution = $resolution; + } + public function getResolution() + { + return $this->resolution; + } + public function setServability($servability) + { + $this->servability = $servability; + } + public function getServability() + { + return $this->servability; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusProducts.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusProducts.php new file mode 100644 index 00000000..3d20a511 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusProducts.php @@ -0,0 +1,81 @@ +channel = $channel; + } + public function getChannel() + { + return $this->channel; + } + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDestination($destination) + { + $this->destination = $destination; + } + public function getDestination() + { + return $this->destination; + } + /** + * @param Google_Service_ShoppingContent_AccountStatusItemLevelIssue + */ + public function setItemLevelIssues($itemLevelIssues) + { + $this->itemLevelIssues = $itemLevelIssues; + } + /** + * @return Google_Service_ShoppingContent_AccountStatusItemLevelIssue + */ + public function getItemLevelIssues() + { + return $this->itemLevelIssues; + } + /** + * @param Google_Service_ShoppingContent_AccountStatusStatistics + */ + public function setStatistics(Google_Service_ShoppingContent_AccountStatusStatistics $statistics) + { + $this->statistics = $statistics; + } + /** + * @return Google_Service_ShoppingContent_AccountStatusStatistics + */ + public function getStatistics() + { + return $this->statistics; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusStatistics.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusStatistics.php new file mode 100644 index 00000000..eeb3417a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusStatistics.php @@ -0,0 +1,57 @@ +active = $active; + } + public function getActive() + { + return $this->active; + } + public function setDisapproved($disapproved) + { + $this->disapproved = $disapproved; + } + public function getDisapproved() + { + return $this->disapproved; + } + public function setExpiring($expiring) + { + $this->expiring = $expiring; + } + public function getExpiring() + { + return $this->expiring; + } + public function setPending($pending) + { + $this->pending = $pending; + } + public function getPending() + { + return $this->pending; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php index 7af87c25..c60bf1f0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php @@ -19,6 +19,9 @@ class Google_Service_ShoppingContent_AccountUser extends Google_Model { public $admin; public $emailAddress; + public $orderManager; + public $paymentsAnalyst; + public $paymentsManager; public function setAdmin($admin) { @@ -36,4 +39,28 @@ class Google_Service_ShoppingContent_AccountUser extends Google_Model { return $this->emailAddress; } + public function setOrderManager($orderManager) + { + $this->orderManager = $orderManager; + } + public function getOrderManager() + { + return $this->orderManager; + } + public function setPaymentsAnalyst($paymentsAnalyst) + { + $this->paymentsAnalyst = $paymentsAnalyst; + } + public function getPaymentsAnalyst() + { + return $this->paymentsAnalyst; + } + public function setPaymentsManager($paymentsManager) + { + $this->paymentsManager = $paymentsManager; + } + public function getPaymentsManager() + { + return $this->paymentsManager; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php index 170957d2..846612c8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php @@ -22,6 +22,8 @@ class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Goo public $accountId; public $batchId; public $force; + protected $linkRequestType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntryLinkRequest'; + protected $linkRequestDataType = ''; public $merchantId; public $method; public $overwrite; @@ -64,6 +66,20 @@ class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Goo { return $this->force; } + /** + * @param Google_Service_ShoppingContent_AccountsCustomBatchRequestEntryLinkRequest + */ + public function setLinkRequest(Google_Service_ShoppingContent_AccountsCustomBatchRequestEntryLinkRequest $linkRequest) + { + $this->linkRequest = $linkRequest; + } + /** + * @return Google_Service_ShoppingContent_AccountsCustomBatchRequestEntryLinkRequest + */ + public function getLinkRequest() + { + return $this->linkRequest; + } public function setMerchantId($merchantId) { $this->merchantId = $merchantId; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntryLinkRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntryLinkRequest.php new file mode 100644 index 00000000..ca4e2fba --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntryLinkRequest.php @@ -0,0 +1,48 @@ +action = $action; + } + public function getAction() + { + return $this->action; + } + public function setLinkType($linkType) + { + $this->linkType = $linkType; + } + public function getLinkType() + { + return $this->linkType; + } + public function setLinkedAccountId($linkedAccountId) + { + $this->linkedAccountId = $linkedAccountId; + } + public function getLinkedAccountId() + { + return $this->linkedAccountId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkRequest.php new file mode 100644 index 00000000..8c22b943 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkRequest.php @@ -0,0 +1,48 @@ +action = $action; + } + public function getAction() + { + return $this->action; + } + public function setLinkType($linkType) + { + $this->linkType = $linkType; + } + public function getLinkType() + { + return $this->linkType; + } + public function setLinkedAccountId($linkedAccountId) + { + $this->linkedAccountId = $linkedAccountId; + } + public function getLinkedAccountId() + { + return $this->linkedAccountId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkResponse.php similarity index 92% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkResponse.php index 1fa9ca78..89481cb4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsLinkResponse.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model +class Google_Service_ShoppingContent_AccountsLinkResponse extends Google_Model { public $kind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Amount.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Amount.php new file mode 100644 index 00000000..e0bf5aee --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Amount.php @@ -0,0 +1,53 @@ +priceAmount = $priceAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getPriceAmount() + { + return $this->priceAmount; + } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setTaxAmount(Google_Service_ShoppingContent_Price $taxAmount) + { + $this->taxAmount = $taxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxAmount() + { + return $this->taxAmount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomAttribute.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomAttribute.php new file mode 100644 index 00000000..9db768c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomAttribute.php @@ -0,0 +1,56 @@ +groupValues = $groupValues; + } + /** + * @return Google_Service_ShoppingContent_CustomAttribute + */ + public function getGroupValues() + { + return $this->groupValues; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomerReturnReason.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomerReturnReason.php new file mode 100644 index 00000000..de46309d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CustomerReturnReason.php @@ -0,0 +1,39 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReasonCode($reasonCode) + { + $this->reasonCode = $reasonCode; + } + public function getReasonCode() + { + return $this->reasonCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CutoffTime.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CutoffTime.php new file mode 100644 index 00000000..dc2a19cd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/CutoffTime.php @@ -0,0 +1,48 @@ +hour = $hour; + } + public function getHour() + { + return $this->hour; + } + public function setMinute($minute) + { + $this->minute = $minute; + } + public function getMinute() + { + return $this->minute; + } + public function setTimezone($timezone) + { + $this->timezone = $timezone; + } + public function getTimezone() + { + return $this->timezone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php index 849e7250..71d902de 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php @@ -19,7 +19,6 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection { protected $collection_key = 'targets'; public $attributeLanguage; - public $contentLanguage; public $contentType; protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule'; protected $fetchScheduleDataType = ''; @@ -27,10 +26,8 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat'; protected $formatDataType = ''; public $id; - public $intendedDestinations; public $kind; public $name; - public $targetCountry; protected $targetsType = 'Google_Service_ShoppingContent_DatafeedTarget'; protected $targetsDataType = 'array'; @@ -42,14 +39,6 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection { return $this->attributeLanguage; } - public function setContentLanguage($contentLanguage) - { - $this->contentLanguage = $contentLanguage; - } - public function getContentLanguage() - { - return $this->contentLanguage; - } public function setContentType($contentType) { $this->contentType = $contentType; @@ -102,14 +91,6 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection { return $this->id; } - public function setIntendedDestinations($intendedDestinations) - { - $this->intendedDestinations = $intendedDestinations; - } - public function getIntendedDestinations() - { - return $this->intendedDestinations; - } public function setKind($kind) { $this->kind = $kind; @@ -126,14 +107,6 @@ class Google_Service_ShoppingContent_Datafeed extends Google_Collection { return $this->name; } - public function setTargetCountry($targetCountry) - { - $this->targetCountry = $targetCountry; - } - public function getTargetCountry() - { - return $this->targetCountry; - } /** * @param Google_Service_ShoppingContent_DatafeedTarget */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php index 8e2223c3..89fd0b05 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php @@ -18,11 +18,31 @@ class Google_Service_ShoppingContent_DeliveryTime extends Google_Collection { protected $collection_key = 'holidayCutoffs'; + protected $cutoffTimeType = 'Google_Service_ShoppingContent_CutoffTime'; + protected $cutoffTimeDataType = ''; protected $holidayCutoffsType = 'Google_Service_ShoppingContent_HolidayCutoff'; protected $holidayCutoffsDataType = 'array'; + public $maxHandlingTimeInDays; public $maxTransitTimeInDays; + public $minHandlingTimeInDays; public $minTransitTimeInDays; + protected $transitTimeTableType = 'Google_Service_ShoppingContent_TransitTable'; + protected $transitTimeTableDataType = ''; + /** + * @param Google_Service_ShoppingContent_CutoffTime + */ + public function setCutoffTime(Google_Service_ShoppingContent_CutoffTime $cutoffTime) + { + $this->cutoffTime = $cutoffTime; + } + /** + * @return Google_Service_ShoppingContent_CutoffTime + */ + public function getCutoffTime() + { + return $this->cutoffTime; + } /** * @param Google_Service_ShoppingContent_HolidayCutoff */ @@ -37,6 +57,14 @@ class Google_Service_ShoppingContent_DeliveryTime extends Google_Collection { return $this->holidayCutoffs; } + public function setMaxHandlingTimeInDays($maxHandlingTimeInDays) + { + $this->maxHandlingTimeInDays = $maxHandlingTimeInDays; + } + public function getMaxHandlingTimeInDays() + { + return $this->maxHandlingTimeInDays; + } public function setMaxTransitTimeInDays($maxTransitTimeInDays) { $this->maxTransitTimeInDays = $maxTransitTimeInDays; @@ -45,6 +73,14 @@ class Google_Service_ShoppingContent_DeliveryTime extends Google_Collection { return $this->maxTransitTimeInDays; } + public function setMinHandlingTimeInDays($minHandlingTimeInDays) + { + $this->minHandlingTimeInDays = $minHandlingTimeInDays; + } + public function getMinHandlingTimeInDays() + { + return $this->minHandlingTimeInDays; + } public function setMinTransitTimeInDays($minTransitTimeInDays) { $this->minTransitTimeInDays = $minTransitTimeInDays; @@ -53,4 +89,18 @@ class Google_Service_ShoppingContent_DeliveryTime extends Google_Collection { return $this->minTransitTimeInDays; } + /** + * @param Google_Service_ShoppingContent_TransitTable + */ + public function setTransitTimeTable(Google_Service_ShoppingContent_TransitTable $transitTimeTable) + { + $this->transitTimeTable = $transitTimeTable; + } + /** + * @return Google_Service_ShoppingContent_TransitTable + */ + public function getTransitTimeTable() + { + return $this->transitTimeTable; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php deleted file mode 100644 index 202c4114..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -availability = $availability; - } - public function getAvailability() - { - return $this->availability; - } - /** - * @param Google_Service_ShoppingContent_Installment - */ - public function setInstallment(Google_Service_ShoppingContent_Installment $installment) - { - $this->installment = $installment; - } - /** - * @return Google_Service_ShoppingContent_Installment - */ - public function getInstallment() - { - return $this->installment; - } - /** - * @param Google_Service_ShoppingContent_LoyaltyPoints - */ - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - /** - * @return Google_Service_ShoppingContent_LoyaltyPoints - */ - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - /** - * @param Google_Service_ShoppingContent_InventoryPickup - */ - public function setPickup(Google_Service_ShoppingContent_InventoryPickup $pickup) - { - $this->pickup = $pickup; - } - /** - * @return Google_Service_ShoppingContent_InventoryPickup - */ - public function getPickup() - { - return $this->pickup; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setPrice(Google_Service_ShoppingContent_Price $price) - { - $this->price = $price; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getPrice() - { - return $this->price; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice) - { - $this->salePrice = $salePrice; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getSalePrice() - { - return $this->salePrice; - } - public function setSalePriceEffectiveDate($salePriceEffectiveDate) - { - $this->salePriceEffectiveDate = $salePriceEffectiveDate; - } - public function getSalePriceEffectiveDate() - { - return $this->salePriceEffectiveDate; - } - public function setSellOnGoogleQuantity($sellOnGoogleQuantity) - { - $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; - } - public function getSellOnGoogleQuantity() - { - return $this->sellOnGoogleQuantity; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummary.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummary.php new file mode 100644 index 00000000..ecade801 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummary.php @@ -0,0 +1,54 @@ +additionalChargeSummaries = $additionalChargeSummaries; + } + /** + * @return Google_Service_ShoppingContent_InvoiceSummaryAdditionalChargeSummary + */ + public function getAdditionalChargeSummaries() + { + return $this->additionalChargeSummaries; + } + /** + * @param Google_Service_ShoppingContent_Amount + */ + public function setProductTotal(Google_Service_ShoppingContent_Amount $productTotal) + { + $this->productTotal = $productTotal; + } + /** + * @return Google_Service_ShoppingContent_Amount + */ + public function getProductTotal() + { + return $this->productTotal; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummaryAdditionalChargeSummary.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummaryAdditionalChargeSummary.php new file mode 100644 index 00000000..f64a0639 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InvoiceSummaryAdditionalChargeSummary.php @@ -0,0 +1,46 @@ +totalAmount = $totalAmount; + } + /** + * @return Google_Service_ShoppingContent_Amount + */ + public function getTotalAmount() + { + return $this->totalAmount; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaCountrySettings.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaCountrySettings.php index 5ed13323..d5b8fee0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaCountrySettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaCountrySettings.php @@ -25,6 +25,8 @@ class Google_Service_ShoppingContent_LiaCountrySettings extends Google_Model protected $inventoryDataType = ''; protected $onDisplayToOrderType = 'Google_Service_ShoppingContent_LiaOnDisplayToOrderSettings'; protected $onDisplayToOrderDataType = ''; + protected $posDataProviderType = 'Google_Service_ShoppingContent_LiaPosDataProvider'; + protected $posDataProviderDataType = ''; public $storePickupActive; /** @@ -85,6 +87,20 @@ class Google_Service_ShoppingContent_LiaCountrySettings extends Google_Model { return $this->onDisplayToOrder; } + /** + * @param Google_Service_ShoppingContent_LiaPosDataProvider + */ + public function setPosDataProvider(Google_Service_ShoppingContent_LiaPosDataProvider $posDataProvider) + { + $this->posDataProvider = $posDataProvider; + } + /** + * @return Google_Service_ShoppingContent_LiaPosDataProvider + */ + public function getPosDataProvider() + { + return $this->posDataProvider; + } public function setStorePickupActive($storePickupActive) { $this->storePickupActive = $storePickupActive; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaPosDataProvider.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaPosDataProvider.php new file mode 100644 index 00000000..ff7acb04 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiaPosDataProvider.php @@ -0,0 +1,39 @@ +posDataProviderId = $posDataProviderId; + } + public function getPosDataProviderId() + { + return $this->posDataProviderId; + } + public function setPosExternalAccountId($posExternalAccountId) + { + $this->posExternalAccountId = $posExternalAccountId; + } + public function getPosExternalAccountId() + { + return $this->posExternalAccountId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchRequestEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchRequestEntry.php index 079e92f8..011eb9a6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchRequestEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchRequestEntry.php @@ -27,6 +27,8 @@ class Google_Service_ShoppingContent_LiasettingsCustomBatchRequestEntry extends protected $liaSettingsDataType = ''; public $merchantId; public $method; + public $posDataProviderId; + public $posExternalAccountId; public function setAccountId($accountId) { @@ -106,4 +108,20 @@ class Google_Service_ShoppingContent_LiasettingsCustomBatchRequestEntry extends { return $this->method; } + public function setPosDataProviderId($posDataProviderId) + { + $this->posDataProviderId = $posDataProviderId; + } + public function getPosDataProviderId() + { + return $this->posDataProviderId; + } + public function setPosExternalAccountId($posExternalAccountId) + { + $this->posExternalAccountId = $posExternalAccountId; + } + public function getPosExternalAccountId() + { + return $this->posExternalAccountId; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchResponseEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchResponseEntry.php index 0f73c091..7af008af 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchResponseEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsCustomBatchResponseEntry.php @@ -15,8 +15,9 @@ * the License. */ -class Google_Service_ShoppingContent_LiasettingsCustomBatchResponseEntry extends Google_Model +class Google_Service_ShoppingContent_LiasettingsCustomBatchResponseEntry extends Google_Collection { + protected $collection_key = 'posDataProviders'; public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; @@ -25,6 +26,8 @@ class Google_Service_ShoppingContent_LiasettingsCustomBatchResponseEntry extends public $kind; protected $liaSettingsType = 'Google_Service_ShoppingContent_LiaSettings'; protected $liaSettingsDataType = ''; + protected $posDataProvidersType = 'Google_Service_ShoppingContent_PosDataProviders'; + protected $posDataProvidersDataType = 'array'; public function setBatchId($batchId) { @@ -84,4 +87,18 @@ class Google_Service_ShoppingContent_LiasettingsCustomBatchResponseEntry extends { return $this->liaSettings; } + /** + * @param Google_Service_ShoppingContent_PosDataProviders + */ + public function setPosDataProviders($posDataProviders) + { + $this->posDataProviders = $posDataProviders; + } + /** + * @return Google_Service_ShoppingContent_PosDataProviders + */ + public function getPosDataProviders() + { + return $this->posDataProviders; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsListPosDataProvidersResponse.php similarity index 57% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsListPosDataProvidersResponse.php index c22968bd..84ccac2b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsListPosDataProvidersResponse.php @@ -15,27 +15,13 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchResponse extends Google_Collection +class Google_Service_ShoppingContent_LiasettingsListPosDataProvidersResponse extends Google_Collection { - protected $collection_key = 'entries'; - protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry'; - protected $entriesDataType = 'array'; + protected $collection_key = 'posDataProviders'; public $kind; + protected $posDataProvidersType = 'Google_Service_ShoppingContent_PosDataProviders'; + protected $posDataProvidersDataType = 'array'; - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry - */ - public function setEntries($entries) - { - $this->entries = $entries; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry - */ - public function getEntries() - { - return $this->entries; - } public function setKind($kind) { $this->kind = $kind; @@ -44,4 +30,18 @@ class Google_Service_ShoppingContent_OrdersCustomBatchResponse extends Google_Co { return $this->kind; } + /** + * @param Google_Service_ShoppingContent_PosDataProviders + */ + public function setPosDataProviders($posDataProviders) + { + $this->posDataProviders = $posDataProviders; + } + /** + * @return Google_Service_ShoppingContent_PosDataProviders + */ + public function getPosDataProviders() + { + return $this->posDataProviders; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsSetPosDataProviderResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsSetPosDataProviderResponse.php new file mode 100644 index 00000000..a6ef8bc1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/LiasettingsSetPosDataProviderResponse.php @@ -0,0 +1,30 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturn.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturn.php new file mode 100644 index 00000000..f01da621 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturn.php @@ -0,0 +1,90 @@ +creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setMerchantOrderId($merchantOrderId) + { + $this->merchantOrderId = $merchantOrderId; + } + public function getMerchantOrderId() + { + return $this->merchantOrderId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setOrderReturnId($orderReturnId) + { + $this->orderReturnId = $orderReturnId; + } + public function getOrderReturnId() + { + return $this->orderReturnId; + } + /** + * @param Google_Service_ShoppingContent_MerchantOrderReturnItem + */ + public function setReturnItems($returnItems) + { + $this->returnItems = $returnItems; + } + /** + * @return Google_Service_ShoppingContent_MerchantOrderReturnItem + */ + public function getReturnItems() + { + return $this->returnItems; + } + /** + * @param Google_Service_ShoppingContent_ReturnShipment + */ + public function setReturnShipments($returnShipments) + { + $this->returnShipments = $returnShipments; + } + /** + * @return Google_Service_ShoppingContent_ReturnShipment + */ + public function getReturnShipments() + { + return $this->returnShipments; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturnItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturnItem.php new file mode 100644 index 00000000..0656f447 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/MerchantOrderReturnItem.php @@ -0,0 +1,97 @@ +customerReturnReason = $customerReturnReason; + } + /** + * @return Google_Service_ShoppingContent_CustomerReturnReason + */ + public function getCustomerReturnReason() + { + return $this->customerReturnReason; + } + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + public function getItemId() + { + return $this->itemId; + } + /** + * @param Google_Service_ShoppingContent_RefundReason + */ + public function setMerchantReturnReason(Google_Service_ShoppingContent_RefundReason $merchantReturnReason) + { + $this->merchantReturnReason = $merchantReturnReason; + } + /** + * @return Google_Service_ShoppingContent_RefundReason + */ + public function getMerchantReturnReason() + { + return $this->merchantReturnReason; + } + /** + * @param Google_Service_ShoppingContent_OrderLineItemProduct + */ + public function setProduct(Google_Service_ShoppingContent_OrderLineItemProduct $product) + { + $this->product = $product; + } + /** + * @return Google_Service_ShoppingContent_OrderLineItemProduct + */ + public function getProduct() + { + return $this->product; + } + public function setReturnShipmentIds($returnShipmentIds) + { + $this->returnShipmentIds = $returnShipmentIds; + } + public function getReturnShipmentIds() + { + return $this->returnShipmentIds; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php index b878e8f4..fbcacb7b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php @@ -19,6 +19,8 @@ class Google_Service_ShoppingContent_Order extends Google_Collection { protected $collection_key = 'shipments'; public $acknowledged; + protected $billingAddressType = 'Google_Service_ShoppingContent_OrderAddress'; + protected $billingAddressDataType = ''; public $channelType; protected $customerType = 'Google_Service_ShoppingContent_OrderCustomer'; protected $customerDataType = ''; @@ -30,10 +32,10 @@ class Google_Service_ShoppingContent_Order extends Google_Collection protected $lineItemsDataType = 'array'; public $merchantId; public $merchantOrderId; - protected $netAmountType = 'Google_Service_ShoppingContent_Price'; - protected $netAmountDataType = ''; - protected $paymentMethodType = 'Google_Service_ShoppingContent_OrderPaymentMethod'; - protected $paymentMethodDataType = ''; + protected $netPriceAmountType = 'Google_Service_ShoppingContent_Price'; + protected $netPriceAmountDataType = ''; + protected $netTaxAmountType = 'Google_Service_ShoppingContent_Price'; + protected $netTaxAmountDataType = ''; public $paymentStatus; public $placedDate; protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; @@ -46,8 +48,8 @@ class Google_Service_ShoppingContent_Order extends Google_Collection protected $shippingCostDataType = ''; protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; protected $shippingCostTaxDataType = ''; - public $shippingOption; public $status; + public $taxCollector; public function setAcknowledged($acknowledged) { @@ -57,6 +59,20 @@ class Google_Service_ShoppingContent_Order extends Google_Collection { return $this->acknowledged; } + /** + * @param Google_Service_ShoppingContent_OrderAddress + */ + public function setBillingAddress(Google_Service_ShoppingContent_OrderAddress $billingAddress) + { + $this->billingAddress = $billingAddress; + } + /** + * @return Google_Service_ShoppingContent_OrderAddress + */ + public function getBillingAddress() + { + return $this->billingAddress; + } public function setChannelType($channelType) { $this->channelType = $channelType; @@ -142,30 +158,30 @@ class Google_Service_ShoppingContent_Order extends Google_Collection /** * @param Google_Service_ShoppingContent_Price */ - public function setNetAmount(Google_Service_ShoppingContent_Price $netAmount) + public function setNetPriceAmount(Google_Service_ShoppingContent_Price $netPriceAmount) { - $this->netAmount = $netAmount; + $this->netPriceAmount = $netPriceAmount; } /** * @return Google_Service_ShoppingContent_Price */ - public function getNetAmount() + public function getNetPriceAmount() { - return $this->netAmount; + return $this->netPriceAmount; } /** - * @param Google_Service_ShoppingContent_OrderPaymentMethod + * @param Google_Service_ShoppingContent_Price */ - public function setPaymentMethod(Google_Service_ShoppingContent_OrderPaymentMethod $paymentMethod) + public function setNetTaxAmount(Google_Service_ShoppingContent_Price $netTaxAmount) { - $this->paymentMethod = $paymentMethod; + $this->netTaxAmount = $netTaxAmount; } /** - * @return Google_Service_ShoppingContent_OrderPaymentMethod + * @return Google_Service_ShoppingContent_Price */ - public function getPaymentMethod() + public function getNetTaxAmount() { - return $this->paymentMethod; + return $this->netTaxAmount; } public function setPaymentStatus($paymentStatus) { @@ -253,14 +269,6 @@ class Google_Service_ShoppingContent_Order extends Google_Collection { return $this->shippingCostTax; } - public function setShippingOption($shippingOption) - { - $this->shippingOption = $shippingOption; - } - public function getShippingOption() - { - return $this->shippingOption; - } public function setStatus($status) { $this->status = $status; @@ -269,4 +277,12 @@ class Google_Service_ShoppingContent_Order extends Google_Collection { return $this->status; } + public function setTaxCollector($taxCollector) + { + $this->taxCollector = $taxCollector; + } + public function getTaxCollector() + { + return $this->taxCollector; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php index 312a6ec3..b9f3ed02 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php @@ -18,7 +18,6 @@ class Google_Service_ShoppingContent_OrderCustomer extends Google_Model { public $email; - public $explicitMarketingPreference; public $fullName; protected $marketingRightsInfoType = 'Google_Service_ShoppingContent_OrderCustomerMarketingRightsInfo'; protected $marketingRightsInfoDataType = ''; @@ -31,14 +30,6 @@ class Google_Service_ShoppingContent_OrderCustomer extends Google_Model { return $this->email; } - public function setExplicitMarketingPreference($explicitMarketingPreference) - { - $this->explicitMarketingPreference = $explicitMarketingPreference; - } - public function getExplicitMarketingPreference() - { - return $this->explicitMarketingPreference; - } public function setFullName($fullName) { $this->fullName = $fullName; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php index a50eda04..9529377a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php @@ -22,6 +22,8 @@ class Google_Service_ShoppingContent_OrderLineItemProduct extends Google_Collect public $channel; public $condition; public $contentLanguage; + protected $feesType = 'Google_Service_ShoppingContent_OrderLineItemProductFee'; + protected $feesDataType = 'array'; public $gtin; public $id; public $imageLink; @@ -68,6 +70,20 @@ class Google_Service_ShoppingContent_OrderLineItemProduct extends Google_Collect { return $this->contentLanguage; } + /** + * @param Google_Service_ShoppingContent_OrderLineItemProductFee + */ + public function setFees($fees) + { + $this->fees = $fees; + } + /** + * @return Google_Service_ShoppingContent_OrderLineItemProductFee + */ + public function getFees() + { + return $this->fees; + } public function setGtin($gtin) { $this->gtin = $gtin; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductFee.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductFee.php new file mode 100644 index 00000000..47cec3a2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductFee.php @@ -0,0 +1,46 @@ +amount = $amount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getAmount() + { + return $this->amount; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php deleted file mode 100644 index ddcedd67..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php +++ /dev/null @@ -1,82 +0,0 @@ -billingAddress = $billingAddress; - } - /** - * @return Google_Service_ShoppingContent_OrderAddress - */ - public function getBillingAddress() - { - return $this->billingAddress; - } - public function setExpirationMonth($expirationMonth) - { - $this->expirationMonth = $expirationMonth; - } - public function getExpirationMonth() - { - return $this->expirationMonth; - } - public function setExpirationYear($expirationYear) - { - $this->expirationYear = $expirationYear; - } - public function getExpirationYear() - { - return $this->expirationYear; - } - public function setLastFourDigits($lastFourDigits) - { - $this->lastFourDigits = $lastFourDigits; - } - public function getLastFourDigits() - { - return $this->lastFourDigits; - } - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - public function getPhoneNumber() - { - return $this->phoneNumber; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php index 3dd0035d..819fbbd7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php @@ -17,76 +17,124 @@ class Google_Service_ShoppingContent_OrderPromotion extends Google_Collection { - protected $collection_key = 'benefits'; - protected $benefitsType = 'Google_Service_ShoppingContent_OrderPromotionBenefit'; - protected $benefitsDataType = 'array'; - public $effectiveDates; - public $genericRedemptionCode; - public $id; - public $longTitle; - public $productApplicability; - public $redemptionChannel; + protected $collection_key = 'appliedItems'; + protected $applicableItemsType = 'Google_Service_ShoppingContent_OrderPromotionItem'; + protected $applicableItemsDataType = 'array'; + protected $appliedItemsType = 'Google_Service_ShoppingContent_OrderPromotionItem'; + protected $appliedItemsDataType = 'array'; + public $funder; + public $merchantPromotionId; + protected $priceValueType = 'Google_Service_ShoppingContent_Price'; + protected $priceValueDataType = ''; + public $shortTitle; + public $subtype; + protected $taxValueType = 'Google_Service_ShoppingContent_Price'; + protected $taxValueDataType = ''; + public $title; + public $type; /** - * @param Google_Service_ShoppingContent_OrderPromotionBenefit + * @param Google_Service_ShoppingContent_OrderPromotionItem */ - public function setBenefits($benefits) + public function setApplicableItems($applicableItems) { - $this->benefits = $benefits; + $this->applicableItems = $applicableItems; } /** - * @return Google_Service_ShoppingContent_OrderPromotionBenefit + * @return Google_Service_ShoppingContent_OrderPromotionItem */ - public function getBenefits() + public function getApplicableItems() { - return $this->benefits; + return $this->applicableItems; } - public function setEffectiveDates($effectiveDates) + /** + * @param Google_Service_ShoppingContent_OrderPromotionItem + */ + public function setAppliedItems($appliedItems) { - $this->effectiveDates = $effectiveDates; + $this->appliedItems = $appliedItems; } - public function getEffectiveDates() + /** + * @return Google_Service_ShoppingContent_OrderPromotionItem + */ + public function getAppliedItems() { - return $this->effectiveDates; + return $this->appliedItems; } - public function setGenericRedemptionCode($genericRedemptionCode) + public function setFunder($funder) { - $this->genericRedemptionCode = $genericRedemptionCode; + $this->funder = $funder; } - public function getGenericRedemptionCode() + public function getFunder() { - return $this->genericRedemptionCode; + return $this->funder; } - public function setId($id) + public function setMerchantPromotionId($merchantPromotionId) { - $this->id = $id; + $this->merchantPromotionId = $merchantPromotionId; } - public function getId() + public function getMerchantPromotionId() { - return $this->id; + return $this->merchantPromotionId; } - public function setLongTitle($longTitle) + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setPriceValue(Google_Service_ShoppingContent_Price $priceValue) { - $this->longTitle = $longTitle; + $this->priceValue = $priceValue; } - public function getLongTitle() + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getPriceValue() { - return $this->longTitle; + return $this->priceValue; } - public function setProductApplicability($productApplicability) + public function setShortTitle($shortTitle) { - $this->productApplicability = $productApplicability; + $this->shortTitle = $shortTitle; } - public function getProductApplicability() + public function getShortTitle() { - return $this->productApplicability; + return $this->shortTitle; } - public function setRedemptionChannel($redemptionChannel) + public function setSubtype($subtype) { - $this->redemptionChannel = $redemptionChannel; + $this->subtype = $subtype; } - public function getRedemptionChannel() + public function getSubtype() { - return $this->redemptionChannel; + return $this->subtype; + } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setTaxValue(Google_Service_ShoppingContent_Price $taxValue) + { + $this->taxValue = $taxValue; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxValue() + { + return $this->taxValue; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php deleted file mode 100644 index 1c904796..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php +++ /dev/null @@ -1,81 +0,0 @@ -discount = $discount; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getDiscount() - { - return $this->discount; - } - public function setOfferIds($offerIds) - { - $this->offerIds = $offerIds; - } - public function getOfferIds() - { - return $this->offerIds; - } - public function setSubType($subType) - { - $this->subType = $subType; - } - public function getSubType() - { - return $this->subType; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setTaxImpact(Google_Service_ShoppingContent_Price $taxImpact) - { - $this->taxImpact = $taxImpact; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getTaxImpact() - { - return $this->taxImpact; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionItem.php similarity index 71% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionItem.php index b2f40954..0e9a4a81 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionItem.php @@ -15,13 +15,11 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem extends Google_Model +class Google_Service_ShoppingContent_OrderPromotionItem extends Google_Model { public $lineItemId; public $productId; public $quantity; - public $reason; - public $reasonText; public function setLineItemId($lineItemId) { @@ -47,20 +45,4 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem { return $this->quantity; } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportDisbursement.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportDisbursement.php new file mode 100644 index 00000000..5f2d26b3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportDisbursement.php @@ -0,0 +1,73 @@ +disbursementAmount = $disbursementAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getDisbursementAmount() + { + return $this->disbursementAmount; + } + public function setDisbursementCreationDate($disbursementCreationDate) + { + $this->disbursementCreationDate = $disbursementCreationDate; + } + public function getDisbursementCreationDate() + { + return $this->disbursementCreationDate; + } + public function setDisbursementDate($disbursementDate) + { + $this->disbursementDate = $disbursementDate; + } + public function getDisbursementDate() + { + return $this->disbursementDate; + } + public function setDisbursementId($disbursementId) + { + $this->disbursementId = $disbursementId; + } + public function getDisbursementId() + { + return $this->disbursementId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportTransaction.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportTransaction.php new file mode 100644 index 00000000..77781329 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReportTransaction.php @@ -0,0 +1,116 @@ +disbursementAmount = $disbursementAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getDisbursementAmount() + { + return $this->disbursementAmount; + } + public function setDisbursementCreationDate($disbursementCreationDate) + { + $this->disbursementCreationDate = $disbursementCreationDate; + } + public function getDisbursementCreationDate() + { + return $this->disbursementCreationDate; + } + public function setDisbursementDate($disbursementDate) + { + $this->disbursementDate = $disbursementDate; + } + public function getDisbursementDate() + { + return $this->disbursementDate; + } + public function setDisbursementId($disbursementId) + { + $this->disbursementId = $disbursementId; + } + public function getDisbursementId() + { + return $this->disbursementId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMerchantOrderId($merchantOrderId) + { + $this->merchantOrderId = $merchantOrderId; + } + public function getMerchantOrderId() + { + return $this->merchantOrderId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + /** + * @param Google_Service_ShoppingContent_ProductAmount + */ + public function setProductAmount(Google_Service_ShoppingContent_ProductAmount $productAmount) + { + $this->productAmount = $productAmount; + } + /** + * @return Google_Service_ShoppingContent_ProductAmount + */ + public function getProductAmount() + { + return $this->productAmount; + } + public function setTransactionDate($transactionDate) + { + $this->transactionDate = $transactionDate; + } + public function getTransactionDate() + { + return $this->transactionDate; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceRequest.php new file mode 100644 index 00000000..ed779484 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceRequest.php @@ -0,0 +1,81 @@ +invoiceId = $invoiceId; + } + public function getInvoiceId() + { + return $this->invoiceId; + } + /** + * @param Google_Service_ShoppingContent_InvoiceSummary + */ + public function setInvoiceSummary(Google_Service_ShoppingContent_InvoiceSummary $invoiceSummary) + { + $this->invoiceSummary = $invoiceSummary; + } + /** + * @return Google_Service_ShoppingContent_InvoiceSummary + */ + public function getInvoiceSummary() + { + return $this->invoiceSummary; + } + /** + * @param Google_Service_ShoppingContent_ShipmentInvoiceLineItemInvoice + */ + public function setLineItemInvoices($lineItemInvoices) + { + $this->lineItemInvoices = $lineItemInvoices; + } + /** + * @return Google_Service_ShoppingContent_ShipmentInvoiceLineItemInvoice + */ + public function getLineItemInvoices() + { + return $this->lineItemInvoices; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + public function setShipmentGroupId($shipmentGroupId) + { + $this->shipmentGroupId = $shipmentGroupId; + } + public function getShipmentGroupId() + { + return $this->shipmentGroupId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceResponse.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceResponse.php index fb7f5a4e..a14a499a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateChargeInvoiceResponse.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersRefundResponse extends Google_Model +class Google_Service_ShoppingContent_OrderinvoicesCreateChargeInvoiceResponse extends Google_Model { public $executionStatus; public $kind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceRequest.php new file mode 100644 index 00000000..50d59c1f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceRequest.php @@ -0,0 +1,88 @@ +invoiceId = $invoiceId; + } + public function getInvoiceId() + { + return $this->invoiceId; + } + public function setOperationId($operationId) + { + $this->operationId = $operationId; + } + public function getOperationId() + { + return $this->operationId; + } + /** + * @param Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + */ + public function setRefundOnlyOption(Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption $refundOnlyOption) + { + $this->refundOnlyOption = $refundOnlyOption; + } + /** + * @return Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + */ + public function getRefundOnlyOption() + { + return $this->refundOnlyOption; + } + /** + * @param Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + */ + public function setReturnOption(Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption $returnOption) + { + $this->returnOption = $returnOption; + } + /** + * @return Google_Service_ShoppingContent_OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + */ + public function getReturnOption() + { + return $this->returnOption; + } + /** + * @param Google_Service_ShoppingContent_ShipmentInvoice + */ + public function setShipmentInvoices($shipmentInvoices) + { + $this->shipmentInvoices = $shipmentInvoices; + } + /** + * @return Google_Service_ShoppingContent_ShipmentInvoice + */ + public function getShipmentInvoices() + { + return $this->shipmentInvoices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceResponse.php similarity index 90% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceResponse.php index d52f8612..35d79f46 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCreateRefundInvoiceResponse.php @@ -15,7 +15,7 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersReturnLineItemResponse extends Google_Model +class Google_Service_ShoppingContent_OrderinvoicesCreateRefundInvoiceResponse extends Google_Model { public $executionStatus; public $kind; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.php new file mode 100644 index 00000000..9415218b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.php @@ -0,0 +1,39 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.php new file mode 100644 index 00000000..a63a43db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.php @@ -0,0 +1,39 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListDisbursementsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListDisbursementsResponse.php new file mode 100644 index 00000000..2491fc50 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListDisbursementsResponse.php @@ -0,0 +1,56 @@ +disbursements = $disbursements; + } + /** + * @return Google_Service_ShoppingContent_OrderReportDisbursement + */ + public function getDisbursements() + { + return $this->disbursements; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListTransactionsResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListTransactionsResponse.php new file mode 100644 index 00000000..7040e420 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreportsListTransactionsResponse.php @@ -0,0 +1,56 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ShoppingContent_OrderReportTransaction + */ + public function setTransactions($transactions) + { + $this->transactions = $transactions; + } + /** + * @return Google_Service_ShoppingContent_OrderReportTransaction + */ + public function getTransactions() + { + return $this->transactions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreturnsListResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreturnsListResponse.php new file mode 100644 index 00000000..149fab30 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrderreturnsListResponse.php @@ -0,0 +1,56 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_ShoppingContent_MerchantOrderReturn + */ + public function setResources($resources) + { + $this->resources = $resources; + } + /** + * @return Google_Service_ShoppingContent_MerchantOrderReturn + */ + public function getResources() + { + return $this->resources; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php index cf0a543a..1fbbe7e1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php @@ -17,12 +17,6 @@ class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_Model { - protected $amountType = 'Google_Service_ShoppingContent_Price'; - protected $amountDataType = ''; - protected $amountPretaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountPretaxDataType = ''; - protected $amountTaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountTaxDataType = ''; public $lineItemId; public $operationId; public $productId; @@ -30,48 +24,6 @@ class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_ public $reason; public $reasonText; - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmount(Google_Service_ShoppingContent_Price $amount) - { - $this->amount = $amount; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmount() - { - return $this->amount; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerRequest.php similarity index 73% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerRequest.php index ec553966..a46b2d2e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerRequest.php @@ -15,10 +15,9 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel extends Google_Model +class Google_Service_ShoppingContent_OrdersCancelTestOrderByCustomerRequest extends Google_Model { public $reason; - public $reasonText; public function setReason($reason) { @@ -28,12 +27,4 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel extends { return $this->reason; } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerResponse.php new file mode 100644 index 00000000..6887820e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelTestOrderByCustomerResponse.php @@ -0,0 +1,30 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php index c0a41f75..7fd40031 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php @@ -17,10 +17,19 @@ class Google_Service_ShoppingContent_OrdersCreateTestOrderRequest extends Google_Model { + public $country; public $templateName; protected $testOrderType = 'Google_Service_ShoppingContent_TestOrder'; protected $testOrderDataType = ''; + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } public function setTemplateName($templateName) { $this->templateName = $templateName; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnRequest.php similarity index 62% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnRequest.php index b62f3207..538b2407 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnRequest.php @@ -15,24 +15,24 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequest extends Google_Collection +class Google_Service_ShoppingContent_OrdersCreateTestReturnRequest extends Google_Collection { - protected $collection_key = 'entries'; - protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry'; - protected $entriesDataType = 'array'; + protected $collection_key = 'items'; + protected $itemsType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCreateTestReturnReturnItem'; + protected $itemsDataType = 'array'; /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry + * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCreateTestReturnReturnItem */ - public function setEntries($entries) + public function setItems($items) { - $this->entries = $entries; + $this->items = $items; } /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry + * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCreateTestReturnReturnItem */ - public function getEntries() + public function getItems() { - return $this->entries; + return $this->items; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnResponse.php new file mode 100644 index 00000000..b700347c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestReturnResponse.php @@ -0,0 +1,39 @@ +kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setReturnId($returnId) + { + $this->returnId = $returnId; + } + public function getReturnId() + { + return $this->returnId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php deleted file mode 100644 index 1c32a0bc..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php +++ /dev/null @@ -1,251 +0,0 @@ -batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel - */ - public function setCancel(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel $cancel) - { - $this->cancel = $cancel; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel - */ - public function getCancel() - { - return $this->cancel; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem - */ - public function setCancelLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem $cancelLineItem) - { - $this->cancelLineItem = $cancelLineItem; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem - */ - public function getCancelLineItem() - { - return $this->cancelLineItem; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryInStoreRefundLineItem - */ - public function setInStoreRefundLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryInStoreRefundLineItem $inStoreRefundLineItem) - { - $this->inStoreRefundLineItem = $inStoreRefundLineItem; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryInStoreRefundLineItem - */ - public function getInStoreRefundLineItem() - { - return $this->inStoreRefundLineItem; - } - public function setMerchantId($merchantId) - { - $this->merchantId = $merchantId; - } - public function getMerchantId() - { - return $this->merchantId; - } - public function setMerchantOrderId($merchantOrderId) - { - $this->merchantOrderId = $merchantOrderId; - } - public function getMerchantOrderId() - { - return $this->merchantOrderId; - } - public function setMethod($method) - { - $this->method = $method; - } - public function getMethod() - { - return $this->method; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - public function getOrderId() - { - return $this->orderId; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund - */ - public function setRefund(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund $refund) - { - $this->refund = $refund; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund - */ - public function getRefund() - { - return $this->refund; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLineItem - */ - public function setRejectReturnLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLineItem $rejectReturnLineItem) - { - $this->rejectReturnLineItem = $rejectReturnLineItem; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLineItem - */ - public function getRejectReturnLineItem() - { - return $this->rejectReturnLineItem; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem - */ - public function setReturnLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem $returnLineItem) - { - $this->returnLineItem = $returnLineItem; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem - */ - public function getReturnLineItem() - { - return $this->returnLineItem; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnRefundLineItem - */ - public function setReturnRefundLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnRefundLineItem $returnRefundLineItem) - { - $this->returnRefundLineItem = $returnRefundLineItem; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnRefundLineItem - */ - public function getReturnRefundLineItem() - { - return $this->returnRefundLineItem; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntrySetLineItemMetadata - */ - public function setSetLineItemMetadata(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntrySetLineItemMetadata $setLineItemMetadata) - { - $this->setLineItemMetadata = $setLineItemMetadata; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntrySetLineItemMetadata - */ - public function getSetLineItemMetadata() - { - return $this->setLineItemMetadata; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems - */ - public function setShipLineItems(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems $shipLineItems) - { - $this->shipLineItems = $shipLineItems; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems - */ - public function getShipLineItems() - { - return $this->shipLineItems; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails - */ - public function setUpdateLineItemShippingDetails(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails $updateLineItemShippingDetails) - { - $this->updateLineItemShippingDetails = $updateLineItemShippingDetails; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails - */ - public function getUpdateLineItemShippingDetails() - { - return $this->updateLineItemShippingDetails; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment - */ - public function setUpdateShipment(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment $updateShipment) - { - $this->updateShipment = $updateShipment; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment - */ - public function getUpdateShipment() - { - return $this->updateShipment; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php deleted file mode 100644 index 59f37374..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php +++ /dev/null @@ -1,114 +0,0 @@ -amount = $amount; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmount() - { - return $this->amount; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRejectReturnLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem.php similarity index 64% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRejectReturnLineItem.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem.php index 8e6a3a6e..ccee890e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRejectReturnLineItem.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCreateTestReturnReturnItem.php @@ -15,13 +15,10 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLineItem extends Google_Model +class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCreateTestReturnReturnItem extends Google_Model { public $lineItemId; - public $productId; public $quantity; - public $reason; - public $reasonText; public function setLineItemId($lineItemId) { @@ -31,14 +28,6 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLi { return $this->lineItemId; } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } public function setQuantity($quantity) { $this->quantity = $quantity; @@ -47,20 +36,4 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRejectReturnLi { return $this->quantity; } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryInStoreRefundLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryInStoreRefundLineItem.php deleted file mode 100644 index 5b8d8a85..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryInStoreRefundLineItem.php +++ /dev/null @@ -1,98 +0,0 @@ -amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php deleted file mode 100644 index 962b987b..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php +++ /dev/null @@ -1,87 +0,0 @@ -amount = $amount; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmount() - { - return $this->amount; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnRefundLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnRefundLineItem.php deleted file mode 100644 index 05f56f9b..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnRefundLineItem.php +++ /dev/null @@ -1,98 +0,0 @@ -amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php deleted file mode 100644 index 54514ce0..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php +++ /dev/null @@ -1,81 +0,0 @@ -carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } - /** - * @param Google_Service_ShoppingContent_OrderShipmentLineItemShipment - */ - public function setLineItems($lineItems) - { - $this->lineItems = $lineItems; - } - /** - * @return Google_Service_ShoppingContent_OrderShipmentLineItemShipment - */ - public function getLineItems() - { - return $this->lineItems; - } - public function setShipmentId($shipmentId) - { - $this->shipmentId = $shipmentId; - } - public function getShipmentId() - { - return $this->shipmentId; - } - /** - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo - */ - public function setShipmentInfos($shipmentInfos) - { - $this->shipmentInfos = $shipmentInfos; - } - /** - * @return Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo - */ - public function getShipmentInfos() - { - return $this->shipmentInfos; - } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails.php deleted file mode 100644 index 42f18382..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails.php +++ /dev/null @@ -1,57 +0,0 @@ -deliverByDate = $deliverByDate; - } - public function getDeliverByDate() - { - return $this->deliverByDate; - } - public function setLineItemId($lineItemId) - { - $this->lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setShipByDate($shipByDate) - { - $this->shipByDate = $shipByDate; - } - public function getShipByDate() - { - return $this->shipByDate; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php deleted file mode 100644 index b8fbeb76..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php +++ /dev/null @@ -1,80 +0,0 @@ -batchId = $batchId; - } - public function getBatchId() - { - return $this->batchId; - } - /** - * @param Google_Service_ShoppingContent_Errors - */ - public function setErrors(Google_Service_ShoppingContent_Errors $errors) - { - $this->errors = $errors; - } - /** - * @return Google_Service_ShoppingContent_Errors - */ - public function getErrors() - { - return $this->errors; - } - public function setExecutionStatus($executionStatus) - { - $this->executionStatus = $executionStatus; - } - public function getExecutionStatus() - { - return $this->executionStatus; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - /** - * @param Google_Service_ShoppingContent_Order - */ - public function setOrder(Google_Service_ShoppingContent_Order $order) - { - $this->order = $order; - } - /** - * @return Google_Service_ShoppingContent_Order - */ - public function getOrder() - { - return $this->order; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersInStoreRefundLineItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersInStoreRefundLineItemRequest.php index 28730d48..570971aa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersInStoreRefundLineItemRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersInStoreRefundLineItemRequest.php @@ -17,45 +17,17 @@ class Google_Service_ShoppingContent_OrdersInStoreRefundLineItemRequest extends Google_Model { - protected $amountPretaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountPretaxDataType = ''; - protected $amountTaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountTaxDataType = ''; public $lineItemId; public $operationId; + protected $priceAmountType = 'Google_Service_ShoppingContent_Price'; + protected $priceAmountDataType = ''; public $productId; public $quantity; public $reason; public $reasonText; + protected $taxAmountType = 'Google_Service_ShoppingContent_Price'; + protected $taxAmountDataType = ''; - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; @@ -72,6 +44,20 @@ class Google_Service_ShoppingContent_OrdersInStoreRefundLineItemRequest extends { return $this->operationId; } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setPriceAmount(Google_Service_ShoppingContent_Price $priceAmount) + { + $this->priceAmount = $priceAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getPriceAmount() + { + return $this->priceAmount; + } public function setProductId($productId) { $this->productId = $productId; @@ -104,4 +90,18 @@ class Google_Service_ShoppingContent_OrdersInStoreRefundLineItemRequest extends { return $this->reasonText; } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setTaxAmount(Google_Service_ShoppingContent_Price $taxAmount) + { + $this->taxAmount = $taxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxAmount() + { + return $this->taxAmount; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php deleted file mode 100644 index 1cceb11e..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -amount = $amount; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmount() - { - return $this->amount; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php deleted file mode 100644 index 4d91c0dc..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -lineItemId = $lineItemId; - } - public function getLineItemId() - { - return $this->lineItemId; - } - public function setOperationId($operationId) - { - $this->operationId = $operationId; - } - public function getOperationId() - { - return $this->operationId; - } - public function setProductId($productId) - { - $this->productId = $productId; - } - public function getProductId() - { - return $this->productId; - } - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - public function getQuantity() - { - return $this->quantity; - } - public function setReason($reason) - { - $this->reason = $reason; - } - public function getReason() - { - return $this->reason; - } - public function setReasonText($reasonText) - { - $this->reasonText = $reasonText; - } - public function getReasonText() - { - return $this->reasonText; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnRefundLineItemRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnRefundLineItemRequest.php index 56b93341..e8de1d40 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnRefundLineItemRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnRefundLineItemRequest.php @@ -17,45 +17,17 @@ class Google_Service_ShoppingContent_OrdersReturnRefundLineItemRequest extends Google_Model { - protected $amountPretaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountPretaxDataType = ''; - protected $amountTaxType = 'Google_Service_ShoppingContent_Price'; - protected $amountTaxDataType = ''; public $lineItemId; public $operationId; + protected $priceAmountType = 'Google_Service_ShoppingContent_Price'; + protected $priceAmountDataType = ''; public $productId; public $quantity; public $reason; public $reasonText; + protected $taxAmountType = 'Google_Service_ShoppingContent_Price'; + protected $taxAmountDataType = ''; - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountPretax(Google_Service_ShoppingContent_Price $amountPretax) - { - $this->amountPretax = $amountPretax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountPretax() - { - return $this->amountPretax; - } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setAmountTax(Google_Service_ShoppingContent_Price $amountTax) - { - $this->amountTax = $amountTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getAmountTax() - { - return $this->amountTax; - } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; @@ -72,6 +44,20 @@ class Google_Service_ShoppingContent_OrdersReturnRefundLineItemRequest extends G { return $this->operationId; } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setPriceAmount(Google_Service_ShoppingContent_Price $priceAmount) + { + $this->priceAmount = $priceAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getPriceAmount() + { + return $this->priceAmount; + } public function setProductId($productId) { $this->productId = $productId; @@ -104,4 +90,18 @@ class Google_Service_ShoppingContent_OrdersReturnRefundLineItemRequest extends G { return $this->reasonText; } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setTaxAmount(Google_Service_ShoppingContent_Price $taxAmount) + { + $this->taxAmount = $taxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxAmount() + { + return $this->taxAmount; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php index 5047df2d..94090a09 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php @@ -18,23 +18,13 @@ class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_Collection { protected $collection_key = 'shipmentInfos'; - public $carrier; protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment'; protected $lineItemsDataType = 'array'; public $operationId; - public $shipmentId; + public $shipmentGroupId; protected $shipmentInfosType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo'; protected $shipmentInfosDataType = 'array'; - public $trackingId; - public function setCarrier($carrier) - { - $this->carrier = $carrier; - } - public function getCarrier() - { - return $this->carrier; - } /** * @param Google_Service_ShoppingContent_OrderShipmentLineItemShipment */ @@ -57,13 +47,13 @@ class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_C { return $this->operationId; } - public function setShipmentId($shipmentId) + public function setShipmentGroupId($shipmentGroupId) { - $this->shipmentId = $shipmentId; + $this->shipmentGroupId = $shipmentGroupId; } - public function getShipmentId() + public function getShipmentGroupId() { - return $this->shipmentId; + return $this->shipmentGroupId; } /** * @param Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo @@ -79,12 +69,4 @@ class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_C { return $this->shipmentInfos; } - public function setTrackingId($trackingId) - { - $this->trackingId = $trackingId; - } - public function getTrackingId() - { - return $this->trackingId; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php index 26ab620b..322ad3c5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php @@ -18,6 +18,7 @@ class Google_Service_ShoppingContent_OrdersUpdateShipmentRequest extends Google_Model { public $carrier; + public $deliveryDate; public $operationId; public $shipmentId; public $status; @@ -31,6 +32,14 @@ class Google_Service_ShoppingContent_OrdersUpdateShipmentRequest extends Google_ { return $this->carrier; } + public function setDeliveryDate($deliveryDate) + { + $this->deliveryDate = $deliveryDate; + } + public function getDeliveryDate() + { + return $this->deliveryDate; + } public function setOperationId($operationId) { $this->operationId = $operationId; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProviders.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProviders.php new file mode 100644 index 00000000..8ca8892d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProviders.php @@ -0,0 +1,47 @@ +country = $country; + } + public function getCountry() + { + return $this->country; + } + /** + * @param Google_Service_ShoppingContent_PosDataProvidersPosDataProvider + */ + public function setPosDataProviders($posDataProviders) + { + $this->posDataProviders = $posDataProviders; + } + /** + * @return Google_Service_ShoppingContent_PosDataProvidersPosDataProvider + */ + public function getPosDataProviders() + { + return $this->posDataProviders; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProvidersPosDataProvider.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProvidersPosDataProvider.php new file mode 100644 index 00000000..01611dd0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/PosDataProvidersPosDataProvider.php @@ -0,0 +1,48 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setFullName($fullName) + { + $this->fullName = $fullName; + } + public function getFullName() + { + return $this->fullName; + } + public function setProviderId($providerId) + { + $this->providerId = $providerId; + } + public function getProviderId() + { + return $this->providerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php index d485623a..4374c80e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php @@ -17,16 +17,13 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { - protected $collection_key = 'warnings'; + protected $collection_key = 'taxes'; public $additionalImageLinks; - public $additionalProductTypes; + public $adsGrouping; + public $adsLabels; + public $adsRedirect; public $adult; - public $adwordsGrouping; - public $adwordsLabels; - public $adwordsRedirect; public $ageGroup; - protected $aspectsType = 'Google_Service_ShoppingContent_ProductAspect'; - protected $aspectsDataType = 'array'; public $availability; public $availabilityDate; public $brand; @@ -34,24 +31,23 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $color; public $condition; public $contentLanguage; - protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute'; + protected $costOfGoodsSoldType = 'Google_Service_ShoppingContent_Price'; + protected $costOfGoodsSoldDataType = ''; + protected $customAttributesType = 'Google_Service_ShoppingContent_CustomAttribute'; protected $customAttributesDataType = 'array'; - protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup'; - protected $customGroupsDataType = 'array'; public $customLabel0; public $customLabel1; public $customLabel2; public $customLabel3; public $customLabel4; public $description; - protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; - protected $destinationsDataType = 'array'; public $displayAdsId; public $displayAdsLink; public $displayAdsSimilarIds; public $displayAdsTitle; public $displayAdsValue; public $energyEfficiencyClass; + public $excludedDestinations; public $expirationDate; public $gender; public $googleProductCategory; @@ -59,6 +55,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $id; public $identifierExists; public $imageLink; + public $includedDestinations; protected $installmentType = 'Google_Service_ShoppingContent_Installment'; protected $installmentDataType = ''; public $isBundle; @@ -68,17 +65,18 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; protected $loyaltyPointsDataType = ''; public $material; + public $maxEnergyEfficiencyClass; public $maxHandlingTime; + public $minEnergyEfficiencyClass; public $minHandlingTime; public $mobileLink; public $mpn; public $multipack; public $offerId; - public $onlineOnly; public $pattern; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; - public $productType; + public $productTypes; public $promotionIds; protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; @@ -98,6 +96,7 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $sizeSystem; public $sizeType; public $sizes; + public $source; public $targetCountry; protected $taxesType = 'Google_Service_ShoppingContent_ProductTax'; protected $taxesDataType = 'array'; @@ -106,9 +105,6 @@ class Google_Service_ShoppingContent_Product extends Google_Collection protected $unitPricingBaseMeasureDataType = ''; protected $unitPricingMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingMeasure'; protected $unitPricingMeasureDataType = ''; - public $validatedDestinations; - protected $warningsType = 'Google_Service_ShoppingContent_Error'; - protected $warningsDataType = 'array'; public function setAdditionalImageLinks($additionalImageLinks) { @@ -118,13 +114,29 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->additionalImageLinks; } - public function setAdditionalProductTypes($additionalProductTypes) + public function setAdsGrouping($adsGrouping) { - $this->additionalProductTypes = $additionalProductTypes; + $this->adsGrouping = $adsGrouping; } - public function getAdditionalProductTypes() + public function getAdsGrouping() { - return $this->additionalProductTypes; + return $this->adsGrouping; + } + public function setAdsLabels($adsLabels) + { + $this->adsLabels = $adsLabels; + } + public function getAdsLabels() + { + return $this->adsLabels; + } + public function setAdsRedirect($adsRedirect) + { + $this->adsRedirect = $adsRedirect; + } + public function getAdsRedirect() + { + return $this->adsRedirect; } public function setAdult($adult) { @@ -134,30 +146,6 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->adult; } - public function setAdwordsGrouping($adwordsGrouping) - { - $this->adwordsGrouping = $adwordsGrouping; - } - public function getAdwordsGrouping() - { - return $this->adwordsGrouping; - } - public function setAdwordsLabels($adwordsLabels) - { - $this->adwordsLabels = $adwordsLabels; - } - public function getAdwordsLabels() - { - return $this->adwordsLabels; - } - public function setAdwordsRedirect($adwordsRedirect) - { - $this->adwordsRedirect = $adwordsRedirect; - } - public function getAdwordsRedirect() - { - return $this->adwordsRedirect; - } public function setAgeGroup($ageGroup) { $this->ageGroup = $ageGroup; @@ -166,20 +154,6 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->ageGroup; } - /** - * @param Google_Service_ShoppingContent_ProductAspect - */ - public function setAspects($aspects) - { - $this->aspects = $aspects; - } - /** - * @return Google_Service_ShoppingContent_ProductAspect - */ - public function getAspects() - { - return $this->aspects; - } public function setAvailability($availability) { $this->availability = $availability; @@ -237,33 +211,33 @@ class Google_Service_ShoppingContent_Product extends Google_Collection return $this->contentLanguage; } /** - * @param Google_Service_ShoppingContent_ProductCustomAttribute + * @param Google_Service_ShoppingContent_Price + */ + public function setCostOfGoodsSold(Google_Service_ShoppingContent_Price $costOfGoodsSold) + { + $this->costOfGoodsSold = $costOfGoodsSold; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getCostOfGoodsSold() + { + return $this->costOfGoodsSold; + } + /** + * @param Google_Service_ShoppingContent_CustomAttribute */ public function setCustomAttributes($customAttributes) { $this->customAttributes = $customAttributes; } /** - * @return Google_Service_ShoppingContent_ProductCustomAttribute + * @return Google_Service_ShoppingContent_CustomAttribute */ public function getCustomAttributes() { return $this->customAttributes; } - /** - * @param Google_Service_ShoppingContent_ProductCustomGroup - */ - public function setCustomGroups($customGroups) - { - $this->customGroups = $customGroups; - } - /** - * @return Google_Service_ShoppingContent_ProductCustomGroup - */ - public function getCustomGroups() - { - return $this->customGroups; - } public function setCustomLabel0($customLabel0) { $this->customLabel0 = $customLabel0; @@ -312,20 +286,6 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->description; } - /** - * @param Google_Service_ShoppingContent_ProductDestination - */ - public function setDestinations($destinations) - { - $this->destinations = $destinations; - } - /** - * @return Google_Service_ShoppingContent_ProductDestination - */ - public function getDestinations() - { - return $this->destinations; - } public function setDisplayAdsId($displayAdsId) { $this->displayAdsId = $displayAdsId; @@ -374,6 +334,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->energyEfficiencyClass; } + public function setExcludedDestinations($excludedDestinations) + { + $this->excludedDestinations = $excludedDestinations; + } + public function getExcludedDestinations() + { + return $this->excludedDestinations; + } public function setExpirationDate($expirationDate) { $this->expirationDate = $expirationDate; @@ -430,6 +398,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->imageLink; } + public function setIncludedDestinations($includedDestinations) + { + $this->includedDestinations = $includedDestinations; + } + public function getIncludedDestinations() + { + return $this->includedDestinations; + } /** * @param Google_Service_ShoppingContent_Installment */ @@ -498,6 +474,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->material; } + public function setMaxEnergyEfficiencyClass($maxEnergyEfficiencyClass) + { + $this->maxEnergyEfficiencyClass = $maxEnergyEfficiencyClass; + } + public function getMaxEnergyEfficiencyClass() + { + return $this->maxEnergyEfficiencyClass; + } public function setMaxHandlingTime($maxHandlingTime) { $this->maxHandlingTime = $maxHandlingTime; @@ -506,6 +490,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->maxHandlingTime; } + public function setMinEnergyEfficiencyClass($minEnergyEfficiencyClass) + { + $this->minEnergyEfficiencyClass = $minEnergyEfficiencyClass; + } + public function getMinEnergyEfficiencyClass() + { + return $this->minEnergyEfficiencyClass; + } public function setMinHandlingTime($minHandlingTime) { $this->minHandlingTime = $minHandlingTime; @@ -546,14 +538,6 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->offerId; } - public function setOnlineOnly($onlineOnly) - { - $this->onlineOnly = $onlineOnly; - } - public function getOnlineOnly() - { - return $this->onlineOnly; - } public function setPattern($pattern) { $this->pattern = $pattern; @@ -576,13 +560,13 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->price; } - public function setProductType($productType) + public function setProductTypes($productTypes) { - $this->productType = $productType; + $this->productTypes = $productTypes; } - public function getProductType() + public function getProductTypes() { - return $this->productType; + return $this->productTypes; } public function setPromotionIds($promotionIds) { @@ -724,6 +708,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->sizes; } + public function setSource($source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } public function setTargetCountry($targetCountry) { $this->targetCountry = $targetCountry; @@ -782,26 +774,4 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->unitPricingMeasure; } - public function setValidatedDestinations($validatedDestinations) - { - $this->validatedDestinations = $validatedDestinations; - } - public function getValidatedDestinations() - { - return $this->validatedDestinations; - } - /** - * @param Google_Service_ShoppingContent_Error - */ - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - /** - * @return Google_Service_ShoppingContent_Error - */ - public function getWarnings() - { - return $this->warnings; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAmount.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAmount.php new file mode 100644 index 00000000..4223bbdb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAmount.php @@ -0,0 +1,69 @@ +priceAmount = $priceAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getPriceAmount() + { + return $this->priceAmount; + } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setRemittedTaxAmount(Google_Service_ShoppingContent_Price $remittedTaxAmount) + { + $this->remittedTaxAmount = $remittedTaxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getRemittedTaxAmount() + { + return $this->remittedTaxAmount; + } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setTaxAmount(Google_Service_ShoppingContent_Price $taxAmount) + { + $this->taxAmount = $taxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxAmount() + { + return $this->taxAmount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php index 1e683694..296a1a56 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php @@ -19,8 +19,6 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { protected $collection_key = 'itemLevelIssues'; public $creationDate; - protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; - protected $dataQualityIssuesDataType = 'array'; protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; protected $destinationStatusesDataType = 'array'; public $googleExpirationDate; @@ -29,8 +27,6 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection public $kind; public $lastUpdateDate; public $link; - protected $productType = 'Google_Service_ShoppingContent_Product'; - protected $productDataType = ''; public $productId; public $title; @@ -42,20 +38,6 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { return $this->creationDate; } - /** - * @param Google_Service_ShoppingContent_ProductStatusDataQualityIssue - */ - public function setDataQualityIssues($dataQualityIssues) - { - $this->dataQualityIssues = $dataQualityIssues; - } - /** - * @return Google_Service_ShoppingContent_ProductStatusDataQualityIssue - */ - public function getDataQualityIssues() - { - return $this->dataQualityIssues; - } /** * @param Google_Service_ShoppingContent_ProductStatusDestinationStatus */ @@ -116,20 +98,6 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { return $this->link; } - /** - * @param Google_Service_ShoppingContent_Product - */ - public function setProduct(Google_Service_ShoppingContent_Product $product) - { - $this->product = $product; - } - /** - * @return Google_Service_ShoppingContent_Product - */ - public function getProduct() - { - return $this->product; - } public function setProductId($productId) { $this->productId = $productId; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php deleted file mode 100644 index dab671b6..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php +++ /dev/null @@ -1,102 +0,0 @@ -destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setDetail($detail) - { - $this->detail = $detail; - } - public function getDetail() - { - return $this->detail; - } - public function setFetchStatus($fetchStatus) - { - $this->fetchStatus = $fetchStatus; - } - public function getFetchStatus() - { - return $this->fetchStatus; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLocation($location) - { - $this->location = $location; - } - public function getLocation() - { - return $this->location; - } - public function setSeverity($severity) - { - $this->severity = $severity; - } - public function getSeverity() - { - return $this->severity; - } - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - public function getTimestamp() - { - return $this->timestamp; - } - public function setValueOnLandingPage($valueOnLandingPage) - { - $this->valueOnLandingPage = $valueOnLandingPage; - } - public function getValueOnLandingPage() - { - return $this->valueOnLandingPage; - } - public function setValueProvided($valueProvided) - { - $this->valueProvided = $valueProvided; - } - public function getValueProvided() - { - return $this->valueProvided; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php index 3c83402c..e1e67c1c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php @@ -17,27 +17,9 @@ class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model { - public $approvalPending; - public $approvalStatus; public $destination; - public $intention; + public $status; - public function setApprovalPending($approvalPending) - { - $this->approvalPending = $approvalPending; - } - public function getApprovalPending() - { - return $this->approvalPending; - } - public function setApprovalStatus($approvalStatus) - { - $this->approvalStatus = $approvalStatus; - } - public function getApprovalStatus() - { - return $this->approvalStatus; - } public function setDestination($destination) { $this->destination = $destination; @@ -46,12 +28,12 @@ class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Goog { return $this->destination; } - public function setIntention($intention) + public function setStatus($status) { - $this->intention = $intention; + $this->status = $status; } - public function getIntention() + public function getStatus() { - return $this->intention; + return $this->status; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php index b5c180ca..01626791 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php @@ -23,6 +23,7 @@ class Google_Service_ShoppingContent_RateGroup extends Google_Collection protected $carrierRatesDataType = 'array'; protected $mainTableType = 'Google_Service_ShoppingContent_Table'; protected $mainTableDataType = ''; + public $name; protected $singleValueType = 'Google_Service_ShoppingContent_Value'; protected $singleValueDataType = ''; protected $subtablesType = 'Google_Service_ShoppingContent_Table'; @@ -64,6 +65,14 @@ class Google_Service_ShoppingContent_RateGroup extends Google_Collection { return $this->mainTable; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } /** * @param Google_Service_ShoppingContent_Value */ diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RefundReason.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RefundReason.php new file mode 100644 index 00000000..011d82d6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RefundReason.php @@ -0,0 +1,39 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReasonCode($reasonCode) + { + $this->reasonCode = $reasonCode; + } + public function getReasonCode() + { + return $this->reasonCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalInventory.php similarity index 53% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalInventory.php index 56b0cb2f..f09648a9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalInventory.php @@ -15,23 +15,19 @@ * the License. */ -class Google_Service_ShoppingContent_Inventory extends Google_Model +class Google_Service_ShoppingContent_RegionalInventory extends Google_Collection { + protected $collection_key = 'customAttributes'; public $availability; - protected $installmentType = 'Google_Service_ShoppingContent_Installment'; - protected $installmentDataType = ''; + protected $customAttributesType = 'Google_Service_ShoppingContent_CustomAttribute'; + protected $customAttributesDataType = 'array'; public $kind; - protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints'; - protected $loyaltyPointsDataType = ''; - protected $pickupType = 'Google_Service_ShoppingContent_InventoryPickup'; - protected $pickupDataType = ''; protected $priceType = 'Google_Service_ShoppingContent_Price'; protected $priceDataType = ''; - public $quantity; + public $regionId; protected $salePriceType = 'Google_Service_ShoppingContent_Price'; protected $salePriceDataType = ''; public $salePriceEffectiveDate; - public $sellOnGoogleQuantity; public function setAvailability($availability) { @@ -42,18 +38,18 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model return $this->availability; } /** - * @param Google_Service_ShoppingContent_Installment + * @param Google_Service_ShoppingContent_CustomAttribute */ - public function setInstallment(Google_Service_ShoppingContent_Installment $installment) + public function setCustomAttributes($customAttributes) { - $this->installment = $installment; + $this->customAttributes = $customAttributes; } /** - * @return Google_Service_ShoppingContent_Installment + * @return Google_Service_ShoppingContent_CustomAttribute */ - public function getInstallment() + public function getCustomAttributes() { - return $this->installment; + return $this->customAttributes; } public function setKind($kind) { @@ -63,34 +59,6 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model { return $this->kind; } - /** - * @param Google_Service_ShoppingContent_LoyaltyPoints - */ - public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints) - { - $this->loyaltyPoints = $loyaltyPoints; - } - /** - * @return Google_Service_ShoppingContent_LoyaltyPoints - */ - public function getLoyaltyPoints() - { - return $this->loyaltyPoints; - } - /** - * @param Google_Service_ShoppingContent_InventoryPickup - */ - public function setPickup(Google_Service_ShoppingContent_InventoryPickup $pickup) - { - $this->pickup = $pickup; - } - /** - * @return Google_Service_ShoppingContent_InventoryPickup - */ - public function getPickup() - { - return $this->pickup; - } /** * @param Google_Service_ShoppingContent_Price */ @@ -105,13 +73,13 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model { return $this->price; } - public function setQuantity($quantity) + public function setRegionId($regionId) { - $this->quantity = $quantity; + $this->regionId = $regionId; } - public function getQuantity() + public function getRegionId() { - return $this->quantity; + return $this->regionId; } /** * @param Google_Service_ShoppingContent_Price @@ -135,12 +103,4 @@ class Google_Service_ShoppingContent_Inventory extends Google_Model { return $this->salePriceEffectiveDate; } - public function setSellOnGoogleQuantity($sellOnGoogleQuantity) - { - $this->sellOnGoogleQuantity = $sellOnGoogleQuantity; - } - public function getSellOnGoogleQuantity() - { - return $this->sellOnGoogleQuantity; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequest.php similarity index 69% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequest.php index ed47f609..a0a7dc73 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequest.php @@ -15,21 +15,21 @@ * the License. */ -class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection +class Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequestEntry'; protected $entriesDataType = 'array'; /** - * @param Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry + * @param Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequestEntry */ public function setEntries($entries) { $this->entries = $entries; } /** - * @return Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry + * @return Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequestEntry */ public function getEntries() { diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequestEntry.php similarity index 61% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequestEntry.php index 8ed66b30..00563b5f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchRequestEntry.php @@ -15,14 +15,14 @@ * the License. */ -class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model +class Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequestEntry extends Google_Model { public $batchId; - protected $inventoryType = 'Google_Service_ShoppingContent_Inventory'; - protected $inventoryDataType = ''; public $merchantId; + public $method; public $productId; - public $storeCode; + protected $regionalInventoryType = 'Google_Service_ShoppingContent_RegionalInventory'; + protected $regionalInventoryDataType = ''; public function setBatchId($batchId) { @@ -32,20 +32,6 @@ class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Go { return $this->batchId; } - /** - * @param Google_Service_ShoppingContent_Inventory - */ - public function setInventory(Google_Service_ShoppingContent_Inventory $inventory) - { - $this->inventory = $inventory; - } - /** - * @return Google_Service_ShoppingContent_Inventory - */ - public function getInventory() - { - return $this->inventory; - } public function setMerchantId($merchantId) { $this->merchantId = $merchantId; @@ -54,6 +40,14 @@ class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Go { return $this->merchantId; } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } public function setProductId($productId) { $this->productId = $productId; @@ -62,12 +56,18 @@ class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Go { return $this->productId; } - public function setStoreCode($storeCode) + /** + * @param Google_Service_ShoppingContent_RegionalInventory + */ + public function setRegionalInventory(Google_Service_ShoppingContent_RegionalInventory $regionalInventory) { - $this->storeCode = $storeCode; + $this->regionalInventory = $regionalInventory; } - public function getStoreCode() + /** + * @return Google_Service_ShoppingContent_RegionalInventory + */ + public function getRegionalInventory() { - return $this->storeCode; + return $this->regionalInventory; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponse.php similarity index 72% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponse.php index 3d423f42..12bf7fa1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponse.php @@ -15,22 +15,22 @@ * the License. */ -class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection +class Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponse extends Google_Collection { protected $collection_key = 'entries'; - protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry'; + protected $entriesType = 'Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponseEntry'; protected $entriesDataType = 'array'; public $kind; /** - * @param Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry + * @param Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponseEntry */ public function setEntries($entries) { $this->entries = $entries; } /** - * @return Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry + * @return Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponseEntry */ public function getEntries() { diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponseEntry.php similarity index 67% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponseEntry.php index c395ef92..01e8f05b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/RegionalinventoryCustomBatchResponseEntry.php @@ -15,12 +15,14 @@ * the License. */ -class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model +class Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponseEntry extends Google_Model { public $batchId; protected $errorsType = 'Google_Service_ShoppingContent_Errors'; protected $errorsDataType = ''; public $kind; + protected $regionalInventoryType = 'Google_Service_ShoppingContent_RegionalInventory'; + protected $regionalInventoryDataType = ''; public function setBatchId($batchId) { @@ -52,4 +54,18 @@ class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends G { return $this->kind; } + /** + * @param Google_Service_ShoppingContent_RegionalInventory + */ + public function setRegionalInventory(Google_Service_ShoppingContent_RegionalInventory $regionalInventory) + { + $this->regionalInventory = $regionalInventory; + } + /** + * @return Google_Service_ShoppingContent_RegionalInventory + */ + public function getRegionalInventory() + { + return $this->regionalInventory; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php index fee21702..e7f08fb1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php @@ -63,8 +63,6 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re * * @param Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array()) @@ -82,7 +80,6 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re * @param string $accountId The ID of the account. * @param array $optParams Optional parameters. * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @opt_param bool force Flag to delete sub-accounts with products. The default * value is false. */ @@ -115,8 +112,6 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re * multi-client account. * @param Google_Service_ShoppingContent_Account $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Account */ public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) @@ -125,6 +120,24 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account"); } + /** + * Performs an action on a link between a Merchant Center account and another + * account. (accounts.link) + * + * @param string $merchantId The ID of the managing account. If this parameter + * is not the same as accountId, then this account must be a multi-client + * account and accountId must be the ID of a sub-account of this account. + * @param string $accountId The ID of the account that should be linked. + * @param Google_Service_ShoppingContent_AccountsLinkRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountsLinkResponse + */ + public function link($merchantId, $accountId, Google_Service_ShoppingContent_AccountsLinkRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('link', array($params), "Google_Service_ShoppingContent_AccountsLinkResponse"); + } /** * Lists the sub-accounts in your Merchant Center account. * (accounts.listAccounts) @@ -144,26 +157,6 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse"); } - /** - * Updates a Merchant Center account. This method supports patch semantics. - * (accounts.patch) - * - * @param string $merchantId The ID of the managing account. If this parameter - * is not the same as accountId, then this account must be a multi-client - * account and accountId must be the ID of a sub-account of this account. - * @param string $accountId The ID of the account. - * @param Google_Service_ShoppingContent_Account $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Account - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account"); - } /** * Updates a Merchant Center account. (accounts.update) * @@ -173,8 +166,6 @@ class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Re * @param string $accountId The ID of the account. * @param Google_Service_ShoppingContent_Account $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Account */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php index 94f3ee71..a5c56c37 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php @@ -26,6 +26,7 @@ class Google_Service_ShoppingContent_Resource_Accountstatuses extends Google_Service_Resource { /** + * Retrieves multiple Merchant Center account statuses in a single request. * (accountstatuses.custombatch) * * @param Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody @@ -39,7 +40,8 @@ class Google_Service_ShoppingContent_Resource_Accountstatuses extends Google_Ser return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); } /** - * Retrieves the status of a Merchant Center account. (accountstatuses.get) + * Retrieves the status of a Merchant Center account. Multi-client accounts can + * only call this method for sub-accounts. (accountstatuses.get) * * @param string $merchantId The ID of the managing account. If this parameter * is not the same as accountId, then this account must be a multi-client diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php index 1a62aeda..d83b702f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php @@ -31,8 +31,6 @@ class Google_Service_ShoppingContent_Resource_Accounttax extends Google_Service_ * * @param Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array()) @@ -77,27 +75,6 @@ class Google_Service_ShoppingContent_Resource_Accounttax extends Google_Service_ $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse"); } - /** - * Updates the tax settings of the account. This method supports patch - * semantics. (accounttax.patch) - * - * @param string $merchantId The ID of the managing account. If this parameter - * is not the same as accountId, then this account must be a multi-client - * account and accountId must be the ID of a sub-account of this account. - * @param string $accountId The ID of the account for which to get/update - * account tax settings. - * @param Google_Service_ShoppingContent_AccountTax $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_AccountTax - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); - } /** * Updates the tax settings of the account. (accounttax.update) * @@ -108,8 +85,6 @@ class Google_Service_ShoppingContent_Resource_Accounttax extends Google_Service_ * account tax settings. * @param Google_Service_ShoppingContent_AccountTax $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_AccountTax */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php index 5aa38ce9..24a73ac5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php @@ -30,8 +30,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R * * @param Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array()) @@ -48,8 +46,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R * This account cannot be a multi-client account. * @param string $datafeedId The ID of the datafeed. * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. */ public function delete($merchantId, $datafeedId, $optParams = array()) { @@ -65,8 +61,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R * This account cannot be a multi-client account. * @param string $datafeedId The ID of the datafeed to be fetched. * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_DatafeedsFetchNowResponse */ public function fetchnow($merchantId, $datafeedId, $optParams = array()) @@ -99,8 +93,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R * This account cannot be a multi-client account. * @param Google_Service_ShoppingContent_Datafeed $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Datafeed */ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) @@ -128,25 +120,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse"); } - /** - * Updates a datafeed configuration of your Merchant Center account. This method - * supports patch semantics. (datafeeds.patch) - * - * @param string $merchantId The ID of the account that manages the datafeed. - * This account cannot be a multi-client account. - * @param string $datafeedId The ID of the datafeed. - * @param Google_Service_ShoppingContent_Datafeed $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_Datafeed - */ - public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed"); - } /** * Updates a datafeed configuration of your Merchant Center account. * (datafeeds.update) @@ -156,8 +129,6 @@ class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_R * @param string $datafeedId The ID of the datafeed. * @param Google_Service_ShoppingContent_Datafeed $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Datafeed */ public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php deleted file mode 100644 index cc4247e7..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php +++ /dev/null @@ -1,68 +0,0 @@ - - * $contentService = new Google_Service_ShoppingContent(...); - * $inventory = $contentService->inventory; - * - */ -class Google_Service_ShoppingContent_Resource_Inventory extends Google_Service_Resource -{ - /** - * Updates price and availability for multiple products or stores in a single - * request. This operation does not update the expiration date of the products. - * (inventory.custombatch) - * - * @param Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse - */ - public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); - } - /** - * Updates price and availability of a product in your Merchant Center account. - * (inventory.set) - * - * @param string $merchantId The ID of the account that contains the product. - * This account cannot be a multi-client account. - * @param string $storeCode The code of the store for which to update price and - * availability. Use online to update price and availability of an online - * product. - * @param string $productId The REST id of the product for which to update price - * and availability. - * @param Google_Service_ShoppingContent_InventorySetRequest $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_InventorySetResponse - */ - public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Liasettings.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Liasettings.php index a35dd569..c090cbdc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Liasettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Liasettings.php @@ -31,8 +31,6 @@ class Google_Service_ShoppingContent_Resource_Liasettings extends Google_Service * * @param Google_Service_ShoppingContent_LiasettingsCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_LiasettingsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_LiasettingsCustomBatchRequest $postBody, $optParams = array()) @@ -96,25 +94,17 @@ class Google_Service_ShoppingContent_Resource_Liasettings extends Google_Service return $this->call('list', array($params), "Google_Service_ShoppingContent_LiasettingsListResponse"); } /** - * Updates the LIA settings of the account. This method supports patch - * semantics. (liasettings.patch) + * Retrieves the list of POS data providers that have active settings for the + * all eiligible countries. (liasettings.listposdataproviders) * - * @param string $merchantId The ID of the managing account. If this parameter - * is not the same as accountId, then this account must be a multi-client - * account and accountId must be the ID of a sub-account of this account. - * @param string $accountId The ID of the account for which to get or update LIA - * settings. - * @param Google_Service_ShoppingContent_LiaSettings $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_LiaSettings + * @return Google_Service_ShoppingContent_LiasettingsListPosDataProvidersResponse */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_LiaSettings $postBody, $optParams = array()) + public function listposdataproviders($optParams = array()) { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array(); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_LiaSettings"); + return $this->call('listposdataproviders', array($params), "Google_Service_ShoppingContent_LiasettingsListPosDataProvidersResponse"); } /** * Requests access to a specified Google My Business account. @@ -125,14 +115,13 @@ class Google_Service_ShoppingContent_Resource_Liasettings extends Google_Service * account and accountId must be the ID of a sub-account of this account. * @param string $accountId The ID of the account for which GMB access is * requested. + * @param string $gmbEmail The email of the Google My Business account. * @param array $optParams Optional parameters. - * - * @opt_param string gmbEmail The email of the Google My Business account. * @return Google_Service_ShoppingContent_LiasettingsRequestGmbAccessResponse */ - public function requestgmbaccess($merchantId, $accountId, $optParams = array()) + public function requestgmbaccess($merchantId, $accountId, $gmbEmail, $optParams = array()) { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'gmbEmail' => $gmbEmail); $params = array_merge($params, $optParams); return $this->call('requestgmbaccess', array($params), "Google_Service_ShoppingContent_LiasettingsRequestGmbAccessResponse"); } @@ -165,23 +154,45 @@ class Google_Service_ShoppingContent_Resource_Liasettings extends Google_Service * account and accountId must be the ID of a sub-account of this account. * @param string $accountId The ID of the account that manages the order. This * cannot be a multi-client account. + * @param string $contactEmail The email of the inventory verification contact. + * @param string $contactName The name of the inventory verification contact. + * @param string $country The country for which inventory verification is + * requested. + * @param string $language The language for which inventory verification is + * requested. * @param array $optParams Optional parameters. - * - * @opt_param string contactEmail The email of the inventory verification - * contact. - * @opt_param string contactName The name of the inventory verification contact. - * @opt_param string country The country for which inventory verification is - * requested. - * @opt_param string language The language for which inventory verification is - * requested. * @return Google_Service_ShoppingContent_LiasettingsSetInventoryVerificationContactResponse */ - public function setinventoryverificationcontact($merchantId, $accountId, $optParams = array()) + public function setinventoryverificationcontact($merchantId, $accountId, $contactEmail, $contactName, $country, $language, $optParams = array()) { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'contactEmail' => $contactEmail, 'contactName' => $contactName, 'country' => $country, 'language' => $language); $params = array_merge($params, $optParams); return $this->call('setinventoryverificationcontact', array($params), "Google_Service_ShoppingContent_LiasettingsSetInventoryVerificationContactResponse"); } + /** + * Sets the POS data provider for the specified country. + * (liasettings.setposdataprovider) + * + * @param string $merchantId The ID of the managing account. If this parameter + * is not the same as accountId, then this account must be a multi-client + * account and accountId must be the ID of a sub-account of this account. + * @param string $accountId The ID of the account for which to retrieve + * accessible Google My Business accounts. + * @param string $country The country for which the POS data provider is + * selected. + * @param array $optParams Optional parameters. + * + * @opt_param string posDataProviderId The ID of POS data provider. + * @opt_param string posExternalAccountId The account ID by which this merchant + * is known to the POS data provider. + * @return Google_Service_ShoppingContent_LiasettingsSetPosDataProviderResponse + */ + public function setposdataprovider($merchantId, $accountId, $country, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'country' => $country); + $params = array_merge($params, $optParams); + return $this->call('setposdataprovider', array($params), "Google_Service_ShoppingContent_LiasettingsSetPosDataProviderResponse"); + } /** * Updates the LIA settings of the account. (liasettings.update) * @@ -192,8 +203,6 @@ class Google_Service_ShoppingContent_Resource_Liasettings extends Google_Service * settings. * @param Google_Service_ShoppingContent_LiaSettings $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_LiaSettings */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_LiaSettings $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderinvoices.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderinvoices.php new file mode 100644 index 00000000..be75a87b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderinvoices.php @@ -0,0 +1,65 @@ + + * $contentService = new Google_Service_ShoppingContent(...); + * $orderinvoices = $contentService->orderinvoices; + * + */ +class Google_Service_ShoppingContent_Resource_Orderinvoices extends Google_Service_Resource +{ + /** + * Creates a charge invoice for a shipment group, and triggers a charge capture + * for non-facilitated payment orders. (orderinvoices.createchargeinvoice) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $orderId The ID of the order. + * @param Google_Service_ShoppingContent_OrderinvoicesCreateChargeInvoiceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrderinvoicesCreateChargeInvoiceResponse + */ + public function createchargeinvoice($merchantId, $orderId, Google_Service_ShoppingContent_OrderinvoicesCreateChargeInvoiceRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createchargeinvoice', array($params), "Google_Service_ShoppingContent_OrderinvoicesCreateChargeInvoiceResponse"); + } + /** + * Creates a refund invoice for one or more shipment groups, and triggers a + * refund for non-facilitated payment orders. This can only be used for line + * items that have previously been charged using createChargeInvoice. All + * amounts (except for the summary) are incremental with respect to the previous + * invoice. (orderinvoices.createrefundinvoice) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $orderId The ID of the order. + * @param Google_Service_ShoppingContent_OrderinvoicesCreateRefundInvoiceRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrderinvoicesCreateRefundInvoiceResponse + */ + public function createrefundinvoice($merchantId, $orderId, Google_Service_ShoppingContent_OrderinvoicesCreateRefundInvoiceRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('createrefundinvoice', array($params), "Google_Service_ShoppingContent_OrderinvoicesCreateRefundInvoiceResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreports.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreports.php new file mode 100644 index 00000000..e4f7eb65 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreports.php @@ -0,0 +1,76 @@ + + * $contentService = new Google_Service_ShoppingContent(...); + * $orderreports = $contentService->orderreports; + * + */ +class Google_Service_ShoppingContent_Resource_Orderreports extends Google_Service_Resource +{ + /** + * Retrieves a report for disbursements from your Merchant Center account. + * (orderreports.listdisbursements) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $disbursementStartDate The first date which disbursements + * occurred. In ISO 8601 format. + * @param array $optParams Optional parameters. + * + * @opt_param string disbursementEndDate The last date which disbursements + * occurred. In ISO 8601 format. Default: current date. + * @opt_param string maxResults The maximum number of disbursements to return in + * the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @return Google_Service_ShoppingContent_OrderreportsListDisbursementsResponse + */ + public function listdisbursements($merchantId, $disbursementStartDate, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'disbursementStartDate' => $disbursementStartDate); + $params = array_merge($params, $optParams); + return $this->call('listdisbursements', array($params), "Google_Service_ShoppingContent_OrderreportsListDisbursementsResponse"); + } + /** + * Retrieves a list of transactions for a disbursement from your Merchant Center + * account. (orderreports.listtransactions) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $disbursementId The Google-provided ID of the disbursement + * (found in Wallet). + * @param string $transactionStartDate The first date in which transaction + * occurred. In ISO 8601 format. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maximum number of disbursements to return in + * the response, used for paging. + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string transactionEndDate The last date in which transaction + * occurred. In ISO 8601 format. Default: current date. + * @return Google_Service_ShoppingContent_OrderreportsListTransactionsResponse + */ + public function listtransactions($merchantId, $disbursementId, $transactionStartDate, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'disbursementId' => $disbursementId, 'transactionStartDate' => $transactionStartDate); + $params = array_merge($params, $optParams); + return $this->call('listtransactions', array($params), "Google_Service_ShoppingContent_OrderreportsListTransactionsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreturns.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreturns.php new file mode 100644 index 00000000..389fcd9a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orderreturns.php @@ -0,0 +1,69 @@ + + * $contentService = new Google_Service_ShoppingContent(...); + * $orderreturns = $contentService->orderreturns; + * + */ +class Google_Service_ShoppingContent_Resource_Orderreturns extends Google_Service_Resource +{ + /** + * Retrieves an order return from your Merchant Center account. + * (orderreturns.get) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $returnId Merchant order return ID generated by Google. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_MerchantOrderReturn + */ + public function get($merchantId, $returnId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'returnId' => $returnId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_MerchantOrderReturn"); + } + /** + * Lists order returns in your Merchant Center account. + * (orderreturns.listOrderreturns) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param array $optParams Optional parameters. + * + * @opt_param string createdEndDate Obtains order returns created before this + * date (inclusively), in ISO 8601 format. + * @opt_param string createdStartDate Obtains order returns created after this + * date (inclusively), in ISO 8601 format. + * @opt_param string maxResults The maximum number of order returns to return in + * the response, used for paging. The default value is 25 returns per page, and + * the maximum allowed value is 250 returns per page. + * @opt_param string orderBy Return the results in the specified order. + * @opt_param string pageToken The token returned by the previous request. + * @return Google_Service_ShoppingContent_OrderreturnsListResponse + */ + public function listOrderreturns($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_OrderreturnsListResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php index 647246a6..8bc7c5a8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php @@ -89,6 +89,23 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso $params = array_merge($params, $optParams); return $this->call('cancellineitem', array($params), "Google_Service_ShoppingContent_OrdersCancelLineItemResponse"); } + /** + * Sandbox only. Cancels a test order for customer-initiated cancellation. + * (orders.canceltestorderbycustomer) + * + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $orderId The ID of the test order to cancel. + * @param Google_Service_ShoppingContent_OrdersCancelTestOrderByCustomerRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_OrdersCancelTestOrderByCustomerResponse + */ + public function canceltestorderbycustomer($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelTestOrderByCustomerRequest $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('canceltestorderbycustomer', array($params), "Google_Service_ShoppingContent_OrdersCancelTestOrderByCustomerResponse"); + } /** * Sandbox only. Creates a test order. (orders.createtestorder) * @@ -105,18 +122,20 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso return $this->call('createtestorder', array($params), "Google_Service_ShoppingContent_OrdersCreateTestOrderResponse"); } /** - * Retrieves or modifies multiple orders in a single request. - * (orders.custombatch) + * Sandbox only. Creates a test return. (orders.createtestreturn) * - * @param Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody + * @param string $merchantId The ID of the account that manages the order. This + * cannot be a multi-client account. + * @param string $orderId The ID of the order. + * @param Google_Service_ShoppingContent_OrdersCreateTestReturnRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersCustomBatchResponse + * @return Google_Service_ShoppingContent_OrdersCreateTestReturnResponse */ - public function custombatch(Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody, $optParams = array()) + public function createtestreturn($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCreateTestReturnRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_OrdersCustomBatchResponse"); + return $this->call('createtestreturn', array($params), "Google_Service_ShoppingContent_OrdersCreateTestReturnResponse"); } /** * Retrieves an order from your Merchant Center account. (orders.get) @@ -156,6 +175,9 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso * This cannot be a multi-client account. * @param string $templateName The name of the template to retrieve. * @param array $optParams Optional parameters. + * + * @opt_param string country The country of the template to retrieve. Defaults + * to US. * @return Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse */ public function gettestordertemplate($merchantId, $templateName, $optParams = array()) @@ -165,7 +187,8 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso return $this->call('gettestordertemplate', array($params), "Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse"); } /** - * Notifies that item return and refund was handled directly in store. + * Notifies that item return and refund was handled directly by merchant outside + * of Google payments processing (e.g. cash refund done in store). * (orders.instorerefundlineitem) * * @param string $merchantId The ID of the account that manages the order. This @@ -221,22 +244,6 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_OrdersListResponse"); } - /** - * Refund a portion of the order, up to the full amount paid. (orders.refund) - * - * @param string $merchantId The ID of the account that manages the order. This - * cannot be a multi-client account. - * @param string $orderId The ID of the order to refund. - * @param Google_Service_ShoppingContent_OrdersRefundRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersRefundResponse - */ - public function refund($merchantId, $orderId, Google_Service_ShoppingContent_OrdersRefundRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('refund', array($params), "Google_Service_ShoppingContent_OrdersRefundResponse"); - } /** * Rejects return on an line item. (orders.rejectreturnlineitem) * @@ -253,22 +260,6 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso $params = array_merge($params, $optParams); return $this->call('rejectreturnlineitem', array($params), "Google_Service_ShoppingContent_OrdersRejectReturnLineItemResponse"); } - /** - * Returns a line item. (orders.returnlineitem) - * - * @param string $merchantId The ID of the account that manages the order. This - * cannot be a multi-client account. - * @param string $orderId The ID of the order. - * @param Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_ShoppingContent_OrdersReturnLineItemResponse - */ - public function returnlineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('returnlineitem', array($params), "Google_Service_ShoppingContent_OrdersReturnLineItemResponse"); - } /** * Returns and refunds a line item. Note that this method can only be called on * fully shipped orders. (orders.returnrefundlineitem) @@ -287,8 +278,11 @@ class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Reso return $this->call('returnrefundlineitem', array($params), "Google_Service_ShoppingContent_OrdersReturnRefundLineItemResponse"); } /** - * Sets (overrides) merchant provided annotations on the line item. - * (orders.setlineitemmetadata) + * Sets (or overrides if it already exists) merchant provided annotations in the + * form of key-value pairs. A common use case would be to supply us with + * additional structured information about a line item that cannot be provided + * via other methods. Submitted key-value pairs can be retrieved as part of the + * orders resource. (orders.setlineitemmetadata) * * @param string $merchantId The ID of the account that manages the order. This * cannot be a multi-client account. diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Pos.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Pos.php index ee6f071e..b7140be5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Pos.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Pos.php @@ -30,8 +30,6 @@ class Google_Service_ShoppingContent_Resource_Pos extends Google_Service_Resourc * * @param Google_Service_ShoppingContent_PosCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_PosCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_PosCustomBatchRequest $postBody, $optParams = array()) @@ -47,8 +45,6 @@ class Google_Service_ShoppingContent_Resource_Pos extends Google_Service_Resourc * @param string $targetMerchantId The ID of the target merchant. * @param string $storeCode A store code that is unique per merchant. * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. */ public function delete($merchantId, $targetMerchantId, $storeCode, $optParams = array()) { @@ -78,8 +74,6 @@ class Google_Service_ShoppingContent_Resource_Pos extends Google_Service_Resourc * @param string $targetMerchantId The ID of the target merchant. * @param Google_Service_ShoppingContent_PosStore $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_PosStore */ public function insert($merchantId, $targetMerchantId, Google_Service_ShoppingContent_PosStore $postBody, $optParams = array()) @@ -95,8 +89,6 @@ class Google_Service_ShoppingContent_Resource_Pos extends Google_Service_Resourc * @param string $targetMerchantId The ID of the target merchant. * @param Google_Service_ShoppingContent_PosInventoryRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_PosInventoryResponse */ public function inventory($merchantId, $targetMerchantId, Google_Service_ShoppingContent_PosInventoryRequest $postBody, $optParams = array()) @@ -126,8 +118,6 @@ class Google_Service_ShoppingContent_Resource_Pos extends Google_Service_Resourc * @param string $targetMerchantId The ID of the target merchant. * @param Google_Service_ShoppingContent_PosSaleRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_PosSaleResponse */ public function sale($merchantId, $targetMerchantId, Google_Service_ShoppingContent_PosSaleRequest $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php index dd50eb0e..5c6888ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php @@ -31,8 +31,6 @@ class Google_Service_ShoppingContent_Resource_Products extends Google_Service_Re * * @param Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array()) @@ -48,8 +46,6 @@ class Google_Service_ShoppingContent_Resource_Products extends Google_Service_Re * This account cannot be a multi-client account. * @param string $productId The REST id of the product. * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. */ public function delete($merchantId, $productId, $optParams = array()) { @@ -81,8 +77,6 @@ class Google_Service_ShoppingContent_Resource_Products extends Google_Service_Re * This account cannot be a multi-client account. * @param Google_Service_ShoppingContent_Product $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_Product */ public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array()) @@ -98,9 +92,6 @@ class Google_Service_ShoppingContent_Resource_Products extends Google_Service_Re * This account cannot be a multi-client account. * @param array $optParams Optional parameters. * - * @opt_param bool includeInvalidInsertedItems Flag to include the invalid - * inserted items in the result of the list request. By default the invalid - * items are not shown (the default value is false). * @opt_param string maxResults The maximum number of products to return in the * response, used for paging. * @opt_param string pageToken The token returned by the previous request. diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php index 9a79fff8..bf3db1f4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php @@ -31,9 +31,6 @@ class Google_Service_ShoppingContent_Resource_Productstatuses extends Google_Ser * * @param Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool includeAttributes Flag to include full product data in the - * results of this request. The default value is false. * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) @@ -54,8 +51,6 @@ class Google_Service_ShoppingContent_Resource_Productstatuses extends Google_Ser * @opt_param string destinations If set, only issues for the specified * destinations are returned, otherwise only issues for the Shopping * destination. - * @opt_param bool includeAttributes Flag to include full product data in the - * result of this get request. The default value is false. * @return Google_Service_ShoppingContent_ProductStatus */ public function get($merchantId, $productId, $optParams = array()) @@ -75,11 +70,6 @@ class Google_Service_ShoppingContent_Resource_Productstatuses extends Google_Ser * @opt_param string destinations If set, only issues for the specified * destinations are returned, otherwise only issues for the Shopping * destination. - * @opt_param bool includeAttributes Flag to include full product data in the - * results of the list request. The default value is false. - * @opt_param bool includeInvalidInsertedItems Flag to include the invalid - * inserted items in the result of the list request. By default the invalid - * items are not shown (the default value is false). * @opt_param string maxResults The maximum number of product statuses to return * in the response, used for paging. * @opt_param string pageToken The token returned by the previous request. diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Regionalinventory.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Regionalinventory.php new file mode 100644 index 00000000..77945460 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Regionalinventory.php @@ -0,0 +1,61 @@ + + * $contentService = new Google_Service_ShoppingContent(...); + * $regionalinventory = $contentService->regionalinventory; + * + */ +class Google_Service_ShoppingContent_Resource_Regionalinventory extends Google_Service_Resource +{ + /** + * Updates regional inventory for multiple products or regions in a single + * request. (regionalinventory.custombatch) + * + * @param Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_RegionalinventoryCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_RegionalinventoryCustomBatchResponse"); + } + /** + * Update the regional inventory of a product in your Merchant Center account. + * If a regional inventory with the same region ID already exists, this method + * updates that entry. (regionalinventory.insert) + * + * @param string $merchantId The ID of the account that contains the product. + * This account cannot be a multi-client account. + * @param string $productId The REST id of the product for which to update the + * regional inventory. + * @param Google_Service_ShoppingContent_RegionalInventory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_RegionalInventory + */ + public function insert($merchantId, $productId, Google_Service_ShoppingContent_RegionalInventory $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_ShoppingContent_RegionalInventory"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php index 744fda8b..ba42b1fa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php @@ -31,8 +31,6 @@ class Google_Service_ShoppingContent_Resource_Shippingsettings extends Google_Se * * @param Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequest $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponse */ public function custombatch(Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequest $postBody, $optParams = array()) @@ -107,27 +105,6 @@ class Google_Service_ShoppingContent_Resource_Shippingsettings extends Google_Se $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_ShoppingContent_ShippingsettingsListResponse"); } - /** - * Updates the shipping settings of the account. This method supports patch - * semantics. (shippingsettings.patch) - * - * @param string $merchantId The ID of the managing account. If this parameter - * is not the same as accountId, then this account must be a multi-client - * account and accountId must be the ID of a sub-account of this account. - * @param string $accountId The ID of the account for which to get/update - * shipping settings. - * @param Google_Service_ShoppingContent_ShippingSettings $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. - * @return Google_Service_ShoppingContent_ShippingSettings - */ - public function patch($merchantId, $accountId, Google_Service_ShoppingContent_ShippingSettings $postBody, $optParams = array()) - { - $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_ShoppingContent_ShippingSettings"); - } /** * Updates the shipping settings of the account. (shippingsettings.update) * @@ -138,8 +115,6 @@ class Google_Service_ShoppingContent_Resource_Shippingsettings extends Google_Se * shipping settings. * @param Google_Service_ShoppingContent_ShippingSettings $postBody * @param array $optParams Optional parameters. - * - * @opt_param bool dryRun Flag to run the request in dry-run mode. * @return Google_Service_ShoppingContent_ShippingSettings */ public function update($merchantId, $accountId, Google_Service_ShoppingContent_ShippingSettings $postBody, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ReturnShipment.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ReturnShipment.php new file mode 100644 index 00000000..a4db7456 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ReturnShipment.php @@ -0,0 +1,92 @@ +creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } + public function setDeliveryDate($deliveryDate) + { + $this->deliveryDate = $deliveryDate; + } + public function getDeliveryDate() + { + return $this->deliveryDate; + } + public function setReturnMethodType($returnMethodType) + { + $this->returnMethodType = $returnMethodType; + } + public function getReturnMethodType() + { + return $this->returnMethodType; + } + public function setShipmentId($shipmentId) + { + $this->shipmentId = $shipmentId; + } + public function getShipmentId() + { + return $this->shipmentId; + } + /** + * @param Google_Service_ShoppingContent_ShipmentTrackingInfo + */ + public function setShipmentTrackingInfos($shipmentTrackingInfos) + { + $this->shipmentTrackingInfos = $shipmentTrackingInfos; + } + /** + * @return Google_Service_ShoppingContent_ShipmentTrackingInfo + */ + public function getShipmentTrackingInfos() + { + return $this->shipmentTrackingInfos; + } + public function setShippingDate($shippingDate) + { + $this->shippingDate = $shippingDate; + } + public function getShippingDate() + { + return $this->shippingDate; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoice.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoice.php new file mode 100644 index 00000000..8d11873b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoice.php @@ -0,0 +1,63 @@ +invoiceSummary = $invoiceSummary; + } + /** + * @return Google_Service_ShoppingContent_InvoiceSummary + */ + public function getInvoiceSummary() + { + return $this->invoiceSummary; + } + /** + * @param Google_Service_ShoppingContent_ShipmentInvoiceLineItemInvoice + */ + public function setLineItemInvoices($lineItemInvoices) + { + $this->lineItemInvoices = $lineItemInvoices; + } + /** + * @return Google_Service_ShoppingContent_ShipmentInvoiceLineItemInvoice + */ + public function getLineItemInvoices() + { + return $this->lineItemInvoices; + } + public function setShipmentGroupId($shipmentGroupId) + { + $this->shipmentGroupId = $shipmentGroupId; + } + public function getShipmentGroupId() + { + return $this->shipmentGroupId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntrySetLineItemMetadata.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoiceLineItemInvoice.php similarity index 56% rename from vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntrySetLineItemMetadata.php rename to vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoiceLineItemInvoice.php index 280328bd..2160b1ac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntrySetLineItemMetadata.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentInvoiceLineItemInvoice.php @@ -15,28 +15,15 @@ * the License. */ -class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntrySetLineItemMetadata extends Google_Collection +class Google_Service_ShoppingContent_ShipmentInvoiceLineItemInvoice extends Google_Collection { - protected $collection_key = 'annotations'; - protected $annotationsType = 'Google_Service_ShoppingContent_OrderMerchantProvidedAnnotation'; - protected $annotationsDataType = 'array'; + protected $collection_key = 'shipmentUnitIds'; public $lineItemId; public $productId; + public $shipmentUnitIds; + protected $unitInvoiceType = 'Google_Service_ShoppingContent_UnitInvoice'; + protected $unitInvoiceDataType = ''; - /** - * @param Google_Service_ShoppingContent_OrderMerchantProvidedAnnotation - */ - public function setAnnotations($annotations) - { - $this->annotations = $annotations; - } - /** - * @return Google_Service_ShoppingContent_OrderMerchantProvidedAnnotation - */ - public function getAnnotations() - { - return $this->annotations; - } public function setLineItemId($lineItemId) { $this->lineItemId = $lineItemId; @@ -53,4 +40,26 @@ class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntrySetLineItemMet { return $this->productId; } + public function setShipmentUnitIds($shipmentUnitIds) + { + $this->shipmentUnitIds = $shipmentUnitIds; + } + public function getShipmentUnitIds() + { + return $this->shipmentUnitIds; + } + /** + * @param Google_Service_ShoppingContent_UnitInvoice + */ + public function setUnitInvoice(Google_Service_ShoppingContent_UnitInvoice $unitInvoice) + { + $this->unitInvoice = $unitInvoice; + } + /** + * @return Google_Service_ShoppingContent_UnitInvoice + */ + public function getUnitInvoice() + { + return $this->unitInvoice; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentTrackingInfo.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentTrackingInfo.php new file mode 100644 index 00000000..294559da --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/ShipmentTrackingInfo.php @@ -0,0 +1,39 @@ +carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setTrackingNumber($trackingNumber) + { + $this->trackingNumber = $trackingNumber; + } + public function getTrackingNumber() + { + return $this->trackingNumber; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php index 770035af..08586bd8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php @@ -20,19 +20,17 @@ class Google_Service_ShoppingContent_TestOrder extends Google_Collection protected $collection_key = 'promotions'; protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer'; protected $customerDataType = ''; + public $enableOrderinvoices; public $kind; protected $lineItemsType = 'Google_Service_ShoppingContent_TestOrderLineItem'; protected $lineItemsDataType = 'array'; public $notificationMode; - protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod'; - protected $paymentMethodDataType = ''; + public $predefinedBillingAddress; public $predefinedDeliveryAddress; protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion'; protected $promotionsDataType = 'array'; protected $shippingCostType = 'Google_Service_ShoppingContent_Price'; protected $shippingCostDataType = ''; - protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price'; - protected $shippingCostTaxDataType = ''; public $shippingOption; /** @@ -49,6 +47,14 @@ class Google_Service_ShoppingContent_TestOrder extends Google_Collection { return $this->customer; } + public function setEnableOrderinvoices($enableOrderinvoices) + { + $this->enableOrderinvoices = $enableOrderinvoices; + } + public function getEnableOrderinvoices() + { + return $this->enableOrderinvoices; + } public function setKind($kind) { $this->kind = $kind; @@ -79,19 +85,13 @@ class Google_Service_ShoppingContent_TestOrder extends Google_Collection { return $this->notificationMode; } - /** - * @param Google_Service_ShoppingContent_TestOrderPaymentMethod - */ - public function setPaymentMethod(Google_Service_ShoppingContent_TestOrderPaymentMethod $paymentMethod) + public function setPredefinedBillingAddress($predefinedBillingAddress) { - $this->paymentMethod = $paymentMethod; + $this->predefinedBillingAddress = $predefinedBillingAddress; } - /** - * @return Google_Service_ShoppingContent_TestOrderPaymentMethod - */ - public function getPaymentMethod() + public function getPredefinedBillingAddress() { - return $this->paymentMethod; + return $this->predefinedBillingAddress; } public function setPredefinedDeliveryAddress($predefinedDeliveryAddress) { @@ -129,20 +129,6 @@ class Google_Service_ShoppingContent_TestOrder extends Google_Collection { return $this->shippingCost; } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax) - { - $this->shippingCostTax = $shippingCostTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getShippingCostTax() - { - return $this->shippingCostTax; - } public function setShippingOption($shippingOption) { $this->shippingOption = $shippingOption; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php index 5afa9fae..fcd31a80 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php @@ -18,7 +18,6 @@ class Google_Service_ShoppingContent_TestOrderCustomer extends Google_Model { public $email; - public $explicitMarketingPreference; public $fullName; protected $marketingRightsInfoType = 'Google_Service_ShoppingContent_TestOrderCustomerMarketingRightsInfo'; protected $marketingRightsInfoDataType = ''; @@ -31,14 +30,6 @@ class Google_Service_ShoppingContent_TestOrderCustomer extends Google_Model { return $this->email; } - public function setExplicitMarketingPreference($explicitMarketingPreference) - { - $this->explicitMarketingPreference = $explicitMarketingPreference; - } - public function getExplicitMarketingPreference() - { - return $this->explicitMarketingPreference; - } public function setFullName($fullName) { $this->fullName = $fullName; diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php index 40dcd1bf..f4cef403 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php @@ -24,8 +24,6 @@ class Google_Service_ShoppingContent_TestOrderLineItem extends Google_Model protected $returnInfoDataType = ''; protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails'; protected $shippingDetailsDataType = ''; - protected $unitTaxType = 'Google_Service_ShoppingContent_Price'; - protected $unitTaxDataType = ''; /** * @param Google_Service_ShoppingContent_TestOrderLineItemProduct @@ -77,18 +75,4 @@ class Google_Service_ShoppingContent_TestOrderLineItem extends Google_Model { return $this->shippingDetails; } - /** - * @param Google_Service_ShoppingContent_Price - */ - public function setUnitTax(Google_Service_ShoppingContent_Price $unitTax) - { - $this->unitTax = $unitTax; - } - /** - * @return Google_Service_ShoppingContent_Price - */ - public function getUnitTax() - { - return $this->unitTax; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php deleted file mode 100644 index 46258d30..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -expirationMonth = $expirationMonth; - } - public function getExpirationMonth() - { - return $this->expirationMonth; - } - public function setExpirationYear($expirationYear) - { - $this->expirationYear = $expirationYear; - } - public function getExpirationYear() - { - return $this->expirationYear; - } - public function setLastFourDigits($lastFourDigits) - { - $this->lastFourDigits = $lastFourDigits; - } - public function getLastFourDigits() - { - return $this->lastFourDigits; - } - public function setPredefinedBillingAddress($predefinedBillingAddress) - { - $this->predefinedBillingAddress = $predefinedBillingAddress; - } - public function getPredefinedBillingAddress() - { - return $this->predefinedBillingAddress; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTable.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTable.php new file mode 100644 index 00000000..d7a0ac88 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTable.php @@ -0,0 +1,56 @@ +postalCodeGroupNames = $postalCodeGroupNames; + } + public function getPostalCodeGroupNames() + { + return $this->postalCodeGroupNames; + } + /** + * @param Google_Service_ShoppingContent_TransitTableTransitTimeRow + */ + public function setRows($rows) + { + $this->rows = $rows; + } + /** + * @return Google_Service_ShoppingContent_TransitTableTransitTimeRow + */ + public function getRows() + { + return $this->rows; + } + public function setTransitTimeLabels($transitTimeLabels) + { + $this->transitTimeLabels = $transitTimeLabels; + } + public function getTransitTimeLabels() + { + return $this->transitTimeLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRow.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRow.php new file mode 100644 index 00000000..5ddf2b44 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRow.php @@ -0,0 +1,38 @@ +values = $values; + } + /** + * @return Google_Service_ShoppingContent_TransitTableTransitTimeRowTransitTimeValue + */ + public function getValues() + { + return $this->values; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRowTransitTimeValue.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRowTransitTimeValue.php new file mode 100644 index 00000000..d9ec138a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/TransitTableTransitTimeRowTransitTimeValue.php @@ -0,0 +1,39 @@ +maxTransitTimeInDays = $maxTransitTimeInDays; + } + public function getMaxTransitTimeInDays() + { + return $this->maxTransitTimeInDays; + } + public function setMinTransitTimeInDays($minTransitTimeInDays) + { + $this->minTransitTimeInDays = $minTransitTimeInDays; + } + public function getMinTransitTimeInDays() + { + return $this->minTransitTimeInDays; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoice.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoice.php new file mode 100644 index 00000000..bbabeb68 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoice.php @@ -0,0 +1,70 @@ +additionalCharges = $additionalCharges; + } + /** + * @return Google_Service_ShoppingContent_UnitInvoiceAdditionalCharge + */ + public function getAdditionalCharges() + { + return $this->additionalCharges; + } + /** + * @param Google_Service_ShoppingContent_Price + */ + public function setUnitPrice(Google_Service_ShoppingContent_Price $unitPrice) + { + $this->unitPrice = $unitPrice; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getUnitPrice() + { + return $this->unitPrice; + } + /** + * @param Google_Service_ShoppingContent_UnitInvoiceTaxLine + */ + public function setUnitPriceTaxes($unitPriceTaxes) + { + $this->unitPriceTaxes = $unitPriceTaxes; + } + /** + * @return Google_Service_ShoppingContent_UnitInvoiceTaxLine + */ + public function getUnitPriceTaxes() + { + return $this->unitPriceTaxes; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceAdditionalCharge.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceAdditionalCharge.php new file mode 100644 index 00000000..6edfa99d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceAdditionalCharge.php @@ -0,0 +1,46 @@ +additionalChargeAmount = $additionalChargeAmount; + } + /** + * @return Google_Service_ShoppingContent_Amount + */ + public function getAdditionalChargeAmount() + { + return $this->additionalChargeAmount; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceTaxLine.php b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceTaxLine.php new file mode 100644 index 00000000..0c4afef8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ShoppingContent/UnitInvoiceTaxLine.php @@ -0,0 +1,55 @@ +taxAmount = $taxAmount; + } + /** + * @return Google_Service_ShoppingContent_Price + */ + public function getTaxAmount() + { + return $this->taxAmount; + } + public function setTaxName($taxName) + { + $this->taxName = $taxName; + } + public function getTaxName() + { + return $this->taxName; + } + public function setTaxType($taxType) + { + $this->taxType = $taxType; + } + public function getTaxType() + { + return $this->taxType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/SiteVerification.php b/vendor/google/apiclient-services/src/Google/Service/SiteVerification.php index 21e05718..eb424c34 100644 --- a/vendor/google/apiclient-services/src/Google/Service/SiteVerification.php +++ b/vendor/google/apiclient-services/src/Google/Service/SiteVerification.php @@ -49,6 +49,7 @@ class Google_Service_SiteVerification extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'siteVerification/v1/'; + $this->batchPath = 'batch/siteVerification/v1'; $this->version = 'v1'; $this->serviceName = 'siteVerification'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides.php b/vendor/google/apiclient-services/src/Google/Service/Slides.php index 9a546032..93274d11 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides.php @@ -19,7 +19,7 @@ * Service definition for Slides (v1). * *
- * An API for creating and editing Google Slides presentations.
+ * Reads and writes Google Slides presentations. * ** For more information about this service, see the API @@ -30,13 +30,13 @@ */ class Google_Service_Slides extends Google_Service { - /** View and manage the files in your Google Drive. */ + /** See, edit, create, and delete all of your Google Drive files. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage Google Drive files and folders that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; - /** View the files in your Google Drive. */ + /** See and download all your Google Drive files. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; /** View and manage your Google Slides presentations. */ @@ -45,7 +45,7 @@ class Google_Service_Slides extends Google_Service /** View your Google Slides presentations. */ const PRESENTATIONS_READONLY = "https://www.googleapis.com/auth/presentations.readonly"; - /** View and manage your spreadsheets in Google Drive. */ + /** See, edit, create, and delete your spreadsheets in Google Drive. */ const SPREADSHEETS = "https://www.googleapis.com/auth/spreadsheets"; /** View your Google Spreadsheets. */ @@ -65,6 +65,7 @@ class Google_Service_Slides extends Google_Service parent::__construct($client); $this->rootUrl = 'https://slides.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'slides'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php b/vendor/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php index 05b7c181..69807dcf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php @@ -17,11 +17,20 @@ class Google_Service_Slides_CreateLineRequest extends Google_Model { + public $category; protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties'; protected $elementPropertiesDataType = ''; public $lineCategory; public $objectId; + public function setCategory($category) + { + $this->category = $category; + } + public function getCategory() + { + return $this->category; + } /** * @param Google_Service_Slides_PageElementProperties */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/Line.php b/vendor/google/apiclient-services/src/Google/Service/Slides/Line.php index f9590579..04f5e50b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides/Line.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/Line.php @@ -17,10 +17,19 @@ class Google_Service_Slides_Line extends Google_Model { + public $lineCategory; protected $linePropertiesType = 'Google_Service_Slides_LineProperties'; protected $linePropertiesDataType = ''; public $lineType; + public function setLineCategory($lineCategory) + { + $this->lineCategory = $lineCategory; + } + public function getLineCategory() + { + return $this->lineCategory; + } /** * @param Google_Service_Slides_LineProperties */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/LineConnection.php b/vendor/google/apiclient-services/src/Google/Service/Slides/LineConnection.php new file mode 100644 index 00000000..b7c3a540 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/LineConnection.php @@ -0,0 +1,39 @@ +connectedObjectId = $connectedObjectId; + } + public function getConnectedObjectId() + { + return $this->connectedObjectId; + } + public function setConnectionSiteIndex($connectionSiteIndex) + { + $this->connectionSiteIndex = $connectionSiteIndex; + } + public function getConnectionSiteIndex() + { + return $this->connectionSiteIndex; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/LineProperties.php b/vendor/google/apiclient-services/src/Google/Service/Slides/LineProperties.php index d2f4d48e..c86f0e95 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides/LineProperties.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/LineProperties.php @@ -19,11 +19,15 @@ class Google_Service_Slides_LineProperties extends Google_Model { public $dashStyle; public $endArrow; + protected $endConnectionType = 'Google_Service_Slides_LineConnection'; + protected $endConnectionDataType = ''; protected $lineFillType = 'Google_Service_Slides_LineFill'; protected $lineFillDataType = ''; protected $linkType = 'Google_Service_Slides_Link'; protected $linkDataType = ''; public $startArrow; + protected $startConnectionType = 'Google_Service_Slides_LineConnection'; + protected $startConnectionDataType = ''; protected $weightType = 'Google_Service_Slides_Dimension'; protected $weightDataType = ''; @@ -43,6 +47,20 @@ class Google_Service_Slides_LineProperties extends Google_Model { return $this->endArrow; } + /** + * @param Google_Service_Slides_LineConnection + */ + public function setEndConnection(Google_Service_Slides_LineConnection $endConnection) + { + $this->endConnection = $endConnection; + } + /** + * @return Google_Service_Slides_LineConnection + */ + public function getEndConnection() + { + return $this->endConnection; + } /** * @param Google_Service_Slides_LineFill */ @@ -79,6 +97,20 @@ class Google_Service_Slides_LineProperties extends Google_Model { return $this->startArrow; } + /** + * @param Google_Service_Slides_LineConnection + */ + public function setStartConnection(Google_Service_Slides_LineConnection $startConnection) + { + $this->startConnection = $startConnection; + } + /** + * @return Google_Service_Slides_LineConnection + */ + public function getStartConnection() + { + return $this->startConnection; + } /** * @param Google_Service_Slides_Dimension */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/Request.php b/vendor/google/apiclient-services/src/Google/Service/Slides/Request.php index ff304aa7..573a99e9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides/Request.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/Request.php @@ -65,18 +65,24 @@ class Google_Service_Slides_Request extends Google_Model protected $replaceAllTextDataType = ''; protected $replaceImageType = 'Google_Service_Slides_ReplaceImageRequest'; protected $replaceImageDataType = ''; + protected $rerouteLineType = 'Google_Service_Slides_RerouteLineRequest'; + protected $rerouteLineDataType = ''; protected $ungroupObjectsType = 'Google_Service_Slides_UngroupObjectsRequest'; protected $ungroupObjectsDataType = ''; protected $unmergeTableCellsType = 'Google_Service_Slides_UnmergeTableCellsRequest'; protected $unmergeTableCellsDataType = ''; protected $updateImagePropertiesType = 'Google_Service_Slides_UpdateImagePropertiesRequest'; protected $updateImagePropertiesDataType = ''; + protected $updateLineCategoryType = 'Google_Service_Slides_UpdateLineCategoryRequest'; + protected $updateLineCategoryDataType = ''; protected $updateLinePropertiesType = 'Google_Service_Slides_UpdateLinePropertiesRequest'; protected $updateLinePropertiesDataType = ''; protected $updatePageElementAltTextType = 'Google_Service_Slides_UpdatePageElementAltTextRequest'; protected $updatePageElementAltTextDataType = ''; protected $updatePageElementTransformType = 'Google_Service_Slides_UpdatePageElementTransformRequest'; protected $updatePageElementTransformDataType = ''; + protected $updatePageElementsZOrderType = 'Google_Service_Slides_UpdatePageElementsZOrderRequest'; + protected $updatePageElementsZOrderDataType = ''; protected $updatePagePropertiesType = 'Google_Service_Slides_UpdatePagePropertiesRequest'; protected $updatePagePropertiesDataType = ''; protected $updateParagraphStyleType = 'Google_Service_Slides_UpdateParagraphStyleRequest'; @@ -434,6 +440,20 @@ class Google_Service_Slides_Request extends Google_Model { return $this->replaceImage; } + /** + * @param Google_Service_Slides_RerouteLineRequest + */ + public function setRerouteLine(Google_Service_Slides_RerouteLineRequest $rerouteLine) + { + $this->rerouteLine = $rerouteLine; + } + /** + * @return Google_Service_Slides_RerouteLineRequest + */ + public function getRerouteLine() + { + return $this->rerouteLine; + } /** * @param Google_Service_Slides_UngroupObjectsRequest */ @@ -476,6 +496,20 @@ class Google_Service_Slides_Request extends Google_Model { return $this->updateImageProperties; } + /** + * @param Google_Service_Slides_UpdateLineCategoryRequest + */ + public function setUpdateLineCategory(Google_Service_Slides_UpdateLineCategoryRequest $updateLineCategory) + { + $this->updateLineCategory = $updateLineCategory; + } + /** + * @return Google_Service_Slides_UpdateLineCategoryRequest + */ + public function getUpdateLineCategory() + { + return $this->updateLineCategory; + } /** * @param Google_Service_Slides_UpdateLinePropertiesRequest */ @@ -518,6 +552,20 @@ class Google_Service_Slides_Request extends Google_Model { return $this->updatePageElementTransform; } + /** + * @param Google_Service_Slides_UpdatePageElementsZOrderRequest + */ + public function setUpdatePageElementsZOrder(Google_Service_Slides_UpdatePageElementsZOrderRequest $updatePageElementsZOrder) + { + $this->updatePageElementsZOrder = $updatePageElementsZOrder; + } + /** + * @return Google_Service_Slides_UpdatePageElementsZOrderRequest + */ + public function getUpdatePageElementsZOrder() + { + return $this->updatePageElementsZOrder; + } /** * @param Google_Service_Slides_UpdatePagePropertiesRequest */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/RerouteLineRequest.php b/vendor/google/apiclient-services/src/Google/Service/Slides/RerouteLineRequest.php new file mode 100644 index 00000000..9095c328 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/RerouteLineRequest.php @@ -0,0 +1,30 @@ +objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php b/vendor/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php index 82202b5f..47c8f92f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php @@ -57,10 +57,11 @@ class Google_Service_Slides_Resource_Presentations extends Google_Service_Resour return $this->call('batchUpdate', array($params), "Google_Service_Slides_BatchUpdatePresentationResponse"); } /** - * Creates a new presentation using the title given in the request. If a - * presentationId is provided, uses it as the ID of the new presentation. - * Otherwise, a new presentationId is generated. Returns the created - * presentation. (presentations.create) + * Creates a blank presentation using the title given in the request. If a + * `presentationId` is provided, it is used as the ID of the new presentation. + * Otherwise, a new ID is generated. Other fields in the request, including any + * provided content, are ignored. Returns the created presentation. + * (presentations.create) * * @param Google_Service_Slides_Presentation $postBody * @param array $optParams Optional parameters. diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/UpdateLineCategoryRequest.php b/vendor/google/apiclient-services/src/Google/Service/Slides/UpdateLineCategoryRequest.php new file mode 100644 index 00000000..7aad11d7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/UpdateLineCategoryRequest.php @@ -0,0 +1,39 @@ +lineCategory = $lineCategory; + } + public function getLineCategory() + { + return $this->lineCategory; + } + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementsZOrderRequest.php b/vendor/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementsZOrderRequest.php new file mode 100644 index 00000000..7551ebd8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementsZOrderRequest.php @@ -0,0 +1,40 @@ +operation = $operation; + } + public function getOperation() + { + return $this->operation; + } + public function setPageElementObjectIds($pageElementObjectIds) + { + $this->pageElementObjectIds = $pageElementObjectIds; + } + public function getPageElementObjectIds() + { + return $this->pageElementObjectIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner.php b/vendor/google/apiclient-services/src/Google/Service/Spanner.php index 5a86ecb4..d6c98db6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner.php @@ -58,6 +58,7 @@ class Google_Service_Spanner extends Google_Service parent::__construct($client); $this->rootUrl = 'https://spanner.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'spanner'; @@ -154,6 +155,10 @@ class Google_Service_Spanner extends Google_Service 'type' => 'string', 'required' => true, ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -162,10 +167,6 @@ class Google_Service_Spanner extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/{+name}', @@ -354,10 +355,6 @@ class Google_Service_Spanner extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -366,6 +363,10 @@ class Google_Service_Spanner extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/Binding.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/Binding.php index c6acd534..185f0ff0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/Binding.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/Binding.php @@ -18,9 +18,25 @@ class Google_Service_Spanner_Binding extends Google_Collection { protected $collection_key = 'members'; + protected $conditionType = 'Google_Service_Spanner_Expr'; + protected $conditionDataType = ''; public $members; public $role; + /** + * @param Google_Service_Spanner_Expr + */ + public function setCondition(Google_Service_Spanner_Expr $condition) + { + $this->condition = $condition; + } + /** + * @return Google_Service_Spanner_Expr + */ + public function getCondition() + { + return $this->condition; + } public function setMembers($members) { $this->members = $members; diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php index 2d26d2c5..97691b7f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php @@ -23,6 +23,7 @@ class Google_Service_Spanner_ExecuteSqlRequest extends Google_Model public $partitionToken; public $queryMode; public $resumeToken; + public $seqno; public $sql; protected $transactionType = 'Google_Service_Spanner_TransactionSelector'; protected $transactionDataType = ''; @@ -73,6 +74,14 @@ class Google_Service_Spanner_ExecuteSqlRequest extends Google_Model { return $this->resumeToken; } + public function setSeqno($seqno) + { + $this->seqno = $seqno; + } + public function getSeqno() + { + return $this->seqno; + } public function setSql($sql) { $this->sql = $sql; diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/Expr.php new file mode 100644 index 00000000..fa2ec4d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/Expr.php @@ -0,0 +1,57 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/PartitionedDml.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/PartitionedDml.php new file mode 100644 index 00000000..5b0a8fd4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/PartitionedDml.php @@ -0,0 +1,20 @@ + The instance's name contains "howl" and * it has the label "env" with its value * containing "dev". + * @opt_param string pageToken If non-empty, `page_token` should contain a + * next_page_token from a previous ListInstancesResponse. + * @opt_param int pageSize Number of instances to be returned in the response. + * If 0 or less, defaults to the server's maximum allowed page size. * @return Google_Service_Spanner_ListInstancesResponse */ public function listProjectsInstances($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php index 545ffa38..93fefa02 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php @@ -93,9 +93,9 @@ class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesOperations exten * @param string $name The name of the operation's parent resource. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The standard list page token. * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. + * @opt_param string pageToken The standard list page token. * @return Google_Service_Spanner_ListOperationsResponse */ public function listProjectsInstancesDatabasesOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php index e5079ef5..2f7c3c95 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php @@ -95,8 +95,9 @@ class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions extends return $this->call('create', array($params), "Google_Service_Spanner_Session"); } /** - * Ends a session, releasing server resources associated with it. - * (sessions.delete) + * Ends a session, releasing server resources associated with it. This will + * asynchronously trigger cancellation of any operations that are running with + * this session. (sessions.delete) * * @param string $name Required. The name of the session to delete. * @param array $optParams Optional parameters. @@ -202,9 +203,13 @@ class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions extends * ExecuteStreamingSql to specify a subset of the query result to read. The * same session and read-only transaction must be used by the * PartitionQueryRequest used to create the partition tokens and the - * ExecuteSqlRequests that use the partition tokens. Partition tokens become - * invalid when the session used to create them is deleted or begins a new - * transaction. (sessions.partitionQuery) + * ExecuteSqlRequests that use the partition tokens. + * + * Partition tokens become invalid when the session used to create them is + * deleted, is idle for too long, begins a new transaction, or becomes too old. + * When any of these happen, it is not possible to resume the query, and the + * whole operation must be restarted from the beginning. + * (sessions.partitionQuery) * * @param string $session Required. The session used to create the partitions. * @param Google_Service_Spanner_PartitionQueryRequest $postBody @@ -223,8 +228,15 @@ class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions extends * StreamingRead to specify a subset of the read result to read. The same * session and read-only transaction must be used by the PartitionReadRequest * used to create the partition tokens and the ReadRequests that use the - * partition tokens. Partition tokens become invalid when the session used to - * create them is deleted or begins a new transaction. (sessions.partitionRead) + * partition tokens. There are no ordering guarantees on rows returned among + * the returned partition tokens, or even within each individual StreamingRead + * call issued with a partition_token. + * + * Partition tokens become invalid when the session used to create them is + * deleted, is idle for too long, begins a new transaction, or becomes too old. + * When any of these happen, it is not possible to resume the read, and the + * whole operation must be restarted from the beginning. + * (sessions.partitionRead) * * @param string $session Required. The session used to create the partitions. * @param Google_Service_Spanner_PartitionReadRequest $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php index 44a1a068..db495115 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php @@ -20,6 +20,8 @@ class Google_Service_Spanner_ResultSetStats extends Google_Model protected $queryPlanType = 'Google_Service_Spanner_QueryPlan'; protected $queryPlanDataType = ''; public $queryStats; + public $rowCountExact; + public $rowCountLowerBound; /** * @param Google_Service_Spanner_QueryPlan @@ -43,4 +45,20 @@ class Google_Service_Spanner_ResultSetStats extends Google_Model { return $this->queryStats; } + public function setRowCountExact($rowCountExact) + { + $this->rowCountExact = $rowCountExact; + } + public function getRowCountExact() + { + return $this->rowCountExact; + } + public function setRowCountLowerBound($rowCountLowerBound) + { + $this->rowCountLowerBound = $rowCountLowerBound; + } + public function getRowCountLowerBound() + { + return $this->rowCountLowerBound; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php b/vendor/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php index 8f73fc2e..e084ce32 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php +++ b/vendor/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php @@ -17,11 +17,27 @@ class Google_Service_Spanner_TransactionOptions extends Google_Model { + protected $partitionedDmlType = 'Google_Service_Spanner_PartitionedDml'; + protected $partitionedDmlDataType = ''; protected $readOnlyType = 'Google_Service_Spanner_ReadOnly'; protected $readOnlyDataType = ''; protected $readWriteType = 'Google_Service_Spanner_ReadWrite'; protected $readWriteDataType = ''; + /** + * @param Google_Service_Spanner_PartitionedDml + */ + public function setPartitionedDml(Google_Service_Spanner_PartitionedDml $partitionedDml) + { + $this->partitionedDml = $partitionedDml; + } + /** + * @return Google_Service_Spanner_PartitionedDml + */ + public function getPartitionedDml() + { + return $this->partitionedDml; + } /** * @param Google_Service_Spanner_ReadOnly */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech.php b/vendor/google/apiclient-services/src/Google/Service/Speech.php index ee2a734d..04bb313e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Speech.php +++ b/vendor/google/apiclient-services/src/Google/Service/Speech.php @@ -23,7 +23,7 @@ * *
* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -35,6 +35,8 @@ class Google_Service_Speech extends Google_Service "https://www.googleapis.com/auth/cloud-platform"; public $operations; + public $projects_locations_operations; + public $projects_operations_manualRecognitionTasks; public $speech; /** @@ -47,6 +49,7 @@ class Google_Service_Speech extends Google_Service parent::__construct($client); $this->rootUrl = 'https://speech.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'speech'; @@ -66,6 +69,89 @@ class Google_Service_Speech extends Google_Service 'required' => true, ), ), + ),'list' => array( + 'path' => 'v1/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_operations = new Google_Service_Speech_Resource_ProjectsLocationsOperations( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_operations_manualRecognitionTasks = new Google_Service_Speech_Resource_ProjectsOperationsManualRecognitionTasks( + $this, + $this->serviceName, + 'manualRecognitionTasks', + array( + 'methods' => array( + 'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php new file mode 100644 index 00000000..9f92a47b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Speech_Operation + */ + public function setOperations($operations) + { + $this->operations = $operations; + } + /** + * @return Google_Service_Speech_Operation + */ + public function getOperations() + { + return $this->operations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeMetadata.php new file mode 100644 index 00000000..efb56349 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeMetadata.php @@ -0,0 +1,48 @@ +lastUpdateTime = $lastUpdateTime; + } + public function getLastUpdateTime() + { + return $this->lastUpdateTime; + } + public function setProgressPercent($progressPercent) + { + $this->progressPercent = $progressPercent; + } + public function getProgressPercent() + { + return $this->progressPercent; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeResponse.php b/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeResponse.php new file mode 100644 index 00000000..ea9a051d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/LongRunningRecognizeResponse.php @@ -0,0 +1,38 @@ +results = $results; + } + /** + * @return Google_Service_Speech_SpeechRecognitionResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php b/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php index 97628575..b5c6fc1d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php @@ -18,15 +18,46 @@ class Google_Service_Speech_RecognitionConfig extends Google_Collection { protected $collection_key = 'speechContexts'; + public $audioChannelCount; + public $enableAutomaticPunctuation; + public $enableSeparateRecognitionPerChannel; public $enableWordTimeOffsets; public $encoding; public $languageCode; public $maxAlternatives; + protected $metadataType = 'Google_Service_Speech_RecognitionMetadata'; + protected $metadataDataType = ''; + public $model; public $profanityFilter; public $sampleRateHertz; protected $speechContextsType = 'Google_Service_Speech_SpeechContext'; protected $speechContextsDataType = 'array'; + public $useEnhanced; + public function setAudioChannelCount($audioChannelCount) + { + $this->audioChannelCount = $audioChannelCount; + } + public function getAudioChannelCount() + { + return $this->audioChannelCount; + } + public function setEnableAutomaticPunctuation($enableAutomaticPunctuation) + { + $this->enableAutomaticPunctuation = $enableAutomaticPunctuation; + } + public function getEnableAutomaticPunctuation() + { + return $this->enableAutomaticPunctuation; + } + public function setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel) + { + $this->enableSeparateRecognitionPerChannel = $enableSeparateRecognitionPerChannel; + } + public function getEnableSeparateRecognitionPerChannel() + { + return $this->enableSeparateRecognitionPerChannel; + } public function setEnableWordTimeOffsets($enableWordTimeOffsets) { $this->enableWordTimeOffsets = $enableWordTimeOffsets; @@ -59,6 +90,28 @@ class Google_Service_Speech_RecognitionConfig extends Google_Collection { return $this->maxAlternatives; } + /** + * @param Google_Service_Speech_RecognitionMetadata + */ + public function setMetadata(Google_Service_Speech_RecognitionMetadata $metadata) + { + $this->metadata = $metadata; + } + /** + * @return Google_Service_Speech_RecognitionMetadata + */ + public function getMetadata() + { + return $this->metadata; + } + public function setModel($model) + { + $this->model = $model; + } + public function getModel() + { + return $this->model; + } public function setProfanityFilter($profanityFilter) { $this->profanityFilter = $profanityFilter; @@ -89,4 +142,12 @@ class Google_Service_Speech_RecognitionConfig extends Google_Collection { return $this->speechContexts; } + public function setUseEnhanced($useEnhanced) + { + $this->useEnhanced = $useEnhanced; + } + public function getUseEnhanced() + { + return $this->useEnhanced; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionMetadata.php new file mode 100644 index 00000000..351e9748 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/RecognitionMetadata.php @@ -0,0 +1,102 @@ +audioTopic = $audioTopic; + } + public function getAudioTopic() + { + return $this->audioTopic; + } + public function setIndustryNaicsCodeOfAudio($industryNaicsCodeOfAudio) + { + $this->industryNaicsCodeOfAudio = $industryNaicsCodeOfAudio; + } + public function getIndustryNaicsCodeOfAudio() + { + return $this->industryNaicsCodeOfAudio; + } + public function setInteractionType($interactionType) + { + $this->interactionType = $interactionType; + } + public function getInteractionType() + { + return $this->interactionType; + } + public function setMicrophoneDistance($microphoneDistance) + { + $this->microphoneDistance = $microphoneDistance; + } + public function getMicrophoneDistance() + { + return $this->microphoneDistance; + } + public function setObfuscatedId($obfuscatedId) + { + $this->obfuscatedId = $obfuscatedId; + } + public function getObfuscatedId() + { + return $this->obfuscatedId; + } + public function setOriginalMediaType($originalMediaType) + { + $this->originalMediaType = $originalMediaType; + } + public function getOriginalMediaType() + { + return $this->originalMediaType; + } + public function setOriginalMimeType($originalMimeType) + { + $this->originalMimeType = $originalMimeType; + } + public function getOriginalMimeType() + { + return $this->originalMimeType; + } + public function setRecordingDeviceName($recordingDeviceName) + { + $this->recordingDeviceName = $recordingDeviceName; + } + public function getRecordingDeviceName() + { + return $this->recordingDeviceName; + } + public function setRecordingDeviceType($recordingDeviceType) + { + $this->recordingDeviceType = $recordingDeviceType; + } + public function getRecordingDeviceType() + { + return $this->recordingDeviceType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php index b220a535..e625ec8d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php @@ -40,4 +40,30 @@ class Google_Service_Speech_Resource_Operations extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Speech_Operation"); } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. (operations.listOperations) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param string name The name of the operation's parent resource. + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @return Google_Service_Speech_ListOperationsResponse + */ + public function listOperations($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Speech_ListOperationsResponse"); + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Projects.php new file mode 100644 index 00000000..db370fc5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $speechService = new Google_Service_Speech(...); + * $projects = $speechService->projects; + * + */ +class Google_Service_Speech_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocations.php new file mode 100644 index 00000000..3d9bd475 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocations.php @@ -0,0 +1,28 @@ + + * $speechService = new Google_Service_Speech(...); + * $locations = $speechService->locations; + * + */ +class Google_Service_Speech_Resource_ProjectsLocations extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocationsOperations.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocationsOperations.php new file mode 100644 index 00000000..f12d187d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsLocationsOperations.php @@ -0,0 +1,70 @@ + + * $speechService = new Google_Service_Speech(...); + * $operations = $speechService->operations; + * + */ +class Google_Service_Speech_Resource_ProjectsLocationsOperations extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Speech_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Speech_Operation"); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * NOTE: the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/operations`. To override the + * binding, API services can add a binding such as + * `"/v1/{name=users}/operations"` to their service configuration. For backwards + * compatibility, the default name includes the operations collection id, + * however overriding users must ensure the name binding is the parent resource, + * without the operations collection id. + * (operations.listProjectsLocationsOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. + * @opt_param string filter The standard list filter. + * @return Google_Service_Speech_ListOperationsResponse + */ + public function listProjectsLocationsOperations($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Speech_ListOperationsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperations.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperations.php new file mode 100644 index 00000000..87a5168a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperations.php @@ -0,0 +1,28 @@ + + * $speechService = new Google_Service_Speech(...); + * $operations = $speechService->operations; + * + */ +class Google_Service_Speech_Resource_ProjectsOperations extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperationsManualRecognitionTasks.php b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperationsManualRecognitionTasks.php new file mode 100644 index 00000000..b1dc4b47 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/Resource/ProjectsOperationsManualRecognitionTasks.php @@ -0,0 +1,43 @@ + + * $speechService = new Google_Service_Speech(...); + * $manualRecognitionTasks = $speechService->manualRecognitionTasks; + * + */ +class Google_Service_Speech_Resource_ProjectsOperationsManualRecognitionTasks extends Google_Service_Resource +{ + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (manualRecognitionTasks.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return Google_Service_Speech_Operation + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Speech_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php b/vendor/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php index 08f18f1e..0aab64d1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php @@ -20,6 +20,7 @@ class Google_Service_Speech_SpeechRecognitionResult extends Google_Collection protected $collection_key = 'alternatives'; protected $alternativesType = 'Google_Service_Speech_SpeechRecognitionAlternative'; protected $alternativesDataType = 'array'; + public $channelTag; /** * @param Google_Service_Speech_SpeechRecognitionAlternative @@ -35,4 +36,12 @@ class Google_Service_Speech_SpeechRecognitionResult extends Google_Collection { return $this->alternatives; } + public function setChannelTag($channelTag) + { + $this->channelTag = $channelTag; + } + public function getChannelTag() + { + return $this->channelTag; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Speech/WordInfo.php b/vendor/google/apiclient-services/src/Google/Service/Speech/WordInfo.php index 0a644c4b..4bb21935 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Speech/WordInfo.php +++ b/vendor/google/apiclient-services/src/Google/Service/Speech/WordInfo.php @@ -18,7 +18,6 @@ class Google_Service_Speech_WordInfo extends Google_Model { public $endTime; - public $speakerTag; public $startTime; public $word; @@ -30,14 +29,6 @@ class Google_Service_Speech_WordInfo extends Google_Model { return $this->endTime; } - public function setSpeakerTag($speakerTag) - { - $this->speakerTag = $speakerTag; - } - public function getSpeakerTag() - { - return $this->speakerTag; - } public function setStartTime($startTime) { $this->startTime = $startTime; diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage.php b/vendor/google/apiclient-services/src/Google/Service/Storage.php index 1800aa90..1092ac0a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage.php @@ -65,6 +65,7 @@ class Google_Service_Storage extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'storage/v1/'; + $this->batchPath = 'batch/storage/v1'; $this->version = 'v1'; $this->serviceName = 'storage'; @@ -1093,6 +1094,10 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'includeTrailingDelimiter' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -1362,6 +1367,10 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'includeTrailingDelimiter' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/Bucket.php b/vendor/google/apiclient-services/src/Google/Service/Storage/Bucket.php index 4a5b530c..bb38ed85 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage/Bucket.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/Bucket.php @@ -30,6 +30,8 @@ class Google_Service_Storage_Bucket extends Google_Collection protected $encryptionType = 'Google_Service_Storage_BucketEncryption'; protected $encryptionDataType = ''; public $etag; + protected $iamConfigurationType = 'Google_Service_Storage_BucketIamConfiguration'; + protected $iamConfigurationDataType = ''; public $id; public $kind; public $labels; @@ -140,6 +142,20 @@ class Google_Service_Storage_Bucket extends Google_Collection { return $this->etag; } + /** + * @param Google_Service_Storage_BucketIamConfiguration + */ + public function setIamConfiguration(Google_Service_Storage_BucketIamConfiguration $iamConfiguration) + { + $this->iamConfiguration = $iamConfiguration; + } + /** + * @return Google_Service_Storage_BucketIamConfiguration + */ + public function getIamConfiguration() + { + return $this->iamConfiguration; + } public function setId($id) { $this->id = $id; diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfiguration.php new file mode 100644 index 00000000..edab5ae7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfiguration.php @@ -0,0 +1,37 @@ +bucketPolicyOnly = $bucketPolicyOnly; + } + /** + * @return Google_Service_Storage_BucketIamConfigurationBucketPolicyOnly + */ + public function getBucketPolicyOnly() + { + return $this->bucketPolicyOnly; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfigurationBucketPolicyOnly.php b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfigurationBucketPolicyOnly.php new file mode 100644 index 00000000..446e963e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketIamConfigurationBucketPolicyOnly.php @@ -0,0 +1,39 @@ +enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setLockedTime($lockedTime) + { + $this->lockedTime = $lockedTime; + } + public function getLockedTime() + { + return $this->lockedTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php index 36f6bf25..6d0d9189 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php @@ -21,6 +21,7 @@ class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Collect public $age; public $createdBefore; public $isLive; + public $matchesPattern; public $matchesStorageClass; public $numNewerVersions; @@ -48,6 +49,14 @@ class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Collect { return $this->isLive; } + public function setMatchesPattern($matchesPattern) + { + $this->matchesPattern = $matchesPattern; + } + public function getMatchesPattern() + { + return $this->matchesPattern; + } public function setMatchesStorageClass($matchesStorageClass) { $this->matchesStorageClass = $matchesStorageClass; diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/Expr.php b/vendor/google/apiclient-services/src/Google/Service/Storage/Expr.php new file mode 100644 index 00000000..376bb712 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/Expr.php @@ -0,0 +1,66 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php b/vendor/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php index 2388d4f6..ca54d40a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php @@ -18,14 +18,21 @@ class Google_Service_Storage_PolicyBindings extends Google_Collection { protected $collection_key = 'members'; - public $condition; + protected $conditionType = 'Google_Service_Storage_Expr'; + protected $conditionDataType = ''; public $members; public $role; - public function setCondition($condition) + /** + * @param Google_Service_Storage_Expr + */ + public function setCondition(Google_Service_Storage_Expr $condition) { $this->condition = $condition; } + /** + * @return Google_Service_Storage_Expr + */ public function getCondition() { return $this->condition; diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php b/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php index 7fb81fc9..9375416c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php @@ -148,9 +148,9 @@ class Google_Service_Storage_Resource_Buckets extends Google_Service_Resource return $this->call('lockRetentionPolicy', array($params), "Google_Service_Storage_Bucket"); } /** - * Updates a bucket. Changes to the bucket will be readable immediately after - * writing, but configuration changes may take time to propagate. This method - * supports patch semantics. (buckets.patch) + * Patches a bucket. Changes to the bucket will be readable immediately after + * writing, but configuration changes may take time to propagate. + * (buckets.patch) * * @param string $bucket Name of a bucket. * @param Google_Service_Storage_Bucket $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php b/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php index 90d463f1..476f514b 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php @@ -29,8 +29,8 @@ class Google_Service_Storage_Resource_Objects extends Google_Service_Resource * Concatenates a list of existing objects into a new object in the same bucket. * (objects.compose) * - * @param string $destinationBucket Name of the bucket in which to store the new - * object. + * @param string $destinationBucket Name of the bucket containing the source + * objects. The destination object is stored in this bucket. * @param string $destinationObject Name of the new object. For information * about how to URL encode object names to be path safe, see Encoding URI Path * Parts. @@ -229,8 +229,7 @@ class Google_Service_Storage_Resource_Objects extends Google_Service_Resource * @opt_param string kmsKeyName Resource name of the Cloud KMS key, of the form * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that * will be used to encrypt the object. Overrides the object metadata's - * kms_key_name value, if any. Limited availability; usable only by enabled - * projects. + * kms_key_name value, if any. * @opt_param string name Name of the object. Required when the object metadata * is not otherwise provided. Overrides the object metadata's name value, if * any. For information about how to URL encode object names to be path safe, @@ -261,6 +260,9 @@ class Google_Service_Storage_Resource_Objects extends Google_Service_Resource * delimiter. Objects whose names, aside from the prefix, contain delimiter will * have their name, truncated after the delimiter, returned in prefixes. * Duplicate prefixes are omitted. + * @opt_param bool includeTrailingDelimiter If true, objects that end in exactly + * one instance of delimiter will have their metadata included in items in + * addition to prefixes. * @opt_param string maxResults Maximum number of items plus prefixes to return * in a single page of responses. As duplicate prefixes are omitted, fewer total * results may be returned than requested. The service will use this parameter @@ -481,6 +483,9 @@ class Google_Service_Storage_Resource_Objects extends Google_Service_Resource * delimiter. Objects whose names, aside from the prefix, contain delimiter will * have their name, truncated after the delimiter, returned in prefixes. * Duplicate prefixes are omitted. + * @opt_param bool includeTrailingDelimiter If true, objects that end in exactly + * one instance of delimiter will have their metadata included in items in + * addition to prefixes. * @opt_param string maxResults Maximum number of items plus prefixes to return * in a single page of responses. As duplicate prefixes are omitted, fewer total * results may be returned than requested. The service will use this parameter diff --git a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer.php b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer.php index 37bb5e04..83dca6d9 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer.php @@ -24,7 +24,7 @@ * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -49,6 +49,7 @@ class Google_Service_Storagetransfer extends Google_Service parent::__construct($client); $this->rootUrl = 'https://storagetransfer.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'storagetransfer'; @@ -100,6 +101,10 @@ class Google_Service_Storagetransfer extends Google_Service 'path' => 'v1/transferJobs', 'httpMethod' => 'GET', 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -108,10 +113,6 @@ class Google_Service_Storagetransfer extends Google_Service 'location' => 'query', 'type' => 'integer', ), - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'patch' => array( 'path' => 'v1/{+jobName}', @@ -172,6 +173,10 @@ class Google_Service_Storagetransfer extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -180,10 +185,6 @@ class Google_Service_Storagetransfer extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ),'pause' => array( 'path' => 'v1/{+name}:pause', diff --git a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php index f9671da7..e2e9ec36 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php @@ -59,8 +59,6 @@ class Google_Service_Storagetransfer_Resource_TransferJobs extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string pageToken The list page token. - * @opt_param int pageSize The list page size. The max allowed value is 256. * @opt_param string filter A list of query parameters specified as JSON text in * the form of {"project_id":"my_project_id", * "job_names":["jobid1","jobid2",...], @@ -69,6 +67,8 @@ class Google_Service_Storagetransfer_Resource_TransferJobs extends Google_Servic * array notation. `project_id` is required. `job_names` and `job_statuses` are * optional. The valid values for `job_statuses` are case-insensitive: * `ENABLED`, `DISABLED`, and `DELETED`. + * @opt_param string pageToken The list page token. + * @opt_param int pageSize The list page size. The max allowed value is 256. * @return Google_Service_Storagetransfer_ListTransferJobsResponse */ public function listTransferJobs($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php index bb82a15c..bb3277fa 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php +++ b/vendor/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php @@ -85,6 +85,7 @@ class Google_Service_Storagetransfer_Resource_TransferOperations extends Google_ * @param string $name The value `transferOperations`. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The list page size. The max allowed value is 256. * @opt_param string filter A list of query parameters specified as JSON text in * the form of {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], @@ -93,7 +94,6 @@ class Google_Service_Storagetransfer_Resource_TransferOperations extends Google_ * be specified with array notation. `job_names`, `operation_names`, and * `transfer_statuses` are optional. * @opt_param string pageToken The list page token. - * @opt_param int pageSize The list page size. The max allowed value is 256. * @return Google_Service_Storagetransfer_ListOperationsResponse */ public function listTransferOperations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish.php index 88a0e569..e44b39ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish.php @@ -49,6 +49,7 @@ class Google_Service_StreetViewPublish extends Google_Service parent::__construct($client); $this->rootUrl = 'https://streetviewpublish.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'streetviewpublish'; @@ -85,6 +86,10 @@ class Google_Service_StreetViewPublish extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'startUpload' => array( 'path' => 'v1/photo:startUpload', @@ -126,6 +131,10 @@ class Google_Service_StreetViewPublish extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), 'photoIds' => array( 'location' => 'query', 'type' => 'string', @@ -140,10 +149,6 @@ class Google_Service_StreetViewPublish extends Google_Service 'path' => 'v1/photos', 'httpMethod' => 'GET', 'parameters' => array( - 'filter' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -156,6 +161,14 @@ class Google_Service_StreetViewPublish extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Photo.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Photo.php index 1ec50fdf..fa761289 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Photo.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Photo.php @@ -22,6 +22,7 @@ class Google_Service_StreetViewPublish_Photo extends Google_Collection protected $connectionsType = 'Google_Service_StreetViewPublish_Connection'; protected $connectionsDataType = 'array'; public $downloadUrl; + public $mapsPublishStatus; protected $photoIdType = 'Google_Service_StreetViewPublish_PhotoId'; protected $photoIdDataType = ''; protected $placesType = 'Google_Service_StreetViewPublish_Place'; @@ -30,6 +31,7 @@ class Google_Service_StreetViewPublish_Photo extends Google_Collection protected $poseDataType = ''; public $shareLink; public $thumbnailUrl; + public $transferStatus; protected $uploadReferenceType = 'Google_Service_StreetViewPublish_UploadRef'; protected $uploadReferenceDataType = ''; public $viewCount; @@ -64,6 +66,14 @@ class Google_Service_StreetViewPublish_Photo extends Google_Collection { return $this->downloadUrl; } + public function setMapsPublishStatus($mapsPublishStatus) + { + $this->mapsPublishStatus = $mapsPublishStatus; + } + public function getMapsPublishStatus() + { + return $this->mapsPublishStatus; + } /** * @param Google_Service_StreetViewPublish_PhotoId */ @@ -122,6 +132,14 @@ class Google_Service_StreetViewPublish_Photo extends Google_Collection { return $this->thumbnailUrl; } + public function setTransferStatus($transferStatus) + { + $this->transferStatus = $transferStatus; + } + public function getTransferStatus() + { + return $this->transferStatus; + } /** * @param Google_Service_StreetViewPublish_UploadRef */ diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Place.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Place.php index 064a22c6..e899f0e3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Place.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Place.php @@ -17,8 +17,26 @@ class Google_Service_StreetViewPublish_Place extends Google_Model { + public $languageCode; + public $name; public $placeId; + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } public function setPlaceId($placeId) { $this->placeId = $placeId; diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Pose.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Pose.php index b2d96ca3..da088ca5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Pose.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Pose.php @@ -17,6 +17,7 @@ class Google_Service_StreetViewPublish_Pose extends Google_Model { + public $accuracyMeters; public $altitude; public $heading; protected $latLngPairType = 'Google_Service_StreetViewPublish_LatLng'; @@ -26,6 +27,14 @@ class Google_Service_StreetViewPublish_Pose extends Google_Model public $pitch; public $roll; + public function setAccuracyMeters($accuracyMeters) + { + $this->accuracyMeters = $accuracyMeters; + } + public function getAccuracyMeters() + { + return $this->accuracyMeters; + } public function setAltitude($altitude) { $this->altitude = $altitude; diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photo.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photo.php index fb696c6f..cd5676c6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photo.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photo.php @@ -86,6 +86,11 @@ class Google_Service_StreetViewPublish_Resource_Photo extends Google_Service_Res * * @opt_param string view Specifies if a download URL for the photo bytes should * be returned in the Photo response. + * @opt_param string languageCode The BCP-47 language code, such as "en-US" or + * "sr-Latn". For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If + * language_code is unspecified, the user's language preference for Google + * services will be used. * @return Google_Service_StreetViewPublish_Photo */ public function get($photoId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photos.php b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photos.php index 132be5f0..f65d49e5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photos.php +++ b/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photos.php @@ -58,6 +58,11 @@ class Google_Service_StreetViewPublish_Resource_Photos extends Google_Service_Re * * @opt_param string view Specifies if a download URL for the photo bytes should * be returned in the Photo response. + * @opt_param string languageCode The BCP-47 language code, such as "en-US" or + * "sr-Latn". For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If + * language_code is unspecified, the user's language preference for Google + * services will be used. * @opt_param string photoIds Required. IDs of the Photos. For HTTP GET * requests, the URL query parameter should be `photoIds==&...`. * @return Google_Service_StreetViewPublish_BatchGetPhotosResponse @@ -81,6 +86,9 @@ class Google_Service_StreetViewPublish_Resource_Photos extends Google_Service_Re * Only the fields specified in updateMask field are used. If `updateMask` is * not present, the update applies to all fields. * + * The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must + * not exceed 20. + * * Note: To update Pose.altitude, Pose.latLngPair has to be filled as well. * Otherwise, the request will fail. (photos.batchUpdate) * @@ -102,10 +110,6 @@ class Google_Service_StreetViewPublish_Resource_Photos extends Google_Service_Re * * @param array $optParams Optional parameters. * - * @opt_param string filter The filter expression. For example: - * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. - * - * The only filter supported at the moment is `placeId`. * @opt_param string pageToken The nextPageToken value returned from a previous * ListPhotos request, if any. * @opt_param int pageSize The maximum number of photos to return. `pageSize` @@ -115,6 +119,15 @@ class Google_Service_StreetViewPublish_Resource_Photos extends Google_Service_Re * is less than `pageSize`. * @opt_param string view Specifies if a download URL for the photos bytes * should be returned in the Photos response. + * @opt_param string filter The filter expression. For example: + * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. + * + * The only filter supported at the moment is `placeId`. + * @opt_param string languageCode The BCP-47 language code, such as "en-US" or + * "sr-Latn". For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If + * language_code is unspecified, the user's language preference for Google + * services will be used. * @return Google_Service_StreetViewPublish_ListPhotosResponse */ public function listPhotos($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Surveys.php b/vendor/google/apiclient-services/src/Google/Service/Surveys.php index ed941a60..d21650ee 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Surveys.php +++ b/vendor/google/apiclient-services/src/Google/Service/Surveys.php @@ -41,7 +41,6 @@ class Google_Service_Surveys extends Google_Service const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; - public $mobileapppanels; public $results; public $surveys; @@ -55,56 +54,10 @@ class Google_Service_Surveys extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'surveys/v2/'; + $this->batchPath = 'batch/surveys/v2'; $this->version = 'v2'; $this->serviceName = 'surveys'; - $this->mobileapppanels = new Google_Service_Surveys_Resource_Mobileapppanels( - $this, - $this->serviceName, - 'mobileapppanels', - array( - 'methods' => array( - 'get' => array( - 'path' => 'mobileAppPanels/{panelId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'panelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'mobileAppPanels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'startIndex' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'token' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'update' => array( - 'path' => 'mobileAppPanels/{panelId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'panelId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->results = new Google_Service_Surveys_Resource_Results( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php b/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php deleted file mode 100644 index 00021e79..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php +++ /dev/null @@ -1,76 +0,0 @@ -country = $country; - } - public function getCountry() - { - return $this->country; - } - public function setIsPublicPanel($isPublicPanel) - { - $this->isPublicPanel = $isPublicPanel; - } - public function getIsPublicPanel() - { - return $this->isPublicPanel; - } - public function setLanguage($language) - { - $this->language = $language; - } - public function getLanguage() - { - return $this->language; - } - public function setMobileAppPanelId($mobileAppPanelId) - { - $this->mobileAppPanelId = $mobileAppPanelId; - } - public function getMobileAppPanelId() - { - return $this->mobileAppPanelId; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setOwners($owners) - { - $this->owners = $owners; - } - public function getOwners() - { - return $this->owners; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php b/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php deleted file mode 100644 index 4ad0f711..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -pageInfo = $pageInfo; - } - /** - * @return Google_Service_Surveys_PageInfo - */ - public function getPageInfo() - { - return $this->pageInfo; - } - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - public function getRequestId() - { - return $this->requestId; - } - /** - * @param Google_Service_Surveys_MobileAppPanel - */ - public function setResources($resources) - { - $this->resources = $resources; - } - /** - * @return Google_Service_Surveys_MobileAppPanel - */ - public function getResources() - { - return $this->resources; - } - /** - * @param Google_Service_Surveys_TokenPagination - */ - public function setTokenPagination(Google_Service_Surveys_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - /** - * @return Google_Service_Surveys_TokenPagination - */ - public function getTokenPagination() - { - return $this->tokenPagination; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php b/vendor/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php deleted file mode 100644 index a47222da..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php +++ /dev/null @@ -1,74 +0,0 @@ - - * $surveysService = new Google_Service_Surveys(...); - * $mobileapppanels = $surveysService->mobileapppanels; - * - */ -class Google_Service_Surveys_Resource_Mobileapppanels extends Google_Service_Resource -{ - /** - * Retrieves a MobileAppPanel that is available to the authenticated user. - * (mobileapppanels.get) - * - * @param string $panelId External URL ID for the panel. - * @param array $optParams Optional parameters. - * @return Google_Service_Surveys_MobileAppPanel - */ - public function get($panelId, $optParams = array()) - { - $params = array('panelId' => $panelId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Surveys_MobileAppPanel"); - } - /** - * Lists the MobileAppPanels available to the authenticated user. - * (mobileapppanels.listMobileapppanels) - * - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults - * @opt_param string startIndex - * @opt_param string token - * @return Google_Service_Surveys_MobileAppPanelsListResponse - */ - public function listMobileapppanels($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Surveys_MobileAppPanelsListResponse"); - } - /** - * Updates a MobileAppPanel. Currently the only property that can be updated is - * the owners property. (mobileapppanels.update) - * - * @param string $panelId External URL ID for the panel. - * @param Google_Service_Surveys_MobileAppPanel $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Surveys_MobileAppPanel - */ - public function update($panelId, Google_Service_Surveys_MobileAppPanel $postBody, $optParams = array()) - { - $params = array('panelId' => $panelId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Surveys_MobileAppPanel"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php b/vendor/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php index a7fd3a2a..ec96ab75 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php +++ b/vendor/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php @@ -23,7 +23,6 @@ class Google_Service_Surveys_SurveyAudience extends Google_Collection public $countrySubdivision; public $gender; public $languages; - public $mobileAppPanelId; public $populationSource; public function setAges($ages) @@ -66,14 +65,6 @@ class Google_Service_Surveys_SurveyAudience extends Google_Collection { return $this->languages; } - public function setMobileAppPanelId($mobileAppPanelId) - { - $this->mobileAppPanelId = $mobileAppPanelId; - } - public function getMobileAppPanelId() - { - return $this->mobileAppPanelId; - } public function setPopulationSource($populationSource) { $this->populationSource = $populationSource; diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU.php b/vendor/google/apiclient-services/src/Google/Service/TPU.php index 703551b7..5640c3a4 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU.php @@ -16,7 +16,7 @@ */ /** - * Service definition for TPU (v1alpha1). + * Service definition for TPU (v1). * ** TPU API provides customers with access to Google TPU technology.
@@ -50,7 +50,8 @@ class Google_Service_TPU extends Google_Service parent::__construct($client); $this->rootUrl = 'https://tpu.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1alpha1'; + $this->batchPath = 'batch'; + $this->version = 'v1'; $this->serviceName = 'tpu'; $this->projects_locations = new Google_Service_TPU_Resource_ProjectsLocations( @@ -60,7 +61,7 @@ class Google_Service_TPU extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -70,7 +71,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'list' => array( - 'path' => 'v1alpha1/{+name}/locations', + 'path' => 'v1/{+name}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -78,10 +79,6 @@ class Google_Service_TPU extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -90,6 +87,10 @@ class Google_Service_TPU extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) @@ -102,7 +103,7 @@ class Google_Service_TPU extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -112,7 +113,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'list' => array( - 'path' => 'v1alpha1/{+parent}/acceleratorTypes', + 'path' => 'v1/{+parent}/acceleratorTypes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -148,7 +149,7 @@ class Google_Service_TPU extends Google_Service array( 'methods' => array( 'create' => array( - 'path' => 'v1alpha1/{+parent}/nodes', + 'path' => 'v1/{+parent}/nodes', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( @@ -162,7 +163,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'delete' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -172,7 +173,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'get' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -182,7 +183,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'list' => array( - 'path' => 'v1alpha1/{+parent}/nodes', + 'path' => 'v1/{+parent}/nodes', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -200,17 +201,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'reimage' => array( - 'path' => 'v1alpha1/{+name}:reimage', - 'httpMethod' => 'POST', - 'parameters' => array( - 'name' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'reset' => array( - 'path' => 'v1alpha1/{+name}:reset', + 'path' => 'v1/{+name}:reimage', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -220,7 +211,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'start' => array( - 'path' => 'v1alpha1/{+name}:start', + 'path' => 'v1/{+name}:start', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -230,7 +221,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'stop' => array( - 'path' => 'v1alpha1/{+name}:stop', + 'path' => 'v1/{+name}:stop', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -250,7 +241,7 @@ class Google_Service_TPU extends Google_Service array( 'methods' => array( 'cancel' => array( - 'path' => 'v1alpha1/{+name}:cancel', + 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( @@ -260,7 +251,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'delete' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( @@ -270,7 +261,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'get' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -280,7 +271,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'list' => array( - 'path' => 'v1alpha1/{+name}/operations', + 'path' => 'v1/{+name}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -312,7 +303,7 @@ class Google_Service_TPU extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'v1alpha1/{+name}', + 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( @@ -322,7 +313,7 @@ class Google_Service_TPU extends Google_Service ), ), ),'list' => array( - 'path' => 'v1alpha1/{+parent}/tensorflowVersions', + 'path' => 'v1/{+parent}/tensorflowVersions', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( @@ -330,6 +321,10 @@ class Google_Service_TPU extends Google_Service 'type' => 'string', 'required' => true, ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -342,10 +337,6 @@ class Google_Service_TPU extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/ListNodesResponse.php b/vendor/google/apiclient-services/src/Google/Service/TPU/ListNodesResponse.php index 18dc0403..9a829bdb 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU/ListNodesResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/ListNodesResponse.php @@ -17,10 +17,11 @@ class Google_Service_TPU_ListNodesResponse extends Google_Collection { - protected $collection_key = 'nodes'; + protected $collection_key = 'unreachable'; public $nextPageToken; protected $nodesType = 'Google_Service_TPU_Node'; protected $nodesDataType = 'array'; + public $unreachable; public function setNextPageToken($nextPageToken) { @@ -44,4 +45,12 @@ class Google_Service_TPU_ListNodesResponse extends Google_Collection { return $this->nodes; } + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + public function getUnreachable() + { + return $this->unreachable; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/Node.php b/vendor/google/apiclient-services/src/Google/Service/TPU/Node.php index d14bd008..74818131 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU/Node.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/Node.php @@ -31,6 +31,8 @@ class Google_Service_TPU_Node extends Google_Collection protected $networkEndpointsType = 'Google_Service_TPU_NetworkEndpoint'; protected $networkEndpointsDataType = 'array'; public $port; + protected $schedulingConfigType = 'Google_Service_TPU_SchedulingConfig'; + protected $schedulingConfigDataType = ''; public $serviceAccount; public $state; public $tensorflowVersion; @@ -137,6 +139,20 @@ class Google_Service_TPU_Node extends Google_Collection { return $this->port; } + /** + * @param Google_Service_TPU_SchedulingConfig + */ + public function setSchedulingConfig(Google_Service_TPU_SchedulingConfig $schedulingConfig) + { + $this->schedulingConfig = $schedulingConfig; + } + /** + * @return Google_Service_TPU_SchedulingConfig + */ + public function getSchedulingConfig() + { + return $this->schedulingConfig; + } public function setServiceAccount($serviceAccount) { $this->serviceAccount = $serviceAccount; diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocations.php index da938d24..e040486e 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocations.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocations.php @@ -46,9 +46,9 @@ class Google_Service_TPU_Resource_ProjectsLocations extends Google_Service_Resou * applicable. * @param array $optParams Optional parameters. * - * @opt_param int pageSize The standard list page size. * @opt_param string filter The standard list filter. * @opt_param string pageToken The standard list page token. + * @opt_param int pageSize The standard list page size. * @return Google_Service_TPU_ListLocationsResponse */ public function listProjectsLocations($name, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsNodes.php b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsNodes.php index 195719b3..2b166372 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsNodes.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsNodes.php @@ -98,20 +98,6 @@ class Google_Service_TPU_Resource_ProjectsLocationsNodes extends Google_Service_ $params = array_merge($params, $optParams); return $this->call('reimage', array($params), "Google_Service_TPU_Operation"); } - /** - * Resets a node, which stops and starts the VM. (nodes.reset) - * - * @param string $name The resource name. - * @param Google_Service_TPU_ResetNodeRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TPU_Operation - */ - public function reset($name, Google_Service_TPU_ResetNodeRequest $postBody, $optParams = array()) - { - $params = array('name' => $name, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_TPU_Operation"); - } /** * Starts a node. (nodes.start) * diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsTensorflowVersions.php b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsTensorflowVersions.php index 5254ffd5..3a754fac 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsTensorflowVersions.php +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/Resource/ProjectsLocationsTensorflowVersions.php @@ -39,17 +39,17 @@ class Google_Service_TPU_Resource_ProjectsLocationsTensorflowVersions extends Go return $this->call('get', array($params), "Google_Service_TPU_TensorFlowVersion"); } /** - * Lists TensorFlow versions supported by this API. + * List TensorFlow versions supported by this API. * (tensorflowVersions.listProjectsLocationsTensorflowVersions) * * @param string $parent The parent resource name. * @param array $optParams Optional parameters. * + * @opt_param int pageSize The maximum number of items to return. * @opt_param string filter List filter. * @opt_param string pageToken The next_page_token value returned from a * previous List request, if any. * @opt_param string orderBy Sort results. - * @opt_param int pageSize The maximum number of items to return. * @return Google_Service_TPU_ListTensorFlowVersionsResponse */ public function listProjectsLocationsTensorflowVersions($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/TPU/SchedulingConfig.php b/vendor/google/apiclient-services/src/Google/Service/TPU/SchedulingConfig.php new file mode 100644 index 00000000..370ea03c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TPU/SchedulingConfig.php @@ -0,0 +1,30 @@ +preemptible = $preemptible; + } + public function getPreemptible() + { + return $this->preemptible; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager.php b/vendor/google/apiclient-services/src/Google/Service/TagManager.php index ea47fdf6..9068c2fc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager.php @@ -60,10 +60,10 @@ class Google_Service_TagManager extends Google_Service public $accounts_containers_workspaces; public $accounts_containers_workspaces_built_in_variables; public $accounts_containers_workspaces_folders; - public $accounts_containers_workspaces_proposal; public $accounts_containers_workspaces_tags; public $accounts_containers_workspaces_triggers; public $accounts_containers_workspaces_variables; + public $accounts_containers_workspaces_zones; public $accounts_user_permissions; /** @@ -76,6 +76,7 @@ class Google_Service_TagManager extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tagmanager/v2/'; + $this->batchPath = 'batch/tagmanager/v2'; $this->version = 'v2'; $this->serviceName = 'tagmanager'; @@ -240,20 +241,6 @@ class Google_Service_TagManager extends Google_Service 'type' => 'string', ), ), - ),'patch' => array( - 'path' => '{+path}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'path' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'fingerprint' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'reauthorize' => array( 'path' => '{+path}:reauthorize', 'httpMethod' => 'POST', @@ -458,16 +445,6 @@ class Google_Service_TagManager extends Google_Service 'required' => true, ), ), - ),'getProposal' => array( - 'path' => '{+path}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'path' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'getStatus' => array( 'path' => '{+path}/status', 'httpMethod' => 'GET', @@ -540,16 +517,6 @@ class Google_Service_TagManager extends Google_Service 'type' => 'string', ), ), - ),'updateProposal' => array( - 'path' => '{+path}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'path' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ), ) ) @@ -743,36 +710,6 @@ class Google_Service_TagManager extends Google_Service ) ) ); - $this->accounts_containers_workspaces_proposal = new Google_Service_TagManager_Resource_AccountsContainersWorkspacesProposal( - $this, - $this->serviceName, - 'proposal', - array( - 'methods' => array( - 'create' => array( - 'path' => '{+parent}/proposal', - 'httpMethod' => 'POST', - 'parameters' => array( - 'parent' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => '{+path}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'path' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->accounts_containers_workspaces_tags = new Google_Service_TagManager_Resource_AccountsContainersWorkspacesTags( $this, $this->serviceName, @@ -1019,6 +956,88 @@ class Google_Service_TagManager extends Google_Service ) ) ); + $this->accounts_containers_workspaces_zones = new Google_Service_TagManager_Resource_AccountsContainersWorkspacesZones( + $this, + $this->serviceName, + 'zones', + array( + 'methods' => array( + 'create' => array( + 'path' => '{+parent}/zones', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{+path}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'path' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => '{+path}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'path' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{+parent}/zones', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'revert' => array( + 'path' => '{+path}:revert', + 'httpMethod' => 'POST', + 'parameters' => array( + 'path' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => '{+path}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'path' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'fingerprint' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->accounts_user_permissions = new Google_Service_TagManager_Resource_AccountsUserPermissions( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php index a9b7bef2..65bea367 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php @@ -25,6 +25,8 @@ class Google_Service_TagManager_ContainerVersion extends Google_Collection protected $containerDataType = ''; public $containerId; public $containerVersionId; + protected $customTemplateType = 'Google_Service_TagManager_CustomTemplate'; + protected $customTemplateDataType = 'array'; public $deleted; public $description; public $fingerprint; @@ -94,6 +96,20 @@ class Google_Service_TagManager_ContainerVersion extends Google_Collection { return $this->containerVersionId; } + /** + * @param Google_Service_TagManager_CustomTemplate + */ + public function setCustomTemplate($customTemplate) + { + $this->customTemplate = $customTemplate; + } + /** + * @return Google_Service_TagManager_CustomTemplate + */ + public function getCustomTemplate() + { + return $this->customTemplate; + } public function setDeleted($deleted) { $this->deleted = $deleted; diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php index 4c543ca0..c02d6e08 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php @@ -22,6 +22,7 @@ class Google_Service_TagManager_ContainerVersionHeader extends Google_Model public $containerVersionId; public $deleted; public $name; + public $numCustomTemplates; public $numMacros; public $numRules; public $numTags; @@ -70,6 +71,14 @@ class Google_Service_TagManager_ContainerVersionHeader extends Google_Model { return $this->name; } + public function setNumCustomTemplates($numCustomTemplates) + { + $this->numCustomTemplates = $numCustomTemplates; + } + public function getNumCustomTemplates() + { + return $this->numCustomTemplates; + } public function setNumMacros($numMacros) { $this->numMacros = $numMacros; diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/CreateWorkspaceProposalRequest.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/CreateWorkspaceProposalRequest.php deleted file mode 100644 index 52f04a92..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/CreateWorkspaceProposalRequest.php +++ /dev/null @@ -1,54 +0,0 @@ -initialComment = $initialComment; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalHistoryComment - */ - public function getInitialComment() - { - return $this->initialComment; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalUser - */ - public function setReviewers($reviewers) - { - $this->reviewers = $reviewers; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalUser - */ - public function getReviewers() - { - return $this->reviewers; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/CustomTemplate.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/CustomTemplate.php new file mode 100644 index 00000000..0f99a421 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/CustomTemplate.php @@ -0,0 +1,102 @@ +accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setContainerId($containerId) + { + $this->containerId = $containerId; + } + public function getContainerId() + { + return $this->containerId; + } + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + public function getFingerprint() + { + return $this->fingerprint; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPath($path) + { + $this->path = $path; + } + public function getPath() + { + return $this->path; + } + public function setTagManagerUrl($tagManagerUrl) + { + $this->tagManagerUrl = $tagManagerUrl; + } + public function getTagManagerUrl() + { + return $this->tagManagerUrl; + } + public function setTemplateData($templateData) + { + $this->templateData = $templateData; + } + public function getTemplateData() + { + return $this->templateData; + } + public function setTemplateId($templateId) + { + $this->templateId = $templateId; + } + public function getTemplateId() + { + return $this->templateId; + } + public function setWorkspaceId($workspaceId) + { + $this->workspaceId = $workspaceId; + } + public function getWorkspaceId() + { + return $this->workspaceId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/ListZonesResponse.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/ListZonesResponse.php new file mode 100644 index 00000000..c7b56d52 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/ListZonesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_TagManager_Zone + */ + public function setZone($zone) + { + $this->zone = $zone; + } + /** + * @return Google_Service_TagManager_Zone + */ + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php index 1b089676..146e6fa3 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php @@ -85,25 +85,6 @@ class Google_Service_TagManager_Resource_AccountsContainersEnvironments extends $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_TagManager_ListEnvironmentsResponse"); } - /** - * Updates a GTM Environment. This method supports patch semantics. - * (environments.patch) - * - * @param string $path GTM Environment's API relative path. Example: - * accounts/{account_id}/containers/{container_id}/environments/{environment_id} - * @param Google_Service_TagManager_Environment $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string fingerprint When provided, this fingerprint must match the - * fingerprint of the environment in storage. - * @return Google_Service_TagManager_Environment - */ - public function patch($path, Google_Service_TagManager_Environment $postBody, $optParams = array()) - { - $params = array('path' => $path, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_TagManager_Environment"); - } /** * Re-generates the authorization code for a GTM Environment. * (environments.reauthorize) diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspaces.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspaces.php index 1db6ddf3..04f90f6f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspaces.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspaces.php @@ -84,20 +84,6 @@ class Google_Service_TagManager_Resource_AccountsContainersWorkspaces extends Go $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_TagManager_Workspace"); } - /** - * Gets a GTM Workspace Proposal. (workspaces.getProposal) - * - * @param string $path GTM workspace proposal's relative path: Example: - * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_WorkspaceProposal - */ - public function getProposal($path, $optParams = array()) - { - $params = array('path' => $path); - $params = array_merge($params, $optParams); - return $this->call('getProposal', array($params), "Google_Service_TagManager_WorkspaceProposal"); - } /** * Finds conflicting and modified entities in the workspace. * (workspaces.getStatus) @@ -198,19 +184,4 @@ class Google_Service_TagManager_Resource_AccountsContainersWorkspaces extends Go $params = array_merge($params, $optParams); return $this->call('update', array($params), "Google_Service_TagManager_Workspace"); } - /** - * Updates a GTM Workspace Proposal. (workspaces.updateProposal) - * - * @param string $path GTM workspace proposal's relative path: Example: - * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal - * @param Google_Service_TagManager_UpdateWorkspaceProposalRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_WorkspaceProposal - */ - public function updateProposal($path, Google_Service_TagManager_UpdateWorkspaceProposalRequest $postBody, $optParams = array()) - { - $params = array('path' => $path, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateProposal', array($params), "Google_Service_TagManager_WorkspaceProposal"); - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesProposal.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesProposal.php deleted file mode 100644 index 99b4cd4a..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesProposal.php +++ /dev/null @@ -1,56 +0,0 @@ - - * $tagmanagerService = new Google_Service_TagManager(...); - * $proposal = $tagmanagerService->proposal; - * - */ -class Google_Service_TagManager_Resource_AccountsContainersWorkspacesProposal extends Google_Service_Resource -{ - /** - * Creates a GTM Workspace Proposal. (proposal.create) - * - * @param string $parent GTM Workspace's API relative path. Example: - * accounts/{aid}/containers/{cid}/workspace/{wid} - * @param Google_Service_TagManager_CreateWorkspaceProposalRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_TagManager_WorkspaceProposal - */ - public function create($parent, Google_Service_TagManager_CreateWorkspaceProposalRequest $postBody, $optParams = array()) - { - $params = array('parent' => $parent, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_TagManager_WorkspaceProposal"); - } - /** - * Deletes a GTM Workspace Proposal. (proposal.delete) - * - * @param string $path GTM workspace proposal's relative path: Example: - * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal - * @param array $optParams Optional parameters. - */ - public function delete($path, $optParams = array()) - { - $params = array('path' => $path); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesZones.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesZones.php new file mode 100644 index 00000000..74f8ca0d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersWorkspacesZones.php @@ -0,0 +1,123 @@ + + * $tagmanagerService = new Google_Service_TagManager(...); + * $zones = $tagmanagerService->zones; + * + */ +class Google_Service_TagManager_Resource_AccountsContainersWorkspacesZones extends Google_Service_Resource +{ + /** + * Creates a GTM Zone. (zones.create) + * + * @param string $parent GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + * @param Google_Service_TagManager_Zone $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Zone + */ + public function create($parent, Google_Service_TagManager_Zone $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_TagManager_Zone"); + } + /** + * Deletes a GTM Zone. (zones.delete) + * + * @param string $path GTM Zone's API relative path. Example: accounts/{account_ + * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} + * @param array $optParams Optional parameters. + */ + public function delete($path, $optParams = array()) + { + $params = array('path' => $path); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a GTM Zone. (zones.get) + * + * @param string $path GTM Zone's API relative path. Example: accounts/{account_ + * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} + * @param array $optParams Optional parameters. + * @return Google_Service_TagManager_Zone + */ + public function get($path, $optParams = array()) + { + $params = array('path' => $path); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_TagManager_Zone"); + } + /** + * Lists all GTM Zones of a GTM container workspace. + * (zones.listAccountsContainersWorkspacesZones) + * + * @param string $parent GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Continuation token for fetching the next page of + * results. + * @return Google_Service_TagManager_ListZonesResponse + */ + public function listAccountsContainersWorkspacesZones($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_TagManager_ListZonesResponse"); + } + /** + * Reverts changes to a GTM Zone in a GTM Workspace. (zones.revert) + * + * @param string $path GTM Zone's API relative path. Example: accounts/{account_ + * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the zone in storage. + * @return Google_Service_TagManager_RevertZoneResponse + */ + public function revert($path, $optParams = array()) + { + $params = array('path' => $path); + $params = array_merge($params, $optParams); + return $this->call('revert', array($params), "Google_Service_TagManager_RevertZoneResponse"); + } + /** + * Updates a GTM Zone. (zones.update) + * + * @param string $path GTM Zone's API relative path. Example: accounts/{account_ + * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} + * @param Google_Service_TagManager_Zone $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string fingerprint When provided, this fingerprint must match the + * fingerprint of the zone in storage. + * @return Google_Service_TagManager_Zone + */ + public function update($path, Google_Service_TagManager_Zone $postBody, $optParams = array()) + { + $params = array('path' => $path, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_TagManager_Zone"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/RevertZoneResponse.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/RevertZoneResponse.php new file mode 100644 index 00000000..07982388 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/RevertZoneResponse.php @@ -0,0 +1,37 @@ +zone = $zone; + } + /** + * @return Google_Service_TagManager_Zone + */ + public function getZone() + { + return $this->zone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/UpdateWorkspaceProposalRequest.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/UpdateWorkspaceProposalRequest.php deleted file mode 100644 index cc2c2523..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/UpdateWorkspaceProposalRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalHistoryComment - */ - public function setNewComment(Google_Service_TagManager_WorkspaceProposalHistoryComment $newComment) - { - $this->newComment = $newComment; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalHistoryComment - */ - public function getNewComment() - { - return $this->newComment; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalUser - */ - public function setReviewers($reviewers) - { - $this->reviewers = $reviewers; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalUser - */ - public function getReviewers() - { - return $this->reviewers; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/Variable.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/Variable.php index f6c1eec6..edc266ba 100644 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/Variable.php +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/Variable.php @@ -23,6 +23,8 @@ class Google_Service_TagManager_Variable extends Google_Collection public $disablingTriggerId; public $enablingTriggerId; public $fingerprint; + protected $formatValueType = 'Google_Service_TagManager_VariableFormatValue'; + protected $formatValueDataType = ''; public $name; public $notes; protected $parameterType = 'Google_Service_TagManager_Parameter'; @@ -76,6 +78,20 @@ class Google_Service_TagManager_Variable extends Google_Collection { return $this->fingerprint; } + /** + * @param Google_Service_TagManager_VariableFormatValue + */ + public function setFormatValue(Google_Service_TagManager_VariableFormatValue $formatValue) + { + $this->formatValue = $formatValue; + } + /** + * @return Google_Service_TagManager_VariableFormatValue + */ + public function getFormatValue() + { + return $this->formatValue; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/VariableFormatValue.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/VariableFormatValue.php new file mode 100644 index 00000000..60b5c8fa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/TagManager/VariableFormatValue.php @@ -0,0 +1,94 @@ +caseConversionType = $caseConversionType; + } + public function getCaseConversionType() + { + return $this->caseConversionType; + } + /** + * @param Google_Service_TagManager_Parameter + */ + public function setConvertFalseToValue(Google_Service_TagManager_Parameter $convertFalseToValue) + { + $this->convertFalseToValue = $convertFalseToValue; + } + /** + * @return Google_Service_TagManager_Parameter + */ + public function getConvertFalseToValue() + { + return $this->convertFalseToValue; + } + /** + * @param Google_Service_TagManager_Parameter + */ + public function setConvertNullToValue(Google_Service_TagManager_Parameter $convertNullToValue) + { + $this->convertNullToValue = $convertNullToValue; + } + /** + * @return Google_Service_TagManager_Parameter + */ + public function getConvertNullToValue() + { + return $this->convertNullToValue; + } + /** + * @param Google_Service_TagManager_Parameter + */ + public function setConvertTrueToValue(Google_Service_TagManager_Parameter $convertTrueToValue) + { + $this->convertTrueToValue = $convertTrueToValue; + } + /** + * @return Google_Service_TagManager_Parameter + */ + public function getConvertTrueToValue() + { + return $this->convertTrueToValue; + } + /** + * @param Google_Service_TagManager_Parameter + */ + public function setConvertUndefinedToValue(Google_Service_TagManager_Parameter $convertUndefinedToValue) + { + $this->convertUndefinedToValue = $convertUndefinedToValue; + } + /** + * @return Google_Service_TagManager_Parameter + */ + public function getConvertUndefinedToValue() + { + return $this->convertUndefinedToValue; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposal.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposal.php deleted file mode 100644 index 036d1781..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposal.php +++ /dev/null @@ -1,97 +0,0 @@ -authors = $authors; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalUser - */ - public function getAuthors() - { - return $this->authors; - } - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalHistory - */ - public function setHistory($history) - { - $this->history = $history; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalHistory - */ - public function getHistory() - { - return $this->history; - } - public function setPath($path) - { - $this->path = $path; - } - public function getPath() - { - return $this->path; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalUser - */ - public function setReviewers($reviewers) - { - $this->reviewers = $reviewers; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalUser - */ - public function getReviewers() - { - return $this->reviewers; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php deleted file mode 100644 index 365b1690..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistory.php +++ /dev/null @@ -1,94 +0,0 @@ -comment = $comment; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalHistoryComment - */ - public function getComment() - { - return $this->comment; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalUser - */ - public function setCreatedBy(Google_Service_TagManager_WorkspaceProposalUser $createdBy) - { - $this->createdBy = $createdBy; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalUser - */ - public function getCreatedBy() - { - return $this->createdBy; - } - /** - * @param Google_Service_TagManager_Timestamp - */ - public function setCreatedTimestamp(Google_Service_TagManager_Timestamp $createdTimestamp) - { - $this->createdTimestamp = $createdTimestamp; - } - /** - * @return Google_Service_TagManager_Timestamp - */ - public function getCreatedTimestamp() - { - return $this->createdTimestamp; - } - /** - * @param Google_Service_TagManager_WorkspaceProposalHistoryStatusChange - */ - public function setStatusChange(Google_Service_TagManager_WorkspaceProposalHistoryStatusChange $statusChange) - { - $this->statusChange = $statusChange; - } - /** - * @return Google_Service_TagManager_WorkspaceProposalHistoryStatusChange - */ - public function getStatusChange() - { - return $this->statusChange; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryStatusChange.php b/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryStatusChange.php deleted file mode 100644 index 0fbf2730..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/TagManager/WorkspaceProposalHistoryStatusChange.php +++ /dev/null @@ -1,39 +0,0 @@ -newStatus = $newStatus; - } - public function getNewStatus() - { - return $this->newStatus; - } - public function setOldStatus($oldStatus) - { - $this->oldStatus = $oldStatus; - } - public function getOldStatus() - { - return $this->oldStatus; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/Tasks.php b/vendor/google/apiclient-services/src/Google/Service/Tasks.php index f9812bca..5f65c1ed 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Tasks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Tasks.php @@ -19,7 +19,7 @@ * Service definition for Tasks (v1). * *- * Lets you manage your tasks and task lists.
+ * Manages your tasks and task lists. * ** For more information about this service, see the API @@ -30,7 +30,7 @@ */ class Google_Service_Tasks extends Google_Service { - /** Manage your tasks. */ + /** Create, edit, organize, and delete all your tasks. */ const TASKS = "https://www.googleapis.com/auth/tasks"; /** View your tasks. */ @@ -50,6 +50,7 @@ class Google_Service_Tasks extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tasks/v1/'; + $this->batchPath = 'batch/tasks/v1'; $this->version = 'v1'; $this->serviceName = 'tasks'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php b/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php index 01af8584..15132110 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php +++ b/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php @@ -70,7 +70,7 @@ class Google_Service_Tasks_Resource_Tasklists extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string maxResults Maximum number of task lists returned on one - * page. Optional. The default is 100. + * page. Optional. The default is 20 (max allowed: 100). * @opt_param string pageToken Token specifying the result page to return. * Optional. * @return Google_Service_Tasks_TaskLists diff --git a/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php b/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php index f769ef5a..894e77f0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php +++ b/vendor/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php @@ -103,7 +103,7 @@ class Google_Service_Tasks_Resource_Tasks extends Google_Service_Resource * @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 * timestamp) to filter by. Optional. The default is not to filter by due date. * @opt_param string maxResults Maximum number of task lists returned on one - * page. Optional. The default is 100. + * page. Optional. The default is 20 (max allowed: 100). * @opt_param string pageToken Token specifying the result page to return. * Optional. * @opt_param bool showCompleted Flag indicating whether completed tasks are diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing.php b/vendor/google/apiclient-services/src/Google/Service/Testing.php index 9502cabf..1e471e01 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing.php @@ -52,6 +52,7 @@ class Google_Service_Testing extends Google_Service parent::__construct($client); $this->rootUrl = 'https://testing.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'testing'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidInstrumentationTest.php b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidInstrumentationTest.php index 3202dac2..f5d3f0ca 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidInstrumentationTest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidInstrumentationTest.php @@ -20,6 +20,8 @@ class Google_Service_Testing_AndroidInstrumentationTest extends Google_Collectio protected $collection_key = 'testTargets'; protected $appApkType = 'Google_Service_Testing_FileReference'; protected $appApkDataType = ''; + protected $appBundleType = 'Google_Service_Testing_AppBundle'; + protected $appBundleDataType = ''; public $appPackageId; public $orchestratorOption; protected $testApkType = 'Google_Service_Testing_FileReference'; @@ -42,6 +44,20 @@ class Google_Service_Testing_AndroidInstrumentationTest extends Google_Collectio { return $this->appApk; } + /** + * @param Google_Service_Testing_AppBundle + */ + public function setAppBundle(Google_Service_Testing_AppBundle $appBundle) + { + $this->appBundle = $appBundle; + } + /** + * @return Google_Service_Testing_AppBundle + */ + public function getAppBundle() + { + return $this->appBundle; + } public function setAppPackageId($appPackageId) { $this->appPackageId = $appPackageId; diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidModel.php b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidModel.php index 8f037b4f..94dc0423 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidModel.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidModel.php @@ -21,7 +21,9 @@ class Google_Service_Testing_AndroidModel extends Google_Collection public $brand; public $codename; public $form; + public $formFactor; public $id; + public $lowFpsVideoRecording; public $manufacturer; public $name; public $screenDensity; @@ -30,7 +32,6 @@ class Google_Service_Testing_AndroidModel extends Google_Collection public $supportedAbis; public $supportedVersionIds; public $tags; - public $videoRecordingNotSupported; public function setBrand($brand) { @@ -56,6 +57,14 @@ class Google_Service_Testing_AndroidModel extends Google_Collection { return $this->form; } + public function setFormFactor($formFactor) + { + $this->formFactor = $formFactor; + } + public function getFormFactor() + { + return $this->formFactor; + } public function setId($id) { $this->id = $id; @@ -64,6 +73,14 @@ class Google_Service_Testing_AndroidModel extends Google_Collection { return $this->id; } + public function setLowFpsVideoRecording($lowFpsVideoRecording) + { + $this->lowFpsVideoRecording = $lowFpsVideoRecording; + } + public function getLowFpsVideoRecording() + { + return $this->lowFpsVideoRecording; + } public function setManufacturer($manufacturer) { $this->manufacturer = $manufacturer; @@ -128,12 +145,4 @@ class Google_Service_Testing_AndroidModel extends Google_Collection { return $this->tags; } - public function setVideoRecordingNotSupported($videoRecordingNotSupported) - { - $this->videoRecordingNotSupported = $videoRecordingNotSupported; - } - public function getVideoRecordingNotSupported() - { - return $this->videoRecordingNotSupported; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidRoboTest.php b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidRoboTest.php index f0575876..1f18e090 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidRoboTest.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidRoboTest.php @@ -20,6 +20,8 @@ class Google_Service_Testing_AndroidRoboTest extends Google_Collection protected $collection_key = 'startingIntents'; protected $appApkType = 'Google_Service_Testing_FileReference'; protected $appApkDataType = ''; + protected $appBundleType = 'Google_Service_Testing_AppBundle'; + protected $appBundleDataType = ''; public $appInitialActivity; public $appPackageId; public $maxDepth; @@ -45,6 +47,20 @@ class Google_Service_Testing_AndroidRoboTest extends Google_Collection { return $this->appApk; } + /** + * @param Google_Service_Testing_AppBundle + */ + public function setAppBundle(Google_Service_Testing_AppBundle $appBundle) + { + $this->appBundle = $appBundle; + } + /** + * @return Google_Service_Testing_AppBundle + */ + public function getAppBundle() + { + return $this->appBundle; + } public function setAppInitialActivity($appInitialActivity) { $this->appInitialActivity = $appInitialActivity; diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidTestLoop.php b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidTestLoop.php index 0bde3c63..ca225cdf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidTestLoop.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/AndroidTestLoop.php @@ -20,6 +20,8 @@ class Google_Service_Testing_AndroidTestLoop extends Google_Collection protected $collection_key = 'scenarios'; protected $appApkType = 'Google_Service_Testing_FileReference'; protected $appApkDataType = ''; + protected $appBundleType = 'Google_Service_Testing_AppBundle'; + protected $appBundleDataType = ''; public $appPackageId; public $scenarioLabels; public $scenarios; @@ -38,6 +40,20 @@ class Google_Service_Testing_AndroidTestLoop extends Google_Collection { return $this->appApk; } + /** + * @param Google_Service_Testing_AppBundle + */ + public function setAppBundle(Google_Service_Testing_AppBundle $appBundle) + { + $this->appBundle = $appBundle; + } + /** + * @return Google_Service_Testing_AppBundle + */ + public function getAppBundle() + { + return $this->appBundle; + } public function setAppPackageId($appPackageId) { $this->appPackageId = $appPackageId; diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/AppBundle.php b/vendor/google/apiclient-services/src/Google/Service/Testing/AppBundle.php new file mode 100644 index 00000000..013b9e12 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/AppBundle.php @@ -0,0 +1,37 @@ +bundleLocation = $bundleLocation; + } + /** + * @return Google_Service_Testing_FileReference + */ + public function getBundleLocation() + { + return $this->bundleLocation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/Environment.php b/vendor/google/apiclient-services/src/Google/Service/Testing/Environment.php index 32be1cdb..038a9c31 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/Environment.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/Environment.php @@ -19,6 +19,8 @@ class Google_Service_Testing_Environment extends Google_Model { protected $androidDeviceType = 'Google_Service_Testing_AndroidDevice'; protected $androidDeviceDataType = ''; + protected $iosDeviceType = 'Google_Service_Testing_IosDevice'; + protected $iosDeviceDataType = ''; /** * @param Google_Service_Testing_AndroidDevice @@ -34,4 +36,18 @@ class Google_Service_Testing_Environment extends Google_Model { return $this->androidDevice; } + /** + * @param Google_Service_Testing_IosDevice + */ + public function setIosDevice(Google_Service_Testing_IosDevice $iosDevice) + { + $this->iosDevice = $iosDevice; + } + /** + * @return Google_Service_Testing_IosDevice + */ + public function getIosDevice() + { + return $this->iosDevice; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/EnvironmentMatrix.php b/vendor/google/apiclient-services/src/Google/Service/Testing/EnvironmentMatrix.php index 9cbd5cfd..0fa7d51d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/EnvironmentMatrix.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/EnvironmentMatrix.php @@ -21,6 +21,8 @@ class Google_Service_Testing_EnvironmentMatrix extends Google_Model protected $androidDeviceListDataType = ''; protected $androidMatrixType = 'Google_Service_Testing_AndroidMatrix'; protected $androidMatrixDataType = ''; + protected $iosDeviceListType = 'Google_Service_Testing_IosDeviceList'; + protected $iosDeviceListDataType = ''; /** * @param Google_Service_Testing_AndroidDeviceList @@ -50,4 +52,18 @@ class Google_Service_Testing_EnvironmentMatrix extends Google_Model { return $this->androidMatrix; } + /** + * @param Google_Service_Testing_IosDeviceList + */ + public function setIosDeviceList(Google_Service_Testing_IosDeviceList $iosDeviceList) + { + $this->iosDeviceList = $iosDeviceList; + } + /** + * @return Google_Service_Testing_IosDeviceList + */ + public function getIosDeviceList() + { + return $this->iosDeviceList; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosDevice.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDevice.php new file mode 100644 index 00000000..d2ec20f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDevice.php @@ -0,0 +1,57 @@ +iosModelId = $iosModelId; + } + public function getIosModelId() + { + return $this->iosModelId; + } + public function setIosVersionId($iosVersionId) + { + $this->iosVersionId = $iosVersionId; + } + public function getIosVersionId() + { + return $this->iosVersionId; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setOrientation($orientation) + { + $this->orientation = $orientation; + } + public function getOrientation() + { + return $this->orientation; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceCatalog.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceCatalog.php new file mode 100644 index 00000000..9bdb031a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceCatalog.php @@ -0,0 +1,86 @@ +models = $models; + } + /** + * @return Google_Service_Testing_IosModel + */ + public function getModels() + { + return $this->models; + } + /** + * @param Google_Service_Testing_IosRuntimeConfiguration + */ + public function setRuntimeConfiguration(Google_Service_Testing_IosRuntimeConfiguration $runtimeConfiguration) + { + $this->runtimeConfiguration = $runtimeConfiguration; + } + /** + * @return Google_Service_Testing_IosRuntimeConfiguration + */ + public function getRuntimeConfiguration() + { + return $this->runtimeConfiguration; + } + /** + * @param Google_Service_Testing_IosVersion + */ + public function setVersions($versions) + { + $this->versions = $versions; + } + /** + * @return Google_Service_Testing_IosVersion + */ + public function getVersions() + { + return $this->versions; + } + /** + * @param Google_Service_Testing_XcodeVersion + */ + public function setXcodeVersions($xcodeVersions) + { + $this->xcodeVersions = $xcodeVersions; + } + /** + * @return Google_Service_Testing_XcodeVersion + */ + public function getXcodeVersions() + { + return $this->xcodeVersions; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceList.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceList.php new file mode 100644 index 00000000..cbdc041a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosDeviceList.php @@ -0,0 +1,38 @@ +iosDevices = $iosDevices; + } + /** + * @return Google_Service_Testing_IosDevice + */ + public function getIosDevices() + { + return $this->iosDevices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosModel.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosModel.php new file mode 100644 index 00000000..771bdfb7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosModel.php @@ -0,0 +1,76 @@ +deviceCapabilities = $deviceCapabilities; + } + public function getDeviceCapabilities() + { + return $this->deviceCapabilities; + } + public function setFormFactor($formFactor) + { + $this->formFactor = $formFactor; + } + public function getFormFactor() + { + return $this->formFactor; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSupportedVersionIds($supportedVersionIds) + { + $this->supportedVersionIds = $supportedVersionIds; + } + public function getSupportedVersionIds() + { + return $this->supportedVersionIds; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosRuntimeConfiguration.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosRuntimeConfiguration.php new file mode 100644 index 00000000..c74fbc90 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosRuntimeConfiguration.php @@ -0,0 +1,54 @@ +locales = $locales; + } + /** + * @return Google_Service_Testing_Locale + */ + public function getLocales() + { + return $this->locales; + } + /** + * @param Google_Service_Testing_Orientation + */ + public function setOrientations($orientations) + { + $this->orientations = $orientations; + } + /** + * @return Google_Service_Testing_Orientation + */ + public function getOrientations() + { + return $this->orientations; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosTestSetup.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosTestSetup.php new file mode 100644 index 00000000..76400bb7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosTestSetup.php @@ -0,0 +1,30 @@ +networkProfile = $networkProfile; + } + public function getNetworkProfile() + { + return $this->networkProfile; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosVersion.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosVersion.php new file mode 100644 index 00000000..e59d6cf9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosVersion.php @@ -0,0 +1,67 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + public function setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setSupportedXcodeVersionIds($supportedXcodeVersionIds) + { + $this->supportedXcodeVersionIds = $supportedXcodeVersionIds; + } + public function getSupportedXcodeVersionIds() + { + return $this->supportedXcodeVersionIds; + } + public function setTags($tags) + { + $this->tags = $tags; + } + public function getTags() + { + return $this->tags; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/IosXcTest.php b/vendor/google/apiclient-services/src/Google/Service/Testing/IosXcTest.php new file mode 100644 index 00000000..ae36d221 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/IosXcTest.php @@ -0,0 +1,71 @@ +appBundleId = $appBundleId; + } + public function getAppBundleId() + { + return $this->appBundleId; + } + /** + * @param Google_Service_Testing_FileReference + */ + public function setTestsZip(Google_Service_Testing_FileReference $testsZip) + { + $this->testsZip = $testsZip; + } + /** + * @return Google_Service_Testing_FileReference + */ + public function getTestsZip() + { + return $this->testsZip; + } + public function setXcodeVersion($xcodeVersion) + { + $this->xcodeVersion = $xcodeVersion; + } + public function getXcodeVersion() + { + return $this->xcodeVersion; + } + /** + * @param Google_Service_Testing_FileReference + */ + public function setXctestrun(Google_Service_Testing_FileReference $xctestrun) + { + $this->xctestrun = $xctestrun; + } + /** + * @return Google_Service_Testing_FileReference + */ + public function getXctestrun() + { + return $this->xctestrun; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/ProvidedSoftwareCatalog.php b/vendor/google/apiclient-services/src/Google/Service/Testing/ProvidedSoftwareCatalog.php new file mode 100644 index 00000000..8ea04383 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/ProvidedSoftwareCatalog.php @@ -0,0 +1,30 @@ +orchestratorVersion = $orchestratorVersion; + } + public function getOrchestratorVersion() + { + return $this->orchestratorVersion; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ApplicationDetailService.php b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ApplicationDetailService.php index c59629a5..462ee689 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ApplicationDetailService.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ApplicationDetailService.php @@ -26,7 +26,7 @@ class Google_Service_Testing_Resource_ApplicationDetailService extends Google_Service_Resource { /** - * Request the details of an Android application APK. + * Gets the details of an Android application APK. * (applicationDetailService.getApkDetails) * * @param Google_Service_Testing_FileReference $postBody diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ProjectsTestMatrices.php b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ProjectsTestMatrices.php index 7c350691..275e4f04 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ProjectsTestMatrices.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/ProjectsTestMatrices.php @@ -48,7 +48,7 @@ class Google_Service_Testing_Resource_ProjectsTestMatrices extends Google_Servic return $this->call('cancel', array($params), "Google_Service_Testing_CancelTestMatrixResponse"); } /** - * Request to run a matrix of tests according to the given specifications. + * Creates and runs a matrix of tests according to the given specifications. * Unsupported environments will be returned in the state UNSUPPORTED. Matrices * are limited to at most 200 supported executions. * @@ -76,7 +76,7 @@ class Google_Service_Testing_Resource_ProjectsTestMatrices extends Google_Servic return $this->call('create', array($params), "Google_Service_Testing_TestMatrix"); } /** - * Check the status of a test matrix. + * Checks the status of a test matrix. * * May return any of the following canonical error codes: * diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/TestEnvironmentCatalog.php b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/TestEnvironmentCatalog.php index 0b36251a..7f7b25ad 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/TestEnvironmentCatalog.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/Resource/TestEnvironmentCatalog.php @@ -26,7 +26,7 @@ class Google_Service_Testing_Resource_TestEnvironmentCatalog extends Google_Service_Resource { /** - * Get the catalog of supported test environments. + * Gets the catalog of supported test environments. * * May return any of the following canonical error codes: * @@ -34,12 +34,12 @@ class Google_Service_Testing_Resource_TestEnvironmentCatalog extends Google_Serv * environment type does not exist - INTERNAL - if an internal error occurred * (testEnvironmentCatalog.get) * - * @param string $environmentType The type of environment that should be listed. - * Required + * @param string $environmentType Required. The type of environment that should + * be listed. * @param array $optParams Optional parameters. * * @opt_param string projectId For authorization, the cloud project requesting - * the TestEnvironmentCatalog. Optional + * the TestEnvironmentCatalog. * @return Google_Service_Testing_TestEnvironmentCatalog */ public function get($environmentType, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/RoboStartingIntent.php b/vendor/google/apiclient-services/src/Google/Service/Testing/RoboStartingIntent.php index fe5de99c..11fa958c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/RoboStartingIntent.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/RoboStartingIntent.php @@ -21,6 +21,7 @@ class Google_Service_Testing_RoboStartingIntent extends Google_Model protected $launcherActivityDataType = ''; protected $startActivityType = 'Google_Service_Testing_StartActivityIntent'; protected $startActivityDataType = ''; + public $timeout; /** * @param Google_Service_Testing_LauncherActivityIntent @@ -50,4 +51,12 @@ class Google_Service_Testing_RoboStartingIntent extends Google_Model { return $this->startActivity; } + public function setTimeout($timeout) + { + $this->timeout = $timeout; + } + public function getTimeout() + { + return $this->timeout; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/TestDetails.php b/vendor/google/apiclient-services/src/Google/Service/Testing/TestDetails.php index 6e8d1f92..42c3a783 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/TestDetails.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/TestDetails.php @@ -20,7 +20,6 @@ class Google_Service_Testing_TestDetails extends Google_Collection protected $collection_key = 'progressMessages'; public $errorMessage; public $progressMessages; - public $videoRecordingDisabled; public function setErrorMessage($errorMessage) { @@ -38,12 +37,4 @@ class Google_Service_Testing_TestDetails extends Google_Collection { return $this->progressMessages; } - public function setVideoRecordingDisabled($videoRecordingDisabled) - { - $this->videoRecordingDisabled = $videoRecordingDisabled; - } - public function getVideoRecordingDisabled() - { - return $this->videoRecordingDisabled; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/TestEnvironmentCatalog.php b/vendor/google/apiclient-services/src/Google/Service/Testing/TestEnvironmentCatalog.php index 1360055f..83537a83 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/TestEnvironmentCatalog.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/TestEnvironmentCatalog.php @@ -19,8 +19,12 @@ class Google_Service_Testing_TestEnvironmentCatalog extends Google_Model { protected $androidDeviceCatalogType = 'Google_Service_Testing_AndroidDeviceCatalog'; protected $androidDeviceCatalogDataType = ''; + protected $iosDeviceCatalogType = 'Google_Service_Testing_IosDeviceCatalog'; + protected $iosDeviceCatalogDataType = ''; protected $networkConfigurationCatalogType = 'Google_Service_Testing_NetworkConfigurationCatalog'; protected $networkConfigurationCatalogDataType = ''; + protected $softwareCatalogType = 'Google_Service_Testing_ProvidedSoftwareCatalog'; + protected $softwareCatalogDataType = ''; /** * @param Google_Service_Testing_AndroidDeviceCatalog @@ -36,6 +40,20 @@ class Google_Service_Testing_TestEnvironmentCatalog extends Google_Model { return $this->androidDeviceCatalog; } + /** + * @param Google_Service_Testing_IosDeviceCatalog + */ + public function setIosDeviceCatalog(Google_Service_Testing_IosDeviceCatalog $iosDeviceCatalog) + { + $this->iosDeviceCatalog = $iosDeviceCatalog; + } + /** + * @return Google_Service_Testing_IosDeviceCatalog + */ + public function getIosDeviceCatalog() + { + return $this->iosDeviceCatalog; + } /** * @param Google_Service_Testing_NetworkConfigurationCatalog */ @@ -50,4 +68,18 @@ class Google_Service_Testing_TestEnvironmentCatalog extends Google_Model { return $this->networkConfigurationCatalog; } + /** + * @param Google_Service_Testing_ProvidedSoftwareCatalog + */ + public function setSoftwareCatalog(Google_Service_Testing_ProvidedSoftwareCatalog $softwareCatalog) + { + $this->softwareCatalog = $softwareCatalog; + } + /** + * @return Google_Service_Testing_ProvidedSoftwareCatalog + */ + public function getSoftwareCatalog() + { + return $this->softwareCatalog; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/TestMatrix.php b/vendor/google/apiclient-services/src/Google/Service/Testing/TestMatrix.php index 7a0aa433..dff8f64c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/TestMatrix.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/TestMatrix.php @@ -22,6 +22,7 @@ class Google_Service_Testing_TestMatrix extends Google_Collection protected $clientInfoDataType = ''; protected $environmentMatrixType = 'Google_Service_Testing_EnvironmentMatrix'; protected $environmentMatrixDataType = ''; + public $flakyTestAttempts; public $invalidMatrixDetails; public $projectId; protected $resultStorageType = 'Google_Service_Testing_ResultStorage'; @@ -62,6 +63,14 @@ class Google_Service_Testing_TestMatrix extends Google_Collection { return $this->environmentMatrix; } + public function setFlakyTestAttempts($flakyTestAttempts) + { + $this->flakyTestAttempts = $flakyTestAttempts; + } + public function getFlakyTestAttempts() + { + return $this->flakyTestAttempts; + } public function setInvalidMatrixDetails($invalidMatrixDetails) { $this->invalidMatrixDetails = $invalidMatrixDetails; diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/TestSpecification.php b/vendor/google/apiclient-services/src/Google/Service/Testing/TestSpecification.php index 31b0774f..cf1ef413 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Testing/TestSpecification.php +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/TestSpecification.php @@ -26,6 +26,10 @@ class Google_Service_Testing_TestSpecification extends Google_Model public $autoGoogleLogin; public $disablePerformanceMetrics; public $disableVideoRecording; + protected $iosTestSetupType = 'Google_Service_Testing_IosTestSetup'; + protected $iosTestSetupDataType = ''; + protected $iosXcTestType = 'Google_Service_Testing_IosXcTest'; + protected $iosXcTestDataType = ''; protected $testSetupType = 'Google_Service_Testing_TestSetup'; protected $testSetupDataType = ''; public $testTimeout; @@ -96,6 +100,34 @@ class Google_Service_Testing_TestSpecification extends Google_Model { return $this->disableVideoRecording; } + /** + * @param Google_Service_Testing_IosTestSetup + */ + public function setIosTestSetup(Google_Service_Testing_IosTestSetup $iosTestSetup) + { + $this->iosTestSetup = $iosTestSetup; + } + /** + * @return Google_Service_Testing_IosTestSetup + */ + public function getIosTestSetup() + { + return $this->iosTestSetup; + } + /** + * @param Google_Service_Testing_IosXcTest + */ + public function setIosXcTest(Google_Service_Testing_IosXcTest $iosXcTest) + { + $this->iosXcTest = $iosXcTest; + } + /** + * @return Google_Service_Testing_IosXcTest + */ + public function getIosXcTest() + { + return $this->iosXcTest; + } /** * @param Google_Service_Testing_TestSetup */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Testing/XcodeVersion.php b/vendor/google/apiclient-services/src/Google/Service/Testing/XcodeVersion.php new file mode 100644 index 00000000..ca5750b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Testing/XcodeVersion.php @@ -0,0 +1,40 @@ +tags = $tags; + } + public function getTags() + { + return $this->tags; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Texttospeech.php b/vendor/google/apiclient-services/src/Google/Service/Texttospeech.php index 4893bbdd..368df5dc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Texttospeech.php +++ b/vendor/google/apiclient-services/src/Google/Service/Texttospeech.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Texttospeech (v1beta1). + * Service definition for Texttospeech (v1). * *
* Synthesizes natural-sounding speech by applying powerful neural network @@ -24,7 +24,7 @@ * *
* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -48,7 +48,8 @@ class Google_Service_Texttospeech extends Google_Service parent::__construct($client); $this->rootUrl = 'https://texttospeech.googleapis.com/'; $this->servicePath = ''; - $this->version = 'v1beta1'; + $this->batchPath = 'batch'; + $this->version = 'v1'; $this->serviceName = 'texttospeech'; $this->text = new Google_Service_Texttospeech_Resource_Text( @@ -58,7 +59,7 @@ class Google_Service_Texttospeech extends Google_Service array( 'methods' => array( 'synthesize' => array( - 'path' => 'v1beta1/text:synthesize', + 'path' => 'v1/text:synthesize', 'httpMethod' => 'POST', 'parameters' => array(), ), @@ -72,7 +73,7 @@ class Google_Service_Texttospeech extends Google_Service array( 'methods' => array( 'list' => array( - 'path' => 'v1beta1/voices', + 'path' => 'v1/voices', 'httpMethod' => 'GET', 'parameters' => array( 'languageCode' => array( diff --git a/vendor/google/apiclient-services/src/Google/Service/Texttospeech/AudioConfig.php b/vendor/google/apiclient-services/src/Google/Service/Texttospeech/AudioConfig.php index e21af728..47a5bee6 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Texttospeech/AudioConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/Texttospeech/AudioConfig.php @@ -15,9 +15,11 @@ * the License. */ -class Google_Service_Texttospeech_AudioConfig extends Google_Model +class Google_Service_Texttospeech_AudioConfig extends Google_Collection { + protected $collection_key = 'effectsProfileId'; public $audioEncoding; + public $effectsProfileId; public $pitch; public $sampleRateHertz; public $speakingRate; @@ -31,6 +33,14 @@ class Google_Service_Texttospeech_AudioConfig extends Google_Model { return $this->audioEncoding; } + public function setEffectsProfileId($effectsProfileId) + { + $this->effectsProfileId = $effectsProfileId; + } + public function getEffectsProfileId() + { + return $this->effectsProfileId; + } public function setPitch($pitch) { $this->pitch = $pitch; diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults.php index 6a3deb9f..8a8d9573 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ToolResults.php +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults.php @@ -54,6 +54,7 @@ class Google_Service_ToolResults extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'toolresults/v1beta3/projects/'; + $this->batchPath = 'batch/toolresults/v1beta3'; $this->version = 'v1beta3'; $this->serviceName = 'toolresults'; diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/IndividualOutcome.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/IndividualOutcome.php new file mode 100644 index 00000000..af43f5a8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/IndividualOutcome.php @@ -0,0 +1,39 @@ +outcomeSummary = $outcomeSummary; + } + public function getOutcomeSummary() + { + return $this->outcomeSummary; + } + public function setStepId($stepId) + { + $this->stepId = $stepId; + } + public function getStepId() + { + return $this->stepId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/MultiStep.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/MultiStep.php new file mode 100644 index 00000000..a7d0c219 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/MultiStep.php @@ -0,0 +1,55 @@ +multistepNumber = $multistepNumber; + } + public function getMultistepNumber() + { + return $this->multistepNumber; + } + /** + * @param Google_Service_ToolResults_PrimaryStep + */ + public function setPrimaryStep(Google_Service_ToolResults_PrimaryStep $primaryStep) + { + $this->primaryStep = $primaryStep; + } + /** + * @return Google_Service_ToolResults_PrimaryStep + */ + public function getPrimaryStep() + { + return $this->primaryStep; + } + public function setPrimaryStepId($primaryStepId) + { + $this->primaryStepId = $primaryStepId; + } + public function getPrimaryStepId() + { + return $this->primaryStepId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/PrimaryStep.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/PrimaryStep.php new file mode 100644 index 00000000..b7a2e025 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/PrimaryStep.php @@ -0,0 +1,47 @@ +individualOutcome = $individualOutcome; + } + /** + * @return Google_Service_ToolResults_IndividualOutcome + */ + public function getIndividualOutcome() + { + return $this->individualOutcome; + } + public function setRollUp($rollUp) + { + $this->rollUp = $rollUp; + } + public function getRollUp() + { + return $this->rollUp; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php index b0cbf44c..ee5e9b62 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php @@ -85,7 +85,7 @@ class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutions extends Go return $this->call('get', array($params), "Google_Service_ToolResults_Execution"); } /** - * Lists Histories for a given Project. + * Lists Executions for a given History. * * The executions are sorted by creation_time in descending order. The * execution_id key will be used to order the executions with the same diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php index 63a32b24..083761dc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php @@ -17,18 +17,8 @@ class Google_Service_ToolResults_StackTrace extends Google_Model { - public $clusterId; public $exception; - public $reportId; - public function setClusterId($clusterId) - { - $this->clusterId = $clusterId; - } - public function getClusterId() - { - return $this->clusterId; - } public function setException($exception) { $this->exception = $exception; @@ -37,12 +27,4 @@ class Google_Service_ToolResults_StackTrace extends Google_Model { return $this->exception; } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } - public function getReportId() - { - return $this->reportId; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/Step.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/Step.php index 042466d5..9513e22a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ToolResults/Step.php +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/Step.php @@ -30,6 +30,8 @@ class Google_Service_ToolResults_Step extends Google_Collection public $hasImages; protected $labelsType = 'Google_Service_ToolResults_StepLabelsEntry'; protected $labelsDataType = 'array'; + protected $multiStepType = 'Google_Service_ToolResults_MultiStep'; + protected $multiStepDataType = ''; public $name; protected $outcomeType = 'Google_Service_ToolResults_Outcome'; protected $outcomeDataType = ''; @@ -128,6 +130,20 @@ class Google_Service_ToolResults_Step extends Google_Collection { return $this->labels; } + /** + * @param Google_Service_ToolResults_MultiStep + */ + public function setMultiStep(Google_Service_ToolResults_MultiStep $multiStep) + { + $this->multiStep = $multiStep; + } + /** + * @return Google_Service_ToolResults_MultiStep + */ + public function getMultiStep() + { + return $this->multiStep; + } public function setName($name) { $this->name = $name; diff --git a/vendor/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php b/vendor/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php index bb37982d..0d65b851 100644 --- a/vendor/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php +++ b/vendor/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php @@ -17,6 +17,7 @@ class Google_Service_ToolResults_TestIssue extends Google_Model { + public $category; public $errorMessage; public $severity; protected $stackTraceType = 'Google_Service_ToolResults_StackTrace'; @@ -25,6 +26,14 @@ class Google_Service_ToolResults_TestIssue extends Google_Model protected $warningType = 'Google_Service_ToolResults_Any'; protected $warningDataType = ''; + public function setCategory($category) + { + $this->category = $category; + } + public function getCategory() + { + return $this->category; + } public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; diff --git a/vendor/google/apiclient-services/src/Google/Service/Translate.php b/vendor/google/apiclient-services/src/Google/Service/Translate.php index 09c8c74c..37732f23 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Translate.php +++ b/vendor/google/apiclient-services/src/Google/Service/Translate.php @@ -52,6 +52,7 @@ class Google_Service_Translate extends Google_Service parent::__construct($client); $this->rootUrl = 'https://translation.googleapis.com/'; $this->servicePath = 'language/translate/'; + $this->batchPath = 'batch/translate'; $this->version = 'v2'; $this->serviceName = 'translate'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Urlshortener.php b/vendor/google/apiclient-services/src/Google/Service/Urlshortener.php index abfa717d..7fc412e1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Urlshortener.php +++ b/vendor/google/apiclient-services/src/Google/Service/Urlshortener.php @@ -46,6 +46,7 @@ class Google_Service_Urlshortener extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'urlshortener/v1/'; + $this->batchPath = 'batch/urlshortener/v1'; $this->version = 'v1'; $this->serviceName = 'urlshortener'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault.php b/vendor/google/apiclient-services/src/Google/Service/Vault.php index aecf50e2..d8407c5d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vault.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vault.php @@ -38,8 +38,10 @@ class Google_Service_Vault extends Google_Service "https://www.googleapis.com/auth/ediscovery.readonly"; public $matters; + public $matters_exports; public $matters_holds; public $matters_holds_accounts; + public $matters_savedQueries; /** * Constructs the internal representation of the Vault service. @@ -51,6 +53,7 @@ class Google_Service_Vault extends Google_Service parent::__construct($client); $this->rootUrl = 'https://vault.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'vault'; @@ -173,13 +176,96 @@ class Google_Service_Vault extends Google_Service ) ) ); + $this->matters_exports = new Google_Service_Vault_Resource_MattersExports( + $this, + $this->serviceName, + 'exports', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/matters/{matterId}/exports', + 'httpMethod' => 'POST', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/matters/{matterId}/exports/{exportId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'exportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/matters/{matterId}/exports/{exportId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'exportId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/matters/{matterId}/exports', + 'httpMethod' => 'GET', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->matters_holds = new Google_Service_Vault_Resource_MattersHolds( $this, $this->serviceName, 'holds', array( 'methods' => array( - 'create' => array( + 'addHeldAccounts' => array( + 'path' => 'v1/matters/{matterId}/holds/{holdId}:addHeldAccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'holdId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( 'path' => 'v1/matters/{matterId}/holds', 'httpMethod' => 'POST', 'parameters' => array( @@ -245,6 +331,21 @@ class Google_Service_Vault extends Google_Service 'type' => 'string', ), ), + ),'removeHeldAccounts' => array( + 'path' => 'v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'holdId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'update' => array( 'path' => 'v1/matters/{matterId}/holds/{holdId}', 'httpMethod' => 'PUT', @@ -324,5 +425,73 @@ class Google_Service_Vault extends Google_Service ) ) ); + $this->matters_savedQueries = new Google_Service_Vault_Resource_MattersSavedQueries( + $this, + $this->serviceName, + 'savedQueries', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/matters/{matterId}/savedQueries', + 'httpMethod' => 'POST', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/matters/{matterId}/savedQueries/{savedQueryId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'savedQueryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/matters/{matterId}/savedQueries/{savedQueryId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'savedQueryId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/matters/{matterId}/savedQueries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'matterId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/AccountInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vault/AccountInfo.php new file mode 100644 index 00000000..3d94b2b5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/AccountInfo.php @@ -0,0 +1,31 @@ +emails = $emails; + } + public function getEmails() + { + return $this->emails; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountResult.php b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountResult.php new file mode 100644 index 00000000..7975198e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountResult.php @@ -0,0 +1,53 @@ +account = $account; + } + /** + * @return Google_Service_Vault_HeldAccount + */ + public function getAccount() + { + return $this->account; + } + /** + * @param Google_Service_Vault_Status + */ + public function setStatus(Google_Service_Vault_Status $status) + { + $this->status = $status; + } + /** + * @return Google_Service_Vault_Status + */ + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsRequest.php new file mode 100644 index 00000000..e478fbb2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsRequest.php @@ -0,0 +1,40 @@ +accountIds = $accountIds; + } + public function getAccountIds() + { + return $this->accountIds; + } + public function setEmails($emails) + { + $this->emails = $emails; + } + public function getEmails() + { + return $this->emails; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsResponse.php new file mode 100644 index 00000000..ca8fdf88 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/AddHeldAccountsResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vault_AddHeldAccountResult + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageFile.php b/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageFile.php new file mode 100644 index 00000000..ca711e43 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageFile.php @@ -0,0 +1,57 @@ +bucketName = $bucketName; + } + public function getBucketName() + { + return $this->bucketName; + } + public function setMd5Hash($md5Hash) + { + $this->md5Hash = $md5Hash; + } + public function getMd5Hash() + { + return $this->md5Hash; + } + public function setObjectName($objectName) + { + $this->objectName = $objectName; + } + public function getObjectName() + { + return $this->objectName; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageSink.php b/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageSink.php new file mode 100644 index 00000000..77748b44 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/CloudStorageSink.php @@ -0,0 +1,38 @@ +files = $files; + } + /** + * @return Google_Service_Vault_CloudStorageFile + */ + public function getFiles() + { + return $this->files; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/DriveExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/DriveExportOptions.php new file mode 100644 index 00000000..5b0fb403 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/DriveExportOptions.php @@ -0,0 +1,30 @@ +includeAccessInfo = $includeAccessInfo; + } + public function getIncludeAccessInfo() + { + return $this->includeAccessInfo; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/DriveOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/DriveOptions.php new file mode 100644 index 00000000..43a48928 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/DriveOptions.php @@ -0,0 +1,39 @@ +includeTeamDrives = $includeTeamDrives; + } + public function getIncludeTeamDrives() + { + return $this->includeTeamDrives; + } + public function setVersionDate($versionDate) + { + $this->versionDate = $versionDate; + } + public function getVersionDate() + { + return $this->versionDate; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/Export.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Export.php new file mode 100644 index 00000000..7fe1f1eb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Export.php @@ -0,0 +1,146 @@ +cloudStorageSink = $cloudStorageSink; + } + /** + * @return Google_Service_Vault_CloudStorageSink + */ + public function getCloudStorageSink() + { + return $this->cloudStorageSink; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param Google_Service_Vault_ExportOptions + */ + public function setExportOptions(Google_Service_Vault_ExportOptions $exportOptions) + { + $this->exportOptions = $exportOptions; + } + /** + * @return Google_Service_Vault_ExportOptions + */ + public function getExportOptions() + { + return $this->exportOptions; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMatterId($matterId) + { + $this->matterId = $matterId; + } + public function getMatterId() + { + return $this->matterId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + /** + * @param Google_Service_Vault_Query + */ + public function setQuery(Google_Service_Vault_Query $query) + { + $this->query = $query; + } + /** + * @return Google_Service_Vault_Query + */ + public function getQuery() + { + return $this->query; + } + /** + * @param Google_Service_Vault_UserInfo + */ + public function setRequester(Google_Service_Vault_UserInfo $requester) + { + $this->requester = $requester; + } + /** + * @return Google_Service_Vault_UserInfo + */ + public function getRequester() + { + return $this->requester; + } + /** + * @param Google_Service_Vault_ExportStats + */ + public function setStats(Google_Service_Vault_ExportStats $stats) + { + $this->stats = $stats; + } + /** + * @return Google_Service_Vault_ExportStats + */ + public function getStats() + { + return $this->stats; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/ExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/ExportOptions.php new file mode 100644 index 00000000..365e5c7c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/ExportOptions.php @@ -0,0 +1,94 @@ +driveOptions = $driveOptions; + } + /** + * @return Google_Service_Vault_DriveExportOptions + */ + public function getDriveOptions() + { + return $this->driveOptions; + } + /** + * @param Google_Service_Vault_GroupsExportOptions + */ + public function setGroupsOptions(Google_Service_Vault_GroupsExportOptions $groupsOptions) + { + $this->groupsOptions = $groupsOptions; + } + /** + * @return Google_Service_Vault_GroupsExportOptions + */ + public function getGroupsOptions() + { + return $this->groupsOptions; + } + /** + * @param Google_Service_Vault_HangoutsChatExportOptions + */ + public function setHangoutsChatOptions(Google_Service_Vault_HangoutsChatExportOptions $hangoutsChatOptions) + { + $this->hangoutsChatOptions = $hangoutsChatOptions; + } + /** + * @return Google_Service_Vault_HangoutsChatExportOptions + */ + public function getHangoutsChatOptions() + { + return $this->hangoutsChatOptions; + } + /** + * @param Google_Service_Vault_MailExportOptions + */ + public function setMailOptions(Google_Service_Vault_MailExportOptions $mailOptions) + { + $this->mailOptions = $mailOptions; + } + /** + * @return Google_Service_Vault_MailExportOptions + */ + public function getMailOptions() + { + return $this->mailOptions; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/ExportStats.php b/vendor/google/apiclient-services/src/Google/Service/Vault/ExportStats.php new file mode 100644 index 00000000..79297987 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/ExportStats.php @@ -0,0 +1,48 @@ +exportedArtifactCount = $exportedArtifactCount; + } + public function getExportedArtifactCount() + { + return $this->exportedArtifactCount; + } + public function setSizeInBytes($sizeInBytes) + { + $this->sizeInBytes = $sizeInBytes; + } + public function getSizeInBytes() + { + return $this->sizeInBytes; + } + public function setTotalArtifactCount($totalArtifactCount) + { + $this->totalArtifactCount = $totalArtifactCount; + } + public function getTotalArtifactCount() + { + return $this->totalArtifactCount; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/GroupsExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/GroupsExportOptions.php new file mode 100644 index 00000000..7ab39250 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/GroupsExportOptions.php @@ -0,0 +1,30 @@ +exportFormat = $exportFormat; + } + public function getExportFormat() + { + return $this->exportFormat; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatExportOptions.php new file mode 100644 index 00000000..09925f0f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatExportOptions.php @@ -0,0 +1,30 @@ +exportFormat = $exportFormat; + } + public function getExportFormat() + { + return $this->exportFormat; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatInfo.php new file mode 100644 index 00000000..b930a0aa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatInfo.php @@ -0,0 +1,31 @@ +roomId = $roomId; + } + public function getRoomId() + { + return $this->roomId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatOptions.php new file mode 100644 index 00000000..6ce9bc30 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/HangoutsChatOptions.php @@ -0,0 +1,30 @@ +includeRooms = $includeRooms; + } + public function getIncludeRooms() + { + return $this->includeRooms; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/ListExportsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vault/ListExportsResponse.php new file mode 100644 index 00000000..111ac3af --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/ListExportsResponse.php @@ -0,0 +1,47 @@ +exports = $exports; + } + /** + * @return Google_Service_Vault_Export + */ + public function getExports() + { + return $this->exports; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/ListSavedQueriesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vault/ListSavedQueriesResponse.php new file mode 100644 index 00000000..1b3a15a9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/ListSavedQueriesResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Vault_SavedQuery + */ + public function setSavedQueries($savedQueries) + { + $this->savedQueries = $savedQueries; + } + /** + * @return Google_Service_Vault_SavedQuery + */ + public function getSavedQueries() + { + return $this->savedQueries; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/MailExportOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/MailExportOptions.php new file mode 100644 index 00000000..2aae7e75 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/MailExportOptions.php @@ -0,0 +1,30 @@ +exportFormat = $exportFormat; + } + public function getExportFormat() + { + return $this->exportFormat; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/MailOptions.php b/vendor/google/apiclient-services/src/Google/Service/Vault/MailOptions.php new file mode 100644 index 00000000..69cfbae2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/MailOptions.php @@ -0,0 +1,30 @@ +excludeDrafts = $excludeDrafts; + } + public function getExcludeDrafts() + { + return $this->excludeDrafts; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/OrgUnitInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vault/OrgUnitInfo.php new file mode 100644 index 00000000..80745d87 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/OrgUnitInfo.php @@ -0,0 +1,30 @@ +orgUnitId = $orgUnitId; + } + public function getOrgUnitId() + { + return $this->orgUnitId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/Query.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Query.php new file mode 100644 index 00000000..42a90423 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Query.php @@ -0,0 +1,196 @@ +accountInfo = $accountInfo; + } + /** + * @return Google_Service_Vault_AccountInfo + */ + public function getAccountInfo() + { + return $this->accountInfo; + } + public function setCorpus($corpus) + { + $this->corpus = $corpus; + } + public function getCorpus() + { + return $this->corpus; + } + public function setDataScope($dataScope) + { + $this->dataScope = $dataScope; + } + public function getDataScope() + { + return $this->dataScope; + } + /** + * @param Google_Service_Vault_DriveOptions + */ + public function setDriveOptions(Google_Service_Vault_DriveOptions $driveOptions) + { + $this->driveOptions = $driveOptions; + } + /** + * @return Google_Service_Vault_DriveOptions + */ + public function getDriveOptions() + { + return $this->driveOptions; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + /** + * @param Google_Service_Vault_HangoutsChatInfo + */ + public function setHangoutsChatInfo(Google_Service_Vault_HangoutsChatInfo $hangoutsChatInfo) + { + $this->hangoutsChatInfo = $hangoutsChatInfo; + } + /** + * @return Google_Service_Vault_HangoutsChatInfo + */ + public function getHangoutsChatInfo() + { + return $this->hangoutsChatInfo; + } + /** + * @param Google_Service_Vault_HangoutsChatOptions + */ + public function setHangoutsChatOptions(Google_Service_Vault_HangoutsChatOptions $hangoutsChatOptions) + { + $this->hangoutsChatOptions = $hangoutsChatOptions; + } + /** + * @return Google_Service_Vault_HangoutsChatOptions + */ + public function getHangoutsChatOptions() + { + return $this->hangoutsChatOptions; + } + /** + * @param Google_Service_Vault_MailOptions + */ + public function setMailOptions(Google_Service_Vault_MailOptions $mailOptions) + { + $this->mailOptions = $mailOptions; + } + /** + * @return Google_Service_Vault_MailOptions + */ + public function getMailOptions() + { + return $this->mailOptions; + } + /** + * @param Google_Service_Vault_OrgUnitInfo + */ + public function setOrgUnitInfo(Google_Service_Vault_OrgUnitInfo $orgUnitInfo) + { + $this->orgUnitInfo = $orgUnitInfo; + } + /** + * @return Google_Service_Vault_OrgUnitInfo + */ + public function getOrgUnitInfo() + { + return $this->orgUnitInfo; + } + public function setSearchMethod($searchMethod) + { + $this->searchMethod = $searchMethod; + } + public function getSearchMethod() + { + return $this->searchMethod; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + /** + * @param Google_Service_Vault_TeamDriveInfo + */ + public function setTeamDriveInfo(Google_Service_Vault_TeamDriveInfo $teamDriveInfo) + { + $this->teamDriveInfo = $teamDriveInfo; + } + /** + * @return Google_Service_Vault_TeamDriveInfo + */ + public function getTeamDriveInfo() + { + return $this->teamDriveInfo; + } + public function setTerms($terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } + public function setTimeZone($timeZone) + { + $this->timeZone = $timeZone; + } + public function getTimeZone() + { + return $this->timeZone; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsRequest.php new file mode 100644 index 00000000..e86a7804 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsRequest.php @@ -0,0 +1,31 @@ +accountIds = $accountIds; + } + public function getAccountIds() + { + return $this->accountIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsResponse.php new file mode 100644 index 00000000..2fdac1de --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/RemoveHeldAccountsResponse.php @@ -0,0 +1,38 @@ +statuses = $statuses; + } + /** + * @return Google_Service_Vault_Status + */ + public function getStatuses() + { + return $this->statuses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersExports.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersExports.php new file mode 100644 index 00000000..294b8ea0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersExports.php @@ -0,0 +1,86 @@ + + * $vaultService = new Google_Service_Vault(...); + * $exports = $vaultService->exports; + * + */ +class Google_Service_Vault_Resource_MattersExports extends Google_Service_Resource +{ + /** + * Creates an Export. (exports.create) + * + * @param string $matterId The matter ID. + * @param Google_Service_Vault_Export $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_Export + */ + public function create($matterId, Google_Service_Vault_Export $postBody, $optParams = array()) + { + $params = array('matterId' => $matterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Vault_Export"); + } + /** + * Deletes an Export. (exports.delete) + * + * @param string $matterId The matter ID. + * @param string $exportId The export ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_VaultEmpty + */ + public function delete($matterId, $exportId, $optParams = array()) + { + $params = array('matterId' => $matterId, 'exportId' => $exportId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Vault_VaultEmpty"); + } + /** + * Gets an Export. (exports.get) + * + * @param string $matterId The matter ID. + * @param string $exportId The export ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_Export + */ + public function get($matterId, $exportId, $optParams = array()) + { + $params = array('matterId' => $matterId, 'exportId' => $exportId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Vault_Export"); + } + /** + * Lists Exports. (exports.listMattersExports) + * + * @param string $matterId The matter ID. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The pagination token as returned in the response. + * @opt_param int pageSize The number of exports to return in the response. + * @return Google_Service_Vault_ListExportsResponse + */ + public function listMattersExports($matterId, $optParams = array()) + { + $params = array('matterId' => $matterId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vault_ListExportsResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersHolds.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersHolds.php index 0ee6f8bb..07fa3b54 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersHolds.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersHolds.php @@ -25,6 +25,23 @@ */ class Google_Service_Vault_Resource_MattersHolds extends Google_Service_Resource { + /** + * Adds HeldAccounts to a hold. Returns a list of accounts that have been + * successfully added. Accounts can only be added to an existing account-based + * hold. (holds.addHeldAccounts) + * + * @param string $matterId The matter ID. + * @param string $holdId The hold ID. + * @param Google_Service_Vault_AddHeldAccountsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_AddHeldAccountsResponse + */ + public function addHeldAccounts($matterId, $holdId, Google_Service_Vault_AddHeldAccountsRequest $postBody, $optParams = array()) + { + $params = array('matterId' => $matterId, 'holdId' => $holdId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addHeldAccounts', array($params), "Google_Service_Vault_AddHeldAccountsResponse"); + } /** * Creates a hold in the given matter. (holds.create) * @@ -91,6 +108,23 @@ class Google_Service_Vault_Resource_MattersHolds extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Vault_ListHoldsResponse"); } + /** + * Removes HeldAccounts from a hold. Returns a list of statuses in the same + * order as the request. If this request leaves the hold with no held accounts, + * the hold will not apply to any accounts. (holds.removeHeldAccounts) + * + * @param string $matterId The matter ID. + * @param string $holdId The hold ID. + * @param Google_Service_Vault_RemoveHeldAccountsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_RemoveHeldAccountsResponse + */ + public function removeHeldAccounts($matterId, $holdId, Google_Service_Vault_RemoveHeldAccountsRequest $postBody, $optParams = array()) + { + $params = array('matterId' => $matterId, 'holdId' => $holdId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeHeldAccounts', array($params), "Google_Service_Vault_RemoveHeldAccountsResponse"); + } /** * Updates the OU and/or query parameters of a hold. You cannot add accounts to * a hold that covers an OU, nor can you add OUs to a hold that covers diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersSavedQueries.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersSavedQueries.php new file mode 100644 index 00000000..ffb16cda --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Resource/MattersSavedQueries.php @@ -0,0 +1,93 @@ + + * $vaultService = new Google_Service_Vault(...); + * $savedQueries = $vaultService->savedQueries; + * + */ +class Google_Service_Vault_Resource_MattersSavedQueries extends Google_Service_Resource +{ + /** + * Creates a saved query. (savedQueries.create) + * + * @param string $matterId The matter id of the parent matter for which the + * saved query is to be created. + * @param Google_Service_Vault_SavedQuery $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_SavedQuery + */ + public function create($matterId, Google_Service_Vault_SavedQuery $postBody, $optParams = array()) + { + $params = array('matterId' => $matterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Vault_SavedQuery"); + } + /** + * Deletes a saved query by Id. (savedQueries.delete) + * + * @param string $matterId The matter id of the parent matter for which the + * saved query is to be deleted. + * @param string $savedQueryId Id of the saved query to be deleted. + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_VaultEmpty + */ + public function delete($matterId, $savedQueryId, $optParams = array()) + { + $params = array('matterId' => $matterId, 'savedQueryId' => $savedQueryId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Vault_VaultEmpty"); + } + /** + * Retrieves a saved query by Id. (savedQueries.get) + * + * @param string $matterId The matter id of the parent matter for which the + * saved query is to be retrieved. + * @param string $savedQueryId Id of the saved query to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Vault_SavedQuery + */ + public function get($matterId, $savedQueryId, $optParams = array()) + { + $params = array('matterId' => $matterId, 'savedQueryId' => $savedQueryId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Vault_SavedQuery"); + } + /** + * Lists saved queries within a matter. An empty page token in + * ListSavedQueriesResponse denotes no more saved queries to list. + * (savedQueries.listMattersSavedQueries) + * + * @param string $matterId The matter id of the parent matter for which the + * saved queries are to be retrieved. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The pagination token as returned in the previous + * response. An empty token means start from the beginning. + * @opt_param int pageSize The maximum number of saved queries to return. + * @return Google_Service_Vault_ListSavedQueriesResponse + */ + public function listMattersSavedQueries($matterId, $optParams = array()) + { + $params = array('matterId' => $matterId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vault_ListSavedQueriesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/SavedQuery.php b/vendor/google/apiclient-services/src/Google/Service/Vault/SavedQuery.php new file mode 100644 index 00000000..8cf3e08a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/SavedQuery.php @@ -0,0 +1,73 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setMatterId($matterId) + { + $this->matterId = $matterId; + } + public function getMatterId() + { + return $this->matterId; + } + /** + * @param Google_Service_Vault_Query + */ + public function setQuery(Google_Service_Vault_Query $query) + { + $this->query = $query; + } + /** + * @return Google_Service_Vault_Query + */ + public function getQuery() + { + return $this->query; + } + public function setSavedQueryId($savedQueryId) + { + $this->savedQueryId = $savedQueryId; + } + public function getSavedQueryId() + { + return $this->savedQueryId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php b/vendor/google/apiclient-services/src/Google/Service/Vault/Status.php similarity index 78% rename from vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php rename to vendor/google/apiclient-services/src/Google/Service/Vault/Status.php index 44f907db..b389ac98 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/Status.php @@ -15,10 +15,11 @@ * the License. */ -class Google_Service_Replicapool_OperationErrorErrors extends Google_Model +class Google_Service_Vault_Status extends Google_Collection { + protected $collection_key = 'details'; public $code; - public $location; + public $details; public $message; public function setCode($code) @@ -29,13 +30,13 @@ class Google_Service_Replicapool_OperationErrorErrors extends Google_Model { return $this->code; } - public function setLocation($location) + public function setDetails($details) { - $this->location = $location; + $this->details = $details; } - public function getLocation() + public function getDetails() { - return $this->location; + return $this->details; } public function setMessage($message) { diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/TeamDriveInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vault/TeamDriveInfo.php new file mode 100644 index 00000000..7d1e627f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/TeamDriveInfo.php @@ -0,0 +1,31 @@ +teamDriveIds = $teamDriveIds; + } + public function getTeamDriveIds() + { + return $this->teamDriveIds; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vault/UserInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vault/UserInfo.php new file mode 100644 index 00000000..76d139c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vault/UserInfo.php @@ -0,0 +1,39 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision.php b/vendor/google/apiclient-services/src/Google/Service/Vision.php index eba571b2..51e56dc1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vision.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision.php @@ -39,9 +39,14 @@ class Google_Service_Vision extends Google_Service const CLOUD_VISION = "https://www.googleapis.com/auth/cloud-vision"; + public $files; public $images; public $locations_operations; public $operations; + public $projects_locations_productSets; + public $projects_locations_productSets_products; + public $projects_locations_products; + public $projects_locations_products_referenceImages; /** * Constructs the internal representation of the Vision service. @@ -53,9 +58,24 @@ class Google_Service_Vision extends Google_Service parent::__construct($client); $this->rootUrl = 'https://vision.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'vision'; + $this->files = new Google_Service_Vision_Resource_Files( + $this, + $this->serviceName, + 'files', + array( + 'methods' => array( + 'asyncBatchAnnotate' => array( + 'path' => 'v1/files:asyncBatchAnnotate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); $this->images = new Google_Service_Vision_Resource_Images( $this, $this->serviceName, @@ -152,5 +172,277 @@ class Google_Service_Vision extends Google_Service ) ) ); + $this->projects_locations_productSets = new Google_Service_Vision_Resource_ProjectsLocationsProductSets( + $this, + $this->serviceName, + 'productSets', + array( + 'methods' => array( + 'addProduct' => array( + 'path' => 'v1/{+name}:addProduct', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'create' => array( + 'path' => 'v1/{+parent}/productSets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productSetId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'import' => array( + 'path' => 'v1/{+parent}/productSets:import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/productSets', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'removeProduct' => array( + 'path' => 'v1/{+name}:removeProduct', + 'httpMethod' => 'POST', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_locations_productSets_products = new Google_Service_Vision_Resource_ProjectsLocationsProductSetsProducts( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+name}/products', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->projects_locations_products = new Google_Service_Vision_Resource_ProjectsLocationsProducts( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/products', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/products', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'updateMask' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_locations_products_referenceImages = new Google_Service_Vision_Resource_ProjectsLocationsProductsReferenceImages( + $this, + $this->serviceName, + 'referenceImages', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/{+parent}/referenceImages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'referenceImageId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'delete' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+parent}/referenceImages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'parent' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AddProductToProductSetRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AddProductToProductSetRequest.php new file mode 100644 index 00000000..2d8b2cb8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AddProductToProductSetRequest.php @@ -0,0 +1,30 @@ +product = $product; + } + public function getProduct() + { + return $this->product; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateFileResponse.php new file mode 100644 index 00000000..d054c6f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateFileResponse.php @@ -0,0 +1,54 @@ +inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_InputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } + /** + * @param Google_Service_Vision_AnnotateImageResponse + */ + public function setResponses($responses) + { + $this->responses = $responses; + } + /** + * @return Google_Service_Vision_AnnotateImageResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php index 7d99ee48..49c61a1c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php @@ -18,6 +18,8 @@ class Google_Service_Vision_AnnotateImageResponse extends Google_Collection { protected $collection_key = 'textAnnotations'; + protected $contextType = 'Google_Service_Vision_ImageAnnotationContext'; + protected $contextDataType = ''; protected $cropHintsAnnotationType = 'Google_Service_Vision_CropHintsAnnotation'; protected $cropHintsAnnotationDataType = ''; protected $errorType = 'Google_Service_Vision_Status'; @@ -32,8 +34,12 @@ class Google_Service_Vision_AnnotateImageResponse extends Google_Collection protected $labelAnnotationsDataType = 'array'; protected $landmarkAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; protected $landmarkAnnotationsDataType = 'array'; + protected $localizedObjectAnnotationsType = 'Google_Service_Vision_LocalizedObjectAnnotation'; + protected $localizedObjectAnnotationsDataType = 'array'; protected $logoAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; protected $logoAnnotationsDataType = 'array'; + protected $productSearchResultsType = 'Google_Service_Vision_ProductSearchResults'; + protected $productSearchResultsDataType = ''; protected $safeSearchAnnotationType = 'Google_Service_Vision_SafeSearchAnnotation'; protected $safeSearchAnnotationDataType = ''; protected $textAnnotationsType = 'Google_Service_Vision_EntityAnnotation'; @@ -41,6 +47,20 @@ class Google_Service_Vision_AnnotateImageResponse extends Google_Collection protected $webDetectionType = 'Google_Service_Vision_WebDetection'; protected $webDetectionDataType = ''; + /** + * @param Google_Service_Vision_ImageAnnotationContext + */ + public function setContext(Google_Service_Vision_ImageAnnotationContext $context) + { + $this->context = $context; + } + /** + * @return Google_Service_Vision_ImageAnnotationContext + */ + public function getContext() + { + return $this->context; + } /** * @param Google_Service_Vision_CropHintsAnnotation */ @@ -139,6 +159,20 @@ class Google_Service_Vision_AnnotateImageResponse extends Google_Collection { return $this->landmarkAnnotations; } + /** + * @param Google_Service_Vision_LocalizedObjectAnnotation + */ + public function setLocalizedObjectAnnotations($localizedObjectAnnotations) + { + $this->localizedObjectAnnotations = $localizedObjectAnnotations; + } + /** + * @return Google_Service_Vision_LocalizedObjectAnnotation + */ + public function getLocalizedObjectAnnotations() + { + return $this->localizedObjectAnnotations; + } /** * @param Google_Service_Vision_EntityAnnotation */ @@ -153,6 +187,20 @@ class Google_Service_Vision_AnnotateImageResponse extends Google_Collection { return $this->logoAnnotations; } + /** + * @param Google_Service_Vision_ProductSearchResults + */ + public function setProductSearchResults(Google_Service_Vision_ProductSearchResults $productSearchResults) + { + $this->productSearchResults = $productSearchResults; + } + /** + * @return Google_Service_Vision_ProductSearchResults + */ + public function getProductSearchResults() + { + return $this->productSearchResults; + } /** * @param Google_Service_Vision_SafeSearchAnnotation */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileRequest.php new file mode 100644 index 00000000..ccfad83d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileRequest.php @@ -0,0 +1,86 @@ +features = $features; + } + /** + * @return Google_Service_Vision_Feature + */ + public function getFeatures() + { + return $this->features; + } + /** + * @param Google_Service_Vision_ImageContext + */ + public function setImageContext(Google_Service_Vision_ImageContext $imageContext) + { + $this->imageContext = $imageContext; + } + /** + * @return Google_Service_Vision_ImageContext + */ + public function getImageContext() + { + return $this->imageContext; + } + /** + * @param Google_Service_Vision_InputConfig + */ + public function setInputConfig(Google_Service_Vision_InputConfig $inputConfig) + { + $this->inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_InputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } + /** + * @param Google_Service_Vision_OutputConfig + */ + public function setOutputConfig(Google_Service_Vision_OutputConfig $outputConfig) + { + $this->outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileResponse.php new file mode 100644 index 00000000..5db6734b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncAnnotateFileResponse.php @@ -0,0 +1,37 @@ +outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesRequest.php new file mode 100644 index 00000000..2d61743e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesRequest.php @@ -0,0 +1,38 @@ +requests = $requests; + } + /** + * @return Google_Service_Vision_AsyncAnnotateFileRequest + */ + public function getRequests() + { + return $this->requests; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesResponse.php new file mode 100644 index 00000000..98d929e5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/AsyncBatchAnnotateFilesResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vision_AsyncAnnotateFileResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/BatchOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/BatchOperationMetadata.php new file mode 100644 index 00000000..fe84bb59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/BatchOperationMetadata.php @@ -0,0 +1,48 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setSubmitTime($submitTime) + { + $this->submitTime = $submitTime; + } + public function getSubmitTime() + { + return $this->submitTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php index d8a42ea3..2f130179 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php @@ -18,9 +18,25 @@ class Google_Service_Vision_BoundingPoly extends Google_Collection { protected $collection_key = 'vertices'; + protected $normalizedVerticesType = 'Google_Service_Vision_NormalizedVertex'; + protected $normalizedVerticesDataType = 'array'; protected $verticesType = 'Google_Service_Vision_Vertex'; protected $verticesDataType = 'array'; + /** + * @param Google_Service_Vision_NormalizedVertex + */ + public function setNormalizedVertices($normalizedVertices) + { + $this->normalizedVertices = $normalizedVertices; + } + /** + * @return Google_Service_Vision_NormalizedVertex + */ + public function getNormalizedVertices() + { + return $this->normalizedVertices; + } /** * @param Google_Service_Vision_Vertex */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GcsDestination.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GcsDestination.php new file mode 100644 index 00000000..4741e011 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GcsDestination.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GcsSource.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GcsSource.php new file mode 100644 index 00000000..0033e86a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GcsSource.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateFileResponse.php new file mode 100644 index 00000000..7c126489 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateFileResponse.php @@ -0,0 +1,54 @@ +inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1InputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateImageResponse + */ + public function setResponses($responses) + { + $this->responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateImageResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateImageResponse.php new file mode 100644 index 00000000..d9f04e2e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AnnotateImageResponse.php @@ -0,0 +1,246 @@ +context = $context; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext + */ + public function getContext() + { + return $this->context; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation + */ + public function setCropHintsAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation) + { + $this->cropHintsAnnotation = $cropHintsAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation + */ + public function getCropHintsAnnotation() + { + return $this->cropHintsAnnotation; + } + /** + * @param Google_Service_Vision_Status + */ + public function setError(Google_Service_Vision_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_Vision_Status + */ + public function getError() + { + return $this->error; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation + */ + public function setFaceAnnotations($faceAnnotations) + { + $this->faceAnnotations = $faceAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation + */ + public function getFaceAnnotations() + { + return $this->faceAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation + */ + public function setFullTextAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation) + { + $this->fullTextAnnotation = $fullTextAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation + */ + public function getFullTextAnnotation() + { + return $this->fullTextAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties + */ + public function setImagePropertiesAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation) + { + $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties + */ + public function getImagePropertiesAnnotation() + { + return $this->imagePropertiesAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function setLabelAnnotations($labelAnnotations) + { + $this->labelAnnotations = $labelAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function getLabelAnnotations() + { + return $this->labelAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function setLandmarkAnnotations($landmarkAnnotations) + { + $this->landmarkAnnotations = $landmarkAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function getLandmarkAnnotations() + { + return $this->landmarkAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation + */ + public function setLocalizedObjectAnnotations($localizedObjectAnnotations) + { + $this->localizedObjectAnnotations = $localizedObjectAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation + */ + public function getLocalizedObjectAnnotations() + { + return $this->localizedObjectAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function setLogoAnnotations($logoAnnotations) + { + $this->logoAnnotations = $logoAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function getLogoAnnotations() + { + return $this->logoAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults + */ + public function setProductSearchResults(Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults) + { + $this->productSearchResults = $productSearchResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults + */ + public function getProductSearchResults() + { + return $this->productSearchResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation + */ + public function setSafeSearchAnnotation(Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation) + { + $this->safeSearchAnnotation = $safeSearchAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation + */ + public function getSafeSearchAnnotation() + { + return $this->safeSearchAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection + */ + public function setWebDetection(Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection $webDetection) + { + $this->webDetection = $webDetection; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection + */ + public function getWebDetection() + { + return $this->webDetection; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse.php new file mode 100644 index 00000000..e08602dd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse.php @@ -0,0 +1,37 @@ +outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse.php new file mode 100644 index 00000000..254b2c87 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Block.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Block.php new file mode 100644 index 00000000..267a4778 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Block.php @@ -0,0 +1,88 @@ +blockType = $blockType; + } + public function getBlockType() + { + return $this->blockType; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function setBoundingBox(Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox) + { + $this->boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Paragraph + */ + public function setParagraphs($paragraphs) + { + $this->paragraphs = $paragraphs; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Paragraph + */ + public function getParagraphs() + { + return $this->paragraphs; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1BoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1BoundingPoly.php new file mode 100644 index 00000000..a0c09645 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1BoundingPoly.php @@ -0,0 +1,54 @@ +normalizedVertices = $normalizedVertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1NormalizedVertex + */ + public function getNormalizedVertices() + { + return $this->normalizedVertices; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Vertex + */ + public function setVertices($vertices) + { + $this->vertices = $vertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Vertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ColorInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ColorInfo.php new file mode 100644 index 00000000..05e79a59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ColorInfo.php @@ -0,0 +1,55 @@ +color = $color; + } + /** + * @return Google_Service_Vision_Color + */ + public function getColor() + { + return $this->color; + } + public function setPixelFraction($pixelFraction) + { + $this->pixelFraction = $pixelFraction; + } + public function getPixelFraction() + { + return $this->pixelFraction; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHint.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHint.php new file mode 100644 index 00000000..41d920ce --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHint.php @@ -0,0 +1,55 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setImportanceFraction($importanceFraction) + { + $this->importanceFraction = $importanceFraction; + } + public function getImportanceFraction() + { + return $this->importanceFraction; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHintsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHintsAnnotation.php new file mode 100644 index 00000000..dc64850f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1CropHintsAnnotation.php @@ -0,0 +1,38 @@ +cropHints = $cropHints; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHint + */ + public function getCropHints() + { + return $this->cropHints; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1DominantColorsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1DominantColorsAnnotation.php new file mode 100644 index 00000000..e81eb05d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1DominantColorsAnnotation.php @@ -0,0 +1,38 @@ +colors = $colors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ColorInfo + */ + public function getColors() + { + return $this->colors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1EntityAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1EntityAnnotation.php new file mode 100644 index 00000000..43e646f4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1EntityAnnotation.php @@ -0,0 +1,124 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1LocationInfo + */ + public function setLocations($locations) + { + $this->locations = $locations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1LocationInfo + */ + public function getLocations() + { + return $this->locations; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Property + */ + public function setProperties($properties) + { + $this->properties = $properties; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Property + */ + public function getProperties() + { + return $this->properties; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setTopicality($topicality) + { + $this->topicality = $topicality; + } + public function getTopicality() + { + return $this->topicality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotation.php new file mode 100644 index 00000000..d66e818b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotation.php @@ -0,0 +1,178 @@ +angerLikelihood = $angerLikelihood; + } + public function getAngerLikelihood() + { + return $this->angerLikelihood; + } + public function setBlurredLikelihood($blurredLikelihood) + { + $this->blurredLikelihood = $blurredLikelihood; + } + public function getBlurredLikelihood() + { + return $this->blurredLikelihood; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function setBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly) + { + $this->boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setDetectionConfidence($detectionConfidence) + { + $this->detectionConfidence = $detectionConfidence; + } + public function getDetectionConfidence() + { + return $this->detectionConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function setFdBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly $fdBoundingPoly) + { + $this->fdBoundingPoly = $fdBoundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getFdBoundingPoly() + { + return $this->fdBoundingPoly; + } + public function setHeadwearLikelihood($headwearLikelihood) + { + $this->headwearLikelihood = $headwearLikelihood; + } + public function getHeadwearLikelihood() + { + return $this->headwearLikelihood; + } + public function setJoyLikelihood($joyLikelihood) + { + $this->joyLikelihood = $joyLikelihood; + } + public function getJoyLikelihood() + { + return $this->joyLikelihood; + } + public function setLandmarkingConfidence($landmarkingConfidence) + { + $this->landmarkingConfidence = $landmarkingConfidence; + } + public function getLandmarkingConfidence() + { + return $this->landmarkingConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + */ + public function setLandmarks($landmarks) + { + $this->landmarks = $landmarks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotationLandmark + */ + public function getLandmarks() + { + return $this->landmarks; + } + public function setPanAngle($panAngle) + { + $this->panAngle = $panAngle; + } + public function getPanAngle() + { + return $this->panAngle; + } + public function setRollAngle($rollAngle) + { + $this->rollAngle = $rollAngle; + } + public function getRollAngle() + { + return $this->rollAngle; + } + public function setSorrowLikelihood($sorrowLikelihood) + { + $this->sorrowLikelihood = $sorrowLikelihood; + } + public function getSorrowLikelihood() + { + return $this->sorrowLikelihood; + } + public function setSurpriseLikelihood($surpriseLikelihood) + { + $this->surpriseLikelihood = $surpriseLikelihood; + } + public function getSurpriseLikelihood() + { + return $this->surpriseLikelihood; + } + public function setTiltAngle($tiltAngle) + { + $this->tiltAngle = $tiltAngle; + } + public function getTiltAngle() + { + return $this->tiltAngle; + } + public function setUnderExposedLikelihood($underExposedLikelihood) + { + $this->underExposedLikelihood = $underExposedLikelihood; + } + public function getUnderExposedLikelihood() + { + return $this->underExposedLikelihood; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark.php new file mode 100644 index 00000000..b7baaf16 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1FaceAnnotationLandmark.php @@ -0,0 +1,46 @@ +position = $position; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Position + */ + public function getPosition() + { + return $this->position; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsDestination.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsDestination.php new file mode 100644 index 00000000..3ed91f4e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsDestination.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsSource.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsSource.php new file mode 100644 index 00000000..a9c52d59 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1GcsSource.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageAnnotationContext.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageAnnotationContext.php new file mode 100644 index 00000000..46dc572e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageAnnotationContext.php @@ -0,0 +1,39 @@ +pageNumber = $pageNumber; + } + public function getPageNumber() + { + return $this->pageNumber; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageProperties.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageProperties.php new file mode 100644 index 00000000..6316f05a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ImageProperties.php @@ -0,0 +1,37 @@ +dominantColors = $dominantColors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1DominantColorsAnnotation + */ + public function getDominantColors() + { + return $this->dominantColors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1InputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1InputConfig.php new file mode 100644 index 00000000..2a64694f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1InputConfig.php @@ -0,0 +1,46 @@ +gcsSource = $gcsSource; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsSource + */ + public function getGcsSource() + { + return $this->gcsSource; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation.php new file mode 100644 index 00000000..33851409 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation.php @@ -0,0 +1,73 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocationInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocationInfo.php new file mode 100644 index 00000000..146da785 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1LocationInfo.php @@ -0,0 +1,37 @@ +latLng = $latLng; + } + /** + * @return Google_Service_Vision_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1NormalizedVertex.php new file mode 100644 index 00000000..2f64ea9f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OperationMetadata.php new file mode 100644 index 00000000..2618fa71 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OperationMetadata.php @@ -0,0 +1,48 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OutputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OutputConfig.php new file mode 100644 index 00000000..b2ed71a2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1OutputConfig.php @@ -0,0 +1,46 @@ +batchSize = $batchSize; + } + public function getBatchSize() + { + return $this->batchSize; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsDestination + */ + public function setGcsDestination(Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsDestination $gcsDestination) + { + $this->gcsDestination = $gcsDestination; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsDestination + */ + public function getGcsDestination() + { + return $this->gcsDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Page.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Page.php new file mode 100644 index 00000000..c740d624 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Page.php @@ -0,0 +1,81 @@ +blocks = $blocks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Block + */ + public function getBlocks() + { + return $this->blocks; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Paragraph.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Paragraph.php new file mode 100644 index 00000000..cfd526c6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Paragraph.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Word + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Word + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Position.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Position.php new file mode 100644 index 00000000..9f39cd8f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Position.php @@ -0,0 +1,48 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } + public function setZ($z) + { + $this->z = $z; + } + public function getZ() + { + return $this->z; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Product.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Product.php new file mode 100644 index 00000000..f26e250f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Product.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductCategory($productCategory) + { + $this->productCategory = $productCategory; + } + public function getProductCategory() + { + return $this->productCategory; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductKeyValue + */ + public function setProductLabels($productLabels) + { + $this->productLabels = $productLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductKeyValue + */ + public function getProductLabels() + { + return $this->productLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductKeyValue.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductKeyValue.php new file mode 100644 index 00000000..170bc29f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductKeyValue.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResults.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResults.php new file mode 100644 index 00000000..110304b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResults.php @@ -0,0 +1,63 @@ +indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult + */ + public function setProductGroupedResults($productGroupedResults) + { + $this->productGroupedResults = $productGroupedResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult + */ + public function getProductGroupedResults() + { + return $this->productGroupedResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult.php new file mode 100644 index 00000000..1be8db9f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult.php @@ -0,0 +1,54 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsResult.php new file mode 100644 index 00000000..02b12840 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1ProductSearchResultsResult.php @@ -0,0 +1,55 @@ +image = $image; + } + public function getImage() + { + return $this->image; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Product + */ + public function setProduct(Google_Service_Vision_GoogleCloudVisionV1p1beta1Product $product) + { + $this->product = $product; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Product + */ + public function getProduct() + { + return $this->product; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Property.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Property.php new file mode 100644 index 00000000..8496d55e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Property.php @@ -0,0 +1,48 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setUint64Value($uint64Value) + { + $this->uint64Value = $uint64Value; + } + public function getUint64Value() + { + return $this->uint64Value; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1SafeSearchAnnotation.php similarity index 72% rename from vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.php rename to vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1SafeSearchAnnotation.php index 9c894c33..89ddf195 100644 --- a/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1SafeSearchAnnotation.php @@ -15,14 +15,13 @@ * the License. */ -class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation extends Google_Model +class Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation extends Google_Model { public $adult; public $medical; public $racy; public $spoof; - public $timeOffset; - public $violent; + public $violence; public function setAdult($adult) { @@ -56,20 +55,12 @@ class Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta1S { return $this->spoof; } - public function setTimeOffset($timeOffset) + public function setViolence($violence) { - $this->timeOffset = $timeOffset; + $this->violence = $violence; } - public function getTimeOffset() + public function getViolence() { - return $this->timeOffset; - } - public function setViolent($violent) - { - $this->violent = $violent; - } - public function getViolent() - { - return $this->violent; + return $this->violence; } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Symbol.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Symbol.php new file mode 100644 index 00000000..94a6ef77 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Symbol.php @@ -0,0 +1,71 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotation.php new file mode 100644 index 00000000..092d72a2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotation.php @@ -0,0 +1,47 @@ +pages = $pages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Page + */ + public function getPages() + { + return $this->pages; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak.php new file mode 100644 index 00000000..c0c1d69e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak.php @@ -0,0 +1,39 @@ +isPrefix = $isPrefix; + } + public function getIsPrefix() + { + return $this->isPrefix; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage.php new file mode 100644 index 00000000..0f45ff6f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage.php @@ -0,0 +1,39 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty.php new file mode 100644 index 00000000..73f794f2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1TextAnnotationTextProperty.php @@ -0,0 +1,54 @@ +detectedBreak = $detectedBreak; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak + */ + public function getDetectedBreak() + { + return $this->detectedBreak; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + */ + public function setDetectedLanguages($detectedLanguages) + { + $this->detectedLanguages = $detectedLanguages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage + */ + public function getDetectedLanguages() + { + return $this->detectedLanguages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Vertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Vertex.php new file mode 100644 index 00000000..d0e7ac5c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Vertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetection.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetection.php new file mode 100644 index 00000000..e912ad7d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetection.php @@ -0,0 +1,118 @@ +bestGuessLabels = $bestGuessLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebLabel + */ + public function getBestGuessLabels() + { + return $this->bestGuessLabels; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function setFullMatchingImages($fullMatchingImages) + { + $this->fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebPage + */ + public function setPagesWithMatchingImages($pagesWithMatchingImages) + { + $this->pagesWithMatchingImages = $pagesWithMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebPage + */ + public function getPagesWithMatchingImages() + { + return $this->pagesWithMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function setVisuallySimilarImages($visuallySimilarImages) + { + $this->visuallySimilarImages = $visuallySimilarImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function getVisuallySimilarImages() + { + return $this->visuallySimilarImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebEntity + */ + public function setWebEntities($webEntities) + { + $this->webEntities = $webEntities; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebEntity + */ + public function getWebEntities() + { + return $this->webEntities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebEntity.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebEntity.php new file mode 100644 index 00000000..b414e102 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebEntity.php @@ -0,0 +1,48 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4RuleGroupsElement.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebImage.php similarity index 76% rename from vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4RuleGroupsElement.php rename to vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebImage.php index 317a3abb..173b1279 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiPagespeedResponseV4RuleGroupsElement.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebImage.php @@ -15,19 +15,11 @@ * the License. */ -class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4RuleGroupsElement extends Google_Model +class Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage extends Google_Model { - public $pass; public $score; + public $url; - public function setPass($pass) - { - $this->pass = $pass; - } - public function getPass() - { - return $this->pass; - } public function setScore($score) { $this->score = $score; @@ -36,4 +28,12 @@ class Google_Service_Pagespeedonline_PagespeedApiPagespeedResponseV4RuleGroupsEl { return $this->score; } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } } diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebLabel.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebLabel.php new file mode 100644 index 00000000..0916f261 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebLabel.php @@ -0,0 +1,39 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebPage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebPage.php new file mode 100644 index 00000000..ebdf59b6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1WebDetectionWebPage.php @@ -0,0 +1,81 @@ +fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + public function setPageTitle($pageTitle) + { + $this->pageTitle = $pageTitle; + } + public function getPageTitle() + { + return $this->pageTitle; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Word.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Word.php new file mode 100644 index 00000000..e441b493 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p1beta1Word.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p1beta1Symbol + */ + public function setSymbols($symbols) + { + $this->symbols = $symbols; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p1beta1Symbol + */ + public function getSymbols() + { + return $this->symbols; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1AnnotateImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1AnnotateImageResponse.php index c6f8c138..e2ba9f94 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1AnnotateImageResponse.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1AnnotateImageResponse.php @@ -34,8 +34,12 @@ class Google_Service_Vision_GoogleCloudVisionV1p2beta1AnnotateImageResponse exte protected $labelAnnotationsDataType = 'array'; protected $landmarkAnnotationsType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1EntityAnnotation'; protected $landmarkAnnotationsDataType = 'array'; + protected $localizedObjectAnnotationsType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation'; + protected $localizedObjectAnnotationsDataType = 'array'; protected $logoAnnotationsType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1EntityAnnotation'; protected $logoAnnotationsDataType = 'array'; + protected $productSearchResultsType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResults'; + protected $productSearchResultsDataType = ''; protected $safeSearchAnnotationType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1SafeSearchAnnotation'; protected $safeSearchAnnotationDataType = ''; protected $textAnnotationsType = 'Google_Service_Vision_GoogleCloudVisionV1p2beta1EntityAnnotation'; @@ -155,6 +159,20 @@ class Google_Service_Vision_GoogleCloudVisionV1p2beta1AnnotateImageResponse exte { return $this->landmarkAnnotations; } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation + */ + public function setLocalizedObjectAnnotations($localizedObjectAnnotations) + { + $this->localizedObjectAnnotations = $localizedObjectAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation + */ + public function getLocalizedObjectAnnotations() + { + return $this->localizedObjectAnnotations; + } /** * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1EntityAnnotation */ @@ -169,6 +187,20 @@ class Google_Service_Vision_GoogleCloudVisionV1p2beta1AnnotateImageResponse exte { return $this->logoAnnotations; } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResults + */ + public function setProductSearchResults(Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResults $productSearchResults) + { + $this->productSearchResults = $productSearchResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResults + */ + public function getProductSearchResults() + { + return $this->productSearchResults; + } /** * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1SafeSearchAnnotation */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation.php new file mode 100644 index 00000000..1f16c59c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation.php @@ -0,0 +1,73 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1Product.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1Product.php new file mode 100644 index 00000000..264dbf87 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1Product.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductCategory($productCategory) + { + $this->productCategory = $productCategory; + } + public function getProductCategory() + { + return $this->productCategory; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductKeyValue + */ + public function setProductLabels($productLabels) + { + $this->productLabels = $productLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductKeyValue + */ + public function getProductLabels() + { + return $this->productLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductKeyValue.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductKeyValue.php new file mode 100644 index 00000000..4d5316d0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductKeyValue.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResults.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResults.php new file mode 100644 index 00000000..63551b33 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResults.php @@ -0,0 +1,63 @@ +indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult + */ + public function setProductGroupedResults($productGroupedResults) + { + $this->productGroupedResults = $productGroupedResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult + */ + public function getProductGroupedResults() + { + return $this->productGroupedResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult.php new file mode 100644 index 00000000..5985da3a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult.php @@ -0,0 +1,54 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsResult.php new file mode 100644 index 00000000..7955d03a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p2beta1ProductSearchResultsResult.php @@ -0,0 +1,55 @@ +image = $image; + } + public function getImage() + { + return $this->image; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p2beta1Product + */ + public function setProduct(Google_Service_Vision_GoogleCloudVisionV1p2beta1Product $product) + { + $this->product = $product; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p2beta1Product + */ + public function getProduct() + { + return $this->product; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateFileResponse.php new file mode 100644 index 00000000..fd3896bb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateFileResponse.php @@ -0,0 +1,54 @@ +inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1InputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1AnnotateImageResponse + */ + public function setResponses($responses) + { + $this->responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1AnnotateImageResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateImageResponse.php new file mode 100644 index 00000000..a898af35 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AnnotateImageResponse.php @@ -0,0 +1,246 @@ +context = $context; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ImageAnnotationContext + */ + public function getContext() + { + return $this->context; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1CropHintsAnnotation + */ + public function setCropHintsAnnotation(Google_Service_Vision_GoogleCloudVisionV1p3beta1CropHintsAnnotation $cropHintsAnnotation) + { + $this->cropHintsAnnotation = $cropHintsAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1CropHintsAnnotation + */ + public function getCropHintsAnnotation() + { + return $this->cropHintsAnnotation; + } + /** + * @param Google_Service_Vision_Status + */ + public function setError(Google_Service_Vision_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_Vision_Status + */ + public function getError() + { + return $this->error; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1FaceAnnotation + */ + public function setFaceAnnotations($faceAnnotations) + { + $this->faceAnnotations = $faceAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1FaceAnnotation + */ + public function getFaceAnnotations() + { + return $this->faceAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotation + */ + public function setFullTextAnnotation(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotation $fullTextAnnotation) + { + $this->fullTextAnnotation = $fullTextAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotation + */ + public function getFullTextAnnotation() + { + return $this->fullTextAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ImageProperties + */ + public function setImagePropertiesAnnotation(Google_Service_Vision_GoogleCloudVisionV1p3beta1ImageProperties $imagePropertiesAnnotation) + { + $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ImageProperties + */ + public function getImagePropertiesAnnotation() + { + return $this->imagePropertiesAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function setLabelAnnotations($labelAnnotations) + { + $this->labelAnnotations = $labelAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function getLabelAnnotations() + { + return $this->labelAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function setLandmarkAnnotations($landmarkAnnotations) + { + $this->landmarkAnnotations = $landmarkAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function getLandmarkAnnotations() + { + return $this->landmarkAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + */ + public function setLocalizedObjectAnnotations($localizedObjectAnnotations) + { + $this->localizedObjectAnnotations = $localizedObjectAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation + */ + public function getLocalizedObjectAnnotations() + { + return $this->localizedObjectAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function setLogoAnnotations($logoAnnotations) + { + $this->logoAnnotations = $logoAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function getLogoAnnotations() + { + return $this->logoAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResults + */ + public function setProductSearchResults(Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResults $productSearchResults) + { + $this->productSearchResults = $productSearchResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResults + */ + public function getProductSearchResults() + { + return $this->productSearchResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1SafeSearchAnnotation + */ + public function setSafeSearchAnnotation(Google_Service_Vision_GoogleCloudVisionV1p3beta1SafeSearchAnnotation $safeSearchAnnotation) + { + $this->safeSearchAnnotation = $safeSearchAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1SafeSearchAnnotation + */ + public function getSafeSearchAnnotation() + { + return $this->safeSearchAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetection + */ + public function setWebDetection(Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetection $webDetection) + { + $this->webDetection = $webDetection; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetection + */ + public function getWebDetection() + { + return $this->webDetection; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse.php new file mode 100644 index 00000000..92063fe4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse.php @@ -0,0 +1,37 @@ +outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse.php new file mode 100644 index 00000000..fa8f92f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BatchOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BatchOperationMetadata.php new file mode 100644 index 00000000..ac2d9e33 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BatchOperationMetadata.php @@ -0,0 +1,48 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setSubmitTime($submitTime) + { + $this->submitTime = $submitTime; + } + public function getSubmitTime() + { + return $this->submitTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Block.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Block.php new file mode 100644 index 00000000..2041dfeb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Block.php @@ -0,0 +1,88 @@ +blockType = $blockType; + } + public function getBlockType() + { + return $this->blockType; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function setBoundingBox(Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly $boundingBox) + { + $this->boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Paragraph + */ + public function setParagraphs($paragraphs) + { + $this->paragraphs = $paragraphs; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Paragraph + */ + public function getParagraphs() + { + return $this->paragraphs; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BoundingPoly.php new file mode 100644 index 00000000..82727255 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1BoundingPoly.php @@ -0,0 +1,54 @@ +normalizedVertices = $normalizedVertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1NormalizedVertex + */ + public function getNormalizedVertices() + { + return $this->normalizedVertices; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Vertex + */ + public function setVertices($vertices) + { + $this->vertices = $vertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Vertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ColorInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ColorInfo.php new file mode 100644 index 00000000..ecfea14b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ColorInfo.php @@ -0,0 +1,55 @@ +color = $color; + } + /** + * @return Google_Service_Vision_Color + */ + public function getColor() + { + return $this->color; + } + public function setPixelFraction($pixelFraction) + { + $this->pixelFraction = $pixelFraction; + } + public function getPixelFraction() + { + return $this->pixelFraction; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHint.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHint.php new file mode 100644 index 00000000..de22a55b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHint.php @@ -0,0 +1,55 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setImportanceFraction($importanceFraction) + { + $this->importanceFraction = $importanceFraction; + } + public function getImportanceFraction() + { + return $this->importanceFraction; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHintsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHintsAnnotation.php new file mode 100644 index 00000000..b3b45737 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1CropHintsAnnotation.php @@ -0,0 +1,38 @@ +cropHints = $cropHints; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1CropHint + */ + public function getCropHints() + { + return $this->cropHints; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1DominantColorsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1DominantColorsAnnotation.php new file mode 100644 index 00000000..a47146db --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1DominantColorsAnnotation.php @@ -0,0 +1,38 @@ +colors = $colors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ColorInfo + */ + public function getColors() + { + return $this->colors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1EntityAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1EntityAnnotation.php new file mode 100644 index 00000000..59e73c6d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1EntityAnnotation.php @@ -0,0 +1,124 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1LocationInfo + */ + public function setLocations($locations) + { + $this->locations = $locations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1LocationInfo + */ + public function getLocations() + { + return $this->locations; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Property + */ + public function setProperties($properties) + { + $this->properties = $properties; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Property + */ + public function getProperties() + { + return $this->properties; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setTopicality($topicality) + { + $this->topicality = $topicality; + } + public function getTopicality() + { + return $this->topicality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotation.php new file mode 100644 index 00000000..c489c670 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotation.php @@ -0,0 +1,178 @@ +angerLikelihood = $angerLikelihood; + } + public function getAngerLikelihood() + { + return $this->angerLikelihood; + } + public function setBlurredLikelihood($blurredLikelihood) + { + $this->blurredLikelihood = $blurredLikelihood; + } + public function getBlurredLikelihood() + { + return $this->blurredLikelihood; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function setBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly $boundingPoly) + { + $this->boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setDetectionConfidence($detectionConfidence) + { + $this->detectionConfidence = $detectionConfidence; + } + public function getDetectionConfidence() + { + return $this->detectionConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function setFdBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly $fdBoundingPoly) + { + $this->fdBoundingPoly = $fdBoundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getFdBoundingPoly() + { + return $this->fdBoundingPoly; + } + public function setHeadwearLikelihood($headwearLikelihood) + { + $this->headwearLikelihood = $headwearLikelihood; + } + public function getHeadwearLikelihood() + { + return $this->headwearLikelihood; + } + public function setJoyLikelihood($joyLikelihood) + { + $this->joyLikelihood = $joyLikelihood; + } + public function getJoyLikelihood() + { + return $this->joyLikelihood; + } + public function setLandmarkingConfidence($landmarkingConfidence) + { + $this->landmarkingConfidence = $landmarkingConfidence; + } + public function getLandmarkingConfidence() + { + return $this->landmarkingConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + */ + public function setLandmarks($landmarks) + { + $this->landmarks = $landmarks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1FaceAnnotationLandmark + */ + public function getLandmarks() + { + return $this->landmarks; + } + public function setPanAngle($panAngle) + { + $this->panAngle = $panAngle; + } + public function getPanAngle() + { + return $this->panAngle; + } + public function setRollAngle($rollAngle) + { + $this->rollAngle = $rollAngle; + } + public function getRollAngle() + { + return $this->rollAngle; + } + public function setSorrowLikelihood($sorrowLikelihood) + { + $this->sorrowLikelihood = $sorrowLikelihood; + } + public function getSorrowLikelihood() + { + return $this->sorrowLikelihood; + } + public function setSurpriseLikelihood($surpriseLikelihood) + { + $this->surpriseLikelihood = $surpriseLikelihood; + } + public function getSurpriseLikelihood() + { + return $this->surpriseLikelihood; + } + public function setTiltAngle($tiltAngle) + { + $this->tiltAngle = $tiltAngle; + } + public function getTiltAngle() + { + return $this->tiltAngle; + } + public function setUnderExposedLikelihood($underExposedLikelihood) + { + $this->underExposedLikelihood = $underExposedLikelihood; + } + public function getUnderExposedLikelihood() + { + return $this->underExposedLikelihood; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark.php new file mode 100644 index 00000000..95e55600 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1FaceAnnotationLandmark.php @@ -0,0 +1,46 @@ +position = $position; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Position + */ + public function getPosition() + { + return $this->position; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsDestination.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsDestination.php new file mode 100644 index 00000000..961d2e77 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsDestination.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsSource.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsSource.php new file mode 100644 index 00000000..91770c40 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1GcsSource.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageAnnotationContext.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageAnnotationContext.php new file mode 100644 index 00000000..58efcd91 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageAnnotationContext.php @@ -0,0 +1,39 @@ +pageNumber = $pageNumber; + } + public function getPageNumber() + { + return $this->pageNumber; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageProperties.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageProperties.php new file mode 100644 index 00000000..d8906477 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImageProperties.php @@ -0,0 +1,37 @@ +dominantColors = $dominantColors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1DominantColorsAnnotation + */ + public function getDominantColors() + { + return $this->dominantColors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImportProductSetsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImportProductSetsResponse.php new file mode 100644 index 00000000..0a33891e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ImportProductSetsResponse.php @@ -0,0 +1,54 @@ +referenceImages = $referenceImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ReferenceImage + */ + public function getReferenceImages() + { + return $this->referenceImages; + } + /** + * @param Google_Service_Vision_Status + */ + public function setStatuses($statuses) + { + $this->statuses = $statuses; + } + /** + * @return Google_Service_Vision_Status + */ + public function getStatuses() + { + return $this->statuses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1InputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1InputConfig.php new file mode 100644 index 00000000..7bbdc2bd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1InputConfig.php @@ -0,0 +1,46 @@ +gcsSource = $gcsSource; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1GcsSource + */ + public function getGcsSource() + { + return $this->gcsSource; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation.php new file mode 100644 index 00000000..b268383e --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation.php @@ -0,0 +1,73 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocationInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocationInfo.php new file mode 100644 index 00000000..24031bd1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1LocationInfo.php @@ -0,0 +1,37 @@ +latLng = $latLng; + } + /** + * @return Google_Service_Vision_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1NormalizedVertex.php new file mode 100644 index 00000000..d87c4451 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OperationMetadata.php new file mode 100644 index 00000000..c8b78500 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OperationMetadata.php @@ -0,0 +1,48 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OutputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OutputConfig.php new file mode 100644 index 00000000..ec3c6bb4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1OutputConfig.php @@ -0,0 +1,46 @@ +batchSize = $batchSize; + } + public function getBatchSize() + { + return $this->batchSize; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1GcsDestination + */ + public function setGcsDestination(Google_Service_Vision_GoogleCloudVisionV1p3beta1GcsDestination $gcsDestination) + { + $this->gcsDestination = $gcsDestination; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1GcsDestination + */ + public function getGcsDestination() + { + return $this->gcsDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Page.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Page.php new file mode 100644 index 00000000..9cbdb066 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Page.php @@ -0,0 +1,81 @@ +blocks = $blocks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Block + */ + public function getBlocks() + { + return $this->blocks; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Paragraph.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Paragraph.php new file mode 100644 index 00000000..62ee77e4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Paragraph.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Word + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Word + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Position.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Position.php new file mode 100644 index 00000000..8289c546 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Position.php @@ -0,0 +1,48 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } + public function setZ($z) + { + $this->z = $z; + } + public function getZ() + { + return $this->z; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Product.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Product.php new file mode 100644 index 00000000..8cf64141 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Product.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductCategory($productCategory) + { + $this->productCategory = $productCategory; + } + public function getProductCategory() + { + return $this->productCategory; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductKeyValue + */ + public function setProductLabels($productLabels) + { + $this->productLabels = $productLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductKeyValue + */ + public function getProductLabels() + { + return $this->productLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductKeyValue.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductKeyValue.php new file mode 100644 index 00000000..1aafb4a5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductKeyValue.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResults.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResults.php new file mode 100644 index 00000000..4d5203ca --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResults.php @@ -0,0 +1,63 @@ +indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult + */ + public function setProductGroupedResults($productGroupedResults) + { + $this->productGroupedResults = $productGroupedResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult + */ + public function getProductGroupedResults() + { + return $this->productGroupedResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult.php new file mode 100644 index 00000000..8c2fd338 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult.php @@ -0,0 +1,54 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsResult.php new file mode 100644 index 00000000..ef80bfa9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ProductSearchResultsResult.php @@ -0,0 +1,55 @@ +image = $image; + } + public function getImage() + { + return $this->image; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Product + */ + public function setProduct(Google_Service_Vision_GoogleCloudVisionV1p3beta1Product $product) + { + $this->product = $product; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Product + */ + public function getProduct() + { + return $this->product; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Property.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Property.php new file mode 100644 index 00000000..9a9ac874 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Property.php @@ -0,0 +1,48 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setUint64Value($uint64Value) + { + $this->uint64Value = $uint64Value; + } + public function getUint64Value() + { + return $this->uint64Value; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ReferenceImage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ReferenceImage.php new file mode 100644 index 00000000..75b65e4a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1ReferenceImage.php @@ -0,0 +1,56 @@ +boundingPolys = $boundingPolys; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingPolys() + { + return $this->boundingPolys; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1SafeSearchAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1SafeSearchAnnotation.php new file mode 100644 index 00000000..73441904 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1SafeSearchAnnotation.php @@ -0,0 +1,66 @@ +adult = $adult; + } + public function getAdult() + { + return $this->adult; + } + public function setMedical($medical) + { + $this->medical = $medical; + } + public function getMedical() + { + return $this->medical; + } + public function setRacy($racy) + { + $this->racy = $racy; + } + public function getRacy() + { + return $this->racy; + } + public function setSpoof($spoof) + { + $this->spoof = $spoof; + } + public function getSpoof() + { + return $this->spoof; + } + public function setViolence($violence) + { + $this->violence = $violence; + } + public function getViolence() + { + return $this->violence; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Symbol.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Symbol.php new file mode 100644 index 00000000..0a13db73 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Symbol.php @@ -0,0 +1,71 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotation.php new file mode 100644 index 00000000..17e23dd3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotation.php @@ -0,0 +1,47 @@ +pages = $pages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Page + */ + public function getPages() + { + return $this->pages; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak.php new file mode 100644 index 00000000..8dc8108b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak.php @@ -0,0 +1,39 @@ +isPrefix = $isPrefix; + } + public function getIsPrefix() + { + return $this->isPrefix; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage.php new file mode 100644 index 00000000..3fb40258 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage.php @@ -0,0 +1,39 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty.php new file mode 100644 index 00000000..4edc692c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1TextAnnotationTextProperty.php @@ -0,0 +1,54 @@ +detectedBreak = $detectedBreak; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak + */ + public function getDetectedBreak() + { + return $this->detectedBreak; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + */ + public function setDetectedLanguages($detectedLanguages) + { + $this->detectedLanguages = $detectedLanguages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage + */ + public function getDetectedLanguages() + { + return $this->detectedLanguages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Vertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Vertex.php new file mode 100644 index 00000000..1343e8c7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Vertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetection.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetection.php new file mode 100644 index 00000000..90f646c3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetection.php @@ -0,0 +1,118 @@ +bestGuessLabels = $bestGuessLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebLabel + */ + public function getBestGuessLabels() + { + return $this->bestGuessLabels; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function setFullMatchingImages($fullMatchingImages) + { + $this->fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebPage + */ + public function setPagesWithMatchingImages($pagesWithMatchingImages) + { + $this->pagesWithMatchingImages = $pagesWithMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebPage + */ + public function getPagesWithMatchingImages() + { + return $this->pagesWithMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function setVisuallySimilarImages($visuallySimilarImages) + { + $this->visuallySimilarImages = $visuallySimilarImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function getVisuallySimilarImages() + { + return $this->visuallySimilarImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebEntity + */ + public function setWebEntities($webEntities) + { + $this->webEntities = $webEntities; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebEntity + */ + public function getWebEntities() + { + return $this->webEntities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebEntity.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebEntity.php new file mode 100644 index 00000000..231df1b1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebEntity.php @@ -0,0 +1,48 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebImage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebImage.php new file mode 100644 index 00000000..9ed59787 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebImage.php @@ -0,0 +1,39 @@ +score = $score; + } + public function getScore() + { + return $this->score; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebLabel.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebLabel.php new file mode 100644 index 00000000..e9150552 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebLabel.php @@ -0,0 +1,39 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebPage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebPage.php new file mode 100644 index 00000000..38548eda --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1WebDetectionWebPage.php @@ -0,0 +1,81 @@ +fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + public function setPageTitle($pageTitle) + { + $this->pageTitle = $pageTitle; + } + public function getPageTitle() + { + return $this->pageTitle; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Word.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Word.php new file mode 100644 index 00000000..523379c8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p3beta1Word.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p3beta1Symbol + */ + public function setSymbols($symbols) + { + $this->symbols = $symbols; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p3beta1Symbol + */ + public function getSymbols() + { + return $this->symbols; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateFileResponse.php new file mode 100644 index 00000000..1b9ec070 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateFileResponse.php @@ -0,0 +1,63 @@ +inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1InputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1AnnotateImageResponse + */ + public function setResponses($responses) + { + $this->responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1AnnotateImageResponse + */ + public function getResponses() + { + return $this->responses; + } + public function setTotalPages($totalPages) + { + $this->totalPages = $totalPages; + } + public function getTotalPages() + { + return $this->totalPages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateImageResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateImageResponse.php new file mode 100644 index 00000000..b528d4bc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AnnotateImageResponse.php @@ -0,0 +1,246 @@ +context = $context; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ImageAnnotationContext + */ + public function getContext() + { + return $this->context; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1CropHintsAnnotation + */ + public function setCropHintsAnnotation(Google_Service_Vision_GoogleCloudVisionV1p4beta1CropHintsAnnotation $cropHintsAnnotation) + { + $this->cropHintsAnnotation = $cropHintsAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1CropHintsAnnotation + */ + public function getCropHintsAnnotation() + { + return $this->cropHintsAnnotation; + } + /** + * @param Google_Service_Vision_Status + */ + public function setError(Google_Service_Vision_Status $error) + { + $this->error = $error; + } + /** + * @return Google_Service_Vision_Status + */ + public function getError() + { + return $this->error; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1FaceAnnotation + */ + public function setFaceAnnotations($faceAnnotations) + { + $this->faceAnnotations = $faceAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1FaceAnnotation + */ + public function getFaceAnnotations() + { + return $this->faceAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotation + */ + public function setFullTextAnnotation(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotation $fullTextAnnotation) + { + $this->fullTextAnnotation = $fullTextAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotation + */ + public function getFullTextAnnotation() + { + return $this->fullTextAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ImageProperties + */ + public function setImagePropertiesAnnotation(Google_Service_Vision_GoogleCloudVisionV1p4beta1ImageProperties $imagePropertiesAnnotation) + { + $this->imagePropertiesAnnotation = $imagePropertiesAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ImageProperties + */ + public function getImagePropertiesAnnotation() + { + return $this->imagePropertiesAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function setLabelAnnotations($labelAnnotations) + { + $this->labelAnnotations = $labelAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function getLabelAnnotations() + { + return $this->labelAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function setLandmarkAnnotations($landmarkAnnotations) + { + $this->landmarkAnnotations = $landmarkAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function getLandmarkAnnotations() + { + return $this->landmarkAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation + */ + public function setLocalizedObjectAnnotations($localizedObjectAnnotations) + { + $this->localizedObjectAnnotations = $localizedObjectAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation + */ + public function getLocalizedObjectAnnotations() + { + return $this->localizedObjectAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function setLogoAnnotations($logoAnnotations) + { + $this->logoAnnotations = $logoAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function getLogoAnnotations() + { + return $this->logoAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResults + */ + public function setProductSearchResults(Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResults $productSearchResults) + { + $this->productSearchResults = $productSearchResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResults + */ + public function getProductSearchResults() + { + return $this->productSearchResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1SafeSearchAnnotation + */ + public function setSafeSearchAnnotation(Google_Service_Vision_GoogleCloudVisionV1p4beta1SafeSearchAnnotation $safeSearchAnnotation) + { + $this->safeSearchAnnotation = $safeSearchAnnotation; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1SafeSearchAnnotation + */ + public function getSafeSearchAnnotation() + { + return $this->safeSearchAnnotation; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function setTextAnnotations($textAnnotations) + { + $this->textAnnotations = $textAnnotations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1EntityAnnotation + */ + public function getTextAnnotations() + { + return $this->textAnnotations; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetection + */ + public function setWebDetection(Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetection $webDetection) + { + $this->webDetection = $webDetection; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetection + */ + public function getWebDetection() + { + return $this->webDetection; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse.php new file mode 100644 index 00000000..6c7847e2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse.php @@ -0,0 +1,37 @@ +outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse.php new file mode 100644 index 00000000..0488b9e5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse.php new file mode 100644 index 00000000..5b82541b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse.php @@ -0,0 +1,37 @@ +outputConfig = $outputConfig; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1OutputConfig + */ + public function getOutputConfig() + { + return $this->outputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse.php new file mode 100644 index 00000000..a4523b8c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse.php @@ -0,0 +1,38 @@ +responses = $responses; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1AnnotateFileResponse + */ + public function getResponses() + { + return $this->responses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchOperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchOperationMetadata.php new file mode 100644 index 00000000..9e5c2f9a --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BatchOperationMetadata.php @@ -0,0 +1,48 @@ +endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setSubmitTime($submitTime) + { + $this->submitTime = $submitTime; + } + public function getSubmitTime() + { + return $this->submitTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Block.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Block.php new file mode 100644 index 00000000..f01c8a74 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Block.php @@ -0,0 +1,88 @@ +blockType = $blockType; + } + public function getBlockType() + { + return $this->blockType; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function setBoundingBox(Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly $boundingBox) + { + $this->boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Paragraph + */ + public function setParagraphs($paragraphs) + { + $this->paragraphs = $paragraphs; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Paragraph + */ + public function getParagraphs() + { + return $this->paragraphs; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BoundingPoly.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BoundingPoly.php new file mode 100644 index 00000000..8f63cb05 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1BoundingPoly.php @@ -0,0 +1,54 @@ +normalizedVertices = $normalizedVertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1NormalizedVertex + */ + public function getNormalizedVertices() + { + return $this->normalizedVertices; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Vertex + */ + public function setVertices($vertices) + { + $this->vertices = $vertices; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Vertex + */ + public function getVertices() + { + return $this->vertices; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ColorInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ColorInfo.php new file mode 100644 index 00000000..5bf9b6e4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ColorInfo.php @@ -0,0 +1,55 @@ +color = $color; + } + /** + * @return Google_Service_Vision_Color + */ + public function getColor() + { + return $this->color; + } + public function setPixelFraction($pixelFraction) + { + $this->pixelFraction = $pixelFraction; + } + public function getPixelFraction() + { + return $this->pixelFraction; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHint.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHint.php new file mode 100644 index 00000000..51c97fd6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHint.php @@ -0,0 +1,55 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setImportanceFraction($importanceFraction) + { + $this->importanceFraction = $importanceFraction; + } + public function getImportanceFraction() + { + return $this->importanceFraction; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHintsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHintsAnnotation.php new file mode 100644 index 00000000..2bd32e54 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1CropHintsAnnotation.php @@ -0,0 +1,38 @@ +cropHints = $cropHints; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1CropHint + */ + public function getCropHints() + { + return $this->cropHints; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1DominantColorsAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1DominantColorsAnnotation.php new file mode 100644 index 00000000..08361ce2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1DominantColorsAnnotation.php @@ -0,0 +1,38 @@ +colors = $colors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ColorInfo + */ + public function getColors() + { + return $this->colors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1EntityAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1EntityAnnotation.php new file mode 100644 index 00000000..c0b8c1de --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1EntityAnnotation.php @@ -0,0 +1,124 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1LocationInfo + */ + public function setLocations($locations) + { + $this->locations = $locations; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1LocationInfo + */ + public function getLocations() + { + return $this->locations; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Property + */ + public function setProperties($properties) + { + $this->properties = $properties; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Property + */ + public function getProperties() + { + return $this->properties; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setTopicality($topicality) + { + $this->topicality = $topicality; + } + public function getTopicality() + { + return $this->topicality; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotation.php new file mode 100644 index 00000000..6c6a4179 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotation.php @@ -0,0 +1,178 @@ +angerLikelihood = $angerLikelihood; + } + public function getAngerLikelihood() + { + return $this->angerLikelihood; + } + public function setBlurredLikelihood($blurredLikelihood) + { + $this->blurredLikelihood = $blurredLikelihood; + } + public function getBlurredLikelihood() + { + return $this->blurredLikelihood; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function setBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly $boundingPoly) + { + $this->boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setDetectionConfidence($detectionConfidence) + { + $this->detectionConfidence = $detectionConfidence; + } + public function getDetectionConfidence() + { + return $this->detectionConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function setFdBoundingPoly(Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly $fdBoundingPoly) + { + $this->fdBoundingPoly = $fdBoundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getFdBoundingPoly() + { + return $this->fdBoundingPoly; + } + public function setHeadwearLikelihood($headwearLikelihood) + { + $this->headwearLikelihood = $headwearLikelihood; + } + public function getHeadwearLikelihood() + { + return $this->headwearLikelihood; + } + public function setJoyLikelihood($joyLikelihood) + { + $this->joyLikelihood = $joyLikelihood; + } + public function getJoyLikelihood() + { + return $this->joyLikelihood; + } + public function setLandmarkingConfidence($landmarkingConfidence) + { + $this->landmarkingConfidence = $landmarkingConfidence; + } + public function getLandmarkingConfidence() + { + return $this->landmarkingConfidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1FaceAnnotationLandmark + */ + public function setLandmarks($landmarks) + { + $this->landmarks = $landmarks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1FaceAnnotationLandmark + */ + public function getLandmarks() + { + return $this->landmarks; + } + public function setPanAngle($panAngle) + { + $this->panAngle = $panAngle; + } + public function getPanAngle() + { + return $this->panAngle; + } + public function setRollAngle($rollAngle) + { + $this->rollAngle = $rollAngle; + } + public function getRollAngle() + { + return $this->rollAngle; + } + public function setSorrowLikelihood($sorrowLikelihood) + { + $this->sorrowLikelihood = $sorrowLikelihood; + } + public function getSorrowLikelihood() + { + return $this->sorrowLikelihood; + } + public function setSurpriseLikelihood($surpriseLikelihood) + { + $this->surpriseLikelihood = $surpriseLikelihood; + } + public function getSurpriseLikelihood() + { + return $this->surpriseLikelihood; + } + public function setTiltAngle($tiltAngle) + { + $this->tiltAngle = $tiltAngle; + } + public function getTiltAngle() + { + return $this->tiltAngle; + } + public function setUnderExposedLikelihood($underExposedLikelihood) + { + $this->underExposedLikelihood = $underExposedLikelihood; + } + public function getUnderExposedLikelihood() + { + return $this->underExposedLikelihood; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotationLandmark.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotationLandmark.php new file mode 100644 index 00000000..e83617b9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1FaceAnnotationLandmark.php @@ -0,0 +1,46 @@ +position = $position; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Position + */ + public function getPosition() + { + return $this->position; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsDestination.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsDestination.php new file mode 100644 index 00000000..5c605a1d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsDestination.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsSource.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsSource.php new file mode 100644 index 00000000..67b611f3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1GcsSource.php @@ -0,0 +1,30 @@ +uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageAnnotationContext.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageAnnotationContext.php new file mode 100644 index 00000000..5ef4eaf1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageAnnotationContext.php @@ -0,0 +1,39 @@ +pageNumber = $pageNumber; + } + public function getPageNumber() + { + return $this->pageNumber; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageProperties.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageProperties.php new file mode 100644 index 00000000..30ffd471 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImageProperties.php @@ -0,0 +1,37 @@ +dominantColors = $dominantColors; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1DominantColorsAnnotation + */ + public function getDominantColors() + { + return $this->dominantColors; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImportProductSetsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImportProductSetsResponse.php new file mode 100644 index 00000000..999b00dc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ImportProductSetsResponse.php @@ -0,0 +1,54 @@ +referenceImages = $referenceImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ReferenceImage + */ + public function getReferenceImages() + { + return $this->referenceImages; + } + /** + * @param Google_Service_Vision_Status + */ + public function setStatuses($statuses) + { + $this->statuses = $statuses; + } + /** + * @return Google_Service_Vision_Status + */ + public function getStatuses() + { + return $this->statuses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1InputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1InputConfig.php new file mode 100644 index 00000000..de11e49f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1InputConfig.php @@ -0,0 +1,55 @@ +content = $content; + } + public function getContent() + { + return $this->content; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsSource + */ + public function setGcsSource(Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsSource $gcsSource) + { + $this->gcsSource = $gcsSource; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsSource + */ + public function getGcsSource() + { + return $this->gcsSource; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation.php new file mode 100644 index 00000000..64311d77 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation.php @@ -0,0 +1,73 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocationInfo.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocationInfo.php new file mode 100644 index 00000000..954d159b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1LocationInfo.php @@ -0,0 +1,37 @@ +latLng = $latLng; + } + /** + * @return Google_Service_Vision_LatLng + */ + public function getLatLng() + { + return $this->latLng; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1NormalizedVertex.php new file mode 100644 index 00000000..a04242e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OperationMetadata.php new file mode 100644 index 00000000..03b64da4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OperationMetadata.php @@ -0,0 +1,48 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OutputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OutputConfig.php new file mode 100644 index 00000000..7f452e90 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1OutputConfig.php @@ -0,0 +1,46 @@ +batchSize = $batchSize; + } + public function getBatchSize() + { + return $this->batchSize; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsDestination + */ + public function setGcsDestination(Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsDestination $gcsDestination) + { + $this->gcsDestination = $gcsDestination; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1GcsDestination + */ + public function getGcsDestination() + { + return $this->gcsDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Page.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Page.php new file mode 100644 index 00000000..cc208ea2 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Page.php @@ -0,0 +1,81 @@ +blocks = $blocks; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Block + */ + public function getBlocks() + { + return $this->blocks; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Paragraph.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Paragraph.php new file mode 100644 index 00000000..c06af474 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Paragraph.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Word + */ + public function setWords($words) + { + $this->words = $words; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Word + */ + public function getWords() + { + return $this->words; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Position.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Position.php new file mode 100644 index 00000000..21807298 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Position.php @@ -0,0 +1,48 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } + public function setZ($z) + { + $this->z = $z; + } + public function getZ() + { + return $this->z; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Product.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Product.php new file mode 100644 index 00000000..468df040 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Product.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductCategory($productCategory) + { + $this->productCategory = $productCategory; + } + public function getProductCategory() + { + return $this->productCategory; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductKeyValue + */ + public function setProductLabels($productLabels) + { + $this->productLabels = $productLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductKeyValue + */ + public function getProductLabels() + { + return $this->productLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductKeyValue.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductKeyValue.php new file mode 100644 index 00000000..39c728c4 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductKeyValue.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResults.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResults.php new file mode 100644 index 00000000..74e66c0d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResults.php @@ -0,0 +1,63 @@ +indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult + */ + public function setProductGroupedResults($productGroupedResults) + { + $this->productGroupedResults = $productGroupedResults; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult + */ + public function getProductGroupedResults() + { + return $this->productGroupedResults; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult.php new file mode 100644 index 00000000..865ae02b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult.php @@ -0,0 +1,54 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsResult + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1ProductSearchResultsResult + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsResult.php new file mode 100644 index 00000000..ca87de2c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ProductSearchResultsResult.php @@ -0,0 +1,55 @@ +image = $image; + } + public function getImage() + { + return $this->image; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Product + */ + public function setProduct(Google_Service_Vision_GoogleCloudVisionV1p4beta1Product $product) + { + $this->product = $product; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Product + */ + public function getProduct() + { + return $this->product; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Property.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Property.php new file mode 100644 index 00000000..40c94cb5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Property.php @@ -0,0 +1,48 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setUint64Value($uint64Value) + { + $this->uint64Value = $uint64Value; + } + public function getUint64Value() + { + return $this->uint64Value; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ReferenceImage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ReferenceImage.php new file mode 100644 index 00000000..67b5798f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1ReferenceImage.php @@ -0,0 +1,56 @@ +boundingPolys = $boundingPolys; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingPolys() + { + return $this->boundingPolys; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1SafeSearchAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1SafeSearchAnnotation.php new file mode 100644 index 00000000..819aeff7 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1SafeSearchAnnotation.php @@ -0,0 +1,66 @@ +adult = $adult; + } + public function getAdult() + { + return $this->adult; + } + public function setMedical($medical) + { + $this->medical = $medical; + } + public function getMedical() + { + return $this->medical; + } + public function setRacy($racy) + { + $this->racy = $racy; + } + public function getRacy() + { + return $this->racy; + } + public function setSpoof($spoof) + { + $this->spoof = $spoof; + } + public function getSpoof() + { + return $this->spoof; + } + public function setViolence($violence) + { + $this->violence = $violence; + } + public function getViolence() + { + return $this->violence; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Symbol.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Symbol.php new file mode 100644 index 00000000..63350d83 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Symbol.php @@ -0,0 +1,71 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotation.php new file mode 100644 index 00000000..03b7f8b3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotation.php @@ -0,0 +1,47 @@ +pages = $pages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Page + */ + public function getPages() + { + return $this->pages; + } + public function setText($text) + { + $this->text = $text; + } + public function getText() + { + return $this->text; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak.php new file mode 100644 index 00000000..7ebd815f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak.php @@ -0,0 +1,39 @@ +isPrefix = $isPrefix; + } + public function getIsPrefix() + { + return $this->isPrefix; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage.php new file mode 100644 index 00000000..6065b47d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage.php @@ -0,0 +1,39 @@ +confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationTextProperty.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationTextProperty.php new file mode 100644 index 00000000..bd8cc1bc --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1TextAnnotationTextProperty.php @@ -0,0 +1,54 @@ +detectedBreak = $detectedBreak; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak + */ + public function getDetectedBreak() + { + return $this->detectedBreak; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage + */ + public function setDetectedLanguages($detectedLanguages) + { + $this->detectedLanguages = $detectedLanguages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage + */ + public function getDetectedLanguages() + { + return $this->detectedLanguages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Vertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Vertex.php new file mode 100644 index 00000000..46fd88e9 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Vertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetection.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetection.php new file mode 100644 index 00000000..e83cbda0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetection.php @@ -0,0 +1,118 @@ +bestGuessLabels = $bestGuessLabels; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebLabel + */ + public function getBestGuessLabels() + { + return $this->bestGuessLabels; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function setFullMatchingImages($fullMatchingImages) + { + $this->fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebPage + */ + public function setPagesWithMatchingImages($pagesWithMatchingImages) + { + $this->pagesWithMatchingImages = $pagesWithMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebPage + */ + public function getPagesWithMatchingImages() + { + return $this->pagesWithMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function setVisuallySimilarImages($visuallySimilarImages) + { + $this->visuallySimilarImages = $visuallySimilarImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function getVisuallySimilarImages() + { + return $this->visuallySimilarImages; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebEntity + */ + public function setWebEntities($webEntities) + { + $this->webEntities = $webEntities; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebEntity + */ + public function getWebEntities() + { + return $this->webEntities; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebEntity.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebEntity.php new file mode 100644 index 00000000..37ac1750 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebEntity.php @@ -0,0 +1,48 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + public function getEntityId() + { + return $this->entityId; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebImage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebImage.php new file mode 100644 index 00000000..ac0e92e6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebImage.php @@ -0,0 +1,39 @@ +score = $score; + } + public function getScore() + { + return $this->score; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebLabel.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebLabel.php new file mode 100644 index 00000000..ab877c5f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebLabel.php @@ -0,0 +1,39 @@ +label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebPage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebPage.php new file mode 100644 index 00000000..01bea345 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1WebDetectionWebPage.php @@ -0,0 +1,81 @@ +fullMatchingImages = $fullMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function getFullMatchingImages() + { + return $this->fullMatchingImages; + } + public function setPageTitle($pageTitle) + { + $this->pageTitle = $pageTitle; + } + public function getPageTitle() + { + return $this->pageTitle; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function setPartialMatchingImages($partialMatchingImages) + { + $this->partialMatchingImages = $partialMatchingImages; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1WebDetectionWebImage + */ + public function getPartialMatchingImages() + { + return $this->partialMatchingImages; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Word.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Word.php new file mode 100644 index 00000000..6e382618 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GoogleCloudVisionV1p4beta1Word.php @@ -0,0 +1,79 @@ +boundingBox = $boundingBox; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1BoundingPoly + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + public function setConfidence($confidence) + { + $this->confidence = $confidence; + } + public function getConfidence() + { + return $this->confidence; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function setProperty(Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty $property) + { + $this->property = $property; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1TextAnnotationTextProperty + */ + public function getProperty() + { + return $this->property; + } + /** + * @param Google_Service_Vision_GoogleCloudVisionV1p4beta1Symbol + */ + public function setSymbols($symbols) + { + $this->symbols = $symbols; + } + /** + * @return Google_Service_Vision_GoogleCloudVisionV1p4beta1Symbol + */ + public function getSymbols() + { + return $this->symbols; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/GroupedResult.php b/vendor/google/apiclient-services/src/Google/Service/Vision/GroupedResult.php new file mode 100644 index 00000000..7793dbcd --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/GroupedResult.php @@ -0,0 +1,54 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + /** + * @param Google_Service_Vision_Result + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_Result + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImageAnnotationContext.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImageAnnotationContext.php new file mode 100644 index 00000000..373f4a2f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImageAnnotationContext.php @@ -0,0 +1,39 @@ +pageNumber = $pageNumber; + } + public function getPageNumber() + { + return $this->pageNumber; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImageContext.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImageContext.php index 53f336ab..4c58c4e7 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Vision/ImageContext.php +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImageContext.php @@ -23,6 +23,8 @@ class Google_Service_Vision_ImageContext extends Google_Collection public $languageHints; protected $latLongRectType = 'Google_Service_Vision_LatLongRect'; protected $latLongRectDataType = ''; + protected $productSearchParamsType = 'Google_Service_Vision_ProductSearchParams'; + protected $productSearchParamsDataType = ''; protected $webDetectionParamsType = 'Google_Service_Vision_WebDetectionParams'; protected $webDetectionParamsDataType = ''; @@ -62,6 +64,20 @@ class Google_Service_Vision_ImageContext extends Google_Collection { return $this->latLongRect; } + /** + * @param Google_Service_Vision_ProductSearchParams + */ + public function setProductSearchParams(Google_Service_Vision_ProductSearchParams $productSearchParams) + { + $this->productSearchParams = $productSearchParams; + } + /** + * @return Google_Service_Vision_ProductSearchParams + */ + public function getProductSearchParams() + { + return $this->productSearchParams; + } /** * @param Google_Service_Vision_WebDetectionParams */ diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsGcsSource.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsGcsSource.php new file mode 100644 index 00000000..3498f3ef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsGcsSource.php @@ -0,0 +1,30 @@ +csvFileUri = $csvFileUri; + } + public function getCsvFileUri() + { + return $this->csvFileUri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsInputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsInputConfig.php new file mode 100644 index 00000000..615371f0 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsInputConfig.php @@ -0,0 +1,37 @@ +gcsSource = $gcsSource; + } + /** + * @return Google_Service_Vision_ImportProductSetsGcsSource + */ + public function getGcsSource() + { + return $this->gcsSource; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsRequest.php new file mode 100644 index 00000000..2494943f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsRequest.php @@ -0,0 +1,37 @@ +inputConfig = $inputConfig; + } + /** + * @return Google_Service_Vision_ImportProductSetsInputConfig + */ + public function getInputConfig() + { + return $this->inputConfig; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsResponse.php new file mode 100644 index 00000000..5cea5785 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ImportProductSetsResponse.php @@ -0,0 +1,54 @@ +referenceImages = $referenceImages; + } + /** + * @return Google_Service_Vision_ReferenceImage + */ + public function getReferenceImages() + { + return $this->referenceImages; + } + /** + * @param Google_Service_Vision_Status + */ + public function setStatuses($statuses) + { + $this->statuses = $statuses; + } + /** + * @return Google_Service_Vision_Status + */ + public function getStatuses() + { + return $this->statuses; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/InputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/InputConfig.php new file mode 100644 index 00000000..1da8a55c --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/InputConfig.php @@ -0,0 +1,46 @@ +gcsSource = $gcsSource; + } + /** + * @return Google_Service_Vision_GcsSource + */ + public function getGcsSource() + { + return $this->gcsSource; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/KeyValue.php b/vendor/google/apiclient-services/src/Google/Service/Vision/KeyValue.php new file mode 100644 index 00000000..3e2c5eed --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/KeyValue.php @@ -0,0 +1,39 @@ +key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductSetsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductSetsResponse.php new file mode 100644 index 00000000..02339052 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductSetsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Vision_ProductSet + */ + public function setProductSets($productSets) + { + $this->productSets = $productSets; + } + /** + * @return Google_Service_Vision_ProductSet + */ + public function getProductSets() + { + return $this->productSets; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsInProductSetResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsInProductSetResponse.php new file mode 100644 index 00000000..c06f33ef --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsInProductSetResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Vision_Product + */ + public function setProducts($products) + { + $this->products = $products; + } + /** + * @return Google_Service_Vision_Product + */ + public function getProducts() + { + return $this->products; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsResponse.php new file mode 100644 index 00000000..bdc7a059 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ListProductsResponse.php @@ -0,0 +1,47 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param Google_Service_Vision_Product + */ + public function setProducts($products) + { + $this->products = $products; + } + /** + * @return Google_Service_Vision_Product + */ + public function getProducts() + { + return $this->products; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ListReferenceImagesResponse.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ListReferenceImagesResponse.php new file mode 100644 index 00000000..bdba6365 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ListReferenceImagesResponse.php @@ -0,0 +1,56 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + public function getPageSize() + { + return $this->pageSize; + } + /** + * @param Google_Service_Vision_ReferenceImage + */ + public function setReferenceImages($referenceImages) + { + $this->referenceImages = $referenceImages; + } + /** + * @return Google_Service_Vision_ReferenceImage + */ + public function getReferenceImages() + { + return $this->referenceImages; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/LocalizedObjectAnnotation.php b/vendor/google/apiclient-services/src/Google/Service/Vision/LocalizedObjectAnnotation.php new file mode 100644 index 00000000..7e2d9eac --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/LocalizedObjectAnnotation.php @@ -0,0 +1,73 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setLanguageCode($languageCode) + { + $this->languageCode = $languageCode; + } + public function getLanguageCode() + { + return $this->languageCode; + } + public function setMid($mid) + { + $this->mid = $mid; + } + public function getMid() + { + return $this->mid; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/NormalizedVertex.php b/vendor/google/apiclient-services/src/Google/Service/Vision/NormalizedVertex.php new file mode 100644 index 00000000..e2aa0c72 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/NormalizedVertex.php @@ -0,0 +1,39 @@ +x = $x; + } + public function getX() + { + return $this->x; + } + public function setY($y) + { + $this->y = $y; + } + public function getY() + { + return $this->y; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/OperationMetadata.php b/vendor/google/apiclient-services/src/Google/Service/Vision/OperationMetadata.php new file mode 100644 index 00000000..cbb378fa --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/OperationMetadata.php @@ -0,0 +1,48 @@ +createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/OutputConfig.php b/vendor/google/apiclient-services/src/Google/Service/Vision/OutputConfig.php new file mode 100644 index 00000000..65b754e8 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/OutputConfig.php @@ -0,0 +1,46 @@ +batchSize = $batchSize; + } + public function getBatchSize() + { + return $this->batchSize; + } + /** + * @param Google_Service_Vision_GcsDestination + */ + public function setGcsDestination(Google_Service_Vision_GcsDestination $gcsDestination) + { + $this->gcsDestination = $gcsDestination; + } + /** + * @return Google_Service_Vision_GcsDestination + */ + public function getGcsDestination() + { + return $this->gcsDestination; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Product.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Product.php new file mode 100644 index 00000000..9eba3390 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Product.php @@ -0,0 +1,74 @@ +description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductCategory($productCategory) + { + $this->productCategory = $productCategory; + } + public function getProductCategory() + { + return $this->productCategory; + } + /** + * @param Google_Service_Vision_KeyValue + */ + public function setProductLabels($productLabels) + { + $this->productLabels = $productLabels; + } + /** + * @return Google_Service_Vision_KeyValue + */ + public function getProductLabels() + { + return $this->productLabels; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchParams.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchParams.php new file mode 100644 index 00000000..3577cab5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchParams.php @@ -0,0 +1,65 @@ +boundingPoly = $boundingPoly; + } + /** + * @return Google_Service_Vision_BoundingPoly + */ + public function getBoundingPoly() + { + return $this->boundingPoly; + } + public function setFilter($filter) + { + $this->filter = $filter; + } + public function getFilter() + { + return $this->filter; + } + public function setProductCategories($productCategories) + { + $this->productCategories = $productCategories; + } + public function getProductCategories() + { + return $this->productCategories; + } + public function setProductSet($productSet) + { + $this->productSet = $productSet; + } + public function getProductSet() + { + return $this->productSet; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchResults.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchResults.php new file mode 100644 index 00000000..2adcbe6d --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSearchResults.php @@ -0,0 +1,63 @@ +indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + /** + * @param Google_Service_Vision_GroupedResult + */ + public function setProductGroupedResults($productGroupedResults) + { + $this->productGroupedResults = $productGroupedResults; + } + /** + * @return Google_Service_Vision_GroupedResult + */ + public function getProductGroupedResults() + { + return $this->productGroupedResults; + } + /** + * @param Google_Service_Vision_Result + */ + public function setResults($results) + { + $this->results = $results; + } + /** + * @return Google_Service_Vision_Result + */ + public function getResults() + { + return $this->results; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSet.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSet.php new file mode 100644 index 00000000..c41480b3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ProductSet.php @@ -0,0 +1,64 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + /** + * @param Google_Service_Vision_Status + */ + public function setIndexError(Google_Service_Vision_Status $indexError) + { + $this->indexError = $indexError; + } + /** + * @return Google_Service_Vision_Status + */ + public function getIndexError() + { + return $this->indexError; + } + public function setIndexTime($indexTime) + { + $this->indexTime = $indexTime; + } + public function getIndexTime() + { + return $this->indexTime; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/ReferenceImage.php b/vendor/google/apiclient-services/src/Google/Service/Vision/ReferenceImage.php new file mode 100644 index 00000000..b727df7b --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/ReferenceImage.php @@ -0,0 +1,56 @@ +boundingPolys = $boundingPolys; + } + /** + * @return Google_Service_Vision_BoundingPoly + */ + public function getBoundingPolys() + { + return $this->boundingPolys; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUri($uri) + { + $this->uri = $uri; + } + public function getUri() + { + return $this->uri; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/RemoveProductFromProductSetRequest.php b/vendor/google/apiclient-services/src/Google/Service/Vision/RemoveProductFromProductSetRequest.php new file mode 100644 index 00000000..df14a42f --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/RemoveProductFromProductSetRequest.php @@ -0,0 +1,30 @@ +product = $product; + } + public function getProduct() + { + return $this->product; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Files.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Files.php new file mode 100644 index 00000000..803e9eb1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Files.php @@ -0,0 +1,46 @@ + + * $visionService = new Google_Service_Vision(...); + * $files = $visionService->files; + * + */ +class Google_Service_Vision_Resource_Files extends Google_Service_Resource +{ + /** + * Run asynchronous image detection and annotation for a list of generic files, + * such as PDF files, which may contain multiple pages and multiple images per + * page. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. `Operation.metadata` contains + * `OperationMetadata` (metadata). `Operation.response` contains + * `AsyncBatchAnnotateFilesResponse` (results). (files.asyncBatchAnnotate) + * + * @param Google_Service_Vision_AsyncBatchAnnotateFilesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_Operation + */ + public function asyncBatchAnnotate(Google_Service_Vision_AsyncBatchAnnotateFilesRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('asyncBatchAnnotate', array($params), "Google_Service_Vision_Operation"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Projects.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Projects.php new file mode 100644 index 00000000..84b9ef23 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/Projects.php @@ -0,0 +1,28 @@ + + * $visionService = new Google_Service_Vision(...); + * $projects = $visionService->projects; + * + */ +class Google_Service_Vision_Resource_Projects extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocations.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocations.php new file mode 100644 index 00000000..73ee9ba5 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocations.php @@ -0,0 +1,28 @@ + + * $visionService = new Google_Service_Vision(...); + * $locations = $visionService->locations; + * + */ +class Google_Service_Vision_Resource_ProjectsLocations extends Google_Service_Resource +{ +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSets.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSets.php new file mode 100644 index 00000000..515896a1 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSets.php @@ -0,0 +1,221 @@ + + * $visionService = new Google_Service_Vision(...); + * $productSets = $visionService->productSets; + * + */ +class Google_Service_Vision_Resource_ProjectsLocationsProductSets extends Google_Service_Resource +{ + /** + * Adds a Product to the specified ProductSet. If the Product is already + * present, no change is made. + * + * One Product can be added to at most 100 ProductSets. + * + * Possible errors: + * + * * Returns NOT_FOUND if the Product or the ProductSet doesn't exist. + * (productSets.addProduct) + * + * @param string $name The resource name for the ProductSet to modify. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` + * @param Google_Service_Vision_AddProductToProductSetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_VisionEmpty + */ + public function addProduct($name, Google_Service_Vision_AddProductToProductSetRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addProduct', array($params), "Google_Service_Vision_VisionEmpty"); + } + /** + * Creates and returns a new ProductSet resource. + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if display_name is missing, or is longer than + * 4096 characters. (productSets.create) + * + * @param string $parent The project in which the ProductSet should be created. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID`. + * @param Google_Service_Vision_ProductSet $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string productSetId A user-supplied resource id for this + * ProductSet. If set, the server will attempt to use this value as the resource + * id. If it is already in use, an error is returned with code ALREADY_EXISTS. + * Must be at most 128 characters long. It cannot contain the character `/`. + * @return Google_Service_Vision_ProductSet + */ + public function create($parent, Google_Service_Vision_ProductSet $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Vision_ProductSet"); + } + /** + * Permanently deletes a ProductSet. Products and ReferenceImages in the + * ProductSet are not deleted. + * + * The actual image files are not deleted from Google Cloud Storage. + * + * Possible errors: + * + * * Returns NOT_FOUND if the ProductSet does not exist. (productSets.delete) + * + * @param string $name Resource name of the ProductSet to delete. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_VisionEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Vision_VisionEmpty"); + } + /** + * Gets information associated with a ProductSet. + * + * Possible errors: + * + * * Returns NOT_FOUND if the ProductSet does not exist. (productSets.get) + * + * @param string $name Resource name of the ProductSet to get. + * + * Format is: `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_ProductSet + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Vision_ProductSet"); + } + /** + * Asynchronous API that imports a list of reference images to specified product + * sets based on a list of image information. + * + * The google.longrunning.Operation API can be used to keep track of the + * progress and results of the request. `Operation.metadata` contains + * `BatchOperationMetadata`. (progress) `Operation.response` contains + * `ImportProductSetsResponse`. (results) + * + * The input source of this method is a csv file on Google Cloud Storage. For + * the format of the csv file please see + * ImportProductSetsGcsSource.csv_file_uri. (productSets.import) + * + * @param string $parent The project in which the ProductSets should be + * imported. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID`. + * @param Google_Service_Vision_ImportProductSetsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_Operation + */ + public function import($parent, Google_Service_Vision_ImportProductSetsRequest $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Vision_Operation"); + } + /** + * Lists ProductSets in an unspecified order. + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than + * 1. (productSets.listProjectsLocationsProductSets) + * + * @param string $parent The project from which ProductSets should be listed. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token returned from a previous List + * request, if any. + * @opt_param int pageSize The maximum number of items to return. Default 10, + * maximum 100. + * @return Google_Service_Vision_ListProductSetsResponse + */ + public function listProjectsLocationsProductSets($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vision_ListProductSetsResponse"); + } + /** + * Makes changes to a ProductSet resource. Only display_name can be updated + * currently. + * + * Possible errors: + * + * * Returns NOT_FOUND if the ProductSet does not exist. * Returns + * INVALID_ARGUMENT if display_name is present in update_mask but missing from + * the request or longer than 4096 characters. (productSets.patch) + * + * @param string $name The resource name of the ProductSet. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. + * + * This field is ignored when creating a ProductSet. + * @param Google_Service_Vision_ProductSet $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The FieldMask that specifies which fields to + * update. If update_mask isn't specified, all mutable fields are to be updated. + * Valid mask path is `display_name`. + * @return Google_Service_Vision_ProductSet + */ + public function patch($name, Google_Service_Vision_ProductSet $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Vision_ProductSet"); + } + /** + * Removes a Product from the specified ProductSet. + * + * Possible errors: + * + * * Returns NOT_FOUND If the Product is not found under the ProductSet. + * (productSets.removeProduct) + * + * @param string $name The resource name for the ProductSet to modify. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` + * @param Google_Service_Vision_RemoveProductFromProductSetRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_VisionEmpty + */ + public function removeProduct($name, Google_Service_Vision_RemoveProductFromProductSetRequest $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('removeProduct', array($params), "Google_Service_Vision_VisionEmpty"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSetsProducts.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSetsProducts.php new file mode 100644 index 00000000..72dbe310 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductSetsProducts.php @@ -0,0 +1,54 @@ + + * $visionService = new Google_Service_Vision(...); + * $products = $visionService->products; + * + */ +class Google_Service_Vision_Resource_ProjectsLocationsProductSetsProducts extends Google_Service_Resource +{ + /** + * Lists the Products in a ProductSet, in an unspecified order. If the + * ProductSet does not exist, the products field of the response will be empty. + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + * (products.listProjectsLocationsProductSetsProducts) + * + * @param string $name The ProductSet resource for which to retrieve Products. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token returned from a previous List + * request, if any. + * @opt_param int pageSize The maximum number of items to return. Default 10, + * maximum 100. + * @return Google_Service_Vision_ListProductsInProductSetResponse + */ + public function listProjectsLocationsProductSetsProducts($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vision_ListProductsInProductSetResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProducts.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProducts.php new file mode 100644 index 00000000..7bf7fbda --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProducts.php @@ -0,0 +1,159 @@ + + * $visionService = new Google_Service_Vision(...); + * $products = $visionService->products; + * + */ +class Google_Service_Vision_Resource_ProjectsLocationsProducts extends Google_Service_Resource +{ + /** + * Creates and returns a new product resource. + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 + * characters. * Returns INVALID_ARGUMENT if description is longer than 4096 + * characters. * Returns INVALID_ARGUMENT if product_category is missing or + * invalid. (products.create) + * + * @param string $parent The project in which the Product should be created. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID`. + * @param Google_Service_Vision_Product $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string productId A user-supplied resource id for this Product. If + * set, the server will attempt to use this value as the resource id. If it is + * already in use, an error is returned with code ALREADY_EXISTS. Must be at + * most 128 characters long. It cannot contain the character `/`. + * @return Google_Service_Vision_Product + */ + public function create($parent, Google_Service_Vision_Product $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Vision_Product"); + } + /** + * Permanently deletes a product and its reference images. + * + * Metadata of the product and all its images will be deleted right away, but + * search queries against ProductSets containing the product may still work + * until all related caches are refreshed. + * + * Possible errors: + * + * * Returns NOT_FOUND if the product does not exist. (products.delete) + * + * @param string $name Resource name of product to delete. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_VisionEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Vision_VisionEmpty"); + } + /** + * Gets information associated with a Product. + * + * Possible errors: + * + * * Returns NOT_FOUND if the Product does not exist. (products.get) + * + * @param string $name Resource name of the Product to get. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_Product + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Vision_Product"); + } + /** + * Lists products in an unspecified order. + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1. + * (products.listProjectsLocationsProducts) + * + * @param string $parent The project OR ProductSet from which Products should be + * listed. + * + * Format: `projects/PROJECT_ID/locations/LOC_ID` + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The next_page_token returned from a previous List + * request, if any. + * @opt_param int pageSize The maximum number of items to return. Default 10, + * maximum 100. + * @return Google_Service_Vision_ListProductsResponse + */ + public function listProjectsLocationsProducts($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vision_ListProductsResponse"); + } + /** + * Makes changes to a Product resource. Only the `display_name`, `description`, + * and `labels` fields can be updated right now. + * + * If labels are updated, the change will not be reflected in queries until the + * next index time. + * + * Possible errors: + * + * * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT + * if display_name is present in update_mask but is missing from the request + * or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is + * present in update_mask but is longer than 4096 characters. * Returns + * INVALID_ARGUMENT if product_category is present in update_mask. + * (products.patch) + * + * @param string $name The resource name of the product. + * + * Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + * + * This field is ignored when creating a product. + * @param Google_Service_Vision_Product $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask The FieldMask that specifies which fields to + * update. If update_mask isn't specified, all mutable fields are to be updated. + * Valid mask paths include `product_labels`, `display_name`, and `description`. + * @return Google_Service_Vision_Product + */ + public function patch($name, Google_Service_Vision_Product $postBody, $optParams = array()) + { + $params = array('name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Vision_Product"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductsReferenceImages.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductsReferenceImages.php new file mode 100644 index 00000000..64d7ac99 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Resource/ProjectsLocationsProductsReferenceImages.php @@ -0,0 +1,151 @@ + + * $visionService = new Google_Service_Vision(...); + * $referenceImages = $visionService->referenceImages; + * + */ +class Google_Service_Vision_Resource_ProjectsLocationsProductsReferenceImages extends Google_Service_Resource +{ + /** + * Creates and returns a new ReferenceImage resource. + * + * The `bounding_poly` field is optional. If `bounding_poly` is not specified, + * the system will try to detect regions of interest in the image that are + * compatible with the product_category on the parent product. If it is + * specified, detection is ALWAYS skipped. The system converts polygons into + * non-rotated rectangles. + * + * Note that the pipeline will resize the image if the image resolution is too + * large to process (above 50MP). + * + * Possible errors: + * + * * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 + * characters. * Returns INVALID_ARGUMENT if the product does not exist. * + * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing + * compatible with the parent product's product_category is detected. * Returns + * INVALID_ARGUMENT if bounding_poly contains more than 10 polygons. + * (referenceImages.create) + * + * @param string $parent Resource name of the product in which to create the + * reference image. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + * @param Google_Service_Vision_ReferenceImage $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string referenceImageId A user-supplied resource id for the + * ReferenceImage to be added. If set, the server will attempt to use this value + * as the resource id. If it is already in use, an error is returned with code + * ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the + * character `/`. + * @return Google_Service_Vision_ReferenceImage + */ + public function create($parent, Google_Service_Vision_ReferenceImage $postBody, $optParams = array()) + { + $params = array('parent' => $parent, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Vision_ReferenceImage"); + } + /** + * Permanently deletes a reference image. + * + * The image metadata will be deleted right away, but search queries against + * ProductSets containing the image may still work until all related caches are + * refreshed. + * + * The actual image files are not deleted from Google Cloud Storage. + * + * Possible errors: + * + * * Returns NOT_FOUND if the reference image does not exist. + * (referenceImages.delete) + * + * @param string $name The resource name of the reference image to delete. + * + * Format is: + * + * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMA + * GE_ID` + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_VisionEmpty + */ + public function delete($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Vision_VisionEmpty"); + } + /** + * Gets information associated with a ReferenceImage. + * + * Possible errors: + * + * * Returns NOT_FOUND if the specified image does not exist. + * (referenceImages.get) + * + * @param string $name The resource name of the ReferenceImage to get. + * + * Format is: + * + * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMA + * GE_ID`. + * @param array $optParams Optional parameters. + * @return Google_Service_Vision_ReferenceImage + */ + public function get($name, $optParams = array()) + { + $params = array('name' => $name); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Vision_ReferenceImage"); + } + /** + * Lists reference images. + * + * Possible errors: + * + * * Returns NOT_FOUND if the parent product does not exist. * Returns + * INVALID_ARGUMENT if the page_size is greater than 100, or less than 1. + * (referenceImages.listProjectsLocationsProductsReferenceImages) + * + * @param string $parent Resource name of the product containing the reference + * images. + * + * Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken A token identifying a page of results to be + * returned. This is the value of `nextPageToken` returned in a previous + * reference image list request. + * + * Defaults to the first page if not specified. + * @opt_param int pageSize The maximum number of items to return. Default 10, + * maximum 100. + * @return Google_Service_Vision_ListReferenceImagesResponse + */ + public function listProjectsLocationsProductsReferenceImages($parent, $optParams = array()) + { + $params = array('parent' => $parent); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Vision_ListReferenceImagesResponse"); + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Vision/Result.php b/vendor/google/apiclient-services/src/Google/Service/Vision/Result.php new file mode 100644 index 00000000..d8a75bb6 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/Vision/Result.php @@ -0,0 +1,55 @@ +image = $image; + } + public function getImage() + { + return $this->image; + } + /** + * @param Google_Service_Vision_Product + */ + public function setProduct(Google_Service_Vision_Product $product) + { + $this->product = $product; + } + /** + * @return Google_Service_Vision_Product + */ + public function getProduct() + { + return $this->product; + } + public function setScore($score) + { + $this->score = $score; + } + public function getScore() + { + return $this->score; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner.php index b10759df..403b652f 100644 --- a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner.php +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner.php @@ -19,7 +19,7 @@ * Service definition for WebSecurityScanner (v1alpha). * *- * Web Security Scanner API (under development).
+ * Scans your Compute and App Engine apps for common web vulnerabilities. * ** For more information about this service, see the API @@ -50,6 +50,7 @@ class Google_Service_WebSecurityScanner extends Google_Service parent::__construct($client); $this->rootUrl = 'https://websecurityscanner.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1alpha'; $this->serviceName = 'websecurityscanner'; @@ -98,14 +99,14 @@ class Google_Service_WebSecurityScanner extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'patch' => array( 'path' => 'v1alpha/{+name}', @@ -256,10 +257,6 @@ class Google_Service_WebSecurityScanner extends Google_Service 'type' => 'string', 'required' => true, ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), 'filter' => array( 'location' => 'query', 'type' => 'string', @@ -268,6 +265,10 @@ class Google_Service_WebSecurityScanner extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Finding.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Finding.php index 5cf1f1ba..fbd2779a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Finding.php +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Finding.php @@ -31,6 +31,8 @@ class Google_Service_WebSecurityScanner_Finding extends Google_Model public $trackingId; protected $violatingResourceType = 'Google_Service_WebSecurityScanner_ViolatingResource'; protected $violatingResourceDataType = ''; + protected $vulnerableHeadersType = 'Google_Service_WebSecurityScanner_VulnerableHeaders'; + protected $vulnerableHeadersDataType = ''; protected $vulnerableParametersType = 'Google_Service_WebSecurityScanner_VulnerableParameters'; protected $vulnerableParametersDataType = ''; protected $xssType = 'Google_Service_WebSecurityScanner_Xss'; @@ -144,6 +146,20 @@ class Google_Service_WebSecurityScanner_Finding extends Google_Model { return $this->violatingResource; } + /** + * @param Google_Service_WebSecurityScanner_VulnerableHeaders + */ + public function setVulnerableHeaders(Google_Service_WebSecurityScanner_VulnerableHeaders $vulnerableHeaders) + { + $this->vulnerableHeaders = $vulnerableHeaders; + } + /** + * @return Google_Service_WebSecurityScanner_VulnerableHeaders + */ + public function getVulnerableHeaders() + { + return $this->vulnerableHeaders; + } /** * @param Google_Service_WebSecurityScanner_VulnerableParameters */ diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Header.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Header.php new file mode 100644 index 00000000..36a88466 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Header.php @@ -0,0 +1,39 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigs.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigs.php index bcdc8f82..89eafadc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigs.php +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigs.php @@ -79,12 +79,12 @@ class Google_Service_WebSecurityScanner_Resource_ProjectsScanConfigs extends Goo * project resource name in the format 'projects/{projectId}'. * @param array $optParams Optional parameters. * - * @opt_param int pageSize The maximum number of ScanConfigs to return, can be - * limited by server. If not specified or not positive, the implementation will - * select a reasonable value. * @opt_param string pageToken A token identifying a page of results to be * returned. This should be a `next_page_token` value returned from a previous * List request. If unspecified, the first page of results is returned. + * @opt_param int pageSize The maximum number of ScanConfigs to return, can be + * limited by server. If not specified or not positive, the implementation will + * select a reasonable value. * @return Google_Service_WebSecurityScanner_ListScanConfigsResponse */ public function listProjectsScanConfigs($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigsScanRunsFindings.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigsScanRunsFindings.php index 01458a98..be35a4e5 100644 --- a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigsScanRunsFindings.php +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/Resource/ProjectsScanConfigsScanRunsFindings.php @@ -49,14 +49,14 @@ class Google_Service_WebSecurityScanner_Resource_ProjectsScanConfigsScanRunsFind * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @param array $optParams Optional parameters. * - * @opt_param int pageSize The maximum number of Findings to return, can be - * limited by server. If not specified or not positive, the implementation will - * select a reasonable value. * @opt_param string filter The filter expression. The expression must be in the * format: . Supported field: 'finding_type'. Supported operator: '='. * @opt_param string pageToken A token identifying a page of results to be * returned. This should be a `next_page_token` value returned from a previous * List request. If unspecified, the first page of results is returned. + * @opt_param int pageSize The maximum number of Findings to return, can be + * limited by server. If not specified or not positive, the implementation will + * select a reasonable value. * @return Google_Service_WebSecurityScanner_ListFindingsResponse */ public function listProjectsScanConfigsScanRunsFindings($parent, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/ScanConfig.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/ScanConfig.php index 2bbb26f9..2e1150d0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/ScanConfig.php +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/ScanConfig.php @@ -22,6 +22,8 @@ class Google_Service_WebSecurityScanner_ScanConfig extends Google_Collection protected $authenticationDataType = ''; public $blacklistPatterns; public $displayName; + protected $latestRunType = 'Google_Service_WebSecurityScanner_ScanRun'; + protected $latestRunDataType = ''; public $maxQps; public $name; protected $scheduleType = 'Google_Service_WebSecurityScanner_Schedule'; @@ -60,6 +62,20 @@ class Google_Service_WebSecurityScanner_ScanConfig extends Google_Collection { return $this->displayName; } + /** + * @param Google_Service_WebSecurityScanner_ScanRun + */ + public function setLatestRun(Google_Service_WebSecurityScanner_ScanRun $latestRun) + { + $this->latestRun = $latestRun; + } + /** + * @return Google_Service_WebSecurityScanner_ScanRun + */ + public function getLatestRun() + { + return $this->latestRun; + } public function setMaxQps($maxQps) { $this->maxQps = $maxQps; diff --git a/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/VulnerableHeaders.php b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/VulnerableHeaders.php new file mode 100644 index 00000000..9236f5cb --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/WebSecurityScanner/VulnerableHeaders.php @@ -0,0 +1,54 @@ +headers = $headers; + } + /** + * @return Google_Service_WebSecurityScanner_Header + */ + public function getHeaders() + { + return $this->headers; + } + /** + * @param Google_Service_WebSecurityScanner_Header + */ + public function setMissingHeaders($missingHeaders) + { + $this->missingHeaders = $missingHeaders; + } + /** + * @return Google_Service_WebSecurityScanner_Header + */ + public function getMissingHeaders() + { + return $this->missingHeaders; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/Webfonts.php b/vendor/google/apiclient-services/src/Google/Service/Webfonts.php index d9220d94..bb51c71d 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Webfonts.php +++ b/vendor/google/apiclient-services/src/Google/Service/Webfonts.php @@ -46,6 +46,7 @@ class Google_Service_Webfonts extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webfonts/v1/'; + $this->batchPath = 'batch/webfonts/v1'; $this->version = 'v1'; $this->serviceName = 'webfonts'; diff --git a/vendor/google/apiclient-services/src/Google/Service/Webmasters.php b/vendor/google/apiclient-services/src/Google/Service/Webmasters.php index 7d36d691..230c00f1 100644 --- a/vendor/google/apiclient-services/src/Google/Service/Webmasters.php +++ b/vendor/google/apiclient-services/src/Google/Service/Webmasters.php @@ -53,6 +53,7 @@ class Google_Service_Webmasters extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webmasters/v3/'; + $this->batchPath = 'batch/webmasters/v3'; $this->version = 'v3'; $this->serviceName = 'webmasters'; diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube.php b/vendor/google/apiclient-services/src/Google/Service/YouTube.php index bfb72c0a..a2f5f468 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube.php @@ -34,7 +34,7 @@ class Google_Service_YouTube extends Google_Service /** Manage your YouTube account. */ const YOUTUBE = "https://www.googleapis.com/auth/youtube"; - /** Manage your YouTube account. */ + /** See, edit, and permanently delete your YouTube videos, ratings, comments and captions. */ const YOUTUBE_FORCE_SSL = "https://www.googleapis.com/auth/youtube.force-ssl"; /** View your YouTube account. */ @@ -57,7 +57,6 @@ class Google_Service_YouTube extends Google_Service public $channels; public $commentThreads; public $comments; - public $fanFundingEvents; public $guideCategories; public $i18nLanguages; public $i18nRegions; @@ -88,6 +87,7 @@ class Google_Service_YouTube extends Google_Service parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'youtube/v3/'; + $this->batchPath = 'batch/youtube/v3'; $this->version = 'v3'; $this->serviceName = 'youtube'; @@ -640,38 +640,6 @@ class Google_Service_YouTube extends Google_Service ) ) ); - $this->fanFundingEvents = new Google_Service_YouTube_Resource_FanFundingEvents( - $this, - $this->serviceName, - 'fanFundingEvents', - array( - 'methods' => array( - 'list' => array( - 'path' => 'fanFundingEvents', - 'httpMethod' => 'GET', - 'parameters' => array( - 'part' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'hl' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); $this->guideCategories = new Google_Service_YouTube_Resource_GuideCategories( $this, $this->serviceName, diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php index 95967aa3..c754d0a0 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php @@ -20,7 +20,6 @@ class Google_Service_YouTube_ChannelAuditDetails extends Google_Model public $communityGuidelinesGoodStanding; public $contentIdClaimsGoodStanding; public $copyrightStrikesGoodStanding; - public $overallGoodStanding; public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding) { @@ -46,12 +45,4 @@ class Google_Service_YouTube_ChannelAuditDetails extends Google_Model { return $this->copyrightStrikesGoodStanding; } - public function setOverallGoodStanding($overallGoodStanding) - { - $this->overallGoodStanding = $overallGoodStanding; - } - public function getOverallGoodStanding() - { - return $this->overallGoodStanding; - } } diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php deleted file mode 100644 index 252c2a9c..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -etag = $etag; - } - public function getEtag() - { - return $this->etag; - } - public function setEventId($eventId) - { - $this->eventId = $eventId; - } - public function getEventId() - { - return $this->eventId; - } - /** - * @param Google_Service_YouTube_FanFundingEvent - */ - public function setItems($items) - { - $this->items = $items; - } - /** - * @return Google_Service_YouTube_FanFundingEvent - */ - public function getItems() - { - return $this->items; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - /** - * @param Google_Service_YouTube_PageInfo - */ - public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) - { - $this->pageInfo = $pageInfo; - } - /** - * @return Google_Service_YouTube_PageInfo - */ - public function getPageInfo() - { - return $this->pageInfo; - } - /** - * @param Google_Service_YouTube_TokenPagination - */ - public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) - { - $this->tokenPagination = $tokenPagination; - } - /** - * @return Google_Service_YouTube_TokenPagination - */ - public function getTokenPagination() - { - return $this->tokenPagination; - } - public function setVisitorId($visitorId) - { - $this->visitorId = $visitorId; - } - public function getVisitorId() - { - return $this->visitorId; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php deleted file mode 100644 index 1eea7524..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php +++ /dev/null @@ -1,91 +0,0 @@ -amountMicros = $amountMicros; - } - public function getAmountMicros() - { - return $this->amountMicros; - } - public function setChannelId($channelId) - { - $this->channelId = $channelId; - } - public function getChannelId() - { - return $this->channelId; - } - public function setCommentText($commentText) - { - $this->commentText = $commentText; - } - public function getCommentText() - { - return $this->commentText; - } - public function setCreatedAt($createdAt) - { - $this->createdAt = $createdAt; - } - public function getCreatedAt() - { - return $this->createdAt; - } - public function setCurrency($currency) - { - $this->currency = $currency; - } - public function getCurrency() - { - return $this->currency; - } - public function setDisplayString($displayString) - { - $this->displayString = $displayString; - } - public function getDisplayString() - { - return $this->displayString; - } - /** - * @param Google_Service_YouTube_ChannelProfileDetails - */ - public function setSupporterDetails(Google_Service_YouTube_ChannelProfileDetails $supporterDetails) - { - $this->supporterDetails = $supporterDetails; - } - /** - * @return Google_Service_YouTube_ChannelProfileDetails - */ - public function getSupporterDetails() - { - return $this->supporterDetails; - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php index ae999811..f1ae29cc 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php @@ -38,6 +38,8 @@ class Google_Service_YouTube_LiveChatMessageSnippet extends Google_Model public $publishedAt; protected $superChatDetailsType = 'Google_Service_YouTube_LiveChatSuperChatDetails'; protected $superChatDetailsDataType = ''; + protected $superStickerDetailsType = 'Google_Service_YouTube_LiveChatSuperStickerDetails'; + protected $superStickerDetailsDataType = ''; protected $textMessageDetailsType = 'Google_Service_YouTube_LiveChatTextMessageDetails'; protected $textMessageDetailsDataType = ''; public $type; @@ -196,6 +198,20 @@ class Google_Service_YouTube_LiveChatMessageSnippet extends Google_Model { return $this->superChatDetails; } + /** + * @param Google_Service_YouTube_LiveChatSuperStickerDetails + */ + public function setSuperStickerDetails(Google_Service_YouTube_LiveChatSuperStickerDetails $superStickerDetails) + { + $this->superStickerDetails = $superStickerDetails; + } + /** + * @return Google_Service_YouTube_LiveChatSuperStickerDetails + */ + public function getSuperStickerDetails() + { + return $this->superStickerDetails; + } /** * @param Google_Service_YouTube_LiveChatTextMessageDetails */ diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperStickerDetails.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperStickerDetails.php new file mode 100644 index 00000000..ac7d47e3 --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperStickerDetails.php @@ -0,0 +1,73 @@ +amountDisplayString = $amountDisplayString; + } + public function getAmountDisplayString() + { + return $this->amountDisplayString; + } + public function setAmountMicros($amountMicros) + { + $this->amountMicros = $amountMicros; + } + public function getAmountMicros() + { + return $this->amountMicros; + } + public function setCurrency($currency) + { + $this->currency = $currency; + } + public function getCurrency() + { + return $this->currency; + } + /** + * @param Google_Service_YouTube_SuperStickerMetadata + */ + public function setSuperStickerMetadata(Google_Service_YouTube_SuperStickerMetadata $superStickerMetadata) + { + $this->superStickerMetadata = $superStickerMetadata; + } + /** + * @return Google_Service_YouTube_SuperStickerMetadata + */ + public function getSuperStickerMetadata() + { + return $this->superStickerMetadata; + } + public function setTier($tier) + { + $this->tier = $tier; + } + public function getTier() + { + return $this->tier; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php deleted file mode 100644 index 0635a0ea..00000000 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php +++ /dev/null @@ -1,60 +0,0 @@ - - * $youtubeService = new Google_Service_YouTube(...); - * $fanFundingEvents = $youtubeService->fanFundingEvents; - * - */ -class Google_Service_YouTube_Resource_FanFundingEvents extends Google_Service_Resource -{ - /** - * Lists fan funding events for a channel. - * (fanFundingEvents.listFanFundingEvents) - * - * @param string $part The part parameter specifies the fanFundingEvent resource - * parts that the API response will include. Supported values are id and - * snippet. - * @param array $optParams Optional parameters. - * - * @opt_param string hl The hl parameter instructs the API to retrieve localized - * resource metadata for a specific application language that the YouTube - * website supports. The parameter value must be a language code included in the - * list returned by the i18nLanguages.list method. - * - * If localized resource details are available in that language, the resource's - * snippet.localized object will contain the localized values. However, if - * localized details are not available, the snippet.localized object will - * contain resource details in the resource's default language. - * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. - * @opt_param string pageToken The pageToken parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * nextPageToken and prevPageToken properties identify other pages that could be - * retrieved. - * @return Google_Service_YouTube_FanFundingEventListResponse - */ - public function listFanFundingEvents($part, $optParams = array()) - { - $params = array('part' => $part); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_YouTube_FanFundingEventListResponse"); - } -} diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php index 4fee181c..deb383bf 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php @@ -18,7 +18,6 @@ class Google_Service_YouTube_Sponsor extends Google_Model { public $etag; - public $id; public $kind; protected $snippetType = 'Google_Service_YouTube_SponsorSnippet'; protected $snippetDataType = ''; @@ -31,14 +30,6 @@ class Google_Service_YouTube_Sponsor extends Google_Model { return $this->etag; } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } public function setKind($kind) { $this->kind = $kind; diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php index 603bc08c..395fb405 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php @@ -24,9 +24,12 @@ class Google_Service_YouTube_SuperChatEventSnippet extends Google_Model public $currency; public $displayString; public $isSuperChatForGood; + public $isSuperStickerEvent; public $messageType; protected $nonprofitType = 'Google_Service_YouTube_Nonprofit'; protected $nonprofitDataType = ''; + protected $superStickerMetadataType = 'Google_Service_YouTube_SuperStickerMetadata'; + protected $superStickerMetadataDataType = ''; protected $supporterDetailsType = 'Google_Service_YouTube_ChannelProfileDetails'; protected $supporterDetailsDataType = ''; @@ -86,6 +89,14 @@ class Google_Service_YouTube_SuperChatEventSnippet extends Google_Model { return $this->isSuperChatForGood; } + public function setIsSuperStickerEvent($isSuperStickerEvent) + { + $this->isSuperStickerEvent = $isSuperStickerEvent; + } + public function getIsSuperStickerEvent() + { + return $this->isSuperStickerEvent; + } public function setMessageType($messageType) { $this->messageType = $messageType; @@ -108,6 +119,20 @@ class Google_Service_YouTube_SuperChatEventSnippet extends Google_Model { return $this->nonprofit; } + /** + * @param Google_Service_YouTube_SuperStickerMetadata + */ + public function setSuperStickerMetadata(Google_Service_YouTube_SuperStickerMetadata $superStickerMetadata) + { + $this->superStickerMetadata = $superStickerMetadata; + } + /** + * @return Google_Service_YouTube_SuperStickerMetadata + */ + public function getSuperStickerMetadata() + { + return $this->superStickerMetadata; + } /** * @param Google_Service_YouTube_ChannelProfileDetails */ diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperStickerMetadata.php b/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperStickerMetadata.php new file mode 100644 index 00000000..28a0deea --- /dev/null +++ b/vendor/google/apiclient-services/src/Google/Service/YouTube/SuperStickerMetadata.php @@ -0,0 +1,48 @@ +altText = $altText; + } + public function getAltText() + { + return $this->altText; + } + public function setAltTextLanguage($altTextLanguage) + { + $this->altTextLanguage = $altTextLanguage; + } + public function getAltTextLanguage() + { + return $this->altTextLanguage; + } + public function setStickerId($stickerId) + { + $this->stickerId = $stickerId; + } + public function getStickerId() + { + return $this->stickerId; + } +} diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php index 2071f89b..79efe475 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php @@ -23,7 +23,7 @@ * *
* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. @@ -60,6 +60,7 @@ class Google_Service_YouTubeAnalytics extends Google_Service parent::__construct($client); $this->rootUrl = 'https://youtubeanalytics.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'youtubeAnalytics'; @@ -140,6 +141,10 @@ class Google_Service_YouTubeAnalytics extends Google_Service 'path' => 'v2/groups', 'httpMethod' => 'GET', 'parameters' => array( + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', @@ -152,10 +157,6 @@ class Google_Service_YouTubeAnalytics extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'update' => array( 'path' => 'v2/groups', diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php index ed4018e9..29a0e376 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php @@ -85,6 +85,9 @@ class Google_Service_YouTubeAnalytics_Resource_Groups extends Google_Service_Res * * @param array $optParams Optional parameters. * + * @opt_param string pageToken The `pageToken` parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * `nextPageToken` property identifies the next page that can be retrieved. * @opt_param string onBehalfOfContentOwner This parameter can only be used in a * properly authorized request. **Note:** This parameter is intended exclusively * for YouTube content partners that own and manage many different YouTube @@ -107,9 +110,6 @@ class Google_Service_YouTubeAnalytics_Resource_Groups extends Google_Service_Res * @opt_param bool mine This parameter can only be used in a properly authorized * request. Set this parameter's value to true to retrieve all groups owned by * the authenticated user. - * @opt_param string pageToken The `pageToken` parameter identifies a specific - * page in the result set that should be returned. In an API response, the - * `nextPageToken` property identifies the next page that can be retrieved. * @return Google_Service_YouTubeAnalytics_ListGroupsResponse */ public function listGroups($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting.php index 72724ded..6fbba8e8 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting.php @@ -53,6 +53,7 @@ class Google_Service_YouTubeReporting extends Google_Service parent::__construct($client); $this->rootUrl = 'https://youtubereporting.googleapis.com/'; $this->servicePath = ''; + $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'youtubereporting'; @@ -103,14 +104,6 @@ class Google_Service_YouTubeReporting extends Google_Service 'path' => 'v1/jobs', 'httpMethod' => 'GET', 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeSystemManaged' => array( - 'location' => 'query', - 'type' => 'boolean', - ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', @@ -119,6 +112,14 @@ class Google_Service_YouTubeReporting extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeSystemManaged' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ), ) @@ -158,15 +159,19 @@ class Google_Service_YouTubeReporting extends Google_Service 'type' => 'string', 'required' => true, ), + 'startTimeBefore' => array( + 'location' => 'query', + 'type' => 'string', + ), 'createdAfter' => array( 'location' => 'query', 'type' => 'string', ), - 'pageToken' => array( + 'startTimeAtOrAfter' => array( 'location' => 'query', 'type' => 'string', ), - 'startTimeAtOrAfter' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), @@ -178,10 +183,6 @@ class Google_Service_YouTubeReporting extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'startTimeBefore' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -217,10 +218,6 @@ class Google_Service_YouTubeReporting extends Google_Service 'path' => 'v1/reportTypes', 'httpMethod' => 'GET', 'parameters' => array( - 'onBehalfOfContentOwner' => array( - 'location' => 'query', - 'type' => 'string', - ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', @@ -233,6 +230,10 @@ class Google_Service_YouTubeReporting extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php index ddb1c13e..aecd3b01 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php @@ -81,6 +81,11 @@ class Google_Service_YouTubeReporting_Resource_Jobs extends Google_Service_Resou * * @param array $optParams Optional parameters. * + * @opt_param int pageSize Requested page size. Server may return fewer jobs + * than requested. If unspecified, server will pick an appropriate default. + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListReportTypesResponse.next_page_token returned in response to the previous @@ -88,11 +93,6 @@ class Google_Service_YouTubeReporting_Resource_Jobs extends Google_Service_Resou * @opt_param bool includeSystemManaged If set to true, also system-managed jobs * will be returned; otherwise only user-created jobs will be returned. System- * managed jobs can neither be modified nor deleted. - * @opt_param int pageSize Requested page size. Server may return fewer jobs - * than requested. If unspecified, server will pick an appropriate default. - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). * @return Google_Service_YouTubeReporting_ListJobsResponse */ public function listJobs($optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php index 51b04a36..57b2ce0a 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php @@ -50,22 +50,22 @@ class Google_Service_YouTubeReporting_Resource_JobsReports extends Google_Servic * @param string $jobId The ID of the job. * @param array $optParams Optional parameters. * + * @opt_param string startTimeBefore If set, only reports whose start time is + * smaller than the specified date/time are returned. * @opt_param string createdAfter If set, only reports created after the * specified date/time are returned. + * @opt_param string startTimeAtOrAfter If set, only reports whose start time is + * greater than or equal the specified date/time are returned. * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListReportsResponse.next_page_token returned in response to the previous call * to the `ListReports` method. - * @opt_param string startTimeAtOrAfter If set, only reports whose start time is - * greater than or equal the specified date/time are returned. * @opt_param int pageSize Requested page size. Server may return fewer report * types than requested. If unspecified, server will pick an appropriate * default. * @opt_param string onBehalfOfContentOwner The content owner's external ID on * which behalf the user is acting on. If not set, the user is acting for * himself (his own channel). - * @opt_param string startTimeBefore If set, only reports whose start time is - * smaller than the specified date/time are returned. * @return Google_Service_YouTubeReporting_ListReportsResponse */ public function listJobsReports($jobId, $optParams = array()) diff --git a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php index 0122426e..0c02b98c 100644 --- a/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php +++ b/vendor/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php @@ -30,9 +30,6 @@ class Google_Service_YouTubeReporting_Resource_ReportTypes extends Google_Servic * * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The content owner's external ID on - * which behalf the user is acting on. If not set, the user is acting for - * himself (his own channel). * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListReportTypesResponse.next_page_token returned in response to the previous @@ -43,6 +40,9 @@ class Google_Service_YouTubeReporting_Resource_ReportTypes extends Google_Servic * @opt_param int pageSize Requested page size. Server may return fewer report * types than requested. If unspecified, server will pick an appropriate * default. + * @opt_param string onBehalfOfContentOwner The content owner's external ID on + * which behalf the user is acting on. If not set, the user is acting for + * himself (his own channel). * @return Google_Service_YouTubeReporting_ListReportTypesResponse */ public function listReportTypes($optParams = array()) diff --git a/vendor/google/apiclient-services/tests/ServiceTest.php b/vendor/google/apiclient-services/tests/ServiceTest.php index e03d7071..d183e4ad 100644 --- a/vendor/google/apiclient-services/tests/ServiceTest.php +++ b/vendor/google/apiclient-services/tests/ServiceTest.php @@ -67,7 +67,6 @@ class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase public function apiProvider() { - $classes = array(); $path = __DIR__ . '/../src/Google/Service/*'; return array_filter(glob($path), 'is_dir'); } diff --git a/vendor/google/apiclient/README.md b/vendor/google/apiclient/README.md index 03cea13d..0926d4fa 100644 --- a/vendor/google/apiclient/README.md +++ b/vendor/google/apiclient/README.md @@ -2,21 +2,17 @@ # Google APIs Client Library for PHP # -## Library maintenance -This client library is supported but in maintenance mode only. We are fixing necessary bugs and adding essential features to ensure this library continues to meet your needs for accessing Google APIs. Non-critical issues will be closed. Any issue may be reopened if it is causing ongoing problems. - -## Description ## The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. -## Beta ## -This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. +These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. + +## Google Cloud Platform + +For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [GoogleCloudPlatform/google-cloud-php](https://github.com/GoogleCloudPlatform/google-cloud-php) which is under active development. ## Requirements ## * [PHP 5.4.0 or higher](http://www.php.net/) -## Google Cloud Platform APIs -If you're looking to call the **Google Cloud Platform** APIs, you will want to use the [Google Cloud PHP](https://github.com/googlecloudplatform/google-cloud-php) library instead of this one. - ## Developer Documentation ## http://developers.google.com/api-client-library/php @@ -125,6 +121,11 @@ foreach ($results as $item) { > An example of this can be seen in [`examples/service-account.php`](examples/service-account.php). +Some APIs +(such as the [YouTube Data API](https://developers.google.com/youtube/v3/)) do +not support service accounts. Check with the specific API documentation if API +calls return unexpected 401 or 403 errors. + 1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount) 1. Download the JSON credentials 1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: @@ -264,14 +265,21 @@ $response = $httpClient->get('https://www.googleapis.com/plus/v1/people/me'); It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client: ```php -$cache = new Stash\Pool(new Stash\Driver\FileSystem); +use League\Flysystem\Adapter\Local; +use League\Flysystem\Filesystem; +use Cache\Adapter\Filesystem\FilesystemCachePool; + +$filesystemAdapter = new Local(__DIR__.'/'); +$filesystem = new Filesystem($filesystemAdapter); + +$cache = new FilesystemCachePool($filesystem); $client->setCache($cache); ``` -In this example we use [StashPHP](http://www.stashphp.com/). Add this to your project with composer: +In this example we use [PHP Cache](http://www.php-cache.com/). Add this to your project with composer: ``` -composer require tedivm/stash +composer require cache/filesystem-adapter ``` ### Updating Tokens ### diff --git a/vendor/google/apiclient/composer.json b/vendor/google/apiclient/composer.json index 55129fd6..9f00dab7 100644 --- a/vendor/google/apiclient/composer.json +++ b/vendor/google/apiclient/composer.json @@ -16,7 +16,7 @@ "guzzlehttp/psr7": "^1.2" }, "require-dev": { - "phpunit/phpunit": "~4", + "phpunit/phpunit": "~4.8.36", "squizlabs/php_codesniffer": "~2.3", "symfony/dom-crawler": "~2.1", "symfony/css-selector": "~2.1", diff --git a/vendor/google/apiclient/src/Google/AccessToken/Verify.php b/vendor/google/apiclient/src/Google/AccessToken/Verify.php index 33f11797..bc0afcb3 100644 --- a/vendor/google/apiclient/src/Google/AccessToken/Verify.php +++ b/vendor/google/apiclient/src/Google/AccessToken/Verify.php @@ -178,7 +178,7 @@ class Google_AccessToken_Verify { $certs = null; if ($cache = $this->getCache()) { - $cacheItem = $cache->getItem('federated_signon_certs_v3', 3600); + $cacheItem = $cache->getItem('federated_signon_certs_v3'); $certs = $cacheItem->get(); } @@ -189,6 +189,7 @@ class Google_AccessToken_Verify ); if ($cache) { + $cacheItem->expiresAt(new DateTime('+1 hour')); $cacheItem->set($certs); $cache->save($cacheItem); } @@ -210,8 +211,8 @@ class Google_AccessToken_Verify $jwtClass = 'Firebase\JWT\JWT'; } - if (property_exists($jwtClass, 'leeway')) { - // adds 1 second to JWT leeway + if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + // Ensures JWT leeway is at least 1 // @see https://github.com/google/google-api-php-client/issues/827 $jwtClass::$leeway = 1; } diff --git a/vendor/google/apiclient/src/Google/Client.php b/vendor/google/apiclient/src/Google/Client.php index 8f832931..0f29a10a 100644 --- a/vendor/google/apiclient/src/Google/Client.php +++ b/vendor/google/apiclient/src/Google/Client.php @@ -25,7 +25,6 @@ use Google\Auth\Credentials\UserRefreshCredentials; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use GuzzleHttp\Ring\Client\StreamHandler; -use GuzzleHttp\Psr7; use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Message\RequestInterface; use Psr\Log\LoggerInterface; @@ -39,7 +38,7 @@ use Monolog\Handler\SyslogHandler as MonologSyslogHandler; */ class Google_Client { - const LIBVER = "2.2.1"; + const LIBVER = "2.2.2"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'; const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'; @@ -211,7 +210,7 @@ class Google_Client /** * Fetches a fresh access token with a given assertion token. - * @param $assertionCredentials optional. + * @param ClientInterface $authHttp optional. * @return array access token */ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) @@ -441,11 +440,16 @@ class Google_Client return $this->token; } + /** + * @return string|null + */ public function getRefreshToken() { if (isset($this->token['refresh_token'])) { return $this->token['refresh_token']; } + + return null; } /** @@ -480,6 +484,9 @@ class Google_Client return ($created + ($this->token['expires_in'] - 30)) < time(); } + /** + * @deprecated See UPGRADING.md for more information + */ public function getAuth() { throw new BadMethodCallException( @@ -487,6 +494,9 @@ class Google_Client ); } + /** + * @deprecated See UPGRADING.md for more information + */ public function setAuth($auth) { throw new BadMethodCallException( @@ -753,7 +763,7 @@ class Google_Client } /** - * @return array + * @return string|null * @visible For Testing */ public function prepareScopes() @@ -886,7 +896,7 @@ class Google_Client /** * Use when the service account has been delegated domain wide access. * - * @param string subject an email address account to impersonate + * @param string $subject an email address account to impersonate */ public function setSubject($subject) { @@ -968,7 +978,7 @@ class Google_Client } /** - * @return Google\Auth\CacheInterface Cache implementation + * @param array $cacheConfig */ public function setCacheConfig(array $cacheConfig) { diff --git a/vendor/google/apiclient/src/Google/Service/Resource.php b/vendor/google/apiclient/src/Google/Service/Resource.php index fee039b3..1f3d3710 100644 --- a/vendor/google/apiclient/src/Google/Service/Resource.php +++ b/vendor/google/apiclient/src/Google/Service/Resource.php @@ -255,8 +255,14 @@ class Google_Service_Resource */ public function createRequestUri($restPath, $params) { + // Override the default servicePath address if the $restPath use a / + if ('/' == substr($restPath, 0, 1)) { + $requestUrl = substr($restPath, 1); + } else { + $requestUrl = $this->servicePath . $restPath; + } + // code for leading slash - $requestUrl = $this->servicePath . $restPath; if ($this->rootUrl) { if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { $requestUrl = '/' . $requestUrl; diff --git a/vendor/google/auth/.gitignore b/vendor/google/auth/.gitignore index 1cb030a2..008c5e9b 100644 --- a/vendor/google/auth/.gitignore +++ b/vendor/google/auth/.gitignore @@ -1,3 +1,7 @@ *~ vendor composer.lock + +# IntelliJ +.idea +*.iml diff --git a/vendor/google/auth/CHANGELOG.md b/vendor/google/auth/CHANGELOG.md index 655bec69..0bfb1a8f 100644 --- a/vendor/google/auth/CHANGELOG.md +++ b/vendor/google/auth/CHANGELOG.md @@ -1,3 +1,30 @@ +## 1.4.0 (09/17/2018) + +### Changes + + * Add support for insecure credentials (#208) + +## 1.3.3 (08/27/2018) + +### Changes + + * Add retry and increase timeout for GCE credentials (#195) + * [Docs] Fix spelling (#204) + * Update token url (#206) + +## 1.3.2 (07/23/2018) + +### Changes + + * Only emits a warning for gcloud credentials (#202) + +## 1.3.1 (07/19/2018) + +### Changes + + * Added a warning for 3 legged OAuth credentials (#199) + * [Code cleanup] Removed useless else after return (#193) + ## 1.3.0 (06/04/2018) ### Changes diff --git a/vendor/google/auth/CODE_OF_CONDUCT.md b/vendor/google/auth/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..46b2a08e --- /dev/null +++ b/vendor/google/auth/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, +and in the interest of fostering an open and welcoming community, +we pledge to respect all people who contribute through reporting issues, +posting feature requests, updating documentation, +submitting pull requests or patches, and other activities. + +We are committed to making participation in this project +a harassment-free experience for everyone, +regardless of level of experience, gender, gender identity and expression, +sexual orientation, disability, personal appearance, +body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, +such as physical or electronic +addresses, without explicit permission +* Other unethical or unprofessional conduct. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct. +By adopting this Code of Conduct, +project maintainers commit themselves to fairly and consistently +applying these principles to every aspect of managing this project. +Project maintainers who do not follow or enforce the Code of Conduct +may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior +may be reported by opening an issue +or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, +available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) diff --git a/vendor/google/auth/phpunit.xml.dist b/vendor/google/auth/phpunit.xml.dist index bace58bb..31a80334 100644 --- a/vendor/google/auth/phpunit.xml.dist +++ b/vendor/google/auth/phpunit.xml.dist @@ -1,5 +1,8 @@'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').''; } - return "
+ */
+interface ProcessorInterface
+{
+ /**
+ * @return array The processed records
+ */
+ public function __invoke(array $records);
+}
diff --git a/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
index c2686ce5..00885054 100644
--- a/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
+++ b/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
@@ -11,6 +11,8 @@
namespace Monolog\Processor;
+use Monolog\Utils;
+
/**
* Processes a record's message according to PSR-3 rules
*
@@ -18,7 +20,7 @@ namespace Monolog\Processor;
*
* @author Jordi Boggiano
- * References:
- *
';
- $stack->push('Brace', '(');
- ++$index;
+ } elseif ($opCharacter == '(' && !$expectingOperator) {
+// echo 'Element is an Opening Bracket
';
+ $stack->push('Brace', '(');
+ ++$index;
- } elseif ($isOperandOrFunction && !$expectingOperator) { // do we now have a function/variable/number?
- $expectingOperator = TRUE;
- $expectingOperand = FALSE;
- $val = $match[1];
- $length = strlen($val);
-// echo 'Element with value '.$val.' is an Operand, Variable, Constant, String, Number, Cell Reference or Function
';
+ } elseif ($isOperandOrFunction && !$expectingOperator) { // do we now have a function/variable/number?
+ $expectingOperator = true;
+ $expectingOperand = false;
+ $val = $match[1];
+ $length = strlen($val);
+// echo 'Element with value '.$val.' is an Operand, Variable, Constant, String, Number, Cell Reference or Function
';
- if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $val, $matches)) {
- $val = preg_replace('/\s/u','',$val);
-// echo 'Element '.$val.' is a Function
';
- if (isset(self::$_PHPExcelFunctions[strtoupper($matches[1])]) || isset(self::$_controlFunctions[strtoupper($matches[1])])) { // it's a function
- $stack->push('Function', strtoupper($val));
- $ax = preg_match('/^\s*(\s*\))/ui', substr($formula, $index+$length), $amatch);
- if ($ax) {
- $stack->push('Operand Count for Function '.strtoupper($val).')', 0);
- $expectingOperator = TRUE;
- } else {
- $stack->push('Operand Count for Function '.strtoupper($val).')', 1);
- $expectingOperator = FALSE;
- }
- $stack->push('Brace', '(');
- } else { // it's a var w/ implicit multiplication
- $output[] = array('type' => 'Value', 'value' => $matches[1], 'reference' => NULL);
- }
- } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $val, $matches)) {
-// echo 'Element '.$val.' is a Cell reference
';
- // Watch for this case-change when modifying to allow cell references in different worksheets...
- // Should only be applied to the actual cell column, not the worksheet name
+ if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $val, $matches)) {
+ $val = preg_replace('/\s/u', '', $val);
+// echo 'Element '.$val.' is a Function
';
+ if (isset(self::$PHPExcelFunctions[strtoupper($matches[1])]) || isset(self::$controlFunctions[strtoupper($matches[1])])) { // it's a function
+ $stack->push('Function', strtoupper($val));
+ $ax = preg_match('/^\s*(\s*\))/ui', substr($formula, $index+$length), $amatch);
+ if ($ax) {
+ $stack->push('Operand Count for Function '.strtoupper($val).')', 0);
+ $expectingOperator = true;
+ } else {
+ $stack->push('Operand Count for Function '.strtoupper($val).')', 1);
+ $expectingOperator = false;
+ }
+ $stack->push('Brace', '(');
+ } else { // it's a var w/ implicit multiplication
+ $output[] = array('type' => 'Value', 'value' => $matches[1], 'reference' => null);
+ }
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $val, $matches)) {
+// echo 'Element '.$val.' is a Cell reference
';
+ // Watch for this case-change when modifying to allow cell references in different worksheets...
+ // Should only be applied to the actual cell column, not the worksheet name
- // If the last entry on the stack was a : operator, then we have a cell range reference
- $testPrevOp = $stack->last(1);
- if ($testPrevOp['value'] == ':') {
- // If we have a worksheet reference, then we're playing with a 3D reference
- if ($matches[2] == '') {
- // Otherwise, we 'inherit' the worksheet reference from the start cell reference
- // The start of the cell range reference should be the last entry in $output
- $startCellRef = $output[count($output)-1]['value'];
- preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $startCellRef, $startMatches);
- if ($startMatches[2] > '') {
- $val = $startMatches[2].'!'.$val;
- }
- } else {
- return $this->_raiseFormulaError("3D Range references are not yet supported");
- }
- }
+ // If the last entry on the stack was a : operator, then we have a cell range reference
+ $testPrevOp = $stack->last(1);
+ if ($testPrevOp['value'] == ':') {
+ // If we have a worksheet reference, then we're playing with a 3D reference
+ if ($matches[2] == '') {
+ // Otherwise, we 'inherit' the worksheet reference from the start cell reference
+ // The start of the cell range reference should be the last entry in $output
+ $startCellRef = $output[count($output)-1]['value'];
+ preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $startCellRef, $startMatches);
+ if ($startMatches[2] > '') {
+ $val = $startMatches[2].'!'.$val;
+ }
+ } else {
+ return $this->raiseFormulaError("3D Range references are not yet supported");
+ }
+ }
- $output[] = array('type' => 'Cell Reference', 'value' => $val, 'reference' => $val);
-// $expectingOperator = FALSE;
- } else { // it's a variable, constant, string, number or boolean
-// echo 'Element is a Variable, Constant, String, Number or Boolean
';
- // If the last entry on the stack was a : operator, then we may have a row or column range reference
- $testPrevOp = $stack->last(1);
- if ($testPrevOp['value'] == ':') {
- $startRowColRef = $output[count($output)-1]['value'];
- $rangeWS1 = '';
- if (strpos('!',$startRowColRef) !== FALSE) {
- list($rangeWS1,$startRowColRef) = explode('!',$startRowColRef);
- }
- if ($rangeWS1 != '') $rangeWS1 .= '!';
- $rangeWS2 = $rangeWS1;
- if (strpos('!',$val) !== FALSE) {
- list($rangeWS2,$val) = explode('!',$val);
- }
- if ($rangeWS2 != '') $rangeWS2 .= '!';
- if ((is_integer($startRowColRef)) && (ctype_digit($val)) &&
- ($startRowColRef <= 1048576) && ($val <= 1048576)) {
- // Row range
- $endRowColRef = ($pCellParent !== NULL) ? $pCellParent->getHighestColumn() : 'XFD'; // Max 16,384 columns for Excel2007
- $output[count($output)-1]['value'] = $rangeWS1.'A'.$startRowColRef;
- $val = $rangeWS2.$endRowColRef.$val;
- } elseif ((ctype_alpha($startRowColRef)) && (ctype_alpha($val)) &&
- (strlen($startRowColRef) <= 3) && (strlen($val) <= 3)) {
- // Column range
- $endRowColRef = ($pCellParent !== NULL) ? $pCellParent->getHighestRow() : 1048576; // Max 1,048,576 rows for Excel2007
- $output[count($output)-1]['value'] = $rangeWS1.strtoupper($startRowColRef).'1';
- $val = $rangeWS2.$val.$endRowColRef;
- }
- }
+ $output[] = array('type' => 'Cell Reference', 'value' => $val, 'reference' => $val);
+// $expectingOperator = FALSE;
+ } else { // it's a variable, constant, string, number or boolean
+// echo 'Element is a Variable, Constant, String, Number or Boolean
';
+ // If the last entry on the stack was a : operator, then we may have a row or column range reference
+ $testPrevOp = $stack->last(1);
+ if ($testPrevOp['value'] == ':') {
+ $startRowColRef = $output[count($output)-1]['value'];
+ $rangeWS1 = '';
+ if (strpos('!', $startRowColRef) !== false) {
+ list($rangeWS1, $startRowColRef) = explode('!', $startRowColRef);
+ }
+ if ($rangeWS1 != '') {
+ $rangeWS1 .= '!';
+ }
+ $rangeWS2 = $rangeWS1;
+ if (strpos('!', $val) !== false) {
+ list($rangeWS2, $val) = explode('!', $val);
+ }
+ if ($rangeWS2 != '') {
+ $rangeWS2 .= '!';
+ }
+ if ((is_integer($startRowColRef)) && (ctype_digit($val)) &&
+ ($startRowColRef <= 1048576) && ($val <= 1048576)) {
+ // Row range
+ $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestColumn() : 'XFD'; // Max 16,384 columns for Excel2007
+ $output[count($output)-1]['value'] = $rangeWS1.'A'.$startRowColRef;
+ $val = $rangeWS2.$endRowColRef.$val;
+ } elseif ((ctype_alpha($startRowColRef)) && (ctype_alpha($val)) &&
+ (strlen($startRowColRef) <= 3) && (strlen($val) <= 3)) {
+ // Column range
+ $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestRow() : 1048576; // Max 1,048,576 rows for Excel2007
+ $output[count($output)-1]['value'] = $rangeWS1.strtoupper($startRowColRef).'1';
+ $val = $rangeWS2.$val.$endRowColRef;
+ }
+ }
- $localeConstant = FALSE;
- if ($opCharacter == '"') {
-// echo 'Element is a String
';
- // UnEscape any quotes within the string
- $val = self::_wrapResult(str_replace('""','"',self::_unwrapResult($val)));
- } elseif (is_numeric($val)) {
-// echo 'Element is a Number
';
- if ((strpos($val,'.') !== FALSE) || (stripos($val,'e') !== FALSE) || ($val > PHP_INT_MAX) || ($val < -PHP_INT_MAX)) {
-// echo 'Casting '.$val.' to float
';
- $val = (float) $val;
- } else {
-// echo 'Casting '.$val.' to integer
';
- $val = (integer) $val;
- }
- } elseif (isset(self::$_ExcelConstants[trim(strtoupper($val))])) {
- $excelConstant = trim(strtoupper($val));
-// echo 'Element '.$excelConstant.' is an Excel Constant
';
- $val = self::$_ExcelConstants[$excelConstant];
- } elseif (($localeConstant = array_search(trim(strtoupper($val)), self::$_localeBoolean)) !== FALSE) {
-// echo 'Element '.$localeConstant.' is an Excel Constant
';
- $val = self::$_ExcelConstants[$localeConstant];
- }
- $details = array('type' => 'Value', 'value' => $val, 'reference' => NULL);
- if ($localeConstant) { $details['localeValue'] = $localeConstant; }
- $output[] = $details;
- }
- $index += $length;
+ $localeConstant = false;
+ if ($opCharacter == '"') {
+// echo 'Element is a String
';
+ // UnEscape any quotes within the string
+ $val = self::wrapResult(str_replace('""', '"', self::unwrapResult($val)));
+ } elseif (is_numeric($val)) {
+// echo 'Element is a Number
';
+ if ((strpos($val, '.') !== false) || (stripos($val, 'e') !== false) || ($val > PHP_INT_MAX) || ($val < -PHP_INT_MAX)) {
+// echo 'Casting '.$val.' to float
';
+ $val = (float) $val;
+ } else {
+// echo 'Casting '.$val.' to integer
';
+ $val = (integer) $val;
+ }
+ } elseif (isset(self::$excelConstants[trim(strtoupper($val))])) {
+ $excelConstant = trim(strtoupper($val));
+// echo 'Element '.$excelConstant.' is an Excel Constant
';
+ $val = self::$excelConstants[$excelConstant];
+ } elseif (($localeConstant = array_search(trim(strtoupper($val)), self::$localeBoolean)) !== false) {
+// echo 'Element '.$localeConstant.' is an Excel Constant
';
+ $val = self::$excelConstants[$localeConstant];
+ }
+ $details = array('type' => 'Value', 'value' => $val, 'reference' => null);
+ if ($localeConstant) {
+ $details['localeValue'] = $localeConstant;
+ }
+ $output[] = $details;
+ }
+ $index += $length;
- } elseif ($opCharacter == '$') { // absolute row or column range
- ++$index;
- } elseif ($opCharacter == ')') { // miscellaneous error checking
- if ($expectingOperand) {
- $output[] = array('type' => 'NULL Value', 'value' => self::$_ExcelConstants['NULL'], 'reference' => NULL);
- $expectingOperand = FALSE;
- $expectingOperator = TRUE;
- } else {
- return $this->_raiseFormulaError("Formula Error: Unexpected ')'");
- }
- } elseif (isset(self::$_operators[$opCharacter]) && !$expectingOperator) {
- return $this->_raiseFormulaError("Formula Error: Unexpected operator '$opCharacter'");
- } else { // I don't even want to know what you did to get here
- return $this->_raiseFormulaError("Formula Error: An unexpected error occured");
- }
- // Test for end of formula string
- if ($index == strlen($formula)) {
- // Did we end with an operator?.
- // Only valid for the % unary operator
- if ((isset(self::$_operators[$opCharacter])) && ($opCharacter != '%')) {
- return $this->_raiseFormulaError("Formula Error: Operator '$opCharacter' has no operands");
- } else {
- break;
- }
- }
- // Ignore white space
- while (($formula{$index} == "\n") || ($formula{$index} == "\r")) {
- ++$index;
- }
- if ($formula{$index} == ' ') {
- while ($formula{$index} == ' ') {
- ++$index;
- }
- // If we're expecting an operator, but only have a space between the previous and next operands (and both are
- // Cell References) then we have an INTERSECTION operator
-// echo 'Possible Intersect Operator
';
- if (($expectingOperator) && (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'.*/Ui', substr($formula, $index), $match)) &&
- ($output[count($output)-1]['type'] == 'Cell Reference')) {
-// echo 'Element is an Intersect Operator
';
- while($stack->count() > 0 &&
- ($o2 = $stack->last()) &&
- isset(self::$_operators[$o2['value']]) &&
- @(self::$_operatorAssociativity[$opCharacter] ? self::$_operatorPrecedence[$opCharacter] < self::$_operatorPrecedence[$o2['value']] : self::$_operatorPrecedence[$opCharacter] <= self::$_operatorPrecedence[$o2['value']])) {
- $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output
- }
- $stack->push('Binary Operator','|'); // Put an Intersect Operator on the stack
- $expectingOperator = FALSE;
- }
- }
- }
+ } elseif ($opCharacter == '$') { // absolute row or column range
+ ++$index;
+ } elseif ($opCharacter == ')') { // miscellaneous error checking
+ if ($expectingOperand) {
+ $output[] = array('type' => 'NULL Value', 'value' => self::$excelConstants['NULL'], 'reference' => null);
+ $expectingOperand = false;
+ $expectingOperator = true;
+ } else {
+ return $this->raiseFormulaError("Formula Error: Unexpected ')'");
+ }
+ } elseif (isset(self::$operators[$opCharacter]) && !$expectingOperator) {
+ return $this->raiseFormulaError("Formula Error: Unexpected operator '$opCharacter'");
+ } else { // I don't even want to know what you did to get here
+ return $this->raiseFormulaError("Formula Error: An unexpected error occured");
+ }
+ // Test for end of formula string
+ if ($index == strlen($formula)) {
+ // Did we end with an operator?.
+ // Only valid for the % unary operator
+ if ((isset(self::$operators[$opCharacter])) && ($opCharacter != '%')) {
+ return $this->raiseFormulaError("Formula Error: Operator '$opCharacter' has no operands");
+ } else {
+ break;
+ }
+ }
+ // Ignore white space
+ while (($formula{$index} == "\n") || ($formula{$index} == "\r")) {
+ ++$index;
+ }
+ if ($formula{$index} == ' ') {
+ while ($formula{$index} == ' ') {
+ ++$index;
+ }
+ // If we're expecting an operator, but only have a space between the previous and next operands (and both are
+ // Cell References) then we have an INTERSECTION operator
+// echo 'Possible Intersect Operator
';
+ if (($expectingOperator) && (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'.*/Ui', substr($formula, $index), $match)) &&
+ ($output[count($output)-1]['type'] == 'Cell Reference')) {
+// echo 'Element is an Intersect Operator
';
+ while ($stack->count() > 0 &&
+ ($o2 = $stack->last()) &&
+ isset(self::$operators[$o2['value']]) &&
+ @(self::$operatorAssociativity[$opCharacter] ? self::$operatorPrecedence[$opCharacter] < self::$operatorPrecedence[$o2['value']] : self::$operatorPrecedence[$opCharacter] <= self::$operatorPrecedence[$o2['value']])) {
+ $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output
+ }
+ $stack->push('Binary Operator', '|'); // Put an Intersect Operator on the stack
+ $expectingOperator = false;
+ }
+ }
+ }
- while (($op = $stack->pop()) !== NULL) { // pop everything off the stack and push onto output
- if ((is_array($op) && $op['value'] == '(') || ($op === '('))
- return $this->_raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced
- $output[] = $op;
- }
- return $output;
- } // function _parseFormula()
+ while (($op = $stack->pop()) !== null) { // pop everything off the stack and push onto output
+ if ((is_array($op) && $op['value'] == '(') || ($op === '(')) {
+ return $this->raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced
+ }
+ $output[] = $op;
+ }
+ return $output;
+ }
- private static function _dataTestReference(&$operandData)
- {
- $operand = $operandData['value'];
- if (($operandData['reference'] === NULL) && (is_array($operand))) {
- $rKeys = array_keys($operand);
- $rowKey = array_shift($rKeys);
- $cKeys = array_keys(array_keys($operand[$rowKey]));
- $colKey = array_shift($cKeys);
- if (ctype_upper($colKey)) {
- $operandData['reference'] = $colKey.$rowKey;
- }
- }
- return $operand;
- }
+ private static function dataTestReference(&$operandData)
+ {
+ $operand = $operandData['value'];
+ if (($operandData['reference'] === null) && (is_array($operand))) {
+ $rKeys = array_keys($operand);
+ $rowKey = array_shift($rKeys);
+ $cKeys = array_keys(array_keys($operand[$rowKey]));
+ $colKey = array_shift($cKeys);
+ if (ctype_upper($colKey)) {
+ $operandData['reference'] = $colKey.$rowKey;
+ }
+ }
+ return $operand;
+ }
- // evaluate postfix notation
- private function _processTokenStack($tokens, $cellID = NULL, PHPExcel_Cell $pCell = NULL) {
- if ($tokens == FALSE) return FALSE;
+ // evaluate postfix notation
+ private function processTokenStack($tokens, $cellID = null, PHPExcel_Cell $pCell = null)
+ {
+ if ($tokens == false) {
+ return false;
+ }
- // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent cell collection),
- // so we store the parent cell collection so that we can re-attach it when necessary
- $pCellWorksheet = ($pCell !== NULL) ? $pCell->getWorksheet() : NULL;
- $pCellParent = ($pCell !== NULL) ? $pCell->getParent() : null;
- $stack = new PHPExcel_Calculation_Token_Stack;
+ // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent cell collection),
+ // so we store the parent cell collection so that we can re-attach it when necessary
+ $pCellWorksheet = ($pCell !== null) ? $pCell->getWorksheet() : null;
+ $pCellParent = ($pCell !== null) ? $pCell->getParent() : null;
+ $stack = new PHPExcel_Calculation_Token_Stack;
- // Loop through each token in turn
- foreach ($tokens as $tokenData) {
-// print_r($tokenData);
-// echo '
';
- $token = $tokenData['value'];
-// echo 'Token is '.$token.'
';
- // if the token is a binary operator, pop the top two values off the stack, do the operation, and push the result back on the stack
- if (isset(self::$_binaryOperators[$token])) {
-// echo 'Token is a binary operator
';
- // We must have two operands, error if we don't
- if (($operand2Data = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
- if (($operand1Data = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
+ // Loop through each token in turn
+ foreach ($tokens as $tokenData) {
+// print_r($tokenData);
+// echo '
';
+ $token = $tokenData['value'];
+// echo 'Token is '.$token.'
';
+ // if the token is a binary operator, pop the top two values off the stack, do the operation, and push the result back on the stack
+ if (isset(self::$binaryOperators[$token])) {
+// echo 'Token is a binary operator
';
+ // We must have two operands, error if we don't
+ if (($operand2Data = $stack->pop()) === null) {
+ return $this->raiseFormulaError('Internal error - Operand value missing from stack');
+ }
+ if (($operand1Data = $stack->pop()) === null) {
+ return $this->raiseFormulaError('Internal error - Operand value missing from stack');
+ }
- $operand1 = self::_dataTestReference($operand1Data);
- $operand2 = self::_dataTestReference($operand2Data);
+ $operand1 = self::dataTestReference($operand1Data);
+ $operand2 = self::dataTestReference($operand2Data);
- // Log what we're doing
- if ($token == ':') {
- $this->_debugLog->writeDebugLog('Evaluating Range ', $this->_showValue($operand1Data['reference']), ' ', $token, ' ', $this->_showValue($operand2Data['reference']));
- } else {
- $this->_debugLog->writeDebugLog('Evaluating ', $this->_showValue($operand1), ' ', $token, ' ', $this->_showValue($operand2));
- }
+ // Log what we're doing
+ if ($token == ':') {
+ $this->_debugLog->writeDebugLog('Evaluating Range ', $this->showValue($operand1Data['reference']), ' ', $token, ' ', $this->showValue($operand2Data['reference']));
+ } else {
+ $this->_debugLog->writeDebugLog('Evaluating ', $this->showValue($operand1), ' ', $token, ' ', $this->showValue($operand2));
+ }
- // Process the operation in the appropriate manner
- switch ($token) {
- // Comparison (Boolean) Operators
- case '>' : // Greater than
- case '<' : // Less than
- case '>=' : // Greater than or Equal to
- case '<=' : // Less than or Equal to
- case '=' : // Equality
- case '<>' : // Inequality
- $this->_executeBinaryComparisonOperation($cellID,$operand1,$operand2,$token,$stack);
- break;
- // Binary Operators
- case ':' : // Range
- $sheet1 = $sheet2 = '';
- if (strpos($operand1Data['reference'],'!') !== FALSE) {
- list($sheet1,$operand1Data['reference']) = explode('!',$operand1Data['reference']);
- } else {
- $sheet1 = ($pCellParent !== NULL) ? $pCellWorksheet->getTitle() : '';
- }
- if (strpos($operand2Data['reference'],'!') !== FALSE) {
- list($sheet2,$operand2Data['reference']) = explode('!',$operand2Data['reference']);
- } else {
- $sheet2 = $sheet1;
- }
- if ($sheet1 == $sheet2) {
- if ($operand1Data['reference'] === NULL) {
- if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {
- $operand1Data['reference'] = $pCell->getColumn().$operand1Data['value'];
- } elseif (trim($operand1Data['reference']) == '') {
- $operand1Data['reference'] = $pCell->getCoordinate();
- } else {
- $operand1Data['reference'] = $operand1Data['value'].$pCell->getRow();
- }
- }
- if ($operand2Data['reference'] === NULL) {
- if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
- $operand2Data['reference'] = $pCell->getColumn().$operand2Data['value'];
- } elseif (trim($operand2Data['reference']) == '') {
- $operand2Data['reference'] = $pCell->getCoordinate();
- } else {
- $operand2Data['reference'] = $operand2Data['value'].$pCell->getRow();
- }
- }
+ // Process the operation in the appropriate manner
+ switch ($token) {
+ // Comparison (Boolean) Operators
+ case '>': // Greater than
+ case '<': // Less than
+ case '>=': // Greater than or Equal to
+ case '<=': // Less than or Equal to
+ case '=': // Equality
+ case '<>': // Inequality
+ $this->executeBinaryComparisonOperation($cellID, $operand1, $operand2, $token, $stack);
+ break;
+ // Binary Operators
+ case ':': // Range
+ $sheet1 = $sheet2 = '';
+ if (strpos($operand1Data['reference'], '!') !== false) {
+ list($sheet1, $operand1Data['reference']) = explode('!', $operand1Data['reference']);
+ } else {
+ $sheet1 = ($pCellParent !== null) ? $pCellWorksheet->getTitle() : '';
+ }
+ if (strpos($operand2Data['reference'], '!') !== false) {
+ list($sheet2, $operand2Data['reference']) = explode('!', $operand2Data['reference']);
+ } else {
+ $sheet2 = $sheet1;
+ }
+ if ($sheet1 == $sheet2) {
+ if ($operand1Data['reference'] === null) {
+ if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {
+ $operand1Data['reference'] = $pCell->getColumn().$operand1Data['value'];
+ } elseif (trim($operand1Data['reference']) == '') {
+ $operand1Data['reference'] = $pCell->getCoordinate();
+ } else {
+ $operand1Data['reference'] = $operand1Data['value'].$pCell->getRow();
+ }
+ }
+ if ($operand2Data['reference'] === null) {
+ if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
+ $operand2Data['reference'] = $pCell->getColumn().$operand2Data['value'];
+ } elseif (trim($operand2Data['reference']) == '') {
+ $operand2Data['reference'] = $pCell->getCoordinate();
+ } else {
+ $operand2Data['reference'] = $operand2Data['value'].$pCell->getRow();
+ }
+ }
- $oData = array_merge(explode(':',$operand1Data['reference']),explode(':',$operand2Data['reference']));
- $oCol = $oRow = array();
- foreach($oData as $oDatum) {
- $oCR = PHPExcel_Cell::coordinateFromString($oDatum);
- $oCol[] = PHPExcel_Cell::columnIndexFromString($oCR[0]) - 1;
- $oRow[] = $oCR[1];
- }
- $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow);
- if ($pCellParent !== NULL) {
- $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($sheet1), FALSE);
- } else {
- return $this->_raiseFormulaError('Unable to access Cell Reference');
- }
- $stack->push('Cell Reference',$cellValue,$cellRef);
- } else {
- $stack->push('Error',PHPExcel_Calculation_Functions::REF(),NULL);
- }
+ $oData = array_merge(explode(':', $operand1Data['reference']), explode(':', $operand2Data['reference']));
+ $oCol = $oRow = array();
+ foreach ($oData as $oDatum) {
+ $oCR = PHPExcel_Cell::coordinateFromString($oDatum);
+ $oCol[] = PHPExcel_Cell::columnIndexFromString($oCR[0]) - 1;
+ $oRow[] = $oCR[1];
+ }
+ $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow);
+ if ($pCellParent !== null) {
+ $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($sheet1), false);
+ } else {
+ return $this->raiseFormulaError('Unable to access Cell Reference');
+ }
+ $stack->push('Cell Reference', $cellValue, $cellRef);
+ } else {
+ $stack->push('Error', PHPExcel_Calculation_Functions::REF(), null);
+ }
+ break;
+ case '+': // Addition
+ $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'plusEquals', $stack);
+ break;
+ case '-': // Subtraction
+ $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'minusEquals', $stack);
+ break;
+ case '*': // Multiplication
+ $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'arrayTimesEquals', $stack);
+ break;
+ case '/': // Division
+ $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'arrayRightDivide', $stack);
+ break;
+ case '^': // Exponential
+ $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'power', $stack);
+ break;
+ case '&': // Concatenation
+ // If either of the operands is a matrix, we need to treat them both as matrices
+ // (converting the other operand to a matrix if need be); then perform the required
+ // matrix operation
+ if (is_bool($operand1)) {
+ $operand1 = ($operand1) ? self::$localeBoolean['TRUE'] : self::$localeBoolean['FALSE'];
+ }
+ if (is_bool($operand2)) {
+ $operand2 = ($operand2) ? self::$localeBoolean['TRUE'] : self::$localeBoolean['FALSE'];
+ }
+ if ((is_array($operand1)) || (is_array($operand2))) {
+ // Ensure that both operands are arrays/matrices
+ self::checkMatrixOperands($operand1, $operand2, 2);
+ try {
+ // Convert operand 1 from a PHP array to a matrix
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1);
+ // Perform the required operation against the operand 1 matrix, passing in operand 2
+ $matrixResult = $matrix->concat($operand2);
+ $result = $matrixResult->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
+ $result = '#VALUE!';
+ }
+ } else {
+ $result = '"'.str_replace('""', '"', self::unwrapResult($operand1, '"').self::unwrapResult($operand2, '"')).'"';
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result));
+ $stack->push('Value', $result);
+ break;
+ case '|': // Intersect
+ $rowIntersect = array_intersect_key($operand1, $operand2);
+ $cellIntersect = $oCol = $oRow = array();
+ foreach (array_keys($rowIntersect) as $row) {
+ $oRow[] = $row;
+ foreach ($rowIntersect[$row] as $col => $data) {
+ $oCol[] = PHPExcel_Cell::columnIndexFromString($col) - 1;
+ $cellIntersect[$row] = array_intersect_key($operand1[$row], $operand2[$row]);
+ }
+ }
+ $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow);
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($cellIntersect));
+ $stack->push('Value', $cellIntersect, $cellRef);
+ break;
+ }
- break;
- case '+' : // Addition
- $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'plusEquals',$stack);
- break;
- case '-' : // Subtraction
- $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'minusEquals',$stack);
- break;
- case '*' : // Multiplication
- $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayTimesEquals',$stack);
- break;
- case '/' : // Division
- $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'arrayRightDivide',$stack);
- break;
- case '^' : // Exponential
- $this->_executeNumericBinaryOperation($cellID,$operand1,$operand2,$token,'power',$stack);
- break;
- case '&' : // Concatenation
- // If either of the operands is a matrix, we need to treat them both as matrices
- // (converting the other operand to a matrix if need be); then perform the required
- // matrix operation
- if (is_bool($operand1)) {
- $operand1 = ($operand1) ? self::$_localeBoolean['TRUE'] : self::$_localeBoolean['FALSE'];
- }
- if (is_bool($operand2)) {
- $operand2 = ($operand2) ? self::$_localeBoolean['TRUE'] : self::$_localeBoolean['FALSE'];
- }
- if ((is_array($operand1)) || (is_array($operand2))) {
- // Ensure that both operands are arrays/matrices
- self::_checkMatrixOperands($operand1,$operand2,2);
- try {
- // Convert operand 1 from a PHP array to a matrix
- $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1);
- // Perform the required operation against the operand 1 matrix, passing in operand 2
- $matrixResult = $matrix->concat($operand2);
- $result = $matrixResult->getArray();
- } catch (PHPExcel_Exception $ex) {
- $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
- $result = '#VALUE!';
- }
- } else {
- $result = '"'.str_replace('""','"',self::_unwrapResult($operand1,'"').self::_unwrapResult($operand2,'"')).'"';
- }
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result));
- $stack->push('Value',$result);
- break;
- case '|' : // Intersect
- $rowIntersect = array_intersect_key($operand1,$operand2);
- $cellIntersect = $oCol = $oRow = array();
- foreach(array_keys($rowIntersect) as $row) {
- $oRow[] = $row;
- foreach($rowIntersect[$row] as $col => $data) {
- $oCol[] = PHPExcel_Cell::columnIndexFromString($col) - 1;
- $cellIntersect[$row] = array_intersect_key($operand1[$row],$operand2[$row]);
- }
- }
- $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow);
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($cellIntersect));
- $stack->push('Value',$cellIntersect,$cellRef);
- break;
- }
+ // if the token is a unary operator, pop one value off the stack, do the operation, and push it back on
+ } elseif (($token === '~') || ($token === '%')) {
+// echo 'Token is a unary operator
';
+ if (($arg = $stack->pop()) === null) {
+ return $this->raiseFormulaError('Internal error - Operand value missing from stack');
+ }
+ $arg = $arg['value'];
+ if ($token === '~') {
+// echo 'Token is a negation operator
';
+ $this->_debugLog->writeDebugLog('Evaluating Negation of ', $this->showValue($arg));
+ $multiplier = -1;
+ } else {
+// echo 'Token is a percentile operator
';
+ $this->_debugLog->writeDebugLog('Evaluating Percentile of ', $this->showValue($arg));
+ $multiplier = 0.01;
+ }
+ if (is_array($arg)) {
+ self::checkMatrixOperands($arg, $multiplier, 2);
+ try {
+ $matrix1 = new PHPExcel_Shared_JAMA_Matrix($arg);
+ $matrixResult = $matrix1->arrayTimesEquals($multiplier);
+ $result = $matrixResult->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
+ $result = '#VALUE!';
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result));
+ $stack->push('Value', $result);
+ } else {
+ $this->executeNumericBinaryOperation($cellID, $multiplier, $arg, '*', 'arrayTimesEquals', $stack);
+ }
- // if the token is a unary operator, pop one value off the stack, do the operation, and push it back on
- } elseif (($token === '~') || ($token === '%')) {
-// echo 'Token is a unary operator
';
- if (($arg = $stack->pop()) === NULL) return $this->_raiseFormulaError('Internal error - Operand value missing from stack');
- $arg = $arg['value'];
- if ($token === '~') {
-// echo 'Token is a negation operator
';
- $this->_debugLog->writeDebugLog('Evaluating Negation of ', $this->_showValue($arg));
- $multiplier = -1;
- } else {
-// echo 'Token is a percentile operator
';
- $this->_debugLog->writeDebugLog('Evaluating Percentile of ', $this->_showValue($arg));
- $multiplier = 0.01;
- }
- if (is_array($arg)) {
- self::_checkMatrixOperands($arg,$multiplier,2);
- try {
- $matrix1 = new PHPExcel_Shared_JAMA_Matrix($arg);
- $matrixResult = $matrix1->arrayTimesEquals($multiplier);
- $result = $matrixResult->getArray();
- } catch (PHPExcel_Exception $ex) {
- $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
- $result = '#VALUE!';
- }
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result));
- $stack->push('Value',$result);
- } else {
- $this->_executeNumericBinaryOperation($cellID,$multiplier,$arg,'*','arrayTimesEquals',$stack);
- }
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) {
+ $cellRef = null;
+// echo 'Element '.$token.' is a Cell reference
';
+ if (isset($matches[8])) {
+// echo 'Reference is a Range of cells
';
+ if ($pCell === null) {
+// We can't access the range, so return a REF error
+ $cellValue = PHPExcel_Calculation_Functions::REF();
+ } else {
+ $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10];
+ if ($matches[2] > '') {
+ $matches[2] = trim($matches[2], "\"'");
+ if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) {
+ // It's a Reference to an external workbook (not currently supported)
+ return $this->raiseFormulaError('Unable to access External Workbook');
+ }
+ $matches[2] = trim($matches[2], "\"'");
+// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
';
+ $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]);
+ if ($pCellParent !== null) {
+ $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($matches[2]), false);
+ } else {
+ return $this->raiseFormulaError('Unable to access Cell Reference');
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue));
+// $cellRef = $matches[2].'!'.$cellRef;
+ } else {
+// echo '$cellRef='.$cellRef.' in current worksheet
';
+ $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in current worksheet');
+ if ($pCellParent !== null) {
+ $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, false);
+ } else {
+ return $this->raiseFormulaError('Unable to access Cell Reference');
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' is ', $this->showTypeDetails($cellValue));
+ }
+ }
+ } else {
+// echo 'Reference is a single Cell
';
+ if ($pCell === null) {
+// We can't access the cell, so return a REF error
+ $cellValue = PHPExcel_Calculation_Functions::REF();
+ } else {
+ $cellRef = $matches[6].$matches[7];
+ if ($matches[2] > '') {
+ $matches[2] = trim($matches[2], "\"'");
+ if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) {
+ // It's a Reference to an external workbook (not currently supported)
+ return $this->raiseFormulaError('Unable to access External Workbook');
+ }
+// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
';
+ $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
+ if ($pCellParent !== null) {
+ $cellSheet = $this->workbook->getSheetByName($matches[2]);
+ if ($cellSheet && $cellSheet->cellExists($cellRef)) {
+ $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($matches[2]), false);
+ $pCell->attach($pCellParent);
+ } else {
+ $cellValue = null;
+ }
+ } else {
+ return $this->raiseFormulaError('Unable to access Cell Reference');
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue));
+// $cellRef = $matches[2].'!'.$cellRef;
+ } else {
+// echo '$cellRef='.$cellRef.' in current worksheet
';
+ $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in current worksheet');
+ if ($pCellParent->isDataSet($cellRef)) {
+ $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, false);
+ $pCell->attach($pCellParent);
+ } else {
+ $cellValue = null;
+ }
+ $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' is ', $this->showTypeDetails($cellValue));
+ }
+ }
+ }
+ $stack->push('Value', $cellValue, $cellRef);
- } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) {
- $cellRef = NULL;
-// echo 'Element '.$token.' is a Cell reference
';
- if (isset($matches[8])) {
-// echo 'Reference is a Range of cells
';
- if ($pCell === NULL) {
-// We can't access the range, so return a REF error
- $cellValue = PHPExcel_Calculation_Functions::REF();
- } else {
- $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10];
- if ($matches[2] > '') {
- $matches[2] = trim($matches[2],"\"'");
- if ((strpos($matches[2],'[') !== FALSE) || (strpos($matches[2],']') !== FALSE)) {
- // It's a Reference to an external workbook (not currently supported)
- return $this->_raiseFormulaError('Unable to access External Workbook');
- }
- $matches[2] = trim($matches[2],"\"'");
-// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
';
- $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]);
- if ($pCellParent !== NULL) {
- $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE);
- } else {
- return $this->_raiseFormulaError('Unable to access Cell Reference');
- }
- $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->_showTypeDetails($cellValue));
-// $cellRef = $matches[2].'!'.$cellRef;
- } else {
-// echo '$cellRef='.$cellRef.' in current worksheet
';
- $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in current worksheet');
- if ($pCellParent !== NULL) {
- $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, FALSE);
- } else {
- return $this->_raiseFormulaError('Unable to access Cell Reference');
- }
- $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' is ', $this->_showTypeDetails($cellValue));
- }
- }
- } else {
-// echo 'Reference is a single Cell
';
- if ($pCell === NULL) {
-// We can't access the cell, so return a REF error
- $cellValue = PHPExcel_Calculation_Functions::REF();
- } else {
- $cellRef = $matches[6].$matches[7];
- if ($matches[2] > '') {
- $matches[2] = trim($matches[2],"\"'");
- if ((strpos($matches[2],'[') !== FALSE) || (strpos($matches[2],']') !== FALSE)) {
- // It's a Reference to an external workbook (not currently supported)
- return $this->_raiseFormulaError('Unable to access External Workbook');
- }
-// echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'
';
- $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
- if ($pCellParent !== NULL) {
- $cellSheet = $this->_workbook->getSheetByName($matches[2]);
- if ($cellSheet && $cellSheet->cellExists($cellRef)) {
- $cellValue = $this->extractCellRange($cellRef, $this->_workbook->getSheetByName($matches[2]), FALSE);
- $pCell->attach($pCellParent);
- } else {
- $cellValue = NULL;
- }
- } else {
- return $this->_raiseFormulaError('Unable to access Cell Reference');
- }
- $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->_showTypeDetails($cellValue));
-// $cellRef = $matches[2].'!'.$cellRef;
- } else {
-// echo '$cellRef='.$cellRef.' in current worksheet
';
- $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in current worksheet');
- if ($pCellParent->isDataSet($cellRef)) {
- $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, FALSE);
- $pCell->attach($pCellParent);
- } else {
- $cellValue = NULL;
- }
- $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' is ', $this->_showTypeDetails($cellValue));
- }
- }
- }
- $stack->push('Value',$cellValue,$cellRef);
+ // if the token is a function, pop arguments off the stack, hand them to the function, and push the result back on
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $token, $matches)) {
+// echo 'Token is a function
';
+ $functionName = $matches[1];
+ $argCount = $stack->pop();
+ $argCount = $argCount['value'];
+ if ($functionName != 'MKMATRIX') {
+ $this->_debugLog->writeDebugLog('Evaluating Function ', self::localeFunc($functionName), '() with ', (($argCount == 0) ? 'no' : $argCount), ' argument', (($argCount == 1) ? '' : 's'));
+ }
+ if ((isset(self::$PHPExcelFunctions[$functionName])) || (isset(self::$controlFunctions[$functionName]))) { // function
+ if (isset(self::$PHPExcelFunctions[$functionName])) {
+ $functionCall = self::$PHPExcelFunctions[$functionName]['functionCall'];
+ $passByReference = isset(self::$PHPExcelFunctions[$functionName]['passByReference']);
+ $passCellReference = isset(self::$PHPExcelFunctions[$functionName]['passCellReference']);
+ } elseif (isset(self::$controlFunctions[$functionName])) {
+ $functionCall = self::$controlFunctions[$functionName]['functionCall'];
+ $passByReference = isset(self::$controlFunctions[$functionName]['passByReference']);
+ $passCellReference = isset(self::$controlFunctions[$functionName]['passCellReference']);
+ }
+ // get the arguments for this function
+// echo 'Function '.$functionName.' expects '.$argCount.' arguments
';
+ $args = $argArrayVals = array();
+ for ($i = 0; $i < $argCount; ++$i) {
+ $arg = $stack->pop();
+ $a = $argCount - $i - 1;
+ if (($passByReference) &&
+ (isset(self::$PHPExcelFunctions[$functionName]['passByReference'][$a])) &&
+ (self::$PHPExcelFunctions[$functionName]['passByReference'][$a])) {
+ if ($arg['reference'] === null) {
+ $args[] = $cellID;
+ if ($functionName != 'MKMATRIX') {
+ $argArrayVals[] = $this->showValue($cellID);
+ }
+ } else {
+ $args[] = $arg['reference'];
+ if ($functionName != 'MKMATRIX') {
+ $argArrayVals[] = $this->showValue($arg['reference']);
+ }
+ }
+ } else {
+ $args[] = self::unwrapResult($arg['value']);
+ if ($functionName != 'MKMATRIX') {
+ $argArrayVals[] = $this->showValue($arg['value']);
+ }
+ }
+ }
+ // Reverse the order of the arguments
+ krsort($args);
+ if (($passByReference) && ($argCount == 0)) {
+ $args[] = $cellID;
+ $argArrayVals[] = $this->showValue($cellID);
+ }
+// echo 'Arguments are: ';
+// print_r($args);
+// echo '
';
+ if ($functionName != 'MKMATRIX') {
+ if ($this->_debugLog->getWriteDebugLog()) {
+ krsort($argArrayVals);
+ $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', implode(self::$localeArgumentSeparator.' ', PHPExcel_Calculation_Functions::flattenArray($argArrayVals)), ' )');
+ }
+ }
+ // Process each argument in turn, building the return value as an array
+// if (($argCount == 1) && (is_array($args[1])) && ($functionName != 'MKMATRIX')) {
+// $operand1 = $args[1];
+// $this->_debugLog->writeDebugLog('Argument is a matrix: ', $this->showValue($operand1));
+// $result = array();
+// $row = 0;
+// foreach($operand1 as $args) {
+// if (is_array($args)) {
+// foreach($args as $arg) {
+// $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', $this->showValue($arg), ' )');
+// $r = call_user_func_array($functionCall, $arg);
+// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($r));
+// $result[$row][] = $r;
+// }
+// ++$row;
+// } else {
+// $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', $this->showValue($args), ' )');
+// $r = call_user_func_array($functionCall, $args);
+// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($r));
+// $result[] = $r;
+// }
+// }
+// } else {
+ // Process the argument with the appropriate function call
+ if ($passCellReference) {
+ $args[] = $pCell;
+ }
+ if (strpos($functionCall, '::') !== false) {
+ $result = call_user_func_array(explode('::', $functionCall), $args);
+ } else {
+ foreach ($args as &$arg) {
+ $arg = PHPExcel_Calculation_Functions::flattenSingleValue($arg);
+ }
+ unset($arg);
+ $result = call_user_func_array($functionCall, $args);
+ }
+ if ($functionName != 'MKMATRIX') {
+ $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($result));
+ }
+ $stack->push('Value', self::wrapResult($result));
+ }
- // if the token is a function, pop arguments off the stack, hand them to the function, and push the result back on
- } elseif (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $token, $matches)) {
-// echo 'Token is a function
';
- $functionName = $matches[1];
- $argCount = $stack->pop();
- $argCount = $argCount['value'];
- if ($functionName != 'MKMATRIX') {
- $this->_debugLog->writeDebugLog('Evaluating Function ', self::_localeFunc($functionName), '() with ', (($argCount == 0) ? 'no' : $argCount), ' argument', (($argCount == 1) ? '' : 's'));
- }
- if ((isset(self::$_PHPExcelFunctions[$functionName])) || (isset(self::$_controlFunctions[$functionName]))) { // function
- if (isset(self::$_PHPExcelFunctions[$functionName])) {
- $functionCall = self::$_PHPExcelFunctions[$functionName]['functionCall'];
- $passByReference = isset(self::$_PHPExcelFunctions[$functionName]['passByReference']);
- $passCellReference = isset(self::$_PHPExcelFunctions[$functionName]['passCellReference']);
- } elseif (isset(self::$_controlFunctions[$functionName])) {
- $functionCall = self::$_controlFunctions[$functionName]['functionCall'];
- $passByReference = isset(self::$_controlFunctions[$functionName]['passByReference']);
- $passCellReference = isset(self::$_controlFunctions[$functionName]['passCellReference']);
- }
- // get the arguments for this function
-// echo 'Function '.$functionName.' expects '.$argCount.' arguments
';
- $args = $argArrayVals = array();
- for ($i = 0; $i < $argCount; ++$i) {
- $arg = $stack->pop();
- $a = $argCount - $i - 1;
- if (($passByReference) &&
- (isset(self::$_PHPExcelFunctions[$functionName]['passByReference'][$a])) &&
- (self::$_PHPExcelFunctions[$functionName]['passByReference'][$a])) {
- if ($arg['reference'] === NULL) {
- $args[] = $cellID;
- if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($cellID); }
- } else {
- $args[] = $arg['reference'];
- if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($arg['reference']); }
- }
- } else {
- $args[] = self::_unwrapResult($arg['value']);
- if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->_showValue($arg['value']); }
- }
- }
- // Reverse the order of the arguments
- krsort($args);
- if (($passByReference) && ($argCount == 0)) {
- $args[] = $cellID;
- $argArrayVals[] = $this->_showValue($cellID);
- }
-// echo 'Arguments are: ';
-// print_r($args);
-// echo '
';
- if ($functionName != 'MKMATRIX') {
- if ($this->_debugLog->getWriteDebugLog()) {
- krsort($argArrayVals);
- $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', implode(self::$_localeArgumentSeparator.' ',PHPExcel_Calculation_Functions::flattenArray($argArrayVals)), ' )');
- }
- }
- // Process each argument in turn, building the return value as an array
-// if (($argCount == 1) && (is_array($args[1])) && ($functionName != 'MKMATRIX')) {
-// $operand1 = $args[1];
-// $this->_debugLog->writeDebugLog('Argument is a matrix: ', $this->_showValue($operand1));
-// $result = array();
-// $row = 0;
-// foreach($operand1 as $args) {
-// if (is_array($args)) {
-// foreach($args as $arg) {
-// $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', $this->_showValue($arg), ' )');
-// $r = call_user_func_array($functionCall,$arg);
-// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($r));
-// $result[$row][] = $r;
-// }
-// ++$row;
-// } else {
-// $this->_debugLog->writeDebugLog('Evaluating ', self::_localeFunc($functionName), '( ', $this->_showValue($args), ' )');
-// $r = call_user_func_array($functionCall,$args);
-// $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($r));
-// $result[] = $r;
-// }
-// }
-// } else {
- // Process the argument with the appropriate function call
- if ($passCellReference) {
- $args[] = $pCell;
- }
- if (strpos($functionCall,'::') !== FALSE) {
- $result = call_user_func_array(explode('::',$functionCall),$args);
- } else {
- foreach($args as &$arg) {
- $arg = PHPExcel_Calculation_Functions::flattenSingleValue($arg);
- }
- unset($arg);
- $result = call_user_func_array($functionCall,$args);
- }
-// }
- if ($functionName != 'MKMATRIX') {
- $this->_debugLog->writeDebugLog('Evaluation Result for ', self::_localeFunc($functionName), '() function call is ', $this->_showTypeDetails($result));
- }
- $stack->push('Value',self::_wrapResult($result));
- }
+ } else {
+ // if the token is a number, boolean, string or an Excel error, push it onto the stack
+ if (isset(self::$excelConstants[strtoupper($token)])) {
+ $excelConstant = strtoupper($token);
+// echo 'Token is a PHPExcel constant: '.$excelConstant.'
';
+ $stack->push('Constant Value', self::$excelConstants[$excelConstant]);
+ $this->_debugLog->writeDebugLog('Evaluating Constant ', $excelConstant, ' as ', $this->showTypeDetails(self::$excelConstants[$excelConstant]));
+ } elseif ((is_numeric($token)) || ($token === null) || (is_bool($token)) || ($token == '') || ($token{0} == '"') || ($token{0} == '#')) {
+// echo 'Token is a number, boolean, string, null or an Excel error
';
+ $stack->push('Value', $token);
+ // if the token is a named range, push the named range name onto the stack
+ } elseif (preg_match('/^'.self::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $token, $matches)) {
+// echo 'Token is a named range
';
+ $namedRange = $matches[6];
+// echo 'Named Range is '.$namedRange.'
';
+ $this->_debugLog->writeDebugLog('Evaluating Named Range ', $namedRange);
+ $cellValue = $this->extractNamedRange($namedRange, ((null !== $pCell) ? $pCellWorksheet : null), false);
+ $pCell->attach($pCellParent);
+ $this->_debugLog->writeDebugLog('Evaluation Result for named range ', $namedRange, ' is ', $this->showTypeDetails($cellValue));
+ $stack->push('Named Range', $cellValue, $namedRange);
+ } else {
+ return $this->raiseFormulaError("undefined variable '$token'");
+ }
+ }
+ }
+ // when we're out of tokens, the stack should have a single element, the final result
+ if ($stack->count() != 1) {
+ return $this->raiseFormulaError("internal error");
+ }
+ $output = $stack->pop();
+ $output = $output['value'];
- } else {
- // if the token is a number, boolean, string or an Excel error, push it onto the stack
- if (isset(self::$_ExcelConstants[strtoupper($token)])) {
- $excelConstant = strtoupper($token);
-// echo 'Token is a PHPExcel constant: '.$excelConstant.'
';
- $stack->push('Constant Value',self::$_ExcelConstants[$excelConstant]);
- $this->_debugLog->writeDebugLog('Evaluating Constant ', $excelConstant, ' as ', $this->_showTypeDetails(self::$_ExcelConstants[$excelConstant]));
- } elseif ((is_numeric($token)) || ($token === NULL) || (is_bool($token)) || ($token == '') || ($token{0} == '"') || ($token{0} == '#')) {
-// echo 'Token is a number, boolean, string, null or an Excel error
';
- $stack->push('Value',$token);
- // if the token is a named range, push the named range name onto the stack
- } elseif (preg_match('/^'.self::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $token, $matches)) {
-// echo 'Token is a named range
';
- $namedRange = $matches[6];
-// echo 'Named Range is '.$namedRange.'
';
- $this->_debugLog->writeDebugLog('Evaluating Named Range ', $namedRange);
- $cellValue = $this->extractNamedRange($namedRange, ((NULL !== $pCell) ? $pCellWorksheet : NULL), FALSE);
- $pCell->attach($pCellParent);
- $this->_debugLog->writeDebugLog('Evaluation Result for named range ', $namedRange, ' is ', $this->_showTypeDetails($cellValue));
- $stack->push('Named Range',$cellValue,$namedRange);
- } else {
- return $this->_raiseFormulaError("undefined variable '$token'");
- }
- }
- }
- // when we're out of tokens, the stack should have a single element, the final result
- if ($stack->count() != 1) return $this->_raiseFormulaError("internal error");
- $output = $stack->pop();
- $output = $output['value'];
-
-// if ((is_array($output)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) {
-// return array_shift(PHPExcel_Calculation_Functions::flattenArray($output));
-// }
- return $output;
- } // function _processTokenStack()
+// if ((is_array($output)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) {
+// return array_shift(PHPExcel_Calculation_Functions::flattenArray($output));
+// }
+ return $output;
+ }
- private function _validateBinaryOperand($cellID, &$operand, &$stack) {
- if (is_array($operand)) {
- if ((count($operand, COUNT_RECURSIVE) - count($operand)) == 1) {
- do {
- $operand = array_pop($operand);
- } while (is_array($operand));
- }
- }
- // Numbers, matrices and booleans can pass straight through, as they're already valid
- if (is_string($operand)) {
- // We only need special validations for the operand if it is a string
- // Start by stripping off the quotation marks we use to identify true excel string values internally
- if ($operand > '' && $operand{0} == '"') { $operand = self::_unwrapResult($operand); }
- // If the string is a numeric value, we treat it as a numeric, so no further testing
- if (!is_numeric($operand)) {
- // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations
- if ($operand > '' && $operand{0} == '#') {
- $stack->push('Value', $operand);
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($operand));
- return FALSE;
- } elseif (!PHPExcel_Shared_String::convertToNumberIfFraction($operand)) {
- // If not a numeric or a fraction, then it's a text string, and so can't be used in mathematical binary operations
- $stack->push('Value', '#VALUE!');
- $this->_debugLog->writeDebugLog('Evaluation Result is a ', $this->_showTypeDetails('#VALUE!'));
- return FALSE;
- }
- }
- }
+ private function validateBinaryOperand($cellID, &$operand, &$stack)
+ {
+ if (is_array($operand)) {
+ if ((count($operand, COUNT_RECURSIVE) - count($operand)) == 1) {
+ do {
+ $operand = array_pop($operand);
+ } while (is_array($operand));
+ }
+ }
+ // Numbers, matrices and booleans can pass straight through, as they're already valid
+ if (is_string($operand)) {
+ // We only need special validations for the operand if it is a string
+ // Start by stripping off the quotation marks we use to identify true excel string values internally
+ if ($operand > '' && $operand{0} == '"') {
+ $operand = self::unwrapResult($operand);
+ }
+ // If the string is a numeric value, we treat it as a numeric, so no further testing
+ if (!is_numeric($operand)) {
+ // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations
+ if ($operand > '' && $operand{0} == '#') {
+ $stack->push('Value', $operand);
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($operand));
+ return false;
+ } elseif (!PHPExcel_Shared_String::convertToNumberIfFraction($operand)) {
+ // If not a numeric or a fraction, then it's a text string, and so can't be used in mathematical binary operations
+ $stack->push('Value', '#VALUE!');
+ $this->_debugLog->writeDebugLog('Evaluation Result is a ', $this->showTypeDetails('#VALUE!'));
+ return false;
+ }
+ }
+ }
- // return a true if the value of the operand is one that we can use in normal binary operations
- return TRUE;
- } // function _validateBinaryOperand()
+ // return a true if the value of the operand is one that we can use in normal binary operations
+ return true;
+ }
- private function _executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays=FALSE) {
- // If we're dealing with matrix operations, we want a matrix result
- if ((is_array($operand1)) || (is_array($operand2))) {
- $result = array();
- if ((is_array($operand1)) && (!is_array($operand2))) {
- foreach($operand1 as $x => $operandData) {
- $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operandData), ' ', $operation, ' ', $this->_showValue($operand2));
- $this->_executeBinaryComparisonOperation($cellID,$operandData,$operand2,$operation,$stack);
- $r = $stack->pop();
- $result[$x] = $r['value'];
- }
- } elseif ((!is_array($operand1)) && (is_array($operand2))) {
- foreach($operand2 as $x => $operandData) {
- $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operand1), ' ', $operation, ' ', $this->_showValue($operandData));
- $this->_executeBinaryComparisonOperation($cellID,$operand1,$operandData,$operation,$stack);
- $r = $stack->pop();
- $result[$x] = $r['value'];
- }
- } else {
- if (!$recursingArrays) { self::_checkMatrixOperands($operand1,$operand2,2); }
- foreach($operand1 as $x => $operandData) {
- $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->_showValue($operandData), ' ', $operation, ' ', $this->_showValue($operand2[$x]));
- $this->_executeBinaryComparisonOperation($cellID,$operandData,$operand2[$x],$operation,$stack,TRUE);
- $r = $stack->pop();
- $result[$x] = $r['value'];
- }
- }
- // Log the result details
- $this->_debugLog->writeDebugLog('Comparison Evaluation Result is ', $this->_showTypeDetails($result));
- // And push the result onto the stack
- $stack->push('Array',$result);
- return TRUE;
- }
+ private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false)
+ {
+ // If we're dealing with matrix operations, we want a matrix result
+ if ((is_array($operand1)) || (is_array($operand2))) {
+ $result = array();
+ if ((is_array($operand1)) && (!is_array($operand2))) {
+ foreach ($operand1 as $x => $operandData) {
+ $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operandData), ' ', $operation, ' ', $this->showValue($operand2));
+ $this->executeBinaryComparisonOperation($cellID, $operandData, $operand2, $operation, $stack);
+ $r = $stack->pop();
+ $result[$x] = $r['value'];
+ }
+ } elseif ((!is_array($operand1)) && (is_array($operand2))) {
+ foreach ($operand2 as $x => $operandData) {
+ $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operand1), ' ', $operation, ' ', $this->showValue($operandData));
+ $this->executeBinaryComparisonOperation($cellID, $operand1, $operandData, $operation, $stack);
+ $r = $stack->pop();
+ $result[$x] = $r['value'];
+ }
+ } else {
+ if (!$recursingArrays) {
+ self::checkMatrixOperands($operand1, $operand2, 2);
+ }
+ foreach ($operand1 as $x => $operandData) {
+ $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operandData), ' ', $operation, ' ', $this->showValue($operand2[$x]));
+ $this->executeBinaryComparisonOperation($cellID, $operandData, $operand2[$x], $operation, $stack, true);
+ $r = $stack->pop();
+ $result[$x] = $r['value'];
+ }
+ }
+ // Log the result details
+ $this->_debugLog->writeDebugLog('Comparison Evaluation Result is ', $this->showTypeDetails($result));
+ // And push the result onto the stack
+ $stack->push('Array', $result);
+ return true;
+ }
- // Simple validate the two operands if they are string values
- if (is_string($operand1) && $operand1 > '' && $operand1{0} == '"') { $operand1 = self::_unwrapResult($operand1); }
- if (is_string($operand2) && $operand2 > '' && $operand2{0} == '"') { $operand2 = self::_unwrapResult($operand2); }
+ // Simple validate the two operands if they are string values
+ if (is_string($operand1) && $operand1 > '' && $operand1{0} == '"') {
+ $operand1 = self::unwrapResult($operand1);
+ }
+ if (is_string($operand2) && $operand2 > '' && $operand2{0} == '"') {
+ $operand2 = self::unwrapResult($operand2);
+ }
- // Use case insensitive comparaison if not OpenOffice mode
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE)
- {
- if (is_string($operand1)) {
- $operand1 = strtoupper($operand1);
- }
+ // Use case insensitive comparaison if not OpenOffice mode
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ if (is_string($operand1)) {
+ $operand1 = strtoupper($operand1);
+ }
+ if (is_string($operand2)) {
+ $operand2 = strtoupper($operand2);
+ }
+ }
- if (is_string($operand2)) {
- $operand2 = strtoupper($operand2);
- }
- }
+ $useLowercaseFirstComparison = is_string($operand1) && is_string($operand2) && PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE;
- $useLowercaseFirstComparison = is_string($operand1) && is_string($operand2) && PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE;
-
- // execute the necessary operation
- switch ($operation) {
- // Greater than
- case '>':
- if ($useLowercaseFirstComparison) {
- $result = $this->strcmpLowercaseFirst($operand1, $operand2) > 0;
- } else {
- $result = ($operand1 > $operand2);
- }
- break;
- // Less than
- case '<':
- if ($useLowercaseFirstComparison) {
- $result = $this->strcmpLowercaseFirst($operand1, $operand2) < 0;
- } else {
- $result = ($operand1 < $operand2);
- }
- break;
- // Equality
- case '=':
+ // execute the necessary operation
+ switch ($operation) {
+ // Greater than
+ case '>':
+ if ($useLowercaseFirstComparison) {
+ $result = $this->strcmpLowercaseFirst($operand1, $operand2) > 0;
+ } else {
+ $result = ($operand1 > $operand2);
+ }
+ break;
+ // Less than
+ case '<':
+ if ($useLowercaseFirstComparison) {
+ $result = $this->strcmpLowercaseFirst($operand1, $operand2) < 0;
+ } else {
+ $result = ($operand1 < $operand2);
+ }
+ break;
+ // Equality
+ case '=':
if (is_numeric($operand1) && is_numeric($operand2)) {
$result = (abs($operand1 - $operand2) < $this->delta);
} else {
$result = strcmp($operand1, $operand2) == 0;
}
- break;
- // Greater than or equal
- case '>=':
+ break;
+ // Greater than or equal
+ case '>=':
if (is_numeric($operand1) && is_numeric($operand2)) {
$result = ((abs($operand1 - $operand2) < $this->delta) || ($operand1 > $operand2));
- } elseif ($useLowercaseFirstComparison) {
- $result = $this->strcmpLowercaseFirst($operand1, $operand2) >= 0;
- } else {
- $result = strcmp($operand1, $operand2) >= 0;
- }
- break;
- // Less than or equal
- case '<=':
+ } elseif ($useLowercaseFirstComparison) {
+ $result = $this->strcmpLowercaseFirst($operand1, $operand2) >= 0;
+ } else {
+ $result = strcmp($operand1, $operand2) >= 0;
+ }
+ break;
+ // Less than or equal
+ case '<=':
if (is_numeric($operand1) && is_numeric($operand2)) {
$result = ((abs($operand1 - $operand2) < $this->delta) || ($operand1 < $operand2));
} elseif ($useLowercaseFirstComparison) {
- $result = $this->strcmpLowercaseFirst($operand1, $operand2) <= 0;
- } else {
- $result = strcmp($operand1, $operand2) <= 0;
- }
- break;
- // Inequality
- case '<>':
+ $result = $this->strcmpLowercaseFirst($operand1, $operand2) <= 0;
+ } else {
+ $result = strcmp($operand1, $operand2) <= 0;
+ }
+ break;
+ // Inequality
+ case '<>':
if (is_numeric($operand1) && is_numeric($operand2)) {
$result = (abs($operand1 - $operand2) > 1E-14);
} else {
$result = strcmp($operand1, $operand2) != 0;
}
- break;
- }
+ break;
+ }
- // Log the result details
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result));
- // And push the result onto the stack
- $stack->push('Value',$result);
- return true;
- }
+ // Log the result details
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result));
+ // And push the result onto the stack
+ $stack->push('Value', $result);
+ return true;
+ }
- /**
- * Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters
- * @param string $str1 First string value for the comparison
- * @param string $str2 Second string value for the comparison
- * @return integer
- */
- private function strcmpLowercaseFirst($str1, $str2)
- {
+ /**
+ * Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters
+ * @param string $str1 First string value for the comparison
+ * @param string $str2 Second string value for the comparison
+ * @return integer
+ */
+ private function strcmpLowercaseFirst($str1, $str2)
+ {
$inversedStr1 = PHPExcel_Shared_String::StrCaseReverse($str1);
$inversedStr2 = PHPExcel_Shared_String::StrCaseReverse($str2);
- return strcmp($inversedStr1, $inversedStr2);
- }
+ return strcmp($inversedStr1, $inversedStr2);
+ }
- private function _executeNumericBinaryOperation($cellID,$operand1,$operand2,$operation,$matrixFunction,&$stack) {
- // Validate the two operands
- if (!$this->_validateBinaryOperand($cellID,$operand1,$stack)) return FALSE;
- if (!$this->_validateBinaryOperand($cellID,$operand2,$stack)) return FALSE;
+ private function executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack)
+ {
+ // Validate the two operands
+ if (!$this->validateBinaryOperand($cellID, $operand1, $stack)) {
+ return false;
+ }
+ if (!$this->validateBinaryOperand($cellID, $operand2, $stack)) {
+ return false;
+ }
- // If either of the operands is a matrix, we need to treat them both as matrices
- // (converting the other operand to a matrix if need be); then perform the required
- // matrix operation
- if ((is_array($operand1)) || (is_array($operand2))) {
- // Ensure that both operands are arrays/matrices of the same size
- self::_checkMatrixOperands($operand1, $operand2, 2);
+ // If either of the operands is a matrix, we need to treat them both as matrices
+ // (converting the other operand to a matrix if need be); then perform the required
+ // matrix operation
+ if ((is_array($operand1)) || (is_array($operand2))) {
+ // Ensure that both operands are arrays/matrices of the same size
+ self::checkMatrixOperands($operand1, $operand2, 2);
- try {
- // Convert operand 1 from a PHP array to a matrix
- $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1);
- // Perform the required operation against the operand 1 matrix, passing in operand 2
- $matrixResult = $matrix->$matrixFunction($operand2);
- $result = $matrixResult->getArray();
- } catch (PHPExcel_Exception $ex) {
- $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
- $result = '#VALUE!';
- }
- } else {
- if ((PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) &&
- ((is_string($operand1) && !is_numeric($operand1) && strlen($operand1)>0) ||
+ try {
+ // Convert operand 1 from a PHP array to a matrix
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1);
+ // Perform the required operation against the operand 1 matrix, passing in operand 2
+ $matrixResult = $matrix->$matrixFunction($operand2);
+ $result = $matrixResult->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage());
+ $result = '#VALUE!';
+ }
+ } else {
+ if ((PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) &&
+ ((is_string($operand1) && !is_numeric($operand1) && strlen($operand1)>0) ||
(is_string($operand2) && !is_numeric($operand2) && strlen($operand2)>0))) {
- $result = PHPExcel_Calculation_Functions::VALUE();
- } else {
- // If we're dealing with non-matrix operations, execute the necessary operation
- switch ($operation) {
- // Addition
- case '+':
- $result = $operand1 + $operand2;
- break;
- // Subtraction
- case '-':
- $result = $operand1 - $operand2;
- break;
- // Multiplication
- case '*':
- $result = $operand1 * $operand2;
- break;
- // Division
- case '/':
- if ($operand2 == 0) {
- // Trap for Divide by Zero error
- $stack->push('Value','#DIV/0!');
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails('#DIV/0!'));
- return FALSE;
- } else {
- $result = $operand1 / $operand2;
- }
- break;
- // Power
- case '^':
- $result = pow($operand1, $operand2);
- break;
- }
- }
- }
+ $result = PHPExcel_Calculation_Functions::VALUE();
+ } else {
+ // If we're dealing with non-matrix operations, execute the necessary operation
+ switch ($operation) {
+ // Addition
+ case '+':
+ $result = $operand1 + $operand2;
+ break;
+ // Subtraction
+ case '-':
+ $result = $operand1 - $operand2;
+ break;
+ // Multiplication
+ case '*':
+ $result = $operand1 * $operand2;
+ break;
+ // Division
+ case '/':
+ if ($operand2 == 0) {
+ // Trap for Divide by Zero error
+ $stack->push('Value', '#DIV/0!');
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails('#DIV/0!'));
+ return false;
+ } else {
+ $result = $operand1 / $operand2;
+ }
+ break;
+ // Power
+ case '^':
+ $result = pow($operand1, $operand2);
+ break;
+ }
+ }
+ }
- // Log the result details
- $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->_showTypeDetails($result));
- // And push the result onto the stack
- $stack->push('Value',$result);
- return TRUE;
- } // function _executeNumericBinaryOperation()
+ // Log the result details
+ $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result));
+ // And push the result onto the stack
+ $stack->push('Value', $result);
+ return true;
+ }
- // trigger an error, but nicely, if need be
- protected function _raiseFormulaError($errorMessage) {
- $this->formulaError = $errorMessage;
- $this->_cyclicReferenceStack->clear();
- if (!$this->suppressFormulaErrors) throw new PHPExcel_Calculation_Exception($errorMessage);
- trigger_error($errorMessage, E_USER_ERROR);
- } // function _raiseFormulaError()
+ // trigger an error, but nicely, if need be
+ protected function raiseFormulaError($errorMessage)
+ {
+ $this->formulaError = $errorMessage;
+ $this->cyclicReferenceStack->clear();
+ if (!$this->suppressFormulaErrors) {
+ throw new PHPExcel_Calculation_Exception($errorMessage);
+ }
+ trigger_error($errorMessage, E_USER_ERROR);
+ }
- /**
- * Extract range values
- *
- * @param string &$pRange String based range representation
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @param boolean $resetLog Flag indicating whether calculation log should be reset or not
- * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
- * @throws PHPExcel_Calculation_Exception
- */
- public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) {
- // Return value
- $returnValue = array ();
+ /**
+ * Extract range values
+ *
+ * @param string &$pRange String based range representation
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @param boolean $resetLog Flag indicating whether calculation log should be reset or not
+ * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
+ * @throws PHPExcel_Calculation_Exception
+ */
+ public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog = true)
+ {
+ // Return value
+ $returnValue = array ();
-// echo 'extractCellRange('.$pRange.')',PHP_EOL;
- if ($pSheet !== NULL) {
- $pSheetName = $pSheet->getTitle();
-// echo 'Passed sheet name is '.$pSheetName.PHP_EOL;
-// echo 'Range reference is '.$pRange.PHP_EOL;
- if (strpos ($pRange, '!') !== false) {
-// echo '$pRange reference includes sheet reference',PHP_EOL;
- list($pSheetName,$pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
-// echo 'New sheet name is '.$pSheetName,PHP_EOL;
-// echo 'Adjusted Range reference is '.$pRange,PHP_EOL;
- $pSheet = $this->_workbook->getSheetByName($pSheetName);
- }
+// echo 'extractCellRange('.$pRange.')', PHP_EOL;
+ if ($pSheet !== null) {
+ $pSheetName = $pSheet->getTitle();
+// echo 'Passed sheet name is '.$pSheetName.PHP_EOL;
+// echo 'Range reference is '.$pRange.PHP_EOL;
+ if (strpos($pRange, '!') !== false) {
+// echo '$pRange reference includes sheet reference', PHP_EOL;
+ list($pSheetName, $pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
+// echo 'New sheet name is '.$pSheetName, PHP_EOL;
+// echo 'Adjusted Range reference is '.$pRange, PHP_EOL;
+ $pSheet = $this->workbook->getSheetByName($pSheetName);
+ }
- // Extract range
- $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
- $pRange = $pSheetName.'!'.$pRange;
- if (!isset($aReferences[1])) {
- // Single cell in range
- sscanf($aReferences[0],'%[A-Z]%d', $currentCol, $currentRow);
- $cellValue = NULL;
- if ($pSheet->cellExists($aReferences[0])) {
- $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
- } else {
- $returnValue[$currentRow][$currentCol] = NULL;
- }
- } else {
- // Extract cell data for all cells in the range
- foreach ($aReferences as $reference) {
- // Extract range
- sscanf($reference,'%[A-Z]%d', $currentCol, $currentRow);
- $cellValue = NULL;
- if ($pSheet->cellExists($reference)) {
- $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
- } else {
- $returnValue[$currentRow][$currentCol] = NULL;
- }
- }
- }
- }
+ // Extract range
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
+ $pRange = $pSheetName.'!'.$pRange;
+ if (!isset($aReferences[1])) {
+ // Single cell in range
+ sscanf($aReferences[0], '%[A-Z]%d', $currentCol, $currentRow);
+ $cellValue = null;
+ if ($pSheet->cellExists($aReferences[0])) {
+ $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
+ } else {
+ $returnValue[$currentRow][$currentCol] = null;
+ }
+ } else {
+ // Extract cell data for all cells in the range
+ foreach ($aReferences as $reference) {
+ // Extract range
+ sscanf($reference, '%[A-Z]%d', $currentCol, $currentRow);
+ $cellValue = null;
+ if ($pSheet->cellExists($reference)) {
+ $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
+ } else {
+ $returnValue[$currentRow][$currentCol] = null;
+ }
+ }
+ }
+ }
- // Return
- return $returnValue;
- } // function extractCellRange()
+ return $returnValue;
+ }
- /**
- * Extract range values
- *
- * @param string &$pRange String based range representation
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
- * @param boolean $resetLog Flag indicating whether calculation log should be reset or not
- * @throws PHPExcel_Calculation_Exception
- */
- public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) {
- // Return value
- $returnValue = array ();
+ /**
+ * Extract range values
+ *
+ * @param string &$pRange String based range representation
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
+ * @param boolean $resetLog Flag indicating whether calculation log should be reset or not
+ * @throws PHPExcel_Calculation_Exception
+ */
+ public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog = true)
+ {
+ // Return value
+ $returnValue = array ();
-// echo 'extractNamedRange('.$pRange.')
';
- if ($pSheet !== NULL) {
- $pSheetName = $pSheet->getTitle();
-// echo 'Current sheet name is '.$pSheetName.'
';
-// echo 'Range reference is '.$pRange.'
';
- if (strpos ($pRange, '!') !== false) {
-// echo '$pRange reference includes sheet reference',PHP_EOL;
- list($pSheetName,$pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
-// echo 'New sheet name is '.$pSheetName,PHP_EOL;
-// echo 'Adjusted Range reference is '.$pRange,PHP_EOL;
- $pSheet = $this->_workbook->getSheetByName($pSheetName);
- }
+// echo 'extractNamedRange('.$pRange.')
';
+ if ($pSheet !== null) {
+ $pSheetName = $pSheet->getTitle();
+// echo 'Current sheet name is '.$pSheetName.'
';
+// echo 'Range reference is '.$pRange.'
';
+ if (strpos($pRange, '!') !== false) {
+// echo '$pRange reference includes sheet reference', PHP_EOL;
+ list($pSheetName, $pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true);
+// echo 'New sheet name is '.$pSheetName, PHP_EOL;
+// echo 'Adjusted Range reference is '.$pRange, PHP_EOL;
+ $pSheet = $this->workbook->getSheetByName($pSheetName);
+ }
- // Named range?
- $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet);
- if ($namedRange !== NULL) {
- $pSheet = $namedRange->getWorksheet();
-// echo 'Named Range '.$pRange.' (';
- $pRange = $namedRange->getRange();
- $splitRange = PHPExcel_Cell::splitRange($pRange);
- // Convert row and column references
- if (ctype_alpha($splitRange[0][0])) {
- $pRange = $splitRange[0][0] . '1:' . $splitRange[0][1] . $namedRange->getWorksheet()->getHighestRow();
- } elseif(ctype_digit($splitRange[0][0])) {
- $pRange = 'A' . $splitRange[0][0] . ':' . $namedRange->getWorksheet()->getHighestColumn() . $splitRange[0][1];
- }
-// echo $pRange.') is in sheet '.$namedRange->getWorksheet()->getTitle().'
';
+ // Named range?
+ $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet);
+ if ($namedRange !== null) {
+ $pSheet = $namedRange->getWorksheet();
+// echo 'Named Range '.$pRange.' (';
+ $pRange = $namedRange->getRange();
+ $splitRange = PHPExcel_Cell::splitRange($pRange);
+ // Convert row and column references
+ if (ctype_alpha($splitRange[0][0])) {
+ $pRange = $splitRange[0][0] . '1:' . $splitRange[0][1] . $namedRange->getWorksheet()->getHighestRow();
+ } elseif (ctype_digit($splitRange[0][0])) {
+ $pRange = 'A' . $splitRange[0][0] . ':' . $namedRange->getWorksheet()->getHighestColumn() . $splitRange[0][1];
+ }
+// echo $pRange.') is in sheet '.$namedRange->getWorksheet()->getTitle().'
';
-// if ($pSheet->getTitle() != $namedRange->getWorksheet()->getTitle()) {
-// if (!$namedRange->getLocalOnly()) {
-// $pSheet = $namedRange->getWorksheet();
-// } else {
-// return $returnValue;
-// }
-// }
- } else {
- return PHPExcel_Calculation_Functions::REF();
- }
+// if ($pSheet->getTitle() != $namedRange->getWorksheet()->getTitle()) {
+// if (!$namedRange->getLocalOnly()) {
+// $pSheet = $namedRange->getWorksheet();
+// } else {
+// return $returnValue;
+// }
+// }
+ } else {
+ return PHPExcel_Calculation_Functions::REF();
+ }
- // Extract range
- $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
-// var_dump($aReferences);
- if (!isset($aReferences[1])) {
- // Single cell (or single column or row) in range
- list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($aReferences[0]);
- $cellValue = NULL;
- if ($pSheet->cellExists($aReferences[0])) {
- $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
- } else {
- $returnValue[$currentRow][$currentCol] = NULL;
- }
- } else {
- // Extract cell data for all cells in the range
- foreach ($aReferences as $reference) {
- // Extract range
- list($currentCol,$currentRow) = PHPExcel_Cell::coordinateFromString($reference);
-// echo 'NAMED RANGE: $currentCol='.$currentCol.' $currentRow='.$currentRow.'
';
- $cellValue = NULL;
- if ($pSheet->cellExists($reference)) {
- $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
- } else {
- $returnValue[$currentRow][$currentCol] = NULL;
- }
- }
- }
-// print_r($returnValue);
-// echo '
';
- }
+ // Extract range
+ $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange);
+// var_dump($aReferences);
+ if (!isset($aReferences[1])) {
+ // Single cell (or single column or row) in range
+ list($currentCol, $currentRow) = PHPExcel_Cell::coordinateFromString($aReferences[0]);
+ $cellValue = null;
+ if ($pSheet->cellExists($aReferences[0])) {
+ $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog);
+ } else {
+ $returnValue[$currentRow][$currentCol] = null;
+ }
+ } else {
+ // Extract cell data for all cells in the range
+ foreach ($aReferences as $reference) {
+ // Extract range
+ list($currentCol, $currentRow) = PHPExcel_Cell::coordinateFromString($reference);
+// echo 'NAMED RANGE: $currentCol='.$currentCol.' $currentRow='.$currentRow.'
';
+ $cellValue = null;
+ if ($pSheet->cellExists($reference)) {
+ $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog);
+ } else {
+ $returnValue[$currentRow][$currentCol] = null;
+ }
+ }
+ }
+// print_r($returnValue);
+// echo '
';
+ }
- // Return
- return $returnValue;
- } // function extractNamedRange()
+ return $returnValue;
+ }
- /**
- * Is a specific function implemented?
- *
- * @param string $pFunction Function Name
- * @return boolean
- */
- public function isImplemented($pFunction = '') {
- $pFunction = strtoupper ($pFunction);
- if (isset(self::$_PHPExcelFunctions[$pFunction])) {
- return (self::$_PHPExcelFunctions[$pFunction]['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY');
- } else {
- return FALSE;
- }
- } // function isImplemented()
+ /**
+ * Is a specific function implemented?
+ *
+ * @param string $pFunction Function Name
+ * @return boolean
+ */
+ public function isImplemented($pFunction = '')
+ {
+ $pFunction = strtoupper($pFunction);
+ if (isset(self::$PHPExcelFunctions[$pFunction])) {
+ return (self::$PHPExcelFunctions[$pFunction]['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY');
+ } else {
+ return false;
+ }
+ }
- /**
- * Get a list of all implemented functions as an array of function objects
- *
- * @return array of PHPExcel_Calculation_Function
- */
- public function listFunctions() {
- // Return value
- $returnValue = array();
- // Loop functions
- foreach(self::$_PHPExcelFunctions as $functionName => $function) {
- if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
- $returnValue[$functionName] = new PHPExcel_Calculation_Function($function['category'],
- $functionName,
- $function['functionCall']
- );
- }
- }
+ /**
+ * Get a list of all implemented functions as an array of function objects
+ *
+ * @return array of PHPExcel_Calculation_Function
+ */
+ public function listFunctions()
+ {
+ $returnValue = array();
- // Return
- return $returnValue;
- } // function listFunctions()
+ foreach (self::$PHPExcelFunctions as $functionName => $function) {
+ if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
+ $returnValue[$functionName] = new PHPExcel_Calculation_Function(
+ $function['category'],
+ $functionName,
+ $function['functionCall']
+ );
+ }
+ }
+
+ return $returnValue;
+ }
- /**
- * Get a list of all Excel function names
- *
- * @return array
- */
- public function listAllFunctionNames() {
- return array_keys(self::$_PHPExcelFunctions);
- } // function listAllFunctionNames()
+ /**
+ * Get a list of all Excel function names
+ *
+ * @return array
+ */
+ public function listAllFunctionNames()
+ {
+ return array_keys(self::$PHPExcelFunctions);
+ }
- /**
- * Get a list of implemented Excel function names
- *
- * @return array
- */
- public function listFunctionNames() {
- // Return value
- $returnValue = array();
- // Loop functions
- foreach(self::$_PHPExcelFunctions as $functionName => $function) {
- if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
- $returnValue[] = $functionName;
- }
- }
-
- // Return
- return $returnValue;
- } // function listFunctionNames()
-
-} // class PHPExcel_Calculation
+ /**
+ * Get a list of implemented Excel function names
+ *
+ * @return array
+ */
+ public function listFunctionNames()
+ {
+ $returnValue = array();
+ foreach (self::$PHPExcelFunctions as $functionName => $function) {
+ if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
+ $returnValue[] = $functionName;
+ }
+ }
+ return $returnValue;
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Database.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Database.php
index 908decfc..b8d91cb6 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Database.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Database.php
@@ -1,8 +1,18 @@
$criteriaName) {
+ $testCondition = array();
+ $testConditionCount = 0;
+ foreach ($criteria as $row => $criterion) {
+ if ($criterion[$key] > '') {
+ $testCondition[] = '[:'.$criteriaName.']'.PHPExcel_Calculation_Functions::ifCondition($criterion[$key]);
+ $testConditionCount++;
+ }
+ }
+ if ($testConditionCount > 1) {
+ $testConditions[] = 'OR(' . implode(',', $testCondition) . ')';
+ $testConditionsCount++;
+ } elseif ($testConditionCount == 1) {
+ $testConditions[] = $testCondition[0];
+ $testConditionsCount++;
+ }
+ }
+
+ if ($testConditionsCount > 1) {
+ $testConditionSet = 'AND(' . implode(',', $testConditions) . ')';
+ } elseif ($testConditionsCount == 1) {
+ $testConditionSet = $testConditions[0];
+ }
+
+ // Loop through each row of the database
+ foreach ($database as $dataRow => $dataValues) {
+ // Substitute actual values from the database row for our [:placeholders]
+ $testConditionList = $testConditionSet;
+ foreach ($criteriaNames as $key => $criteriaName) {
+ $k = array_search($criteriaName, $fieldNames);
+ if (isset($dataValues[$k])) {
+ $dataValue = $dataValues[$k];
+ $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::wrapResult(strtoupper($dataValue)) : $dataValue;
+ $testConditionList = str_replace('[:' . $criteriaName . ']', $dataValue, $testConditionList);
+ }
+ }
+ // evaluate the criteria against the row data
+ $result = PHPExcel_Calculation::getInstance()->_calculateFormulaValue('='.$testConditionList);
+ // If the row failed to meet the criteria, remove it from the database
+ if (!$result) {
+ unset($database[$dataRow]);
+ }
+ }
+
+ return $database;
+ }
-/** PHPExcel root directory */
-if (!defined('PHPEXCEL_ROOT')) {
- /**
- * @ignore
- */
- define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
- require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
+ private static function getFilteredColumn($database, $field, $criteria)
+ {
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::filter($database, $criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach ($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ return $colData;
+ }
+
+ /**
+ * DAVERAGE
+ *
+ * Averages the values in a column of a list or database that match conditions you specify.
+ *
+ * Excel Function:
+ * DAVERAGE(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DAVERAGE($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::AVERAGE(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DCOUNT
+ *
+ * Counts the cells that contain numbers in a column of a list or database that match conditions
+ * that you specify.
+ *
+ * Excel Function:
+ * DCOUNT(database,[field],criteria)
+ *
+ * Excel Function:
+ * DAVERAGE(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return integer
+ *
+ * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the
+ * database that match the criteria.
+ *
+ */
+ public static function DCOUNT($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::COUNT(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DCOUNTA
+ *
+ * Counts the nonblank cells in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DCOUNTA(database,[field],criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return integer
+ *
+ * @TODO The field argument is optional. If field is omitted, DCOUNTA counts all records in the
+ * database that match the criteria.
+ *
+ */
+ public static function DCOUNTA($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // reduce the database to a set of rows that match all the criteria
+ $database = self::filter($database, $criteria);
+ // extract an array of values for the requested column
+ $colData = array();
+ foreach ($database as $row) {
+ $colData[] = $row[$field];
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::COUNTA(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DGET
+ *
+ * Extracts a single value from a column of a list or database that matches conditions that you
+ * specify.
+ *
+ * Excel Function:
+ * DGET(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return mixed
+ *
+ */
+ public static function DGET($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ $colData = self::getFilteredColumn($database, $field, $criteria);
+ if (count($colData) > 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return $colData[0];
+ }
+
+
+ /**
+ * DMAX
+ *
+ * Returns the largest number in a column of a list or database that matches conditions you that
+ * specify.
+ *
+ * Excel Function:
+ * DMAX(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DMAX($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::MAX(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DMIN
+ *
+ * Returns the smallest number in a column of a list or database that matches conditions you that
+ * specify.
+ *
+ * Excel Function:
+ * DMIN(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DMIN($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::MIN(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DPRODUCT
+ *
+ * Multiplies the values in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DPRODUCT(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DPRODUCT($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_MathTrig::PRODUCT(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DSTDEV
+ *
+ * Estimates the standard deviation of a population based on a sample by using the numbers in a
+ * column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSTDEV(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSTDEV($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::STDEV(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DSTDEVP
+ *
+ * Calculates the standard deviation of a population based on the entire population by using the
+ * numbers in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSTDEVP(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSTDEVP($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::STDEVP(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DSUM
+ *
+ * Adds the numbers in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DSUM(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DSUM($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_MathTrig::SUM(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DVAR
+ *
+ * Estimates the variance of a population based on a sample by using the numbers in a column
+ * of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DVAR(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DVAR($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::VARFunc(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
+
+
+ /**
+ * DVARP
+ *
+ * Calculates the variance of a population based on the entire population by using the numbers
+ * in a column of a list or database that match conditions that you specify.
+ *
+ * Excel Function:
+ * DVARP(database,field,criteria)
+ *
+ * @access public
+ * @category Database Functions
+ * @param mixed[] $database The range of cells that makes up the list or database.
+ * A database is a list of related data in which rows of related
+ * information are records, and columns of data are fields. The
+ * first row of the list contains labels for each column.
+ * @param string|integer $field Indicates which column is used in the function. Enter the
+ * column label enclosed between double quotation marks, such as
+ * "Age" or "Yield," or a number (without quotation marks) that
+ * represents the position of the column within the list: 1 for
+ * the first column, 2 for the second column, and so on.
+ * @param mixed[] $criteria The range of cells that contains the conditions you specify.
+ * You can use any range for the criteria argument, as long as it
+ * includes at least one column label and at least one cell below
+ * the column label in which you specify a condition for the
+ * column.
+ * @return float
+ *
+ */
+ public static function DVARP($database, $field, $criteria)
+ {
+ $field = self::fieldExtract($database, $field);
+ if (is_null($field)) {
+ return null;
+ }
+
+ // Return
+ return PHPExcel_Calculation_Statistical::VARP(
+ self::getFilteredColumn($database, $field, $criteria)
+ );
+ }
}
-
-
-/**
- * PHPExcel_Calculation_Database
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_Database {
-
-
- /**
- * __fieldExtract
- *
- * Extracts the column ID to use for the data field.
- *
- * @access private
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param mixed $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @return string|NULL
- *
- */
- private static function __fieldExtract($database,$field) {
- $field = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($field));
- $fieldNames = array_map('strtoupper',array_shift($database));
-
- if (is_numeric($field)) {
- $keys = array_keys($fieldNames);
- return $keys[$field-1];
- }
- $key = array_search($field,$fieldNames);
- return ($key) ? $key : NULL;
- }
-
- /**
- * __filter
- *
- * Parses the selection criteria, extracts the database rows that match those criteria, and
- * returns that subset of rows.
- *
- * @access private
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return array of mixed
- *
- */
- private static function __filter($database,$criteria) {
- $fieldNames = array_shift($database);
- $criteriaNames = array_shift($criteria);
-
- // Convert the criteria into a set of AND/OR conditions with [:placeholders]
- $testConditions = $testValues = array();
- $testConditionsCount = 0;
- foreach($criteriaNames as $key => $criteriaName) {
- $testCondition = array();
- $testConditionCount = 0;
- foreach($criteria as $row => $criterion) {
- if ($criterion[$key] > '') {
- $testCondition[] = '[:'.$criteriaName.']'.PHPExcel_Calculation_Functions::_ifCondition($criterion[$key]);
- $testConditionCount++;
- }
- }
- if ($testConditionCount > 1) {
- $testConditions[] = 'OR('.implode(',',$testCondition).')';
- $testConditionsCount++;
- } elseif($testConditionCount == 1) {
- $testConditions[] = $testCondition[0];
- $testConditionsCount++;
- }
- }
-
- if ($testConditionsCount > 1) {
- $testConditionSet = 'AND('.implode(',',$testConditions).')';
- } elseif($testConditionsCount == 1) {
- $testConditionSet = $testConditions[0];
- }
-
- // Loop through each row of the database
- foreach($database as $dataRow => $dataValues) {
- // Substitute actual values from the database row for our [:placeholders]
- $testConditionList = $testConditionSet;
- foreach($criteriaNames as $key => $criteriaName) {
- $k = array_search($criteriaName,$fieldNames);
- if (isset($dataValues[$k])) {
- $dataValue = $dataValues[$k];
- $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::_wrapResult(strtoupper($dataValue)) : $dataValue;
- $testConditionList = str_replace('[:'.$criteriaName.']',$dataValue,$testConditionList);
- }
- }
- // evaluate the criteria against the row data
- $result = PHPExcel_Calculation::getInstance()->_calculateFormulaValue('='.$testConditionList);
- // If the row failed to meet the criteria, remove it from the database
- if (!$result) {
- unset($database[$dataRow]);
- }
- }
-
- return $database;
- }
-
-
- /**
- * DAVERAGE
- *
- * Averages the values in a column of a list or database that match conditions you specify.
- *
- * Excel Function:
- * DAVERAGE(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DAVERAGE($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::AVERAGE($colData);
- } // function DAVERAGE()
-
-
- /**
- * DCOUNT
- *
- * Counts the cells that contain numbers in a column of a list or database that match conditions
- * that you specify.
- *
- * Excel Function:
- * DCOUNT(database,[field],criteria)
- *
- * Excel Function:
- * DAVERAGE(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return integer
- *
- * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the
- * database that match the criteria.
- *
- */
- public static function DCOUNT($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::COUNT($colData);
- } // function DCOUNT()
-
-
- /**
- * DCOUNTA
- *
- * Counts the nonblank cells in a column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DCOUNTA(database,[field],criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return integer
- *
- * @TODO The field argument is optional. If field is omitted, DCOUNTA counts all records in the
- * database that match the criteria.
- *
- */
- public static function DCOUNTA($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::COUNTA($colData);
- } // function DCOUNTA()
-
-
- /**
- * DGET
- *
- * Extracts a single value from a column of a list or database that matches conditions that you
- * specify.
- *
- * Excel Function:
- * DGET(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return mixed
- *
- */
- public static function DGET($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- if (count($colData) > 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return $colData[0];
- } // function DGET()
-
-
- /**
- * DMAX
- *
- * Returns the largest number in a column of a list or database that matches conditions you that
- * specify.
- *
- * Excel Function:
- * DMAX(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DMAX($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::MAX($colData);
- } // function DMAX()
-
-
- /**
- * DMIN
- *
- * Returns the smallest number in a column of a list or database that matches conditions you that
- * specify.
- *
- * Excel Function:
- * DMIN(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DMIN($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::MIN($colData);
- } // function DMIN()
-
-
- /**
- * DPRODUCT
- *
- * Multiplies the values in a column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DPRODUCT(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DPRODUCT($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_MathTrig::PRODUCT($colData);
- } // function DPRODUCT()
-
-
- /**
- * DSTDEV
- *
- * Estimates the standard deviation of a population based on a sample by using the numbers in a
- * column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DSTDEV(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DSTDEV($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::STDEV($colData);
- } // function DSTDEV()
-
-
- /**
- * DSTDEVP
- *
- * Calculates the standard deviation of a population based on the entire population by using the
- * numbers in a column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DSTDEVP(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DSTDEVP($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::STDEVP($colData);
- } // function DSTDEVP()
-
-
- /**
- * DSUM
- *
- * Adds the numbers in a column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DSUM(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DSUM($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_MathTrig::SUM($colData);
- } // function DSUM()
-
-
- /**
- * DVAR
- *
- * Estimates the variance of a population based on a sample by using the numbers in a column
- * of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DVAR(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DVAR($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::VARFunc($colData);
- } // function DVAR()
-
-
- /**
- * DVARP
- *
- * Calculates the variance of a population based on the entire population by using the numbers
- * in a column of a list or database that match conditions that you specify.
- *
- * Excel Function:
- * DVARP(database,field,criteria)
- *
- * @access public
- * @category Database Functions
- * @param mixed[] $database The range of cells that makes up the list or database.
- * A database is a list of related data in which rows of related
- * information are records, and columns of data are fields. The
- * first row of the list contains labels for each column.
- * @param string|integer $field Indicates which column is used in the function. Enter the
- * column label enclosed between double quotation marks, such as
- * "Age" or "Yield," or a number (without quotation marks) that
- * represents the position of the column within the list: 1 for
- * the first column, 2 for the second column, and so on.
- * @param mixed[] $criteria The range of cells that contains the conditions you specify.
- * You can use any range for the criteria argument, as long as it
- * includes at least one column label and at least one cell below
- * the column label in which you specify a condition for the
- * column.
- * @return float
- *
- */
- public static function DVARP($database,$field,$criteria) {
- $field = self::__fieldExtract($database,$field);
- if (is_null($field)) {
- return NULL;
- }
-
- // reduce the database to a set of rows that match all the criteria
- $database = self::__filter($database,$criteria);
- // extract an array of values for the requested column
- $colData = array();
- foreach($database as $row) {
- $colData[] = $row[$field];
- }
-
- // Return
- return PHPExcel_Calculation_Statistical::VARP($colData);
- } // function DVARP()
-
-
-} // class PHPExcel_Calculation_Database
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
index 56c14079..72f4c7a2 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
@@ -1,8 +1,18 @@
format('m');
+ $oYear = (int) $PHPDateObject->format('Y');
+
+ $adjustmentMonthsString = (string) $adjustmentMonths;
+ if ($adjustmentMonths > 0) {
+ $adjustmentMonthsString = '+'.$adjustmentMonths;
+ }
+ if ($adjustmentMonths != 0) {
+ $PHPDateObject->modify($adjustmentMonthsString.' months');
+ }
+ $nMonth = (int) $PHPDateObject->format('m');
+ $nYear = (int) $PHPDateObject->format('Y');
+
+ $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12);
+ if ($monthDiff != $adjustmentMonths) {
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-'.$adjustDays.' days';
+ $PHPDateObject->modify($adjustDaysString);
+ }
+ return $PHPDateObject;
+ }
- /**
- * _getTimeValue
- *
- * @param string $timeValue
- * @return mixed Excel date/time serial value, or string if error
- */
- private static function _getTimeValue($timeValue) {
- $saveReturnDateType = PHPExcel_Calculation_Functions::getReturnDateType();
- PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
- $timeValue = self::TIMEVALUE($timeValue);
- PHPExcel_Calculation_Functions::setReturnDateType($saveReturnDateType);
- return $timeValue;
- } // function _getTimeValue()
+ /**
+ * DATETIMENOW
+ *
+ * Returns the current date and time.
+ * The NOW function is useful when you need to display the current date and time on a worksheet or
+ * calculate a value based on the current date and time, and have that value updated each time you
+ * open the worksheet.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * NOW()
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATETIMENOW()
+ {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = false;
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time());
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ $retValue = (integer) time();
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ $retValue = new DateTime();
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
+
+ return $retValue;
+ }
- private static function _adjustDateByMonths($dateValue = 0, $adjustmentMonths = 0) {
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- $oMonth = (int) $PHPDateObject->format('m');
- $oYear = (int) $PHPDateObject->format('Y');
+ /**
+ * DATENOW
+ *
+ * Returns the current date.
+ * The NOW function is useful when you need to display the current date and time on a worksheet or
+ * calculate a value based on the current date and time, and have that value updated each time you
+ * open the worksheet.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TODAY()
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATENOW()
+ {
+ $saveTimeZone = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+ $retValue = false;
+ $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time()));
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ $retValue = (float) $excelDateTime;
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime);
+ break;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime);
+ break;
+ }
+ date_default_timezone_set($saveTimeZone);
- $adjustmentMonthsString = (string) $adjustmentMonths;
- if ($adjustmentMonths > 0) {
- $adjustmentMonthsString = '+'.$adjustmentMonths;
- }
- if ($adjustmentMonths != 0) {
- $PHPDateObject->modify($adjustmentMonthsString.' months');
- }
- $nMonth = (int) $PHPDateObject->format('m');
- $nYear = (int) $PHPDateObject->format('Y');
-
- $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12);
- if ($monthDiff != $adjustmentMonths) {
- $adjustDays = (int) $PHPDateObject->format('d');
- $adjustDaysString = '-'.$adjustDays.' days';
- $PHPDateObject->modify($adjustDaysString);
- }
- return $PHPDateObject;
- } // function _adjustDateByMonths()
+ return $retValue;
+ }
- /**
- * DATETIMENOW
- *
- * Returns the current date and time.
- * The NOW function is useful when you need to display the current date and time on a worksheet or
- * calculate a value based on the current date and time, and have that value updated each time you
- * open the worksheet.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
- * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * NOW()
- *
- * @access public
- * @category Date/Time Functions
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function DATETIMENOW() {
- $saveTimeZone = date_default_timezone_get();
- date_default_timezone_set('UTC');
- $retValue = False;
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time());
- break;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- $retValue = (integer) time();
- break;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- $retValue = new DateTime();
- break;
- }
- date_default_timezone_set($saveTimeZone);
+ /**
+ * DATE
+ *
+ * The DATE function returns a value that represents a particular date.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * DATE(year,month,day)
+ *
+ * PHPExcel is a lot more forgiving than MS Excel when passing non numeric values to this function.
+ * A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted,
+ * as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language.
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param integer $year The value of the year argument can include one to four digits.
+ * Excel interprets the year argument according to the configured
+ * date system: 1900 or 1904.
+ * If year is between 0 (zero) and 1899 (inclusive), Excel adds that
+ * value to 1900 to calculate the year. For example, DATE(108,1,2)
+ * returns January 2, 2008 (1900+108).
+ * If year is between 1900 and 9999 (inclusive), Excel uses that
+ * value as the year. For example, DATE(2008,1,2) returns January 2,
+ * 2008.
+ * If year is less than 0 or is 10000 or greater, Excel returns the
+ * #NUM! error value.
+ * @param integer $month A positive or negative integer representing the month of the year
+ * from 1 to 12 (January to December).
+ * If month is greater than 12, month adds that number of months to
+ * the first month in the year specified. For example, DATE(2008,14,2)
+ * returns the serial number representing February 2, 2009.
+ * If month is less than 1, month subtracts the magnitude of that
+ * number of months, plus 1, from the first month in the year
+ * specified. For example, DATE(2008,-3,2) returns the serial number
+ * representing September 2, 2007.
+ * @param integer $day A positive or negative integer representing the day of the month
+ * from 1 to 31.
+ * If day is greater than the number of days in the month specified,
+ * day adds that number of days to the first day in the month. For
+ * example, DATE(2008,1,35) returns the serial number representing
+ * February 4, 2008.
+ * If day is less than 1, day subtracts the magnitude that number of
+ * days, plus one, from the first day of the month specified. For
+ * example, DATE(2008,1,-15) returns the serial number representing
+ * December 16, 2007.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATE($year = 0, $month = 1, $day = 1)
+ {
+ $year = PHPExcel_Calculation_Functions::flattenSingleValue($year);
+ $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
+ $day = PHPExcel_Calculation_Functions::flattenSingleValue($day);
- return $retValue;
- } // function DATETIMENOW()
-
-
- /**
- * DATENOW
- *
- * Returns the current date.
- * The NOW function is useful when you need to display the current date and time on a worksheet or
- * calculate a value based on the current date and time, and have that value updated each time you
- * open the worksheet.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
- * and time format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * TODAY()
- *
- * @access public
- * @category Date/Time Functions
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function DATENOW() {
- $saveTimeZone = date_default_timezone_get();
- date_default_timezone_set('UTC');
- $retValue = False;
- $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time()));
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- $retValue = (float) $excelDateTime;
- break;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime);
- break;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime);
- break;
- }
- date_default_timezone_set($saveTimeZone);
-
- return $retValue;
- } // function DATENOW()
-
-
- /**
- * DATE
- *
- * The DATE function returns a value that represents a particular date.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
- * format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * DATE(year,month,day)
- *
- * PHPExcel is a lot more forgiving than MS Excel when passing non numeric values to this function.
- * A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted,
- * as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language.
- *
- * @access public
- * @category Date/Time Functions
- * @param integer $year The value of the year argument can include one to four digits.
- * Excel interprets the year argument according to the configured
- * date system: 1900 or 1904.
- * If year is between 0 (zero) and 1899 (inclusive), Excel adds that
- * value to 1900 to calculate the year. For example, DATE(108,1,2)
- * returns January 2, 2008 (1900+108).
- * If year is between 1900 and 9999 (inclusive), Excel uses that
- * value as the year. For example, DATE(2008,1,2) returns January 2,
- * 2008.
- * If year is less than 0 or is 10000 or greater, Excel returns the
- * #NUM! error value.
- * @param integer $month A positive or negative integer representing the month of the year
- * from 1 to 12 (January to December).
- * If month is greater than 12, month adds that number of months to
- * the first month in the year specified. For example, DATE(2008,14,2)
- * returns the serial number representing February 2, 2009.
- * If month is less than 1, month subtracts the magnitude of that
- * number of months, plus 1, from the first month in the year
- * specified. For example, DATE(2008,-3,2) returns the serial number
- * representing September 2, 2007.
- * @param integer $day A positive or negative integer representing the day of the month
- * from 1 to 31.
- * If day is greater than the number of days in the month specified,
- * day adds that number of days to the first day in the month. For
- * example, DATE(2008,1,35) returns the serial number representing
- * February 4, 2008.
- * If day is less than 1, day subtracts the magnitude that number of
- * days, plus one, from the first day of the month specified. For
- * example, DATE(2008,1,-15) returns the serial number representing
- * December 16, 2007.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function DATE($year = 0, $month = 1, $day = 1) {
- $year = PHPExcel_Calculation_Functions::flattenSingleValue($year);
- $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
- $day = PHPExcel_Calculation_Functions::flattenSingleValue($day);
-
- if (($month !== NULL) && (!is_numeric($month))) {
+ if (($month !== null) && (!is_numeric($month))) {
$month = PHPExcel_Shared_Date::monthStringToNumber($month);
- }
+ }
- if (($day !== NULL) && (!is_numeric($day))) {
+ if (($day !== null) && (!is_numeric($day))) {
$day = PHPExcel_Shared_Date::dayStringToNumber($day);
- }
+ }
- $year = ($year !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($year) : 0;
- $month = ($month !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($month) : 0;
- $day = ($day !== NULL) ? PHPExcel_Shared_String::testStringAsNumeric($day) : 0;
- if ((!is_numeric($year)) ||
- (!is_numeric($month)) ||
- (!is_numeric($day))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $year = (integer) $year;
- $month = (integer) $month;
- $day = (integer) $day;
+ $year = ($year !== null) ? PHPExcel_Shared_String::testStringAsNumeric($year) : 0;
+ $month = ($month !== null) ? PHPExcel_Shared_String::testStringAsNumeric($month) : 0;
+ $day = ($day !== null) ? PHPExcel_Shared_String::testStringAsNumeric($day) : 0;
+ if ((!is_numeric($year)) ||
+ (!is_numeric($month)) ||
+ (!is_numeric($day))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $year = (integer) $year;
+ $month = (integer) $month;
+ $day = (integer) $day;
- $baseYear = PHPExcel_Shared_Date::getExcelCalendar();
- // Validate parameters
- if ($year < ($baseYear-1900)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ $baseYear = PHPExcel_Shared_Date::getExcelCalendar();
+ // Validate parameters
+ if ($year < ($baseYear-1900)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- if (($year < $baseYear) && ($year >= ($baseYear-1900))) {
- $year += 1900;
- }
+ if (($year < $baseYear) && ($year >= ($baseYear-1900))) {
+ $year += 1900;
+ }
- if ($month < 1) {
- // Handle year/month adjustment if month < 1
- --$month;
- $year += ceil($month / 12) - 1;
- $month = 13 - abs($month % 12);
- } elseif ($month > 12) {
- // Handle year/month adjustment if month > 12
- $year += floor($month / 12);
- $month = ($month % 12);
- }
+ if ($month < 1) {
+ // Handle year/month adjustment if month < 1
+ --$month;
+ $year += ceil($month / 12) - 1;
+ $month = 13 - abs($month % 12);
+ } elseif ($month > 12) {
+ // Handle year/month adjustment if month > 12
+ $year += floor($month / 12);
+ $month = ($month % 12);
+ }
- // Re-validate the year parameter after adjustments
- if (($year < $baseYear) || ($year >= 10000)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ // Re-validate the year parameter after adjustments
+ if (($year < $baseYear) || ($year >= 10000)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day);
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) $excelDateValue;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
- }
- } // function DATE()
+ // Execute function
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day);
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
+ }
+ }
- /**
- * TIME
- *
- * The TIME function returns a value that represents a particular time.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
- * format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * TIME(hour,minute,second)
- *
- * @access public
- * @category Date/Time Functions
- * @param integer $hour A number from 0 (zero) to 32767 representing the hour.
- * Any value greater than 23 will be divided by 24 and the remainder
- * will be treated as the hour value. For example, TIME(27,0,0) =
- * TIME(3,0,0) = .125 or 3:00 AM.
- * @param integer $minute A number from 0 to 32767 representing the minute.
- * Any value greater than 59 will be converted to hours and minutes.
- * For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM.
- * @param integer $second A number from 0 to 32767 representing the second.
- * Any value greater than 59 will be converted to hours, minutes,
- * and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148
- * or 12:33:20 AM
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function TIME($hour = 0, $minute = 0, $second = 0) {
- $hour = PHPExcel_Calculation_Functions::flattenSingleValue($hour);
- $minute = PHPExcel_Calculation_Functions::flattenSingleValue($minute);
- $second = PHPExcel_Calculation_Functions::flattenSingleValue($second);
+ /**
+ * TIME
+ *
+ * The TIME function returns a value that represents a particular time.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TIME(hour,minute,second)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param integer $hour A number from 0 (zero) to 32767 representing the hour.
+ * Any value greater than 23 will be divided by 24 and the remainder
+ * will be treated as the hour value. For example, TIME(27,0,0) =
+ * TIME(3,0,0) = .125 or 3:00 AM.
+ * @param integer $minute A number from 0 to 32767 representing the minute.
+ * Any value greater than 59 will be converted to hours and minutes.
+ * For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM.
+ * @param integer $second A number from 0 to 32767 representing the second.
+ * Any value greater than 59 will be converted to hours, minutes,
+ * and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148
+ * or 12:33:20 AM
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIME($hour = 0, $minute = 0, $second = 0)
+ {
+ $hour = PHPExcel_Calculation_Functions::flattenSingleValue($hour);
+ $minute = PHPExcel_Calculation_Functions::flattenSingleValue($minute);
+ $second = PHPExcel_Calculation_Functions::flattenSingleValue($second);
- if ($hour == '') { $hour = 0; }
- if ($minute == '') { $minute = 0; }
- if ($second == '') { $second = 0; }
+ if ($hour == '') {
+ $hour = 0;
+ }
+ if ($minute == '') {
+ $minute = 0;
+ }
+ if ($second == '') {
+ $second = 0;
+ }
- if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $hour = (integer) $hour;
- $minute = (integer) $minute;
- $second = (integer) $second;
+ if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $hour = (integer) $hour;
+ $minute = (integer) $minute;
+ $second = (integer) $second;
- if ($second < 0) {
- $minute += floor($second / 60);
- $second = 60 - abs($second % 60);
- if ($second == 60) { $second = 0; }
- } elseif ($second >= 60) {
- $minute += floor($second / 60);
- $second = $second % 60;
- }
- if ($minute < 0) {
- $hour += floor($minute / 60);
- $minute = 60 - abs($minute % 60);
- if ($minute == 60) { $minute = 0; }
- } elseif ($minute >= 60) {
- $hour += floor($minute / 60);
- $minute = $minute % 60;
- }
+ if ($second < 0) {
+ $minute += floor($second / 60);
+ $second = 60 - abs($second % 60);
+ if ($second == 60) {
+ $second = 0;
+ }
+ } elseif ($second >= 60) {
+ $minute += floor($second / 60);
+ $second = $second % 60;
+ }
+ if ($minute < 0) {
+ $hour += floor($minute / 60);
+ $minute = 60 - abs($minute % 60);
+ if ($minute == 60) {
+ $minute = 0;
+ }
+ } elseif ($minute >= 60) {
+ $hour += floor($minute / 60);
+ $minute = $minute % 60;
+ }
- if ($hour > 23) {
- $hour = $hour % 24;
- } elseif ($hour < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ if ($hour > 23) {
+ $hour = $hour % 24;
+ } elseif ($hour < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- $date = 0;
- $calendar = PHPExcel_Shared_Date::getExcelCalendar();
- if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) {
- $date = 1;
- }
- return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; // -2147472000 + 3600
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- $dayAdjust = 0;
- if ($hour < 0) {
- $dayAdjust = floor($hour / 24);
- $hour = 24 - abs($hour % 24);
- if ($hour == 24) { $hour = 0; }
- } elseif ($hour >= 24) {
- $dayAdjust = floor($hour / 24);
- $hour = $hour % 24;
- }
- $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second);
- if ($dayAdjust != 0) {
- $phpDateObject->modify($dayAdjust.' days');
- }
- return $phpDateObject;
- }
- } // function TIME()
+ // Execute function
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ $date = 0;
+ $calendar = PHPExcel_Shared_Date::getExcelCalendar();
+ if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) {
+ $date = 1;
+ }
+ return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; // -2147472000 + 3600
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ $dayAdjust = 0;
+ if ($hour < 0) {
+ $dayAdjust = floor($hour / 24);
+ $hour = 24 - abs($hour % 24);
+ if ($hour == 24) {
+ $hour = 0;
+ }
+ } elseif ($hour >= 24) {
+ $dayAdjust = floor($hour / 24);
+ $hour = $hour % 24;
+ }
+ $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second);
+ if ($dayAdjust != 0) {
+ $phpDateObject->modify($dayAdjust.' days');
+ }
+ return $phpDateObject;
+ }
+ }
- /**
- * DATEVALUE
- *
- * Returns a value that represents a particular date.
- * Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp
- * value.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
- * format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * DATEVALUE(dateValue)
- *
- * @access public
- * @category Date/Time Functions
- * @param string $dateValue Text that represents a date in a Microsoft Excel date format.
- * For example, "1/30/2008" or "30-Jan-2008" are text strings within
- * quotation marks that represent dates. Using the default date
- * system in Excel for Windows, date_text must represent a date from
- * January 1, 1900, to December 31, 9999. Using the default date
- * system in Excel for the Macintosh, date_text must represent a date
- * from January 1, 1904, to December 31, 9999. DATEVALUE returns the
- * #VALUE! error value if date_text is out of this range.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function DATEVALUE($dateValue = 1) {
- $dateValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($dateValue),'"');
- // Strip any ordinals because they're allowed in Excel (English only)
- $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui','$1$3',$dateValue);
- // Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany)
- $dateValue = str_replace(array('/','.','-',' '),array(' ',' ',' ',' '),$dateValue);
+ /**
+ * DATEVALUE
+ *
+ * Returns a value that represents a particular date.
+ * Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp
+ * value.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * DATEVALUE(dateValue)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param string $dateValue Text that represents a date in a Microsoft Excel date format.
+ * For example, "1/30/2008" or "30-Jan-2008" are text strings within
+ * quotation marks that represent dates. Using the default date
+ * system in Excel for Windows, date_text must represent a date from
+ * January 1, 1900, to December 31, 9999. Using the default date
+ * system in Excel for the Macintosh, date_text must represent a date
+ * from January 1, 1904, to December 31, 9999. DATEVALUE returns the
+ * #VALUE! error value if date_text is out of this range.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function DATEVALUE($dateValue = 1)
+ {
+ $dateValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($dateValue), '"');
+ // Strip any ordinals because they're allowed in Excel (English only)
+ $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui', '$1$3', $dateValue);
+ // Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany)
+ $dateValue = str_replace(array('/', '.', '-', ' '), array(' ', ' ', ' ', ' '), $dateValue);
- $yearFound = false;
- $t1 = explode(' ',$dateValue);
- foreach($t1 as &$t) {
- if ((is_numeric($t)) && ($t > 31)) {
- if ($yearFound) {
- return PHPExcel_Calculation_Functions::VALUE();
- } else {
- if ($t < 100) { $t += 1900; }
- $yearFound = true;
- }
- }
- }
- if ((count($t1) == 1) && (strpos($t,':') != false)) {
- // We've been fed a time value without any date
- return 0.0;
- } elseif (count($t1) == 2) {
- // We only have two parts of the date: either day/month or month/year
- if ($yearFound) {
- array_unshift($t1,1);
- } else {
- array_push($t1,date('Y'));
- }
- }
- unset($t);
- $dateValue = implode(' ',$t1);
+ $yearFound = false;
+ $t1 = explode(' ', $dateValue);
+ foreach ($t1 as &$t) {
+ if ((is_numeric($t)) && ($t > 31)) {
+ if ($yearFound) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } else {
+ if ($t < 100) {
+ $t += 1900;
+ }
+ $yearFound = true;
+ }
+ }
+ }
+ if ((count($t1) == 1) && (strpos($t, ':') != false)) {
+ // We've been fed a time value without any date
+ return 0.0;
+ } elseif (count($t1) == 2) {
+ // We only have two parts of the date: either day/month or month/year
+ if ($yearFound) {
+ array_unshift($t1, 1);
+ } else {
+ array_push($t1, date('Y'));
+ }
+ }
+ unset($t);
+ $dateValue = implode(' ', $t1);
- $PHPDateArray = date_parse($dateValue);
- if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
- $testVal1 = strtok($dateValue,'- ');
- if ($testVal1 !== False) {
- $testVal2 = strtok('- ');
- if ($testVal2 !== False) {
- $testVal3 = strtok('- ');
- if ($testVal3 === False) {
- $testVal3 = strftime('%Y');
- }
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3);
- if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
- $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3);
- if (($PHPDateArray === False) || ($PHPDateArray['error_count'] > 0)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- }
+ $PHPDateArray = date_parse($dateValue);
+ if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) {
+ $testVal1 = strtok($dateValue, '- ');
+ if ($testVal1 !== false) {
+ $testVal2 = strtok('- ');
+ if ($testVal2 !== false) {
+ $testVal3 = strtok('- ');
+ if ($testVal3 === false) {
+ $testVal3 = strftime('%Y');
+ }
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3);
+ if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) {
+ $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3);
+ if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ }
- if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) {
- // Execute function
- if ($PHPDateArray['year'] == '') { $PHPDateArray['year'] = strftime('%Y'); }
- if ($PHPDateArray['year'] < 1900)
- return PHPExcel_Calculation_Functions::VALUE();
- if ($PHPDateArray['month'] == '') { $PHPDateArray['month'] = strftime('%m'); }
- if ($PHPDateArray['day'] == '') { $PHPDateArray['day'] = strftime('%d'); }
- $excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
+ if (($PHPDateArray !== false) && ($PHPDateArray['error_count'] == 0)) {
+ // Execute function
+ if ($PHPDateArray['year'] == '') {
+ $PHPDateArray['year'] = strftime('%Y');
+ }
+ if ($PHPDateArray['year'] < 1900) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if ($PHPDateArray['month'] == '') {
+ $PHPDateArray['month'] = strftime('%m');
+ }
+ if ($PHPDateArray['day'] == '') {
+ $PHPDateArray['day'] = strftime('%d');
+ }
+ $excelDateValue = floor(
+ PHPExcel_Shared_Date::FormattedPHPToExcel(
+ $PHPDateArray['year'],
+ $PHPDateArray['month'],
+ $PHPDateArray['day'],
+ $PHPDateArray['hour'],
+ $PHPDateArray['minute'],
+ $PHPDateArray['second']
+ )
+ );
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) $excelDateValue;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00');
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function DATEVALUE()
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00');
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * TIMEVALUE
- *
- * Returns a value that represents a particular time.
- * Use TIMEVALUE to convert a time represented by a text string to an Excel or PHP date/time stamp
- * value.
- *
- * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
- * format of your regional settings. PHPExcel does not change cell formatting in this way.
- *
- * Excel Function:
- * TIMEVALUE(timeValue)
- *
- * @access public
- * @category Date/Time Functions
- * @param string $timeValue A text string that represents a time in any one of the Microsoft
- * Excel time formats; for example, "6:45 PM" and "18:45" text strings
- * within quotation marks that represent time.
- * Date information in time_text is ignored.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function TIMEVALUE($timeValue) {
- $timeValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($timeValue),'"');
- $timeValue = str_replace(array('/','.'),array('-','-'),$timeValue);
+ /**
+ * TIMEVALUE
+ *
+ * Returns a value that represents a particular time.
+ * Use TIMEVALUE to convert a time represented by a text string to an Excel or PHP date/time stamp
+ * value.
+ *
+ * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time
+ * format of your regional settings. PHPExcel does not change cell formatting in this way.
+ *
+ * Excel Function:
+ * TIMEVALUE(timeValue)
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param string $timeValue A text string that represents a time in any one of the Microsoft
+ * Excel time formats; for example, "6:45 PM" and "18:45" text strings
+ * within quotation marks that represent time.
+ * Date information in time_text is ignored.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function TIMEVALUE($timeValue)
+ {
+ $timeValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($timeValue), '"');
+ $timeValue = str_replace(array('/', '.'), array('-', '-'), $timeValue);
- $PHPDateArray = date_parse($timeValue);
- if (($PHPDateArray !== False) && ($PHPDateArray['error_count'] == 0)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
- } else {
- $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
- }
+ $PHPDateArray = date_parse($timeValue);
+ if (($PHPDateArray !== false) && ($PHPDateArray['error_count'] == 0)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(
+ $PHPDateArray['year'],
+ $PHPDateArray['month'],
+ $PHPDateArray['day'],
+ $PHPDateArray['hour'],
+ $PHPDateArray['minute'],
+ $PHPDateArray['second']
+ );
+ } else {
+ $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900, 1, 1, $PHPDateArray['hour'], $PHPDateArray['minute'], $PHPDateArray['second']) - 1;
+ }
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) $excelDateValue;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600;;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function TIMEVALUE()
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) $excelDateValue;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * DATEDIF
- *
- * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
- * or a standard date string
- * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
- * or a standard date string
- * @param string $unit
- * @return integer Interval between the dates
- */
- public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D') {
- $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
- $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
- $unit = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($unit));
+ /**
+ * DATEDIF
+ *
+ * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
+ * or a standard date string
+ * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
+ * or a standard date string
+ * @param string $unit
+ * @return integer Interval between the dates
+ */
+ public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D')
+ {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ $unit = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($unit));
- if (is_string($startDate = self::_getDateValue($startDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($endDate = self::_getDateValue($endDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (is_string($startDate = self::getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- // Validate parameters
- if ($startDate >= $endDate) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ // Validate parameters
+ if ($startDate >= $endDate) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $difference = $endDate - $startDate;
+ // Execute function
+ $difference = $endDate - $startDate;
- $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
- $startDays = $PHPStartDateObject->format('j');
- $startMonths = $PHPStartDateObject->format('n');
- $startYears = $PHPStartDateObject->format('Y');
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDays = $PHPStartDateObject->format('j');
+ $startMonths = $PHPStartDateObject->format('n');
+ $startYears = $PHPStartDateObject->format('Y');
- $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
- $endDays = $PHPEndDateObject->format('j');
- $endMonths = $PHPEndDateObject->format('n');
- $endYears = $PHPEndDateObject->format('Y');
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDays = $PHPEndDateObject->format('j');
+ $endMonths = $PHPEndDateObject->format('n');
+ $endYears = $PHPEndDateObject->format('Y');
- $retVal = PHPExcel_Calculation_Functions::NaN();
- switch ($unit) {
- case 'D':
- $retVal = intval($difference);
- break;
- case 'M':
- $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12);
- // We're only interested in full months
- if ($endDays < $startDays) {
- --$retVal;
- }
- break;
- case 'Y':
- $retVal = intval($endYears - $startYears);
- // We're only interested in full months
- if ($endMonths < $startMonths) {
- --$retVal;
- } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) {
- --$retVal;
- }
- break;
- case 'MD':
- if ($endDays < $startDays) {
- $retVal = $endDays;
- $PHPEndDateObject->modify('-'.$endDays.' days');
- $adjustDays = $PHPEndDateObject->format('j');
- if ($adjustDays > $startDays) {
- $retVal += ($adjustDays - $startDays);
- }
- } else {
- $retVal = $endDays - $startDays;
- }
- break;
- case 'YM':
- $retVal = intval($endMonths - $startMonths);
- if ($retVal < 0) $retVal = 12 + $retVal;
- // We're only interested in full months
- if ($endDays < $startDays) {
- --$retVal;
- }
- break;
- case 'YD':
- $retVal = intval($difference);
- if ($endYears > $startYears) {
- while ($endYears > $startYears) {
- $PHPEndDateObject->modify('-1 year');
- $endYears = $PHPEndDateObject->format('Y');
- }
- $retVal = $PHPEndDateObject->format('z') - $PHPStartDateObject->format('z');
- if ($retVal < 0) { $retVal += 365; }
- }
- break;
- default:
- $retVal = PHPExcel_Calculation_Functions::NaN();
- }
- return $retVal;
- } // function DATEDIF()
+ $retVal = PHPExcel_Calculation_Functions::NaN();
+ switch ($unit) {
+ case 'D':
+ $retVal = intval($difference);
+ break;
+ case 'M':
+ $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12);
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'Y':
+ $retVal = intval($endYears - $startYears);
+ // We're only interested in full months
+ if ($endMonths < $startMonths) {
+ --$retVal;
+ } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) {
+ --$retVal;
+ }
+ break;
+ case 'MD':
+ if ($endDays < $startDays) {
+ $retVal = $endDays;
+ $PHPEndDateObject->modify('-'.$endDays.' days');
+ $adjustDays = $PHPEndDateObject->format('j');
+ if ($adjustDays > $startDays) {
+ $retVal += ($adjustDays - $startDays);
+ }
+ } else {
+ $retVal = $endDays - $startDays;
+ }
+ break;
+ case 'YM':
+ $retVal = intval($endMonths - $startMonths);
+ if ($retVal < 0) {
+ $retVal += 12;
+ }
+ // We're only interested in full months
+ if ($endDays < $startDays) {
+ --$retVal;
+ }
+ break;
+ case 'YD':
+ $retVal = intval($difference);
+ if ($endYears > $startYears) {
+ while ($endYears > $startYears) {
+ $PHPEndDateObject->modify('-1 year');
+ $endYears = $PHPEndDateObject->format('Y');
+ }
+ $retVal = $PHPEndDateObject->format('z') - $PHPStartDateObject->format('z');
+ if ($retVal < 0) {
+ $retVal += 365;
+ }
+ }
+ break;
+ default:
+ $retVal = PHPExcel_Calculation_Functions::NaN();
+ }
+ return $retVal;
+ }
- /**
- * DAYS360
- *
- * Returns the number of days between two dates based on a 360-day year (twelve 30-day months),
- * which is used in some accounting calculations. Use this function to help compute payments if
- * your accounting system is based on twelve 30-day months.
- *
- * Excel Function:
- * DAYS360(startDate,endDate[,method])
- *
- * @access public
- * @category Date/Time Functions
- * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param boolean $method US or European Method
- * FALSE or omitted: U.S. (NASD) method. If the starting date is
- * the last day of a month, it becomes equal to the 30th of the
- * same month. If the ending date is the last day of a month and
- * the starting date is earlier than the 30th of a month, the
- * ending date becomes equal to the 1st of the next month;
- * otherwise the ending date becomes equal to the 30th of the
- * same month.
- * TRUE: European method. Starting dates and ending dates that
- * occur on the 31st of a month become equal to the 30th of the
- * same month.
- * @return integer Number of days between start date and end date
- */
- public static function DAYS360($startDate = 0, $endDate = 0, $method = false) {
- $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
- $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ /**
+ * DAYS360
+ *
+ * Returns the number of days between two dates based on a 360-day year (twelve 30-day months),
+ * which is used in some accounting calculations. Use this function to help compute payments if
+ * your accounting system is based on twelve 30-day months.
+ *
+ * Excel Function:
+ * DAYS360(startDate,endDate[,method])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param boolean $method US or European Method
+ * FALSE or omitted: U.S. (NASD) method. If the starting date is
+ * the last day of a month, it becomes equal to the 30th of the
+ * same month. If the ending date is the last day of a month and
+ * the starting date is earlier than the 30th of a month, the
+ * ending date becomes equal to the 1st of the next month;
+ * otherwise the ending date becomes equal to the 30th of the
+ * same month.
+ * TRUE: European method. Starting dates and ending dates that
+ * occur on the 31st of a month become equal to the 30th of the
+ * same month.
+ * @return integer Number of days between start date and end date
+ */
+ public static function DAYS360($startDate = 0, $endDate = 0, $method = false)
+ {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
- if (is_string($startDate = self::_getDateValue($startDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($endDate = self::_getDateValue($endDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (is_string($startDate = self::getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- if (!is_bool($method)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (!is_bool($method)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- // Execute function
- $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
- $startDay = $PHPStartDateObject->format('j');
- $startMonth = $PHPStartDateObject->format('n');
- $startYear = $PHPStartDateObject->format('Y');
+ // Execute function
+ $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate);
+ $startDay = $PHPStartDateObject->format('j');
+ $startMonth = $PHPStartDateObject->format('n');
+ $startYear = $PHPStartDateObject->format('Y');
- $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
- $endDay = $PHPEndDateObject->format('j');
- $endMonth = $PHPEndDateObject->format('n');
- $endYear = $PHPEndDateObject->format('Y');
+ $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ $endDay = $PHPEndDateObject->format('j');
+ $endMonth = $PHPEndDateObject->format('n');
+ $endYear = $PHPEndDateObject->format('Y');
- return self::_dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method);
- } // function DAYS360()
+ return self::dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method);
+ }
- /**
- * YEARFRAC
- *
- * Calculates the fraction of the year represented by the number of whole days between two dates
- * (the start_date and the end_date).
- * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or
- * obligations to assign to a specific term.
- *
- * Excel Function:
- * YEARFRAC(startDate,endDate[,method])
- *
- * @access public
- * @category Date/Time Functions
- * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param integer $method Method used for the calculation
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float fraction of the year
- */
- public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0) {
- $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
- $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
- $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
+ /**
+ * YEARFRAC
+ *
+ * Calculates the fraction of the year represented by the number of whole days between two dates
+ * (the start_date and the end_date).
+ * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or
+ * obligations to assign to a specific term.
+ *
+ * Excel Function:
+ * YEARFRAC(startDate,endDate[,method])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param integer $method Method used for the calculation
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float fraction of the year
+ */
+ public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0)
+ {
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
- if (is_string($startDate = self::_getDateValue($startDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($endDate = self::_getDateValue($endDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (is_string($startDate = self::getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($endDate = self::getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- if (((is_numeric($method)) && (!is_string($method))) || ($method == '')) {
- switch($method) {
- case 0 :
- return self::DAYS360($startDate,$endDate) / 360;
- case 1 :
- $days = self::DATEDIF($startDate,$endDate);
- $startYear = self::YEAR($startDate);
- $endYear = self::YEAR($endDate);
- $years = $endYear - $startYear + 1;
- $leapDays = 0;
- if ($years == 1) {
- if (self::_isLeapYear($endYear)) {
- $startMonth = self::MONTHOFYEAR($startDate);
- $endMonth = self::MONTHOFYEAR($endDate);
- $endDay = self::DAYOFMONTH($endDate);
- if (($startMonth < 3) ||
- (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) {
- $leapDays += 1;
- }
- }
- } else {
- for($year = $startYear; $year <= $endYear; ++$year) {
- if ($year == $startYear) {
- $startMonth = self::MONTHOFYEAR($startDate);
- $startDay = self::DAYOFMONTH($startDate);
- if ($startMonth < 3) {
- $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
- }
- } elseif($year == $endYear) {
- $endMonth = self::MONTHOFYEAR($endDate);
- $endDay = self::DAYOFMONTH($endDate);
- if (($endMonth * 100 + $endDay) >= (2 * 100 + 29)) {
- $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
- }
- } else {
- $leapDays += (self::_isLeapYear($year)) ? 1 : 0;
- }
- }
- if ($years == 2) {
- if (($leapDays == 0) && (self::_isLeapYear($startYear)) && ($days > 365)) {
- $leapDays = 1;
- } elseif ($days < 366) {
- $years = 1;
- }
- }
- $leapDays /= $years;
- }
- return $days / (365 + $leapDays);
- case 2 :
- return self::DATEDIF($startDate,$endDate) / 360;
- case 3 :
- return self::DATEDIF($startDate,$endDate) / 365;
- case 4 :
- return self::DAYS360($startDate,$endDate,True) / 360;
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function YEARFRAC()
+ if (((is_numeric($method)) && (!is_string($method))) || ($method == '')) {
+ switch ($method) {
+ case 0:
+ return self::DAYS360($startDate, $endDate) / 360;
+ case 1:
+ $days = self::DATEDIF($startDate, $endDate);
+ $startYear = self::YEAR($startDate);
+ $endYear = self::YEAR($endDate);
+ $years = $endYear - $startYear + 1;
+ $leapDays = 0;
+ if ($years == 1) {
+ if (self::isLeapYear($endYear)) {
+ $startMonth = self::MONTHOFYEAR($startDate);
+ $endMonth = self::MONTHOFYEAR($endDate);
+ $endDay = self::DAYOFMONTH($endDate);
+ if (($startMonth < 3) ||
+ (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) {
+ $leapDays += 1;
+ }
+ }
+ } else {
+ for ($year = $startYear; $year <= $endYear; ++$year) {
+ if ($year == $startYear) {
+ $startMonth = self::MONTHOFYEAR($startDate);
+ $startDay = self::DAYOFMONTH($startDate);
+ if ($startMonth < 3) {
+ $leapDays += (self::isLeapYear($year)) ? 1 : 0;
+ }
+ } elseif ($year == $endYear) {
+ $endMonth = self::MONTHOFYEAR($endDate);
+ $endDay = self::DAYOFMONTH($endDate);
+ if (($endMonth * 100 + $endDay) >= (2 * 100 + 29)) {
+ $leapDays += (self::isLeapYear($year)) ? 1 : 0;
+ }
+ } else {
+ $leapDays += (self::isLeapYear($year)) ? 1 : 0;
+ }
+ }
+ if ($years == 2) {
+ if (($leapDays == 0) && (self::isLeapYear($startYear)) && ($days > 365)) {
+ $leapDays = 1;
+ } elseif ($days < 366) {
+ $years = 1;
+ }
+ }
+ $leapDays /= $years;
+ }
+ return $days / (365 + $leapDays);
+ case 2:
+ return self::DATEDIF($startDate, $endDate) / 360;
+ case 3:
+ return self::DATEDIF($startDate, $endDate) / 365;
+ case 4:
+ return self::DAYS360($startDate, $endDate, true) / 360;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * NETWORKDAYS
- *
- * Returns the number of whole working days between start_date and end_date. Working days
- * exclude weekends and any dates identified in holidays.
- * Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days
- * worked during a specific term.
- *
- * Excel Function:
- * NETWORKDAYS(startDate,endDate[,holidays[,holiday[,...]]])
- *
- * @access public
- * @category Date/Time Functions
- * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
- * timestamp (integer), PHP DateTime object, or a standard date
- * strings that will be excluded from the working calendar, such
- * as state and federal holidays and floating holidays.
- * @return integer Interval between the dates
- */
- public static function NETWORKDAYS($startDate,$endDate) {
- // Retrieve the mandatory start and end date that are referenced in the function definition
- $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
- $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
- // Flush the mandatory start and end date that are referenced in the function definition, and get the optional days
- $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- array_shift($dateArgs);
- array_shift($dateArgs);
+ /**
+ * NETWORKDAYS
+ *
+ * Returns the number of whole working days between start_date and end_date. Working days
+ * exclude weekends and any dates identified in holidays.
+ * Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days
+ * worked during a specific term.
+ *
+ * Excel Function:
+ * NETWORKDAYS(startDate,endDate[,holidays[,holiday[,...]]])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
+ * timestamp (integer), PHP DateTime object, or a standard date
+ * strings that will be excluded from the working calendar, such
+ * as state and federal holidays and floating holidays.
+ * @return integer Interval between the dates
+ */
+ public static function NETWORKDAYS($startDate, $endDate)
+ {
+ // Retrieve the mandatory start and end date that are referenced in the function definition
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate);
+ // Flush the mandatory start and end date that are referenced in the function definition, and get the optional days
+ $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ array_shift($dateArgs);
+ array_shift($dateArgs);
- // Validate the start and end dates
- if (is_string($startDate = $sDate = self::_getDateValue($startDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $startDate = (float) floor($startDate);
- if (is_string($endDate = $eDate = self::_getDateValue($endDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $endDate = (float) floor($endDate);
+ // Validate the start and end dates
+ if (is_string($startDate = $sDate = self::getDateValue($startDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $startDate = (float) floor($startDate);
+ if (is_string($endDate = $eDate = self::getDateValue($endDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $endDate = (float) floor($endDate);
- if ($sDate > $eDate) {
- $startDate = $eDate;
- $endDate = $sDate;
- }
+ if ($sDate > $eDate) {
+ $startDate = $eDate;
+ $endDate = $sDate;
+ }
- // Execute function
- $startDoW = 6 - self::DAYOFWEEK($startDate,2);
- if ($startDoW < 0) { $startDoW = 0; }
- $endDoW = self::DAYOFWEEK($endDate,2);
- if ($endDoW >= 6) { $endDoW = 0; }
+ // Execute function
+ $startDoW = 6 - self::DAYOFWEEK($startDate, 2);
+ if ($startDoW < 0) {
+ $startDoW = 0;
+ }
+ $endDoW = self::DAYOFWEEK($endDate, 2);
+ if ($endDoW >= 6) {
+ $endDoW = 0;
+ }
- $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5;
- $partWeekDays = $endDoW + $startDoW;
- if ($partWeekDays > 5) {
- $partWeekDays -= 5;
- }
+ $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5;
+ $partWeekDays = $endDoW + $startDoW;
+ if ($partWeekDays > 5) {
+ $partWeekDays -= 5;
+ }
- // Test any extra holiday parameters
- $holidayCountedArray = array();
- foreach ($dateArgs as $holidayDate) {
- if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
- if ((self::DAYOFWEEK($holidayDate,2) < 6) && (!in_array($holidayDate,$holidayCountedArray))) {
- --$partWeekDays;
- $holidayCountedArray[] = $holidayDate;
- }
- }
- }
+ // Test any extra holiday parameters
+ $holidayCountedArray = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (is_string($holidayDate = self::getDateValue($holidayDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if ((self::DAYOFWEEK($holidayDate, 2) < 6) && (!in_array($holidayDate, $holidayCountedArray))) {
+ --$partWeekDays;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
- if ($sDate > $eDate) {
- return 0 - ($wholeWeekDays + $partWeekDays);
- }
- return $wholeWeekDays + $partWeekDays;
- } // function NETWORKDAYS()
+ if ($sDate > $eDate) {
+ return 0 - ($wholeWeekDays + $partWeekDays);
+ }
+ return $wholeWeekDays + $partWeekDays;
+ }
- /**
- * WORKDAY
- *
- * Returns the date that is the indicated number of working days before or after a date (the
- * starting date). Working days exclude weekends and any dates identified as holidays.
- * Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected
- * delivery times, or the number of days of work performed.
- *
- * Excel Function:
- * WORKDAY(startDate,endDays[,holidays[,holiday[,...]]])
- *
- * @access public
- * @category Date/Time Functions
- * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param integer $endDays The number of nonweekend and nonholiday days before or after
- * startDate. A positive value for days yields a future date; a
- * negative value yields a past date.
- * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
- * timestamp (integer), PHP DateTime object, or a standard date
- * strings that will be excluded from the working calendar, such
- * as state and federal holidays and floating holidays.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function WORKDAY($startDate,$endDays) {
- // Retrieve the mandatory start date and days that are referenced in the function definition
- $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
- $endDays = PHPExcel_Calculation_Functions::flattenSingleValue($endDays);
- // Flush the mandatory start date and days that are referenced in the function definition, and get the optional days
- $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- array_shift($dateArgs);
- array_shift($dateArgs);
+ /**
+ * WORKDAY
+ *
+ * Returns the date that is the indicated number of working days before or after a date (the
+ * starting date). Working days exclude weekends and any dates identified as holidays.
+ * Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected
+ * delivery times, or the number of days of work performed.
+ *
+ * Excel Function:
+ * WORKDAY(startDate,endDays[,holidays[,holiday[,...]]])
+ *
+ * @access public
+ * @category Date/Time Functions
+ * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param integer $endDays The number of nonweekend and nonholiday days before or after
+ * startDate. A positive value for days yields a future date; a
+ * negative value yields a past date.
+ * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date
+ * timestamp (integer), PHP DateTime object, or a standard date
+ * strings that will be excluded from the working calendar, such
+ * as state and federal holidays and floating holidays.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function WORKDAY($startDate, $endDays)
+ {
+ // Retrieve the mandatory start date and days that are referenced in the function definition
+ $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate);
+ $endDays = PHPExcel_Calculation_Functions::flattenSingleValue($endDays);
+ // Flush the mandatory start date and days that are referenced in the function definition, and get the optional days
+ $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ array_shift($dateArgs);
+ array_shift($dateArgs);
- if ((is_string($startDate = self::_getDateValue($startDate))) || (!is_numeric($endDays))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $startDate = (float) floor($startDate);
- $endDays = (int) floor($endDays);
- // If endDays is 0, we always return startDate
- if ($endDays == 0) { return $startDate; }
+ if ((is_string($startDate = self::getDateValue($startDate))) || (!is_numeric($endDays))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $startDate = (float) floor($startDate);
+ $endDays = (int) floor($endDays);
+ // If endDays is 0, we always return startDate
+ if ($endDays == 0) {
+ return $startDate;
+ }
- $decrementing = ($endDays < 0) ? True : False;
+ $decrementing = ($endDays < 0) ? true : false;
- // Adjust the start date if it falls over a weekend
+ // Adjust the start date if it falls over a weekend
- $startDoW = self::DAYOFWEEK($startDate,3);
- if (self::DAYOFWEEK($startDate,3) >= 5) {
- $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW;
- ($decrementing) ? $endDays++ : $endDays--;
- }
+ $startDoW = self::DAYOFWEEK($startDate, 3);
+ if (self::DAYOFWEEK($startDate, 3) >= 5) {
+ $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW;
+ ($decrementing) ? $endDays++ : $endDays--;
+ }
- // Add endDays
- $endDate = (float) $startDate + (intval($endDays / 5) * 7) + ($endDays % 5);
+ // Add endDays
+ $endDate = (float) $startDate + (intval($endDays / 5) * 7) + ($endDays % 5);
- // Adjust the calculated end date if it falls over a weekend
- $endDoW = self::DAYOFWEEK($endDate,3);
- if ($endDoW >= 5) {
- $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
- }
+ // Adjust the calculated end date if it falls over a weekend
+ $endDoW = self::DAYOFWEEK($endDate, 3);
+ if ($endDoW >= 5) {
+ $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
+ }
- // Test any extra holiday parameters
- if (!empty($dateArgs)) {
- $holidayCountedArray = $holidayDates = array();
- foreach ($dateArgs as $holidayDate) {
- if (($holidayDate !== NULL) && (trim($holidayDate) > '')) {
- if (is_string($holidayDate = self::_getDateValue($holidayDate))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (self::DAYOFWEEK($holidayDate,3) < 5) {
- $holidayDates[] = $holidayDate;
- }
- }
- }
- if ($decrementing) {
- rsort($holidayDates, SORT_NUMERIC);
- } else {
- sort($holidayDates, SORT_NUMERIC);
- }
- foreach ($holidayDates as $holidayDate) {
- if ($decrementing) {
- if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) {
- if (!in_array($holidayDate,$holidayCountedArray)) {
- --$endDate;
- $holidayCountedArray[] = $holidayDate;
- }
- }
- } else {
- if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
- if (!in_array($holidayDate,$holidayCountedArray)) {
- ++$endDate;
- $holidayCountedArray[] = $holidayDate;
- }
- }
- }
- // Adjust the calculated end date if it falls over a weekend
- $endDoW = self::DAYOFWEEK($endDate,3);
- if ($endDoW >= 5) {
- $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
- }
+ // Test any extra holiday parameters
+ if (!empty($dateArgs)) {
+ $holidayCountedArray = $holidayDates = array();
+ foreach ($dateArgs as $holidayDate) {
+ if (($holidayDate !== null) && (trim($holidayDate) > '')) {
+ if (is_string($holidayDate = self::getDateValue($holidayDate))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (self::DAYOFWEEK($holidayDate, 3) < 5) {
+ $holidayDates[] = $holidayDate;
+ }
+ }
+ }
+ if ($decrementing) {
+ rsort($holidayDates, SORT_NUMERIC);
+ } else {
+ sort($holidayDates, SORT_NUMERIC);
+ }
+ foreach ($holidayDates as $holidayDate) {
+ if ($decrementing) {
+ if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) {
+ if (!in_array($holidayDate, $holidayCountedArray)) {
+ --$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ } else {
+ if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) {
+ if (!in_array($holidayDate, $holidayCountedArray)) {
+ ++$endDate;
+ $holidayCountedArray[] = $holidayDate;
+ }
+ }
+ }
+ // Adjust the calculated end date if it falls over a weekend
+ $endDoW = self::DAYOFWEEK($endDate, 3);
+ if ($endDoW >= 5) {
+ $endDate += ($decrementing) ? -$endDoW + 4 : 7 - $endDoW;
+ }
+ }
+ }
- }
- }
-
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) $endDate;
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
- }
- } // function WORKDAY()
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) $endDate;
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return PHPExcel_Shared_Date::ExcelToPHPObject($endDate);
+ }
+ }
- /**
- * DAYOFMONTH
- *
- * Returns the day of the month, for a specified date. The day is given as an integer
- * ranging from 1 to 31.
- *
- * Excel Function:
- * DAY(dateValue)
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @return int Day of the month
- */
- public static function DAYOFMONTH($dateValue = 1) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ /**
+ * DAYOFMONTH
+ *
+ * Returns the day of the month, for a specified date. The day is given as an integer
+ * ranging from 1 to 31.
+ *
+ * Excel Function:
+ * DAY(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Day of the month
+ */
+ public static function DAYOFMONTH($dateValue = 1)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- if ($dateValue === null) {
+ if ($dateValue === null) {
$dateValue = 1;
- } elseif (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($dateValue == 0.0) {
- return 0;
- } elseif ($dateValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ } elseif (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue == 0.0) {
+ return 0;
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- return (int) $PHPDateObject->format('j');
- } // function DAYOFMONTH()
+ return (int) $PHPDateObject->format('j');
+ }
- /**
- * DAYOFWEEK
- *
- * Returns the day of the week for a specified date. The day is given as an integer
- * ranging from 0 to 7 (dependent on the requested style).
- *
- * Excel Function:
- * WEEKDAY(dateValue[,style])
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param int $style A number that determines the type of return value
- * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday).
- * 2 Numbers 1 (Monday) through 7 (Sunday).
- * 3 Numbers 0 (Monday) through 6 (Sunday).
- * @return int Day of the week value
- */
- public static function DAYOFWEEK($dateValue = 1, $style = 1) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- $style = PHPExcel_Calculation_Functions::flattenSingleValue($style);
+ /**
+ * DAYOFWEEK
+ *
+ * Returns the day of the week for a specified date. The day is given as an integer
+ * ranging from 0 to 7 (dependent on the requested style).
+ *
+ * Excel Function:
+ * WEEKDAY(dateValue[,style])
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $style A number that determines the type of return value
+ * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday).
+ * 2 Numbers 1 (Monday) through 7 (Sunday).
+ * 3 Numbers 0 (Monday) through 6 (Sunday).
+ * @return int Day of the week value
+ */
+ public static function DAYOFWEEK($dateValue = 1, $style = 1)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $style = PHPExcel_Calculation_Functions::flattenSingleValue($style);
- if (!is_numeric($style)) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif (($style < 1) || ($style > 3)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $style = floor($style);
+ if (!is_numeric($style)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif (($style < 1) || ($style > 3)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $style = floor($style);
- if ($dateValue === null) {
+ if ($dateValue === null) {
$dateValue = 1;
- } elseif (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($dateValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ } elseif (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- $DoW = $PHPDateObject->format('w');
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $DoW = $PHPDateObject->format('w');
- $firstDay = 1;
- switch ($style) {
- case 1: ++$DoW;
- break;
- case 2: if ($DoW == 0) { $DoW = 7; }
- break;
- case 3: if ($DoW == 0) { $DoW = 7; }
- $firstDay = 0;
- --$DoW;
- break;
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL) {
- // Test for Excel's 1900 leap year, and introduce the error as required
- if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) {
- --$DoW;
- if ($DoW < $firstDay) {
- $DoW += 7;
- }
- }
- }
+ $firstDay = 1;
+ switch ($style) {
+ case 1:
+ ++$DoW;
+ break;
+ case 2:
+ if ($DoW == 0) {
+ $DoW = 7;
+ }
+ break;
+ case 3:
+ if ($DoW == 0) {
+ $DoW = 7;
+ }
+ $firstDay = 0;
+ --$DoW;
+ break;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL) {
+ // Test for Excel's 1900 leap year, and introduce the error as required
+ if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) {
+ --$DoW;
+ if ($DoW < $firstDay) {
+ $DoW += 7;
+ }
+ }
+ }
- return (int) $DoW;
- } // function DAYOFWEEK()
+ return (int) $DoW;
+ }
- /**
- * WEEKOFYEAR
- *
- * Returns the week of the year for a specified date.
- * The WEEKNUM function considers the week containing January 1 to be the first week of the year.
- * However, there is a European standard that defines the first week as the one with the majority
- * of days (four or more) falling in the new year. This means that for years in which there are
- * three days or less in the first week of January, the WEEKNUM function returns week numbers
- * that are incorrect according to the European standard.
- *
- * Excel Function:
- * WEEKNUM(dateValue[,style])
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param boolean $method Week begins on Sunday or Monday
- * 1 or omitted Week begins on Sunday.
- * 2 Week begins on Monday.
- * @return int Week Number
- */
- public static function WEEKOFYEAR($dateValue = 1, $method = 1) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
+ /**
+ * WEEKOFYEAR
+ *
+ * Returns the week of the year for a specified date.
+ * The WEEKNUM function considers the week containing January 1 to be the first week of the year.
+ * However, there is a European standard that defines the first week as the one with the majority
+ * of days (four or more) falling in the new year. This means that for years in which there are
+ * three days or less in the first week of January, the WEEKNUM function returns week numbers
+ * that are incorrect according to the European standard.
+ *
+ * Excel Function:
+ * WEEKNUM(dateValue[,style])
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param boolean $method Week begins on Sunday or Monday
+ * 1 or omitted Week begins on Sunday.
+ * 2 Week begins on Monday.
+ * @return int Week Number
+ */
+ public static function WEEKOFYEAR($dateValue = 1, $method = 1)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $method = PHPExcel_Calculation_Functions::flattenSingleValue($method);
- if (!is_numeric($method)) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif (($method < 1) || ($method > 2)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $method = floor($method);
+ if (!is_numeric($method)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif (($method < 1) || ($method > 2)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $method = floor($method);
- if ($dateValue === null) {
+ if ($dateValue === null) {
$dateValue = 1;
- } elseif (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($dateValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ } elseif (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- $dayOfYear = $PHPDateObject->format('z');
- $dow = $PHPDateObject->format('w');
- $PHPDateObject->modify('-'.$dayOfYear.' days');
- $dow = $PHPDateObject->format('w');
- $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7);
- $dayOfYear -= $daysInFirstWeek;
- $weekOfYear = ceil($dayOfYear / 7) + 1;
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ $dayOfYear = $PHPDateObject->format('z');
+ $dow = $PHPDateObject->format('w');
+ $PHPDateObject->modify('-' . $dayOfYear . ' days');
+ $dow = $PHPDateObject->format('w');
+ $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7);
+ $dayOfYear -= $daysInFirstWeek;
+ $weekOfYear = ceil($dayOfYear / 7) + 1;
- return (int) $weekOfYear;
- } // function WEEKOFYEAR()
+ return (int) $weekOfYear;
+ }
- /**
- * MONTHOFYEAR
- *
- * Returns the month of a date represented by a serial number.
- * The month is given as an integer, ranging from 1 (January) to 12 (December).
- *
- * Excel Function:
- * MONTH(dateValue)
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @return int Month of the year
- */
- public static function MONTHOFYEAR($dateValue = 1) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ /**
+ * MONTHOFYEAR
+ *
+ * Returns the month of a date represented by a serial number.
+ * The month is given as an integer, ranging from 1 (January) to 12 (December).
+ *
+ * Excel Function:
+ * MONTH(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Month of the year
+ */
+ public static function MONTHOFYEAR($dateValue = 1)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- if ($dateValue === null) {
+ if ($dateValue === null) {
$dateValue = 1;
- } elseif (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($dateValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ } elseif (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- return (int) $PHPDateObject->format('n');
- } // function MONTHOFYEAR()
+ return (int) $PHPDateObject->format('n');
+ }
- /**
- * YEAR
- *
- * Returns the year corresponding to a date.
- * The year is returned as an integer in the range 1900-9999.
- *
- * Excel Function:
- * YEAR(dateValue)
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @return int Year
- */
- public static function YEAR($dateValue = 1) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ /**
+ * YEAR
+ *
+ * Returns the year corresponding to a date.
+ * The year is returned as an integer in the range 1900-9999.
+ *
+ * Excel Function:
+ * YEAR(dateValue)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @return int Year
+ */
+ public static function YEAR($dateValue = 1)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- if ($dateValue === null) {
+ if ($dateValue === null) {
$dateValue = 1;
- } elseif (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($dateValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
+ } elseif (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($dateValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
- // Execute function
- $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
+ // Execute function
+ $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue);
- return (int) $PHPDateObject->format('Y');
- } // function YEAR()
+ return (int) $PHPDateObject->format('Y');
+ }
- /**
- * HOUROFDAY
- *
- * Returns the hour of a time value.
- * The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
- *
- * Excel Function:
- * HOUR(timeValue)
- *
- * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard time string
- * @return int Hour
- */
- public static function HOUROFDAY($timeValue = 0) {
- $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+ /**
+ * HOUROFDAY
+ *
+ * Returns the hour of a time value.
+ * The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
+ *
+ * Excel Function:
+ * HOUR(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Hour
+ */
+ public static function HOUROFDAY($timeValue = 0)
+ {
+ $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
- if (!is_numeric($timeValue)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $testVal = strtok($timeValue,'/-: ');
- if (strlen($testVal) < strlen($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $timeValue = self::_getTimeValue($timeValue);
- if (is_string($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- // Execute function
- if ($timeValue >= 1) {
- $timeValue = fmod($timeValue,1);
- } elseif ($timeValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue, '/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue, 1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
- return (int) gmdate('G',$timeValue);
- } // function HOUROFDAY()
+ return (int) gmdate('G', $timeValue);
+ }
- /**
- * MINUTEOFHOUR
- *
- * Returns the minutes of a time value.
- * The minute is given as an integer, ranging from 0 to 59.
- *
- * Excel Function:
- * MINUTE(timeValue)
- *
- * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard time string
- * @return int Minute
- */
- public static function MINUTEOFHOUR($timeValue = 0) {
- $timeValue = $timeTester = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+ /**
+ * MINUTEOFHOUR
+ *
+ * Returns the minutes of a time value.
+ * The minute is given as an integer, ranging from 0 to 59.
+ *
+ * Excel Function:
+ * MINUTE(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Minute
+ */
+ public static function MINUTEOFHOUR($timeValue = 0)
+ {
+ $timeValue = $timeTester = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
- if (!is_numeric($timeValue)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $testVal = strtok($timeValue,'/-: ');
- if (strlen($testVal) < strlen($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $timeValue = self::_getTimeValue($timeValue);
- if (is_string($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- // Execute function
- if ($timeValue >= 1) {
- $timeValue = fmod($timeValue,1);
- } elseif ($timeValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue, '/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue, 1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
- return (int) gmdate('i',$timeValue);
- } // function MINUTEOFHOUR()
+ return (int) gmdate('i', $timeValue);
+ }
- /**
- * SECONDOFMINUTE
- *
- * Returns the seconds of a time value.
- * The second is given as an integer in the range 0 (zero) to 59.
- *
- * Excel Function:
- * SECOND(timeValue)
- *
- * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard time string
- * @return int Second
- */
- public static function SECONDOFMINUTE($timeValue = 0) {
- $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
+ /**
+ * SECONDOFMINUTE
+ *
+ * Returns the seconds of a time value.
+ * The second is given as an integer in the range 0 (zero) to 59.
+ *
+ * Excel Function:
+ * SECOND(timeValue)
+ *
+ * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard time string
+ * @return int Second
+ */
+ public static function SECONDOFMINUTE($timeValue = 0)
+ {
+ $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue);
- if (!is_numeric($timeValue)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $testVal = strtok($timeValue,'/-: ');
- if (strlen($testVal) < strlen($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $timeValue = self::_getTimeValue($timeValue);
- if (is_string($timeValue)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- // Execute function
- if ($timeValue >= 1) {
- $timeValue = fmod($timeValue,1);
- } elseif ($timeValue < 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
+ if (!is_numeric($timeValue)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $testVal = strtok($timeValue, '/-: ');
+ if (strlen($testVal) < strlen($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $timeValue = self::getTimeValue($timeValue);
+ if (is_string($timeValue)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ // Execute function
+ if ($timeValue >= 1) {
+ $timeValue = fmod($timeValue, 1);
+ } elseif ($timeValue < 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue);
- return (int) gmdate('s',$timeValue);
- } // function SECONDOFMINUTE()
+ return (int) gmdate('s', $timeValue);
+ }
- /**
- * EDATE
- *
- * Returns the serial number that represents the date that is the indicated number of months
- * before or after a specified date (the start_date).
- * Use EDATE to calculate maturity dates or due dates that fall on the same day of the month
- * as the date of issue.
- *
- * Excel Function:
- * EDATE(dateValue,adjustmentMonths)
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param int $adjustmentMonths The number of months before or after start_date.
- * A positive value for months yields a future date;
- * a negative value yields a past date.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function EDATE($dateValue = 1, $adjustmentMonths = 0) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
+ /**
+ * EDATE
+ *
+ * Returns the serial number that represents the date that is the indicated number of months
+ * before or after a specified date (the start_date).
+ * Use EDATE to calculate maturity dates or due dates that fall on the same day of the month
+ * as the date of issue.
+ *
+ * Excel Function:
+ * EDATE(dateValue,adjustmentMonths)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $adjustmentMonths The number of months before or after start_date.
+ * A positive value for months yields a future date;
+ * a negative value yields a past date.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function EDATE($dateValue = 1, $adjustmentMonths = 0)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
- if (!is_numeric($adjustmentMonths)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $adjustmentMonths = floor($adjustmentMonths);
+ if (!is_numeric($adjustmentMonths)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $adjustmentMonths = floor($adjustmentMonths);
- if (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- // Execute function
- $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths);
+ // Execute function
+ $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths);
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return $PHPDateObject;
- }
- } // function EDATE()
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return $PHPDateObject;
+ }
+ }
- /**
- * EOMONTH
- *
- * Returns the date value for the last day of the month that is the indicated number of months
- * before or after start_date.
- * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
- *
- * Excel Function:
- * EOMONTH(dateValue,adjustmentMonths)
- *
- * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
- * PHP DateTime object, or a standard date string
- * @param int $adjustmentMonths The number of months before or after start_date.
- * A positive value for months yields a future date;
- * a negative value yields a past date.
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0) {
- $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
- $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
+ /**
+ * EOMONTH
+ *
+ * Returns the date value for the last day of the month that is the indicated number of months
+ * before or after start_date.
+ * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
+ *
+ * Excel Function:
+ * EOMONTH(dateValue,adjustmentMonths)
+ *
+ * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
+ * PHP DateTime object, or a standard date string
+ * @param int $adjustmentMonths The number of months before or after start_date.
+ * A positive value for months yields a future date;
+ * a negative value yields a past date.
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0)
+ {
+ $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue);
+ $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths);
- if (!is_numeric($adjustmentMonths)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $adjustmentMonths = floor($adjustmentMonths);
+ if (!is_numeric($adjustmentMonths)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $adjustmentMonths = floor($adjustmentMonths);
- if (is_string($dateValue = self::_getDateValue($dateValue))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if (is_string($dateValue = self::getDateValue($dateValue))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- // Execute function
- $PHPDateObject = self::_adjustDateByMonths($dateValue,$adjustmentMonths+1);
- $adjustDays = (int) $PHPDateObject->format('d');
- $adjustDaysString = '-'.$adjustDays.' days';
- $PHPDateObject->modify($adjustDaysString);
-
- switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
- case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL :
- return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC :
- return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
- case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT :
- return $PHPDateObject;
- }
- } // function EOMONTH()
-
-} // class PHPExcel_Calculation_DateTime
+ // Execute function
+ $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths+1);
+ $adjustDays = (int) $PHPDateObject->format('d');
+ $adjustDaysString = '-' . $adjustDays . ' days';
+ $PHPDateObject->modify($adjustDaysString);
+ switch (PHPExcel_Calculation_Functions::getReturnDateType()) {
+ case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL:
+ return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject);
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC:
+ return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
+ case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT:
+ return $PHPDateObject;
+ }
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Engineering.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Engineering.php
index b60163e5..75e27847 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Engineering.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Engineering.php
@@ -1,8 +1,21 @@
array('Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => true),
+ 'sg' => array('Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => false),
+ 'lbm' => array('Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => false),
+ 'u' => array('Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => true),
+ 'ozm' => array('Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => false),
+ 'm' => array('Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => true),
+ 'mi' => array('Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => false),
+ 'Nmi' => array('Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => false),
+ 'in' => array('Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => false),
+ 'ft' => array('Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => false),
+ 'yd' => array('Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => false),
+ 'ang' => array('Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => true),
+ 'Pica' => array('Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => false),
+ 'yr' => array('Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => false),
+ 'day' => array('Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => false),
+ 'hr' => array('Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => false),
+ 'mn' => array('Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => false),
+ 'sec' => array('Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => true),
+ 'Pa' => array('Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => true),
+ 'p' => array('Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => true),
+ 'atm' => array('Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => true),
+ 'at' => array('Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => true),
+ 'mmHg' => array('Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => true),
+ 'N' => array('Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => true),
+ 'dyn' => array('Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => true),
+ 'dy' => array('Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => true),
+ 'lbf' => array('Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => false),
+ 'J' => array('Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => true),
+ 'e' => array('Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => true),
+ 'c' => array('Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => true),
+ 'cal' => array('Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => true),
+ 'eV' => array('Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => true),
+ 'ev' => array('Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => true),
+ 'HPh' => array('Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => false),
+ 'hh' => array('Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => false),
+ 'Wh' => array('Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => true),
+ 'wh' => array('Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => true),
+ 'flb' => array('Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => false),
+ 'BTU' => array('Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => false),
+ 'btu' => array('Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => false),
+ 'HP' => array('Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => false),
+ 'h' => array('Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => false),
+ 'W' => array('Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => true),
+ 'w' => array('Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => true),
+ 'T' => array('Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => true),
+ 'ga' => array('Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => true),
+ 'C' => array('Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => false),
+ 'cel' => array('Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => false),
+ 'F' => array('Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => false),
+ 'fah' => array('Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => false),
+ 'K' => array('Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => false),
+ 'kel' => array('Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => false),
+ 'tsp' => array('Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => false),
+ 'tbs' => array('Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => false),
+ 'oz' => array('Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => false),
+ 'cup' => array('Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => false),
+ 'pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => false),
+ 'us_pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => false),
+ 'uk_pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => false),
+ 'qt' => array('Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => false),
+ 'gal' => array('Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => false),
+ 'l' => array('Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => true),
+ 'lt' => array('Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => true),
+ );
+
+ /**
+ * Details of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
+ *
+ * @var mixed[]
+ */
+ private static $conversionMultipliers = array(
+ 'Y' => array('multiplier' => 1E24, 'name' => 'yotta'),
+ 'Z' => array('multiplier' => 1E21, 'name' => 'zetta'),
+ 'E' => array('multiplier' => 1E18, 'name' => 'exa'),
+ 'P' => array('multiplier' => 1E15, 'name' => 'peta'),
+ 'T' => array('multiplier' => 1E12, 'name' => 'tera'),
+ 'G' => array('multiplier' => 1E9, 'name' => 'giga'),
+ 'M' => array('multiplier' => 1E6, 'name' => 'mega'),
+ 'k' => array('multiplier' => 1E3, 'name' => 'kilo'),
+ 'h' => array('multiplier' => 1E2, 'name' => 'hecto'),
+ 'e' => array('multiplier' => 1E1, 'name' => 'deka'),
+ 'd' => array('multiplier' => 1E-1, 'name' => 'deci'),
+ 'c' => array('multiplier' => 1E-2, 'name' => 'centi'),
+ 'm' => array('multiplier' => 1E-3, 'name' => 'milli'),
+ 'u' => array('multiplier' => 1E-6, 'name' => 'micro'),
+ 'n' => array('multiplier' => 1E-9, 'name' => 'nano'),
+ 'p' => array('multiplier' => 1E-12, 'name' => 'pico'),
+ 'f' => array('multiplier' => 1E-15, 'name' => 'femto'),
+ 'a' => array('multiplier' => 1E-18, 'name' => 'atto'),
+ 'z' => array('multiplier' => 1E-21, 'name' => 'zepto'),
+ 'y' => array('multiplier' => 1E-24, 'name' => 'yocto'),
+ );
+
+ /**
+ * Details of the Units of measure conversion factors, organised by group
+ *
+ * @var mixed[]
+ */
+ private static $unitConversions = array(
+ 'Mass' => array(
+ 'g' => array(
+ 'g' => 1.0,
+ 'sg' => 6.85220500053478E-05,
+ 'lbm' => 2.20462291469134E-03,
+ 'u' => 6.02217000000000E+23,
+ 'ozm' => 3.52739718003627E-02,
+ ),
+ 'sg' => array(
+ 'g' => 1.45938424189287E+04,
+ 'sg' => 1.0,
+ 'lbm' => 3.21739194101647E+01,
+ 'u' => 8.78866000000000E+27,
+ 'ozm' => 5.14782785944229E+02,
+ ),
+ 'lbm' => array(
+ 'g' => 4.5359230974881148E+02,
+ 'sg' => 3.10810749306493E-02,
+ 'lbm' => 1.0,
+ 'u' => 2.73161000000000E+26,
+ 'ozm' => 1.60000023429410E+01,
+ ),
+ 'u' => array(
+ 'g' => 1.66053100460465E-24,
+ 'sg' => 1.13782988532950E-28,
+ 'lbm' => 3.66084470330684E-27,
+ 'u' => 1.0,
+ 'ozm' => 5.85735238300524E-26,
+ ),
+ 'ozm' => array(
+ 'g' => 2.83495152079732E+01,
+ 'sg' => 1.94256689870811E-03,
+ 'lbm' => 6.24999908478882E-02,
+ 'u' => 1.70725600000000E+25,
+ 'ozm' => 1.0,
+ ),
+ ),
+ 'Distance' => array(
+ 'm' => array(
+ 'm' => 1.0,
+ 'mi' => 6.21371192237334E-04,
+ 'Nmi' => 5.39956803455724E-04,
+ 'in' => 3.93700787401575E+01,
+ 'ft' => 3.28083989501312E+00,
+ 'yd' => 1.09361329797891E+00,
+ 'ang' => 1.00000000000000E+10,
+ 'Pica' => 2.83464566929116E+03,
+ ),
+ 'mi' => array(
+ 'm' => 1.60934400000000E+03,
+ 'mi' => 1.0,
+ 'Nmi' => 8.68976241900648E-01,
+ 'in' => 6.33600000000000E+04,
+ 'ft' => 5.28000000000000E+03,
+ 'yd' => 1.76000000000000E+03,
+ 'ang' => 1.60934400000000E+13,
+ 'Pica' => 4.56191999999971E+06,
+ ),
+ 'Nmi' => array(
+ 'm' => 1.85200000000000E+03,
+ 'mi' => 1.15077944802354E+00,
+ 'Nmi' => 1.0,
+ 'in' => 7.29133858267717E+04,
+ 'ft' => 6.07611548556430E+03,
+ 'yd' => 2.02537182785694E+03,
+ 'ang' => 1.85200000000000E+13,
+ 'Pica' => 5.24976377952723E+06,
+ ),
+ 'in' => array(
+ 'm' => 2.54000000000000E-02,
+ 'mi' => 1.57828282828283E-05,
+ 'Nmi' => 1.37149028077754E-05,
+ 'in' => 1.0,
+ 'ft' => 8.33333333333333E-02,
+ 'yd' => 2.77777777686643E-02,
+ 'ang' => 2.54000000000000E+08,
+ 'Pica' => 7.19999999999955E+01,
+ ),
+ 'ft' => array(
+ 'm' => 3.04800000000000E-01,
+ 'mi' => 1.89393939393939E-04,
+ 'Nmi' => 1.64578833693305E-04,
+ 'in' => 1.20000000000000E+01,
+ 'ft' => 1.0,
+ 'yd' => 3.33333333223972E-01,
+ 'ang' => 3.04800000000000E+09,
+ 'Pica' => 8.63999999999946E+02,
+ ),
+ 'yd' => array(
+ 'm' => 9.14400000300000E-01,
+ 'mi' => 5.68181818368230E-04,
+ 'Nmi' => 4.93736501241901E-04,
+ 'in' => 3.60000000118110E+01,
+ 'ft' => 3.00000000000000E+00,
+ 'yd' => 1.0,
+ 'ang' => 9.14400000300000E+09,
+ 'Pica' => 2.59200000085023E+03,
+ ),
+ 'ang' => array(
+ 'm' => 1.00000000000000E-10,
+ 'mi' => 6.21371192237334E-14,
+ 'Nmi' => 5.39956803455724E-14,
+ 'in' => 3.93700787401575E-09,
+ 'ft' => 3.28083989501312E-10,
+ 'yd' => 1.09361329797891E-10,
+ 'ang' => 1.0,
+ 'Pica' => 2.83464566929116E-07,
+ ),
+ 'Pica' => array(
+ 'm' => 3.52777777777800E-04,
+ 'mi' => 2.19205948372629E-07,
+ 'Nmi' => 1.90484761219114E-07,
+ 'in' => 1.38888888888898E-02,
+ 'ft' => 1.15740740740748E-03,
+ 'yd' => 3.85802469009251E-04,
+ 'ang' => 3.52777777777800E+06,
+ 'Pica' => 1.0,
+ ),
+ ),
+ 'Time' => array(
+ 'yr' => array(
+ 'yr' => 1.0,
+ 'day' => 365.25,
+ 'hr' => 8766.0,
+ 'mn' => 525960.0,
+ 'sec' => 31557600.0,
+ ),
+ 'day' => array(
+ 'yr' => 2.73785078713210E-03,
+ 'day' => 1.0,
+ 'hr' => 24.0,
+ 'mn' => 1440.0,
+ 'sec' => 86400.0,
+ ),
+ 'hr' => array(
+ 'yr' => 1.14077116130504E-04,
+ 'day' => 4.16666666666667E-02,
+ 'hr' => 1.0,
+ 'mn' => 60.0,
+ 'sec' => 3600.0,
+ ),
+ 'mn' => array(
+ 'yr' => 1.90128526884174E-06,
+ 'day' => 6.94444444444444E-04,
+ 'hr' => 1.66666666666667E-02,
+ 'mn' => 1.0,
+ 'sec' => 60.0,
+ ),
+ 'sec' => array(
+ 'yr' => 3.16880878140289E-08,
+ 'day' => 1.15740740740741E-05,
+ 'hr' => 2.77777777777778E-04,
+ 'mn' => 1.66666666666667E-02,
+ 'sec' => 1.0,
+ ),
+ ),
+ 'Pressure' => array(
+ 'Pa' => array(
+ 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03,
+ ),
+ 'p' => array(
+ 'Pa' => 1.0,
+ 'p' => 1.0,
+ 'atm' => 9.86923299998193E-06,
+ 'at' => 9.86923299998193E-06,
+ 'mmHg' => 7.50061707998627E-03,
+ ),
+ 'atm' => array(
+ 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0,
+ ),
+ 'at' => array(
+ 'Pa' => 1.01324996583000E+05,
+ 'p' => 1.01324996583000E+05,
+ 'atm' => 1.0,
+ 'at' => 1.0,
+ 'mmHg' => 760.0,
+ ),
+ 'mmHg' => array(
+ 'Pa' => 1.33322363925000E+02,
+ 'p' => 1.33322363925000E+02,
+ 'atm' => 1.31578947368421E-03,
+ 'at' => 1.31578947368421E-03,
+ 'mmHg' => 1.0,
+ ),
+ ),
+ 'Force' => array(
+ 'N' => array(
+ 'N' => 1.0,
+ 'dyn' => 1.0E+5,
+ 'dy' => 1.0E+5,
+ 'lbf' => 2.24808923655339E-01,
+ ),
+ 'dyn' => array(
+ 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06,
+ ),
+ 'dy' => array(
+ 'N' => 1.0E-5,
+ 'dyn' => 1.0,
+ 'dy' => 1.0,
+ 'lbf' => 2.24808923655339E-06,
+ ),
+ 'lbf' => array(
+ 'N' => 4.448222,
+ 'dyn' => 4.448222E+5,
+ 'dy' => 4.448222E+5,
+ 'lbf' => 1.0,
+ ),
+ ),
+ 'Energy' => array(
+ 'J' => array(
+ 'J' => 1.0,
+ 'e' => 9.99999519343231E+06,
+ 'c' => 2.39006249473467E-01,
+ 'cal' => 2.38846190642017E-01,
+ 'eV' => 6.24145700000000E+18,
+ 'ev' => 6.24145700000000E+18,
+ 'HPh' => 3.72506430801000E-07,
+ 'hh' => 3.72506430801000E-07,
+ 'Wh' => 2.77777916238711E-04,
+ 'wh' => 2.77777916238711E-04,
+ 'flb' => 2.37304222192651E+01,
+ 'BTU' => 9.47815067349015E-04,
+ 'btu' => 9.47815067349015E-04,
+ ),
+ 'e' => array(
+ 'J' => 1.00000048065700E-07,
+ 'e' => 1.0,
+ 'c' => 2.39006364353494E-08,
+ 'cal' => 2.38846305445111E-08,
+ 'eV' => 6.24146000000000E+11,
+ 'ev' => 6.24146000000000E+11,
+ 'HPh' => 3.72506609848824E-14,
+ 'hh' => 3.72506609848824E-14,
+ 'Wh' => 2.77778049754611E-11,
+ 'wh' => 2.77778049754611E-11,
+ 'flb' => 2.37304336254586E-06,
+ 'BTU' => 9.47815522922962E-11,
+ 'btu' => 9.47815522922962E-11,
+ ),
+ 'c' => array(
+ 'J' => 4.18399101363672E+00,
+ 'e' => 4.18398900257312E+07,
+ 'c' => 1.0,
+ 'cal' => 9.99330315287563E-01,
+ 'eV' => 2.61142000000000E+19,
+ 'ev' => 2.61142000000000E+19,
+ 'HPh' => 1.55856355899327E-06,
+ 'hh' => 1.55856355899327E-06,
+ 'Wh' => 1.16222030532950E-03,
+ 'wh' => 1.16222030532950E-03,
+ 'flb' => 9.92878733152102E+01,
+ 'BTU' => 3.96564972437776E-03,
+ 'btu' => 3.96564972437776E-03,
+ ),
+ 'cal' => array(
+ 'J' => 4.18679484613929E+00,
+ 'e' => 4.18679283372801E+07,
+ 'c' => 1.00067013349059E+00,
+ 'cal' => 1.0,
+ 'eV' => 2.61317000000000E+19,
+ 'ev' => 2.61317000000000E+19,
+ 'HPh' => 1.55960800463137E-06,
+ 'hh' => 1.55960800463137E-06,
+ 'Wh' => 1.16299914807955E-03,
+ 'wh' => 1.16299914807955E-03,
+ 'flb' => 9.93544094443283E+01,
+ 'BTU' => 3.96830723907002E-03,
+ 'btu' => 3.96830723907002E-03,
+ ),
+ 'eV' => array(
+ 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22,
+ ),
+ 'ev' => array(
+ 'J' => 1.60219000146921E-19,
+ 'e' => 1.60218923136574E-12,
+ 'c' => 3.82933423195043E-20,
+ 'cal' => 3.82676978535648E-20,
+ 'eV' => 1.0,
+ 'ev' => 1.0,
+ 'HPh' => 5.96826078912344E-26,
+ 'hh' => 5.96826078912344E-26,
+ 'Wh' => 4.45053000026614E-23,
+ 'wh' => 4.45053000026614E-23,
+ 'flb' => 3.80206452103492E-18,
+ 'BTU' => 1.51857982414846E-22,
+ 'btu' => 1.51857982414846E-22,
+ ),
+ 'HPh' => array(
+ 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03,
+ ),
+ 'hh' => array(
+ 'J' => 2.68451741316170E+06,
+ 'e' => 2.68451612283024E+13,
+ 'c' => 6.41616438565991E+05,
+ 'cal' => 6.41186757845835E+05,
+ 'eV' => 1.67553000000000E+25,
+ 'ev' => 1.67553000000000E+25,
+ 'HPh' => 1.0,
+ 'hh' => 1.0,
+ 'Wh' => 7.45699653134593E+02,
+ 'wh' => 7.45699653134593E+02,
+ 'flb' => 6.37047316692964E+07,
+ 'BTU' => 2.54442605275546E+03,
+ 'btu' => 2.54442605275546E+03,
+ ),
+ 'Wh' => array(
+ 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00,
+ ),
+ 'wh' => array(
+ 'J' => 3.59999820554720E+03,
+ 'e' => 3.59999647518369E+10,
+ 'c' => 8.60422069219046E+02,
+ 'cal' => 8.59845857713046E+02,
+ 'eV' => 2.24692340000000E+22,
+ 'ev' => 2.24692340000000E+22,
+ 'HPh' => 1.34102248243839E-03,
+ 'hh' => 1.34102248243839E-03,
+ 'Wh' => 1.0,
+ 'wh' => 1.0,
+ 'flb' => 8.54294774062316E+04,
+ 'BTU' => 3.41213254164705E+00,
+ 'btu' => 3.41213254164705E+00,
+ ),
+ 'flb' => array(
+ 'J' => 4.21400003236424E-02,
+ 'e' => 4.21399800687660E+05,
+ 'c' => 1.00717234301644E-02,
+ 'cal' => 1.00649785509554E-02,
+ 'eV' => 2.63015000000000E+17,
+ 'ev' => 2.63015000000000E+17,
+ 'HPh' => 1.56974211145130E-08,
+ 'hh' => 1.56974211145130E-08,
+ 'Wh' => 1.17055614802000E-05,
+ 'wh' => 1.17055614802000E-05,
+ 'flb' => 1.0,
+ 'BTU' => 3.99409272448406E-05,
+ 'btu' => 3.99409272448406E-05,
+ ),
+ 'BTU' => array(
+ 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ ),
+ 'btu' => array(
+ 'J' => 1.05505813786749E+03,
+ 'e' => 1.05505763074665E+10,
+ 'c' => 2.52165488508168E+02,
+ 'cal' => 2.51996617135510E+02,
+ 'eV' => 6.58510000000000E+21,
+ 'ev' => 6.58510000000000E+21,
+ 'HPh' => 3.93015941224568E-04,
+ 'hh' => 3.93015941224568E-04,
+ 'Wh' => 2.93071851047526E-01,
+ 'wh' => 2.93071851047526E-01,
+ 'flb' => 2.50369750774671E+04,
+ 'BTU' => 1.0,
+ 'btu' => 1.0,
+ ),
+ ),
+ 'Power' => array(
+ 'HP' => array(
+ 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02,
+ ),
+ 'h' => array(
+ 'HP' => 1.0,
+ 'h' => 1.0,
+ 'W' => 7.45701000000000E+02,
+ 'w' => 7.45701000000000E+02,
+ ),
+ 'W' => array(
+ 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0,
+ ),
+ 'w' => array(
+ 'HP' => 1.34102006031908E-03,
+ 'h' => 1.34102006031908E-03,
+ 'W' => 1.0,
+ 'w' => 1.0,
+ ),
+ ),
+ 'Magnetism' => array(
+ 'T' => array(
+ 'T' => 1.0,
+ 'ga' => 10000.0,
+ ),
+ 'ga' => array(
+ 'T' => 0.0001,
+ 'ga' => 1.0,
+ ),
+ ),
+ 'Liquid' => array(
+ 'tsp' => array(
+ 'tsp' => 1.0,
+ 'tbs' => 3.33333333333333E-01,
+ 'oz' => 1.66666666666667E-01,
+ 'cup' => 2.08333333333333E-02,
+ 'pt' => 1.04166666666667E-02,
+ 'us_pt' => 1.04166666666667E-02,
+ 'uk_pt' => 8.67558516821960E-03,
+ 'qt' => 5.20833333333333E-03,
+ 'gal' => 1.30208333333333E-03,
+ 'l' => 4.92999408400710E-03,
+ 'lt' => 4.92999408400710E-03,
+ ),
+ 'tbs' => array(
+ 'tsp' => 3.00000000000000E+00,
+ 'tbs' => 1.0,
+ 'oz' => 5.00000000000000E-01,
+ 'cup' => 6.25000000000000E-02,
+ 'pt' => 3.12500000000000E-02,
+ 'us_pt' => 3.12500000000000E-02,
+ 'uk_pt' => 2.60267555046588E-02,
+ 'qt' => 1.56250000000000E-02,
+ 'gal' => 3.90625000000000E-03,
+ 'l' => 1.47899822520213E-02,
+ 'lt' => 1.47899822520213E-02,
+ ),
+ 'oz' => array(
+ 'tsp' => 6.00000000000000E+00,
+ 'tbs' => 2.00000000000000E+00,
+ 'oz' => 1.0,
+ 'cup' => 1.25000000000000E-01,
+ 'pt' => 6.25000000000000E-02,
+ 'us_pt' => 6.25000000000000E-02,
+ 'uk_pt' => 5.20535110093176E-02,
+ 'qt' => 3.12500000000000E-02,
+ 'gal' => 7.81250000000000E-03,
+ 'l' => 2.95799645040426E-02,
+ 'lt' => 2.95799645040426E-02,
+ ),
+ 'cup' => array(
+ 'tsp' => 4.80000000000000E+01,
+ 'tbs' => 1.60000000000000E+01,
+ 'oz' => 8.00000000000000E+00,
+ 'cup' => 1.0,
+ 'pt' => 5.00000000000000E-01,
+ 'us_pt' => 5.00000000000000E-01,
+ 'uk_pt' => 4.16428088074541E-01,
+ 'qt' => 2.50000000000000E-01,
+ 'gal' => 6.25000000000000E-02,
+ 'l' => 2.36639716032341E-01,
+ 'lt' => 2.36639716032341E-01,
+ ),
+ 'pt' => array(
+ 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01,
+ ),
+ 'us_pt' => array(
+ 'tsp' => 9.60000000000000E+01,
+ 'tbs' => 3.20000000000000E+01,
+ 'oz' => 1.60000000000000E+01,
+ 'cup' => 2.00000000000000E+00,
+ 'pt' => 1.0,
+ 'us_pt' => 1.0,
+ 'uk_pt' => 8.32856176149081E-01,
+ 'qt' => 5.00000000000000E-01,
+ 'gal' => 1.25000000000000E-01,
+ 'l' => 4.73279432064682E-01,
+ 'lt' => 4.73279432064682E-01,
+ ),
+ 'uk_pt' => array(
+ 'tsp' => 1.15266000000000E+02,
+ 'tbs' => 3.84220000000000E+01,
+ 'oz' => 1.92110000000000E+01,
+ 'cup' => 2.40137500000000E+00,
+ 'pt' => 1.20068750000000E+00,
+ 'us_pt' => 1.20068750000000E+00,
+ 'uk_pt' => 1.0,
+ 'qt' => 6.00343750000000E-01,
+ 'gal' => 1.50085937500000E-01,
+ 'l' => 5.68260698087162E-01,
+ 'lt' => 5.68260698087162E-01,
+ ),
+ 'qt' => array(
+ 'tsp' => 1.92000000000000E+02,
+ 'tbs' => 6.40000000000000E+01,
+ 'oz' => 3.20000000000000E+01,
+ 'cup' => 4.00000000000000E+00,
+ 'pt' => 2.00000000000000E+00,
+ 'us_pt' => 2.00000000000000E+00,
+ 'uk_pt' => 1.66571235229816E+00,
+ 'qt' => 1.0,
+ 'gal' => 2.50000000000000E-01,
+ 'l' => 9.46558864129363E-01,
+ 'lt' => 9.46558864129363E-01,
+ ),
+ 'gal' => array(
+ 'tsp' => 7.68000000000000E+02,
+ 'tbs' => 2.56000000000000E+02,
+ 'oz' => 1.28000000000000E+02,
+ 'cup' => 1.60000000000000E+01,
+ 'pt' => 8.00000000000000E+00,
+ 'us_pt' => 8.00000000000000E+00,
+ 'uk_pt' => 6.66284940919265E+00,
+ 'qt' => 4.00000000000000E+00,
+ 'gal' => 1.0,
+ 'l' => 3.78623545651745E+00,
+ 'lt' => 3.78623545651745E+00,
+ ),
+ 'l' => array(
+ 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0,
+ ),
+ 'lt' => array(
+ 'tsp' => 2.02840000000000E+02,
+ 'tbs' => 6.76133333333333E+01,
+ 'oz' => 3.38066666666667E+01,
+ 'cup' => 4.22583333333333E+00,
+ 'pt' => 2.11291666666667E+00,
+ 'us_pt' => 2.11291666666667E+00,
+ 'uk_pt' => 1.75975569552166E+00,
+ 'qt' => 1.05645833333333E+00,
+ 'gal' => 2.64114583333333E-01,
+ 'l' => 1.0,
+ 'lt' => 1.0,
+ ),
+ ),
+ );
-/** PHPExcel root directory */
-if (!defined('PHPEXCEL_ROOT')) {
- /**
- * @ignore
- */
- define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
- require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
+ /**
+ * parseComplex
+ *
+ * Parses a complex number into its real and imaginary parts, and an I or J suffix
+ *
+ * @param string $complexNumber The complex number
+ * @return string[] Indexed on "real", "imaginary" and "suffix"
+ */
+ public static function parseComplex($complexNumber)
+ {
+ $workString = (string) $complexNumber;
+
+ $realNumber = $imaginary = 0;
+ // Extract the suffix, if there is one
+ $suffix = substr($workString, -1);
+ if (!is_numeric($suffix)) {
+ $workString = substr($workString, 0, -1);
+ } else {
+ $suffix = '';
+ }
+
+ // Split the input into its Real and Imaginary components
+ $leadingSign = 0;
+ if (strlen($workString) > 0) {
+ $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0;
+ }
+ $power = '';
+ $realNumber = strtok($workString, '+-');
+ if (strtoupper(substr($realNumber, -1)) == 'E') {
+ $power = strtok('+-');
+ ++$leadingSign;
+ }
+
+ $realNumber = substr($workString, 0, strlen($realNumber)+strlen($power)+$leadingSign);
+
+ if ($suffix != '') {
+ $imaginary = substr($workString, strlen($realNumber));
+
+ if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) {
+ $imaginary = $realNumber.'1';
+ $realNumber = '0';
+ } elseif ($imaginary == '') {
+ $imaginary = $realNumber;
+ $realNumber = '0';
+ } elseif (($imaginary == '+') || ($imaginary == '-')) {
+ $imaginary .= '1';
+ }
+ }
+
+ return array(
+ 'real' => $realNumber,
+ 'imaginary' => $imaginary,
+ 'suffix' => $suffix
+ );
+ }
+
+
+ /**
+ * Cleans the leading characters in a complex number string
+ *
+ * @param string $complexNumber The complex number to clean
+ * @return string The "cleaned" complex number
+ */
+ private static function cleanComplex($complexNumber)
+ {
+ if ($complexNumber{0} == '+') {
+ $complexNumber = substr($complexNumber, 1);
+ }
+ if ($complexNumber{0} == '0') {
+ $complexNumber = substr($complexNumber, 1);
+ }
+ if ($complexNumber{0} == '.') {
+ $complexNumber = '0'.$complexNumber;
+ }
+ if ($complexNumber{0} == '+') {
+ $complexNumber = substr($complexNumber, 1);
+ }
+ return $complexNumber;
+ }
+
+ /**
+ * Formats a number base string value with leading zeroes
+ *
+ * @param string $xVal The "number" to pad
+ * @param integer $places The length that we want to pad this value
+ * @return string The padded "number"
+ */
+ private static function nbrConversionFormat($xVal, $places)
+ {
+ if (!is_null($places)) {
+ if (strlen($xVal) <= $places) {
+ return substr(str_pad($xVal, $places, '0', STR_PAD_LEFT), -10);
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+
+ return substr($xVal, -10);
+ }
+
+ /**
+ * BESSELI
+ *
+ * Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated
+ * for purely imaginary arguments
+ *
+ * Excel Function:
+ * BESSELI(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELI returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function.
+ * If ord is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELI returns the #VALUE! error value.
+ * If $ord < 0, BESSELI returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELI($x, $ord)
+ {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ $ord = floor($ord);
+ if ($ord < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (abs($x) <= 30) {
+ $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
+ $ordK = 1;
+ $fSqrX = ($x * $x) / 4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($ordK * ($ordK + $ord));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
+ } else {
+ $f_2_PI = 2 * M_PI;
+
+ $fXAbs = abs($x);
+ $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs);
+ if (($ord & 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * BESSELJ
+ *
+ * Returns the Bessel function
+ *
+ * Excel Function:
+ * BESSELJ(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELJ returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELJ returns the #VALUE! error value.
+ * If $ord < 0, BESSELJ returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELJ($x, $ord)
+ {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ $ord = floor($ord);
+ if ($ord < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $fResult = 0;
+ if (abs($x) <= 30) {
+ $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
+ $ordK = 1;
+ $fSqrX = ($x * $x) / -4;
+ do {
+ $fTerm *= $fSqrX;
+ $fTerm /= ($ordK * ($ordK + $ord));
+ $fResult += $fTerm;
+ } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
+ } else {
+ $f_PI_DIV_2 = M_PI / 2;
+ $f_PI_DIV_4 = M_PI / 4;
+
+ $fXAbs = abs($x);
+ $fResult = sqrt(M_2DIVPI / $fXAbs) * cos($fXAbs - $ord * $f_PI_DIV_2 - $f_PI_DIV_4);
+ if (($ord & 1) && ($x < 0)) {
+ $fResult = -$fResult;
+ }
+ }
+ return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ private static function besselK0($fNum)
+ {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = ($fNum2 * $fNum2);
+ $fRet = -log($fNum2) * self::BESSELI($fNum, 0) +
+ (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y *
+ (0.10750e-3 + $y * 0.74e-5))))));
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y *
+ (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3))))));
+ }
+ return $fRet;
+ }
+
+
+ private static function besselK1($fNum)
+ {
+ if ($fNum <= 2) {
+ $fNum2 = $fNum * 0.5;
+ $y = ($fNum2 * $fNum2);
+ $fRet = log($fNum2) * self::BESSELI($fNum, 1) +
+ (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y *
+ (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum;
+ } else {
+ $y = 2 / $fNum;
+ $fRet = exp(-$fNum) / sqrt($fNum) *
+ (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y *
+ (0.325614e-2 + $y * (-0.68245e-3)))))));
+ }
+ return $fRet;
+ }
+
+
+ /**
+ * BESSELK
+ *
+ * Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated
+ * for purely imaginary arguments.
+ *
+ * Excel Function:
+ * BESSELK(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELK returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
+ * If $ord < 0, BESSELK returns the #NUM! error value.
+ * @return float
+ *
+ */
+ public static function BESSELK($x, $ord)
+ {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if (($ord < 0) || ($x == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch (floor($ord)) {
+ case 0:
+ return self::besselK0($x);
+ case 1:
+ return self::besselK1($x);
+ default:
+ $fTox = 2 / $x;
+ $fBkm = self::besselK0($x);
+ $fBk = self::besselK1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fBkp = $fBkm + $n * $fTox * $fBk;
+ $fBkm = $fBk;
+ $fBk = $fBkp;
+ }
+ }
+ return (is_nan($fBk)) ? PHPExcel_Calculation_Functions::NaN() : $fBk;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ private static function besselY0($fNum)
+ {
+ if ($fNum < 8.0) {
+ $y = ($fNum * $fNum);
+ $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733))));
+ $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y))));
+ $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum);
+ } else {
+ $z = 8.0 / $fNum;
+ $y = ($z * $z);
+ $xx = $fNum - 0.785398164;
+ $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6)));
+ $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7))));
+ $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2);
+ }
+ return $fRet;
+ }
+
+
+ private static function besselY1($fNum)
+ {
+ if ($fNum < 8.0) {
+ $y = ($fNum * $fNum);
+ $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y *
+ (-0.4237922726e7 + $y * 0.8511937935e4)))));
+ $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y *
+ (0.1020426050e6 + $y * (0.3549632885e3 + $y)))));
+ $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum);
+ } else {
+ $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491);
+ }
+ return $fRet;
+ }
+
+
+ /**
+ * BESSELY
+ *
+ * Returns the Bessel function, which is also called the Weber function or the Neumann function.
+ *
+ * Excel Function:
+ * BESSELY(x,ord)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $x The value at which to evaluate the function.
+ * If x is nonnumeric, BESSELK returns the #VALUE! error value.
+ * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
+ * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
+ * If $ord < 0, BESSELK returns the #NUM! error value.
+ *
+ * @return float
+ */
+ public static function BESSELY($x, $ord)
+ {
+ $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
+
+ if ((is_numeric($x)) && (is_numeric($ord))) {
+ if (($ord < 0) || ($x == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch (floor($ord)) {
+ case 0:
+ return self::besselY0($x);
+ case 1:
+ return self::besselY1($x);
+ default:
+ $fTox = 2 / $x;
+ $fBym = self::besselY0($x);
+ $fBy = self::besselY1($x);
+ for ($n = 1; $n < $ord; ++$n) {
+ $fByp = $n * $fTox * $fBy - $fBym;
+ $fBym = $fBy;
+ $fBy = $fByp;
+ }
+ }
+ return (is_nan($fBy)) ? PHPExcel_Calculation_Functions::NaN() : $fBy;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * BINTODEC
+ *
+ * Return a binary value as decimal.
+ *
+ * Excel Function:
+ * BIN2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2DEC returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTODEC($x)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ $x = substr($x, -9);
+ return '-'.(512-bindec($x));
+ }
+ return bindec($x);
+ }
+
+
+ /**
+ * BINTOHEX
+ *
+ * Return a binary value as hex.
+ *
+ * Excel Function:
+ * BIN2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2HEX returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, BIN2HEX uses the
+ * minimum number of characters necessary. Places is useful for padding the
+ * return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, BIN2HEX returns the #VALUE! error value.
+ * If places is negative, BIN2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTOHEX($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('F', 8).substr(strtoupper(dechex(bindec(substr($x, -9)))), -2);
+ }
+ $hexVal = (string) strtoupper(dechex(bindec($x)));
+
+ return self::nbrConversionFormat($hexVal, $places);
+ }
+
+
+ /**
+ * BINTOOCT
+ *
+ * Return a binary value as octal.
+ *
+ * Excel Function:
+ * BIN2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The binary number (as a string) that you want to convert. The number
+ * cannot contain more than 10 characters (10 bits). The most significant
+ * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
+ * Negative numbers are represented using two's-complement notation.
+ * If number is not a valid binary number, or if number contains more than
+ * 10 characters (10 bits), BIN2OCT returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, BIN2OCT uses the
+ * minimum number of characters necessary. Places is useful for padding the
+ * return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, BIN2OCT returns the #VALUE! error value.
+ * If places is negative, BIN2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function BINTOOCT($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $x = floor($x);
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[01]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (strlen($x) > 10) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (strlen($x) == 10) {
+ // Two's Complement
+ return str_repeat('7', 7).substr(strtoupper(decoct(bindec(substr($x, -9)))), -3);
+ }
+ $octVal = (string) decoct(bindec($x));
+
+ return self::nbrConversionFormat($octVal, $places);
+ }
+
+
+ /**
+ * DECTOBIN
+ *
+ * Return a decimal value as binary.
+ *
+ * Excel Function:
+ * DEC2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * valid place values are ignored and DEC2BIN returns a 10-character
+ * (10-bit) binary number in which the most significant bit is the sign
+ * bit. The remaining 9 bits are magnitude bits. Negative numbers are
+ * represented using two's-complement notation.
+ * If number < -512 or if number > 511, DEC2BIN returns the #NUM! error
+ * value.
+ * If number is nonnumeric, DEC2BIN returns the #VALUE! error value.
+ * If DEC2BIN requires more than places characters, it returns the #NUM!
+ * error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2BIN uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2BIN returns the #VALUE! error value.
+ * If places is zero or negative, DEC2BIN returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOBIN($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = decbin($x);
+ if (strlen($r) == 32) {
+ // Two's Complement
+ $r = substr($r, -10);
+ } elseif (strlen($r) > 11) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::nbrConversionFormat($r, $places);
+ }
+
+
+ /**
+ * DECTOHEX
+ *
+ * Return a decimal value as hex.
+ *
+ * Excel Function:
+ * DEC2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * places is ignored and DEC2HEX returns a 10-character (40-bit)
+ * hexadecimal number in which the most significant bit is the sign
+ * bit. The remaining 39 bits are magnitude bits. Negative numbers
+ * are represented using two's-complement notation.
+ * If number < -549,755,813,888 or if number > 549,755,813,887,
+ * DEC2HEX returns the #NUM! error value.
+ * If number is nonnumeric, DEC2HEX returns the #VALUE! error value.
+ * If DEC2HEX requires more than places characters, it returns the
+ * #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2HEX uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2HEX returns the #VALUE! error value.
+ * If places is zero or negative, DEC2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOHEX($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = strtoupper(dechex($x));
+ if (strlen($r) == 8) {
+ // Two's Complement
+ $r = 'FF'.$r;
+ }
+
+ return self::nbrConversionFormat($r, $places);
+ }
+
+
+ /**
+ * DECTOOCT
+ *
+ * Return an decimal value as octal.
+ *
+ * Excel Function:
+ * DEC2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The decimal integer you want to convert. If number is negative,
+ * places is ignored and DEC2OCT returns a 10-character (30-bit)
+ * octal number in which the most significant bit is the sign bit.
+ * The remaining 29 bits are magnitude bits. Negative numbers are
+ * represented using two's-complement notation.
+ * If number < -536,870,912 or if number > 536,870,911, DEC2OCT
+ * returns the #NUM! error value.
+ * If number is nonnumeric, DEC2OCT returns the #VALUE! error value.
+ * If DEC2OCT requires more than places characters, it returns the
+ * #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, DEC2OCT uses
+ * the minimum number of characters necessary. Places is useful for
+ * padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, DEC2OCT returns the #VALUE! error value.
+ * If places is zero or negative, DEC2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function DECTOOCT($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ $x = (int) $x;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) floor($x);
+ $r = decoct($x);
+ if (strlen($r) == 11) {
+ // Two's Complement
+ $r = substr($r, -10);
+ }
+
+ return self::nbrConversionFormat($r, $places);
+ }
+
+
+ /**
+ * HEXTOBIN
+ *
+ * Return a hex value as binary.
+ *
+ * Excel Function:
+ * HEX2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x the hexadecimal number you want to convert. Number cannot
+ * contain more than 10 characters. The most significant bit of
+ * number is the sign bit (40th bit from the right). The remaining
+ * 9 bits are magnitude bits. Negative numbers are represented
+ * using two's-complement notation.
+ * If number is negative, HEX2BIN ignores places and returns a
+ * 10-character binary number.
+ * If number is negative, it cannot be less than FFFFFFFE00, and
+ * if number is positive, it cannot be greater than 1FF.
+ * If number is not a valid hexadecimal number, HEX2BIN returns
+ * the #NUM! error value.
+ * If HEX2BIN requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted,
+ * HEX2BIN uses the minimum number of characters necessary. Places
+ * is useful for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, HEX2BIN returns the #VALUE! error value.
+ * If places is negative, HEX2BIN returns the #NUM! error value.
+ * @return string
+ */
+ public static function HEXTOBIN($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $binVal = decbin(hexdec($x));
+
+ return substr(self::nbrConversionFormat($binVal, $places), -10);
+ }
+
+
+ /**
+ * HEXTODEC
+ *
+ * Return a hex value as decimal.
+ *
+ * Excel Function:
+ * HEX2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The hexadecimal number you want to convert. This number cannot
+ * contain more than 10 characters (40 bits). The most significant
+ * bit of number is the sign bit. The remaining 39 bits are magnitude
+ * bits. Negative numbers are represented using two's-complement
+ * notation.
+ * If number is not a valid hexadecimal number, HEX2DEC returns the
+ * #NUM! error value.
+ * @return string
+ */
+ public static function HEXTODEC($x)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return hexdec($x);
+ }
+
+
+ /**
+ * HEXTOOCT
+ *
+ * Return a hex value as octal.
+ *
+ * Excel Function:
+ * HEX2OCT(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The hexadecimal number you want to convert. Number cannot
+ * contain more than 10 characters. The most significant bit of
+ * number is the sign bit. The remaining 39 bits are magnitude
+ * bits. Negative numbers are represented using two's-complement
+ * notation.
+ * If number is negative, HEX2OCT ignores places and returns a
+ * 10-character octal number.
+ * If number is negative, it cannot be less than FFE0000000, and
+ * if number is positive, it cannot be greater than 1FFFFFFF.
+ * If number is not a valid hexadecimal number, HEX2OCT returns
+ * the #NUM! error value.
+ * If HEX2OCT requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, HEX2OCT
+ * uses the minimum number of characters necessary. Places is
+ * useful for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, HEX2OCT returns the #VALUE! error
+ * value.
+ * If places is negative, HEX2OCT returns the #NUM! error value.
+ * @return string
+ */
+ public static function HEXTOOCT($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $octVal = decoct(hexdec($x));
+
+ return self::nbrConversionFormat($octVal, $places);
+ } // function HEXTOOCT()
+
+
+ /**
+ * OCTTOBIN
+ *
+ * Return an octal value as binary.
+ *
+ * Excel Function:
+ * OCT2BIN(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not
+ * contain more than 10 characters. The most significant
+ * bit of number is the sign bit. The remaining 29 bits
+ * are magnitude bits. Negative numbers are represented
+ * using two's-complement notation.
+ * If number is negative, OCT2BIN ignores places and returns
+ * a 10-character binary number.
+ * If number is negative, it cannot be less than 7777777000,
+ * and if number is positive, it cannot be greater than 777.
+ * If number is not a valid octal number, OCT2BIN returns
+ * the #NUM! error value.
+ * If OCT2BIN requires more than places characters, it
+ * returns the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted,
+ * OCT2BIN uses the minimum number of characters necessary.
+ * Places is useful for padding the return value with
+ * leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, OCT2BIN returns the #VALUE!
+ * error value.
+ * If places is negative, OCT2BIN returns the #NUM! error
+ * value.
+ * @return string
+ */
+ public static function OCTTOBIN($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $r = decbin(octdec($x));
+
+ return self::nbrConversionFormat($r, $places);
+ }
+
+
+ /**
+ * OCTTODEC
+ *
+ * Return an octal value as decimal.
+ *
+ * Excel Function:
+ * OCT2DEC(x)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not contain
+ * more than 10 octal characters (30 bits). The most significant
+ * bit of number is the sign bit. The remaining 29 bits are
+ * magnitude bits. Negative numbers are represented using
+ * two's-complement notation.
+ * If number is not a valid octal number, OCT2DEC returns the
+ * #NUM! error value.
+ * @return string
+ */
+ public static function OCTTODEC($x)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return octdec($x);
+ }
+
+
+ /**
+ * OCTTOHEX
+ *
+ * Return an octal value as hex.
+ *
+ * Excel Function:
+ * OCT2HEX(x[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $x The octal number you want to convert. Number may not contain
+ * more than 10 octal characters (30 bits). The most significant
+ * bit of number is the sign bit. The remaining 29 bits are
+ * magnitude bits. Negative numbers are represented using
+ * two's-complement notation.
+ * If number is negative, OCT2HEX ignores places and returns a
+ * 10-character hexadecimal number.
+ * If number is not a valid octal number, OCT2HEX returns the
+ * #NUM! error value.
+ * If OCT2HEX requires more than places characters, it returns
+ * the #NUM! error value.
+ * @param integer $places The number of characters to use. If places is omitted, OCT2HEX
+ * uses the minimum number of characters necessary. Places is useful
+ * for padding the return value with leading 0s (zeros).
+ * If places is not an integer, it is truncated.
+ * If places is nonnumeric, OCT2HEX returns the #VALUE! error value.
+ * If places is negative, OCT2HEX returns the #NUM! error value.
+ * @return string
+ */
+ public static function OCTTOHEX($x, $places = null)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
+
+ if (is_bool($x)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $x = (string) $x;
+ if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $hexVal = strtoupper(dechex(octdec($x)));
+
+ return self::nbrConversionFormat($hexVal, $places);
+ }
+
+
+ /**
+ * COMPLEX
+ *
+ * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.
+ *
+ * Excel Function:
+ * COMPLEX(realNumber,imaginary[,places])
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param float $realNumber The real coefficient of the complex number.
+ * @param float $imaginary The imaginary coefficient of the complex number.
+ * @param string $suffix The suffix for the imaginary component of the complex number.
+ * If omitted, the suffix is assumed to be "i".
+ * @return string
+ */
+ public static function COMPLEX($realNumber = 0.0, $imaginary = 0.0, $suffix = 'i')
+ {
+ $realNumber = (is_null($realNumber)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
+ $imaginary = (is_null($imaginary)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($imaginary);
+ $suffix = (is_null($suffix)) ? 'i' : PHPExcel_Calculation_Functions::flattenSingleValue($suffix);
+
+ if (((is_numeric($realNumber)) && (is_numeric($imaginary))) &&
+ (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) {
+ $realNumber = (float) $realNumber;
+ $imaginary = (float) $imaginary;
+
+ if ($suffix == '') {
+ $suffix = 'i';
+ }
+ if ($realNumber == 0.0) {
+ if ($imaginary == 0.0) {
+ return (string) '0';
+ } elseif ($imaginary == 1.0) {
+ return (string) $suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) '-'.$suffix;
+ }
+ return (string) $imaginary.$suffix;
+ } elseif ($imaginary == 0.0) {
+ return (string) $realNumber;
+ } elseif ($imaginary == 1.0) {
+ return (string) $realNumber.'+'.$suffix;
+ } elseif ($imaginary == -1.0) {
+ return (string) $realNumber.'-'.$suffix;
+ }
+ if ($imaginary > 0) {
+ $imaginary = (string) '+'.$imaginary;
+ }
+ return (string) $realNumber.$imaginary.$suffix;
+ }
+
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * IMAGINARY
+ *
+ * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMAGINARY(complexNumber)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $complexNumber The complex number for which you want the imaginary
+ * coefficient.
+ * @return float
+ */
+ public static function IMAGINARY($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+ return $parsedComplex['imaginary'];
+ }
+
+
+ /**
+ * IMREAL
+ *
+ * Returns the real coefficient of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMREAL(complexNumber)
+ *
+ * @access public
+ * @category Engineering Functions
+ * @param string $complexNumber The complex number for which you want the real coefficient.
+ * @return float
+ */
+ public static function IMREAL($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+ return $parsedComplex['real'];
+ }
+
+
+ /**
+ * IMABS
+ *
+ * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMABS(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the absolute value.
+ * @return float
+ */
+ public static function IMABS($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ return sqrt(
+ ($parsedComplex['real'] * $parsedComplex['real']) +
+ ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])
+ );
+ }
+
+
+ /**
+ * IMARGUMENT
+ *
+ * Returns the argument theta of a complex number, i.e. the angle in radians from the real
+ * axis to the representation of the number in polar coordinates.
+ *
+ * Excel Function:
+ * IMARGUMENT(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the argument theta.
+ * @return float
+ */
+ public static function IMARGUMENT($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if ($parsedComplex['real'] == 0.0) {
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return 0.0;
+ } elseif ($parsedComplex['imaginary'] < 0.0) {
+ return M_PI / -2;
+ } else {
+ return M_PI / 2;
+ }
+ } elseif ($parsedComplex['real'] > 0.0) {
+ return atan($parsedComplex['imaginary'] / $parsedComplex['real']);
+ } elseif ($parsedComplex['imaginary'] < 0.0) {
+ return 0 - (M_PI - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real'])));
+ } else {
+ return M_PI - atan($parsedComplex['imaginary'] / abs($parsedComplex['real']));
+ }
+ }
+
+
+ /**
+ * IMCONJUGATE
+ *
+ * Returns the complex conjugate of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMCONJUGATE(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the conjugate.
+ * @return string
+ */
+ public static function IMCONJUGATE($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return $parsedComplex['real'];
+ } else {
+ return self::cleanComplex(
+ self::COMPLEX(
+ $parsedComplex['real'],
+ 0 - $parsedComplex['imaginary'],
+ $parsedComplex['suffix']
+ )
+ );
+ }
+ }
+
+
+ /**
+ * IMCOS
+ *
+ * Returns the cosine of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMCOS(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the cosine.
+ * @return string|float
+ */
+ public static function IMCOS($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return cos($parsedComplex['real']);
+ } else {
+ return self::IMCONJUGATE(
+ self::COMPLEX(
+ cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']),
+ sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']),
+ $parsedComplex['suffix']
+ )
+ );
+ }
+ }
+
+
+ /**
+ * IMSIN
+ *
+ * Returns the sine of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSIN(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the sine.
+ * @return string|float
+ */
+ public static function IMSIN($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if ($parsedComplex['imaginary'] == 0.0) {
+ return sin($parsedComplex['real']);
+ } else {
+ return self::COMPLEX(
+ sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']),
+ cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']),
+ $parsedComplex['suffix']
+ );
+ }
+ }
+
+
+ /**
+ * IMSQRT
+ *
+ * Returns the square root of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSQRT(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the square root.
+ * @return string
+ */
+ public static function IMSQRT($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ $theta = self::IMARGUMENT($complexNumber);
+ $d1 = cos($theta / 2);
+ $d2 = sin($theta / 2);
+ $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($d1 * $r, $d2 * $r);
+ } else {
+ return self::COMPLEX($d1 * $r, $d2 * $r, $parsedComplex['suffix']);
+ }
+ }
+
+
+ /**
+ * IMLN
+ *
+ * Returns the natural logarithm of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLN(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the natural logarithm.
+ * @return string
+ */
+ public static function IMLN($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
+ $t = self::IMARGUMENT($complexNumber);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($logR, $t);
+ } else {
+ return self::COMPLEX($logR, $t, $parsedComplex['suffix']);
+ }
+ }
+
+
+ /**
+ * IMLOG10
+ *
+ * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLOG10(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the common logarithm.
+ * @return string
+ */
+ public static function IMLOG10($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log10($parsedComplex['real']);
+ }
+
+ return self::IMPRODUCT(log10(EULER), self::IMLN($complexNumber));
+ }
+
+
+ /**
+ * IMLOG2
+ *
+ * Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMLOG2(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the base-2 logarithm.
+ * @return string
+ */
+ public static function IMLOG2($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return log($parsedComplex['real'], 2);
+ }
+
+ return self::IMPRODUCT(log(EULER, 2), self::IMLN($complexNumber));
+ }
+
+
+ /**
+ * IMEXP
+ *
+ * Returns the exponential of a complex number in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMEXP(complexNumber)
+ *
+ * @param string $complexNumber The complex number for which you want the exponential.
+ * @return string
+ */
+ public static function IMEXP($complexNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
+ return '1';
+ }
+
+ $e = exp($parsedComplex['real']);
+ $eX = $e * cos($parsedComplex['imaginary']);
+ $eY = $e * sin($parsedComplex['imaginary']);
+
+ if ($parsedComplex['suffix'] == '') {
+ return self::COMPLEX($eX, $eY);
+ } else {
+ return self::COMPLEX($eX, $eY, $parsedComplex['suffix']);
+ }
+ }
+
+
+ /**
+ * IMPOWER
+ *
+ * Returns a complex number in x + yi or x + yj text format raised to a power.
+ *
+ * Excel Function:
+ * IMPOWER(complexNumber,realNumber)
+ *
+ * @param string $complexNumber The complex number you want to raise to a power.
+ * @param float $realNumber The power to which you want to raise the complex number.
+ * @return string
+ */
+ public static function IMPOWER($complexNumber, $realNumber)
+ {
+ $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
+ $realNumber = PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
+
+ if (!is_numeric($realNumber)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $parsedComplex = self::parseComplex($complexNumber);
+
+ $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
+ $rPower = pow($r, $realNumber);
+ $theta = self::IMARGUMENT($complexNumber) * $realNumber;
+ if ($theta == 0) {
+ return 1;
+ } elseif ($parsedComplex['imaginary'] == 0.0) {
+ return self::COMPLEX($rPower * cos($theta), $rPower * sin($theta), $parsedComplex['suffix']);
+ } else {
+ return self::COMPLEX($rPower * cos($theta), $rPower * sin($theta), $parsedComplex['suffix']);
+ }
+ }
+
+
+ /**
+ * IMDIV
+ *
+ * Returns the quotient of two complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMDIV(complexDividend,complexDivisor)
+ *
+ * @param string $complexDividend The complex numerator or dividend.
+ * @param string $complexDivisor The complex denominator or divisor.
+ * @return string
+ */
+ public static function IMDIV($complexDividend, $complexDivisor)
+ {
+ $complexDividend = PHPExcel_Calculation_Functions::flattenSingleValue($complexDividend);
+ $complexDivisor = PHPExcel_Calculation_Functions::flattenSingleValue($complexDivisor);
+
+ $parsedComplexDividend = self::parseComplex($complexDividend);
+ $parsedComplexDivisor = self::parseComplex($complexDivisor);
+
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') &&
+ ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) {
+ $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix'];
+ }
+
+ $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']);
+ $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']);
+ $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']);
+
+ $r = $d1 / $d3;
+ $i = $d2 / $d3;
+
+ if ($i > 0.0) {
+ return self::cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']);
+ } elseif ($i < 0.0) {
+ return self::cleanComplex($r.$i.$parsedComplexDivisor['suffix']);
+ } else {
+ return $r;
+ }
+ }
+
+
+ /**
+ * IMSUB
+ *
+ * Returns the difference of two complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSUB(complexNumber1,complexNumber2)
+ *
+ * @param string $complexNumber1 The complex number from which to subtract complexNumber2.
+ * @param string $complexNumber2 The complex number to subtract from complexNumber1.
+ * @return string
+ */
+ public static function IMSUB($complexNumber1, $complexNumber2)
+ {
+ $complexNumber1 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber1);
+ $complexNumber2 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber2);
+
+ $parsedComplex1 = self::parseComplex($complexNumber1);
+ $parsedComplex2 = self::parseComplex($complexNumber2);
+
+ if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) &&
+ ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) {
+ $parsedComplex1['suffix'] = $parsedComplex2['suffix'];
+ }
+
+ $d1 = $parsedComplex1['real'] - $parsedComplex2['real'];
+ $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary'];
+
+ return self::COMPLEX($d1, $d2, $parsedComplex1['suffix']);
+ }
+
+
+ /**
+ * IMSUM
+ *
+ * Returns the sum of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMSUM(complexNumber[,complexNumber[,...]])
+ *
+ * @param string $complexNumber,... Series of complex numbers to add
+ * @return string
+ */
+ public static function IMSUM()
+ {
+ // Return value
+ $returnValue = self::parseComplex('0');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::parseComplex($arg);
+
+ if ($activeSuffix == '') {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $returnValue['real'] += $parsedComplex['real'];
+ $returnValue['imaginary'] += $parsedComplex['imaginary'];
+ }
+
+ if ($returnValue['imaginary'] == 0.0) {
+ $activeSuffix = '';
+ }
+ return self::COMPLEX($returnValue['real'], $returnValue['imaginary'], $activeSuffix);
+ }
+
+
+ /**
+ * IMPRODUCT
+ *
+ * Returns the product of two or more complex numbers in x + yi or x + yj text format.
+ *
+ * Excel Function:
+ * IMPRODUCT(complexNumber[,complexNumber[,...]])
+ *
+ * @param string $complexNumber,... Series of complex numbers to multiply
+ * @return string
+ */
+ public static function IMPRODUCT()
+ {
+ // Return value
+ $returnValue = self::parseComplex('1');
+ $activeSuffix = '';
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ foreach ($aArgs as $arg) {
+ $parsedComplex = self::parseComplex($arg);
+
+ $workValue = $returnValue;
+ if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) {
+ $activeSuffix = $parsedComplex['suffix'];
+ } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']);
+ $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']);
+ }
+
+ if ($returnValue['imaginary'] == 0.0) {
+ $activeSuffix = '';
+ }
+ return self::COMPLEX($returnValue['real'], $returnValue['imaginary'], $activeSuffix);
+ }
+
+
+ /**
+ * DELTA
+ *
+ * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.
+ * Use this function to filter a set of values. For example, by summing several DELTA
+ * functions you calculate the count of equal pairs. This function is also known as the
+ * Kronecker Delta function.
+ *
+ * Excel Function:
+ * DELTA(a[,b])
+ *
+ * @param float $a The first number.
+ * @param float $b The second number. If omitted, b is assumed to be zero.
+ * @return int
+ */
+ public static function DELTA($a, $b = 0)
+ {
+ $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
+ $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
+
+ return (int) ($a == $b);
+ }
+
+
+ /**
+ * GESTEP
+ *
+ * Excel Function:
+ * GESTEP(number[,step])
+ *
+ * Returns 1 if number >= step; returns 0 (zero) otherwise
+ * Use this function to filter a set of values. For example, by summing several GESTEP
+ * functions you calculate the count of values that exceed a threshold.
+ *
+ * @param float $number The value to test against step.
+ * @param float $step The threshold value.
+ * If you omit a value for step, GESTEP uses zero.
+ * @return int
+ */
+ public static function GESTEP($number, $step = 0)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $step = PHPExcel_Calculation_Functions::flattenSingleValue($step);
+
+ return (int) ($number >= $step);
+ }
+
+
+ //
+ // Private method to calculate the erf value
+ //
+ private static $twoSqrtPi = 1.128379167095512574;
+
+ public static function erfVal($x)
+ {
+ if (abs($x) > 2.2) {
+ return 1 - self::erfcVal($x);
+ }
+ $sum = $term = $x;
+ $xsqr = ($x * $x);
+ $j = 1;
+ do {
+ $term *= $xsqr / $j;
+ $sum -= $term / (2 * $j + 1);
+ ++$j;
+ $term *= $xsqr / $j;
+ $sum += $term / (2 * $j + 1);
+ ++$j;
+ if ($sum == 0.0) {
+ break;
+ }
+ } while (abs($term / $sum) > PRECISION);
+ return self::$twoSqrtPi * $sum;
+ }
+
+
+ /**
+ * ERF
+ *
+ * Returns the error function integrated between the lower and upper bound arguments.
+ *
+ * Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments,
+ * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
+ * improved, so that it can now calculate the function for both positive and negative ranges.
+ * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
+ *
+ * Excel Function:
+ * ERF(lower[,upper])
+ *
+ * @param float $lower lower bound for integrating ERF
+ * @param float $upper upper bound for integrating ERF.
+ * If omitted, ERF integrates between zero and lower_limit
+ * @return float
+ */
+ public static function ERF($lower, $upper = null)
+ {
+ $lower = PHPExcel_Calculation_Functions::flattenSingleValue($lower);
+ $upper = PHPExcel_Calculation_Functions::flattenSingleValue($upper);
+
+ if (is_numeric($lower)) {
+ if (is_null($upper)) {
+ return self::erfVal($lower);
+ }
+ if (is_numeric($upper)) {
+ return self::erfVal($upper) - self::erfVal($lower);
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ //
+ // Private method to calculate the erfc value
+ //
+ private static $oneSqrtPi = 0.564189583547756287;
+
+ private static function erfcVal($x)
+ {
+ if (abs($x) < 2.2) {
+ return 1 - self::erfVal($x);
+ }
+ if ($x < 0) {
+ return 2 - self::ERFC(-$x);
+ }
+ $a = $n = 1;
+ $b = $c = $x;
+ $d = ($x * $x) + 0.5;
+ $q1 = $q2 = $b / $d;
+ $t = 0;
+ do {
+ $t = $a * $n + $b * $x;
+ $a = $b;
+ $b = $t;
+ $t = $c * $n + $d * $x;
+ $c = $d;
+ $d = $t;
+ $n += 0.5;
+ $q1 = $q2;
+ $q2 = $b / $d;
+ } while ((abs($q1 - $q2) / $q2) > PRECISION);
+ return self::$oneSqrtPi * exp(-$x * $x) * $q2;
+ }
+
+
+ /**
+ * ERFC
+ *
+ * Returns the complementary ERF function integrated between x and infinity
+ *
+ * Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument,
+ * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
+ * improved, so that it can now calculate the function for both positive and negative x values.
+ * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
+ *
+ * Excel Function:
+ * ERFC(x)
+ *
+ * @param float $x The lower bound for integrating ERFC
+ * @return float
+ */
+ public static function ERFC($x)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+
+ if (is_numeric($x)) {
+ return self::erfcVal($x);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * getConversionGroups
+ * Returns a list of the different conversion groups for UOM conversions
+ *
+ * @return array
+ */
+ public static function getConversionGroups()
+ {
+ $conversionGroups = array();
+ foreach (self::$conversionUnits as $conversionUnit) {
+ $conversionGroups[] = $conversionUnit['Group'];
+ }
+ return array_merge(array_unique($conversionGroups));
+ }
+
+
+ /**
+ * getConversionGroupUnits
+ * Returns an array of units of measure, for a specified conversion group, or for all groups
+ *
+ * @param string $group The group whose units of measure you want to retrieve
+ * @return array
+ */
+ public static function getConversionGroupUnits($group = null)
+ {
+ $conversionGroups = array();
+ foreach (self::$conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = $conversionUnit;
+ }
+ }
+ return $conversionGroups;
+ }
+
+
+ /**
+ * getConversionGroupUnitDetails
+ *
+ * @param string $group The group whose units of measure you want to retrieve
+ * @return array
+ */
+ public static function getConversionGroupUnitDetails($group = null)
+ {
+ $conversionGroups = array();
+ foreach (self::$conversionUnits as $conversionUnit => $conversionGroup) {
+ if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
+ $conversionGroups[$conversionGroup['Group']][] = array(
+ 'unit' => $conversionUnit,
+ 'description' => $conversionGroup['Unit Name']
+ );
+ }
+ }
+ return $conversionGroups;
+ }
+
+
+ /**
+ * getConversionMultipliers
+ * Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
+ *
+ * @return array of mixed
+ */
+ public static function getConversionMultipliers()
+ {
+ return self::$conversionMultipliers;
+ }
+
+
+ /**
+ * CONVERTUOM
+ *
+ * Converts a number from one measurement system to another.
+ * For example, CONVERT can translate a table of distances in miles to a table of distances
+ * in kilometers.
+ *
+ * Excel Function:
+ * CONVERT(value,fromUOM,toUOM)
+ *
+ * @param float $value The value in fromUOM to convert.
+ * @param string $fromUOM The units for value.
+ * @param string $toUOM The units for the result.
+ *
+ * @return float
+ */
+ public static function CONVERTUOM($value, $fromUOM, $toUOM)
+ {
+ $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
+ $fromUOM = PHPExcel_Calculation_Functions::flattenSingleValue($fromUOM);
+ $toUOM = PHPExcel_Calculation_Functions::flattenSingleValue($toUOM);
+
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $fromMultiplier = 1.0;
+ if (isset(self::$conversionUnits[$fromUOM])) {
+ $unitGroup1 = self::$conversionUnits[$fromUOM]['Group'];
+ } else {
+ $fromMultiplier = substr($fromUOM, 0, 1);
+ $fromUOM = substr($fromUOM, 1);
+ if (isset(self::$conversionMultipliers[$fromMultiplier])) {
+ $fromMultiplier = self::$conversionMultipliers[$fromMultiplier]['multiplier'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ if ((isset(self::$conversionUnits[$fromUOM])) && (self::$conversionUnits[$fromUOM]['AllowPrefix'])) {
+ $unitGroup1 = self::$conversionUnits[$fromUOM]['Group'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ }
+ $value *= $fromMultiplier;
+
+ $toMultiplier = 1.0;
+ if (isset(self::$conversionUnits[$toUOM])) {
+ $unitGroup2 = self::$conversionUnits[$toUOM]['Group'];
+ } else {
+ $toMultiplier = substr($toUOM, 0, 1);
+ $toUOM = substr($toUOM, 1);
+ if (isset(self::$conversionMultipliers[$toMultiplier])) {
+ $toMultiplier = self::$conversionMultipliers[$toMultiplier]['multiplier'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ if ((isset(self::$conversionUnits[$toUOM])) && (self::$conversionUnits[$toUOM]['AllowPrefix'])) {
+ $unitGroup2 = self::$conversionUnits[$toUOM]['Group'];
+ } else {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ }
+ if ($unitGroup1 != $unitGroup2) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) {
+ // We've already factored $fromMultiplier into the value, so we need
+ // to reverse it again
+ return $value / $fromMultiplier;
+ } elseif ($unitGroup1 == 'Temperature') {
+ if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ return $value;
+ } else {
+ $value = (($value - 32) / 1.8);
+ if (($toUOM == 'K') || ($toUOM == 'kel')) {
+ $value += 273.15;
+ }
+ return $value;
+ }
+ } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) &&
+ (($toUOM == 'K') || ($toUOM == 'kel'))) {
+ return $value;
+ } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) &&
+ (($toUOM == 'C') || ($toUOM == 'cel'))) {
+ return $value;
+ }
+ if (($toUOM == 'F') || ($toUOM == 'fah')) {
+ if (($fromUOM == 'K') || ($fromUOM == 'kel')) {
+ $value -= 273.15;
+ }
+ return ($value * 1.8) + 32;
+ }
+ if (($toUOM == 'C') || ($toUOM == 'cel')) {
+ return $value - 273.15;
+ }
+ return $value + 273.15;
+ }
+ return ($value * self::$unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier;
+ }
}
-
-
-/** EULER */
-define('EULER', 2.71828182845904523536);
-
-
-/**
- * PHPExcel_Calculation_Engineering
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_Engineering {
-
- /**
- * Details of the Units of measure that can be used in CONVERTUOM()
- *
- * @var mixed[]
- */
- private static $_conversionUnits = array( 'g' => array( 'Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => True ),
- 'sg' => array( 'Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => False ),
- 'lbm' => array( 'Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => False ),
- 'u' => array( 'Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => True ),
- 'ozm' => array( 'Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => False ),
- 'm' => array( 'Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => True ),
- 'mi' => array( 'Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => False ),
- 'Nmi' => array( 'Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => False ),
- 'in' => array( 'Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => False ),
- 'ft' => array( 'Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => False ),
- 'yd' => array( 'Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => False ),
- 'ang' => array( 'Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => True ),
- 'Pica' => array( 'Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => False ),
- 'yr' => array( 'Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => False ),
- 'day' => array( 'Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => False ),
- 'hr' => array( 'Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => False ),
- 'mn' => array( 'Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => False ),
- 'sec' => array( 'Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => True ),
- 'Pa' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
- 'p' => array( 'Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => True ),
- 'atm' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
- 'at' => array( 'Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => True ),
- 'mmHg' => array( 'Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => True ),
- 'N' => array( 'Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => True ),
- 'dyn' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
- 'dy' => array( 'Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => True ),
- 'lbf' => array( 'Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => False ),
- 'J' => array( 'Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => True ),
- 'e' => array( 'Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => True ),
- 'c' => array( 'Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => True ),
- 'cal' => array( 'Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => True ),
- 'eV' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
- 'ev' => array( 'Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => True ),
- 'HPh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
- 'hh' => array( 'Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => False ),
- 'Wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
- 'wh' => array( 'Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => True ),
- 'flb' => array( 'Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => False ),
- 'BTU' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
- 'btu' => array( 'Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => False ),
- 'HP' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
- 'h' => array( 'Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => False ),
- 'W' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
- 'w' => array( 'Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => True ),
- 'T' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => True ),
- 'ga' => array( 'Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => True ),
- 'C' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
- 'cel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => False ),
- 'F' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
- 'fah' => array( 'Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => False ),
- 'K' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
- 'kel' => array( 'Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => False ),
- 'tsp' => array( 'Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => False ),
- 'tbs' => array( 'Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => False ),
- 'oz' => array( 'Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => False ),
- 'cup' => array( 'Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => False ),
- 'pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
- 'us_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => False ),
- 'uk_pt' => array( 'Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => False ),
- 'qt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => False ),
- 'gal' => array( 'Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => False ),
- 'l' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True ),
- 'lt' => array( 'Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => True )
- );
-
- /**
- * Details of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
- *
- * @var mixed[]
- */
- private static $_conversionMultipliers = array( 'Y' => array( 'multiplier' => 1E24, 'name' => 'yotta' ),
- 'Z' => array( 'multiplier' => 1E21, 'name' => 'zetta' ),
- 'E' => array( 'multiplier' => 1E18, 'name' => 'exa' ),
- 'P' => array( 'multiplier' => 1E15, 'name' => 'peta' ),
- 'T' => array( 'multiplier' => 1E12, 'name' => 'tera' ),
- 'G' => array( 'multiplier' => 1E9, 'name' => 'giga' ),
- 'M' => array( 'multiplier' => 1E6, 'name' => 'mega' ),
- 'k' => array( 'multiplier' => 1E3, 'name' => 'kilo' ),
- 'h' => array( 'multiplier' => 1E2, 'name' => 'hecto' ),
- 'e' => array( 'multiplier' => 1E1, 'name' => 'deka' ),
- 'd' => array( 'multiplier' => 1E-1, 'name' => 'deci' ),
- 'c' => array( 'multiplier' => 1E-2, 'name' => 'centi' ),
- 'm' => array( 'multiplier' => 1E-3, 'name' => 'milli' ),
- 'u' => array( 'multiplier' => 1E-6, 'name' => 'micro' ),
- 'n' => array( 'multiplier' => 1E-9, 'name' => 'nano' ),
- 'p' => array( 'multiplier' => 1E-12, 'name' => 'pico' ),
- 'f' => array( 'multiplier' => 1E-15, 'name' => 'femto' ),
- 'a' => array( 'multiplier' => 1E-18, 'name' => 'atto' ),
- 'z' => array( 'multiplier' => 1E-21, 'name' => 'zepto' ),
- 'y' => array( 'multiplier' => 1E-24, 'name' => 'yocto' )
- );
-
- /**
- * Details of the Units of measure conversion factors, organised by group
- *
- * @var mixed[]
- */
- private static $_unitConversions = array( 'Mass' => array( 'g' => array( 'g' => 1.0,
- 'sg' => 6.85220500053478E-05,
- 'lbm' => 2.20462291469134E-03,
- 'u' => 6.02217000000000E+23,
- 'ozm' => 3.52739718003627E-02
- ),
- 'sg' => array( 'g' => 1.45938424189287E+04,
- 'sg' => 1.0,
- 'lbm' => 3.21739194101647E+01,
- 'u' => 8.78866000000000E+27,
- 'ozm' => 5.14782785944229E+02
- ),
- 'lbm' => array( 'g' => 4.5359230974881148E+02,
- 'sg' => 3.10810749306493E-02,
- 'lbm' => 1.0,
- 'u' => 2.73161000000000E+26,
- 'ozm' => 1.60000023429410E+01
- ),
- 'u' => array( 'g' => 1.66053100460465E-24,
- 'sg' => 1.13782988532950E-28,
- 'lbm' => 3.66084470330684E-27,
- 'u' => 1.0,
- 'ozm' => 5.85735238300524E-26
- ),
- 'ozm' => array( 'g' => 2.83495152079732E+01,
- 'sg' => 1.94256689870811E-03,
- 'lbm' => 6.24999908478882E-02,
- 'u' => 1.70725600000000E+25,
- 'ozm' => 1.0
- )
- ),
- 'Distance' => array( 'm' => array( 'm' => 1.0,
- 'mi' => 6.21371192237334E-04,
- 'Nmi' => 5.39956803455724E-04,
- 'in' => 3.93700787401575E+01,
- 'ft' => 3.28083989501312E+00,
- 'yd' => 1.09361329797891E+00,
- 'ang' => 1.00000000000000E+10,
- 'Pica' => 2.83464566929116E+03
- ),
- 'mi' => array( 'm' => 1.60934400000000E+03,
- 'mi' => 1.0,
- 'Nmi' => 8.68976241900648E-01,
- 'in' => 6.33600000000000E+04,
- 'ft' => 5.28000000000000E+03,
- 'yd' => 1.76000000000000E+03,
- 'ang' => 1.60934400000000E+13,
- 'Pica' => 4.56191999999971E+06
- ),
- 'Nmi' => array( 'm' => 1.85200000000000E+03,
- 'mi' => 1.15077944802354E+00,
- 'Nmi' => 1.0,
- 'in' => 7.29133858267717E+04,
- 'ft' => 6.07611548556430E+03,
- 'yd' => 2.02537182785694E+03,
- 'ang' => 1.85200000000000E+13,
- 'Pica' => 5.24976377952723E+06
- ),
- 'in' => array( 'm' => 2.54000000000000E-02,
- 'mi' => 1.57828282828283E-05,
- 'Nmi' => 1.37149028077754E-05,
- 'in' => 1.0,
- 'ft' => 8.33333333333333E-02,
- 'yd' => 2.77777777686643E-02,
- 'ang' => 2.54000000000000E+08,
- 'Pica' => 7.19999999999955E+01
- ),
- 'ft' => array( 'm' => 3.04800000000000E-01,
- 'mi' => 1.89393939393939E-04,
- 'Nmi' => 1.64578833693305E-04,
- 'in' => 1.20000000000000E+01,
- 'ft' => 1.0,
- 'yd' => 3.33333333223972E-01,
- 'ang' => 3.04800000000000E+09,
- 'Pica' => 8.63999999999946E+02
- ),
- 'yd' => array( 'm' => 9.14400000300000E-01,
- 'mi' => 5.68181818368230E-04,
- 'Nmi' => 4.93736501241901E-04,
- 'in' => 3.60000000118110E+01,
- 'ft' => 3.00000000000000E+00,
- 'yd' => 1.0,
- 'ang' => 9.14400000300000E+09,
- 'Pica' => 2.59200000085023E+03
- ),
- 'ang' => array( 'm' => 1.00000000000000E-10,
- 'mi' => 6.21371192237334E-14,
- 'Nmi' => 5.39956803455724E-14,
- 'in' => 3.93700787401575E-09,
- 'ft' => 3.28083989501312E-10,
- 'yd' => 1.09361329797891E-10,
- 'ang' => 1.0,
- 'Pica' => 2.83464566929116E-07
- ),
- 'Pica' => array( 'm' => 3.52777777777800E-04,
- 'mi' => 2.19205948372629E-07,
- 'Nmi' => 1.90484761219114E-07,
- 'in' => 1.38888888888898E-02,
- 'ft' => 1.15740740740748E-03,
- 'yd' => 3.85802469009251E-04,
- 'ang' => 3.52777777777800E+06,
- 'Pica' => 1.0
- )
- ),
- 'Time' => array( 'yr' => array( 'yr' => 1.0,
- 'day' => 365.25,
- 'hr' => 8766.0,
- 'mn' => 525960.0,
- 'sec' => 31557600.0
- ),
- 'day' => array( 'yr' => 2.73785078713210E-03,
- 'day' => 1.0,
- 'hr' => 24.0,
- 'mn' => 1440.0,
- 'sec' => 86400.0
- ),
- 'hr' => array( 'yr' => 1.14077116130504E-04,
- 'day' => 4.16666666666667E-02,
- 'hr' => 1.0,
- 'mn' => 60.0,
- 'sec' => 3600.0
- ),
- 'mn' => array( 'yr' => 1.90128526884174E-06,
- 'day' => 6.94444444444444E-04,
- 'hr' => 1.66666666666667E-02,
- 'mn' => 1.0,
- 'sec' => 60.0
- ),
- 'sec' => array( 'yr' => 3.16880878140289E-08,
- 'day' => 1.15740740740741E-05,
- 'hr' => 2.77777777777778E-04,
- 'mn' => 1.66666666666667E-02,
- 'sec' => 1.0
- )
- ),
- 'Pressure' => array( 'Pa' => array( 'Pa' => 1.0,
- 'p' => 1.0,
- 'atm' => 9.86923299998193E-06,
- 'at' => 9.86923299998193E-06,
- 'mmHg' => 7.50061707998627E-03
- ),
- 'p' => array( 'Pa' => 1.0,
- 'p' => 1.0,
- 'atm' => 9.86923299998193E-06,
- 'at' => 9.86923299998193E-06,
- 'mmHg' => 7.50061707998627E-03
- ),
- 'atm' => array( 'Pa' => 1.01324996583000E+05,
- 'p' => 1.01324996583000E+05,
- 'atm' => 1.0,
- 'at' => 1.0,
- 'mmHg' => 760.0
- ),
- 'at' => array( 'Pa' => 1.01324996583000E+05,
- 'p' => 1.01324996583000E+05,
- 'atm' => 1.0,
- 'at' => 1.0,
- 'mmHg' => 760.0
- ),
- 'mmHg' => array( 'Pa' => 1.33322363925000E+02,
- 'p' => 1.33322363925000E+02,
- 'atm' => 1.31578947368421E-03,
- 'at' => 1.31578947368421E-03,
- 'mmHg' => 1.0
- )
- ),
- 'Force' => array( 'N' => array( 'N' => 1.0,
- 'dyn' => 1.0E+5,
- 'dy' => 1.0E+5,
- 'lbf' => 2.24808923655339E-01
- ),
- 'dyn' => array( 'N' => 1.0E-5,
- 'dyn' => 1.0,
- 'dy' => 1.0,
- 'lbf' => 2.24808923655339E-06
- ),
- 'dy' => array( 'N' => 1.0E-5,
- 'dyn' => 1.0,
- 'dy' => 1.0,
- 'lbf' => 2.24808923655339E-06
- ),
- 'lbf' => array( 'N' => 4.448222,
- 'dyn' => 4.448222E+5,
- 'dy' => 4.448222E+5,
- 'lbf' => 1.0
- )
- ),
- 'Energy' => array( 'J' => array( 'J' => 1.0,
- 'e' => 9.99999519343231E+06,
- 'c' => 2.39006249473467E-01,
- 'cal' => 2.38846190642017E-01,
- 'eV' => 6.24145700000000E+18,
- 'ev' => 6.24145700000000E+18,
- 'HPh' => 3.72506430801000E-07,
- 'hh' => 3.72506430801000E-07,
- 'Wh' => 2.77777916238711E-04,
- 'wh' => 2.77777916238711E-04,
- 'flb' => 2.37304222192651E+01,
- 'BTU' => 9.47815067349015E-04,
- 'btu' => 9.47815067349015E-04
- ),
- 'e' => array( 'J' => 1.00000048065700E-07,
- 'e' => 1.0,
- 'c' => 2.39006364353494E-08,
- 'cal' => 2.38846305445111E-08,
- 'eV' => 6.24146000000000E+11,
- 'ev' => 6.24146000000000E+11,
- 'HPh' => 3.72506609848824E-14,
- 'hh' => 3.72506609848824E-14,
- 'Wh' => 2.77778049754611E-11,
- 'wh' => 2.77778049754611E-11,
- 'flb' => 2.37304336254586E-06,
- 'BTU' => 9.47815522922962E-11,
- 'btu' => 9.47815522922962E-11
- ),
- 'c' => array( 'J' => 4.18399101363672E+00,
- 'e' => 4.18398900257312E+07,
- 'c' => 1.0,
- 'cal' => 9.99330315287563E-01,
- 'eV' => 2.61142000000000E+19,
- 'ev' => 2.61142000000000E+19,
- 'HPh' => 1.55856355899327E-06,
- 'hh' => 1.55856355899327E-06,
- 'Wh' => 1.16222030532950E-03,
- 'wh' => 1.16222030532950E-03,
- 'flb' => 9.92878733152102E+01,
- 'BTU' => 3.96564972437776E-03,
- 'btu' => 3.96564972437776E-03
- ),
- 'cal' => array( 'J' => 4.18679484613929E+00,
- 'e' => 4.18679283372801E+07,
- 'c' => 1.00067013349059E+00,
- 'cal' => 1.0,
- 'eV' => 2.61317000000000E+19,
- 'ev' => 2.61317000000000E+19,
- 'HPh' => 1.55960800463137E-06,
- 'hh' => 1.55960800463137E-06,
- 'Wh' => 1.16299914807955E-03,
- 'wh' => 1.16299914807955E-03,
- 'flb' => 9.93544094443283E+01,
- 'BTU' => 3.96830723907002E-03,
- 'btu' => 3.96830723907002E-03
- ),
- 'eV' => array( 'J' => 1.60219000146921E-19,
- 'e' => 1.60218923136574E-12,
- 'c' => 3.82933423195043E-20,
- 'cal' => 3.82676978535648E-20,
- 'eV' => 1.0,
- 'ev' => 1.0,
- 'HPh' => 5.96826078912344E-26,
- 'hh' => 5.96826078912344E-26,
- 'Wh' => 4.45053000026614E-23,
- 'wh' => 4.45053000026614E-23,
- 'flb' => 3.80206452103492E-18,
- 'BTU' => 1.51857982414846E-22,
- 'btu' => 1.51857982414846E-22
- ),
- 'ev' => array( 'J' => 1.60219000146921E-19,
- 'e' => 1.60218923136574E-12,
- 'c' => 3.82933423195043E-20,
- 'cal' => 3.82676978535648E-20,
- 'eV' => 1.0,
- 'ev' => 1.0,
- 'HPh' => 5.96826078912344E-26,
- 'hh' => 5.96826078912344E-26,
- 'Wh' => 4.45053000026614E-23,
- 'wh' => 4.45053000026614E-23,
- 'flb' => 3.80206452103492E-18,
- 'BTU' => 1.51857982414846E-22,
- 'btu' => 1.51857982414846E-22
- ),
- 'HPh' => array( 'J' => 2.68451741316170E+06,
- 'e' => 2.68451612283024E+13,
- 'c' => 6.41616438565991E+05,
- 'cal' => 6.41186757845835E+05,
- 'eV' => 1.67553000000000E+25,
- 'ev' => 1.67553000000000E+25,
- 'HPh' => 1.0,
- 'hh' => 1.0,
- 'Wh' => 7.45699653134593E+02,
- 'wh' => 7.45699653134593E+02,
- 'flb' => 6.37047316692964E+07,
- 'BTU' => 2.54442605275546E+03,
- 'btu' => 2.54442605275546E+03
- ),
- 'hh' => array( 'J' => 2.68451741316170E+06,
- 'e' => 2.68451612283024E+13,
- 'c' => 6.41616438565991E+05,
- 'cal' => 6.41186757845835E+05,
- 'eV' => 1.67553000000000E+25,
- 'ev' => 1.67553000000000E+25,
- 'HPh' => 1.0,
- 'hh' => 1.0,
- 'Wh' => 7.45699653134593E+02,
- 'wh' => 7.45699653134593E+02,
- 'flb' => 6.37047316692964E+07,
- 'BTU' => 2.54442605275546E+03,
- 'btu' => 2.54442605275546E+03
- ),
- 'Wh' => array( 'J' => 3.59999820554720E+03,
- 'e' => 3.59999647518369E+10,
- 'c' => 8.60422069219046E+02,
- 'cal' => 8.59845857713046E+02,
- 'eV' => 2.24692340000000E+22,
- 'ev' => 2.24692340000000E+22,
- 'HPh' => 1.34102248243839E-03,
- 'hh' => 1.34102248243839E-03,
- 'Wh' => 1.0,
- 'wh' => 1.0,
- 'flb' => 8.54294774062316E+04,
- 'BTU' => 3.41213254164705E+00,
- 'btu' => 3.41213254164705E+00
- ),
- 'wh' => array( 'J' => 3.59999820554720E+03,
- 'e' => 3.59999647518369E+10,
- 'c' => 8.60422069219046E+02,
- 'cal' => 8.59845857713046E+02,
- 'eV' => 2.24692340000000E+22,
- 'ev' => 2.24692340000000E+22,
- 'HPh' => 1.34102248243839E-03,
- 'hh' => 1.34102248243839E-03,
- 'Wh' => 1.0,
- 'wh' => 1.0,
- 'flb' => 8.54294774062316E+04,
- 'BTU' => 3.41213254164705E+00,
- 'btu' => 3.41213254164705E+00
- ),
- 'flb' => array( 'J' => 4.21400003236424E-02,
- 'e' => 4.21399800687660E+05,
- 'c' => 1.00717234301644E-02,
- 'cal' => 1.00649785509554E-02,
- 'eV' => 2.63015000000000E+17,
- 'ev' => 2.63015000000000E+17,
- 'HPh' => 1.56974211145130E-08,
- 'hh' => 1.56974211145130E-08,
- 'Wh' => 1.17055614802000E-05,
- 'wh' => 1.17055614802000E-05,
- 'flb' => 1.0,
- 'BTU' => 3.99409272448406E-05,
- 'btu' => 3.99409272448406E-05
- ),
- 'BTU' => array( 'J' => 1.05505813786749E+03,
- 'e' => 1.05505763074665E+10,
- 'c' => 2.52165488508168E+02,
- 'cal' => 2.51996617135510E+02,
- 'eV' => 6.58510000000000E+21,
- 'ev' => 6.58510000000000E+21,
- 'HPh' => 3.93015941224568E-04,
- 'hh' => 3.93015941224568E-04,
- 'Wh' => 2.93071851047526E-01,
- 'wh' => 2.93071851047526E-01,
- 'flb' => 2.50369750774671E+04,
- 'BTU' => 1.0,
- 'btu' => 1.0,
- ),
- 'btu' => array( 'J' => 1.05505813786749E+03,
- 'e' => 1.05505763074665E+10,
- 'c' => 2.52165488508168E+02,
- 'cal' => 2.51996617135510E+02,
- 'eV' => 6.58510000000000E+21,
- 'ev' => 6.58510000000000E+21,
- 'HPh' => 3.93015941224568E-04,
- 'hh' => 3.93015941224568E-04,
- 'Wh' => 2.93071851047526E-01,
- 'wh' => 2.93071851047526E-01,
- 'flb' => 2.50369750774671E+04,
- 'BTU' => 1.0,
- 'btu' => 1.0,
- )
- ),
- 'Power' => array( 'HP' => array( 'HP' => 1.0,
- 'h' => 1.0,
- 'W' => 7.45701000000000E+02,
- 'w' => 7.45701000000000E+02
- ),
- 'h' => array( 'HP' => 1.0,
- 'h' => 1.0,
- 'W' => 7.45701000000000E+02,
- 'w' => 7.45701000000000E+02
- ),
- 'W' => array( 'HP' => 1.34102006031908E-03,
- 'h' => 1.34102006031908E-03,
- 'W' => 1.0,
- 'w' => 1.0
- ),
- 'w' => array( 'HP' => 1.34102006031908E-03,
- 'h' => 1.34102006031908E-03,
- 'W' => 1.0,
- 'w' => 1.0
- )
- ),
- 'Magnetism' => array( 'T' => array( 'T' => 1.0,
- 'ga' => 10000.0
- ),
- 'ga' => array( 'T' => 0.0001,
- 'ga' => 1.0
- )
- ),
- 'Liquid' => array( 'tsp' => array( 'tsp' => 1.0,
- 'tbs' => 3.33333333333333E-01,
- 'oz' => 1.66666666666667E-01,
- 'cup' => 2.08333333333333E-02,
- 'pt' => 1.04166666666667E-02,
- 'us_pt' => 1.04166666666667E-02,
- 'uk_pt' => 8.67558516821960E-03,
- 'qt' => 5.20833333333333E-03,
- 'gal' => 1.30208333333333E-03,
- 'l' => 4.92999408400710E-03,
- 'lt' => 4.92999408400710E-03
- ),
- 'tbs' => array( 'tsp' => 3.00000000000000E+00,
- 'tbs' => 1.0,
- 'oz' => 5.00000000000000E-01,
- 'cup' => 6.25000000000000E-02,
- 'pt' => 3.12500000000000E-02,
- 'us_pt' => 3.12500000000000E-02,
- 'uk_pt' => 2.60267555046588E-02,
- 'qt' => 1.56250000000000E-02,
- 'gal' => 3.90625000000000E-03,
- 'l' => 1.47899822520213E-02,
- 'lt' => 1.47899822520213E-02
- ),
- 'oz' => array( 'tsp' => 6.00000000000000E+00,
- 'tbs' => 2.00000000000000E+00,
- 'oz' => 1.0,
- 'cup' => 1.25000000000000E-01,
- 'pt' => 6.25000000000000E-02,
- 'us_pt' => 6.25000000000000E-02,
- 'uk_pt' => 5.20535110093176E-02,
- 'qt' => 3.12500000000000E-02,
- 'gal' => 7.81250000000000E-03,
- 'l' => 2.95799645040426E-02,
- 'lt' => 2.95799645040426E-02
- ),
- 'cup' => array( 'tsp' => 4.80000000000000E+01,
- 'tbs' => 1.60000000000000E+01,
- 'oz' => 8.00000000000000E+00,
- 'cup' => 1.0,
- 'pt' => 5.00000000000000E-01,
- 'us_pt' => 5.00000000000000E-01,
- 'uk_pt' => 4.16428088074541E-01,
- 'qt' => 2.50000000000000E-01,
- 'gal' => 6.25000000000000E-02,
- 'l' => 2.36639716032341E-01,
- 'lt' => 2.36639716032341E-01
- ),
- 'pt' => array( 'tsp' => 9.60000000000000E+01,
- 'tbs' => 3.20000000000000E+01,
- 'oz' => 1.60000000000000E+01,
- 'cup' => 2.00000000000000E+00,
- 'pt' => 1.0,
- 'us_pt' => 1.0,
- 'uk_pt' => 8.32856176149081E-01,
- 'qt' => 5.00000000000000E-01,
- 'gal' => 1.25000000000000E-01,
- 'l' => 4.73279432064682E-01,
- 'lt' => 4.73279432064682E-01
- ),
- 'us_pt' => array( 'tsp' => 9.60000000000000E+01,
- 'tbs' => 3.20000000000000E+01,
- 'oz' => 1.60000000000000E+01,
- 'cup' => 2.00000000000000E+00,
- 'pt' => 1.0,
- 'us_pt' => 1.0,
- 'uk_pt' => 8.32856176149081E-01,
- 'qt' => 5.00000000000000E-01,
- 'gal' => 1.25000000000000E-01,
- 'l' => 4.73279432064682E-01,
- 'lt' => 4.73279432064682E-01
- ),
- 'uk_pt' => array( 'tsp' => 1.15266000000000E+02,
- 'tbs' => 3.84220000000000E+01,
- 'oz' => 1.92110000000000E+01,
- 'cup' => 2.40137500000000E+00,
- 'pt' => 1.20068750000000E+00,
- 'us_pt' => 1.20068750000000E+00,
- 'uk_pt' => 1.0,
- 'qt' => 6.00343750000000E-01,
- 'gal' => 1.50085937500000E-01,
- 'l' => 5.68260698087162E-01,
- 'lt' => 5.68260698087162E-01
- ),
- 'qt' => array( 'tsp' => 1.92000000000000E+02,
- 'tbs' => 6.40000000000000E+01,
- 'oz' => 3.20000000000000E+01,
- 'cup' => 4.00000000000000E+00,
- 'pt' => 2.00000000000000E+00,
- 'us_pt' => 2.00000000000000E+00,
- 'uk_pt' => 1.66571235229816E+00,
- 'qt' => 1.0,
- 'gal' => 2.50000000000000E-01,
- 'l' => 9.46558864129363E-01,
- 'lt' => 9.46558864129363E-01
- ),
- 'gal' => array( 'tsp' => 7.68000000000000E+02,
- 'tbs' => 2.56000000000000E+02,
- 'oz' => 1.28000000000000E+02,
- 'cup' => 1.60000000000000E+01,
- 'pt' => 8.00000000000000E+00,
- 'us_pt' => 8.00000000000000E+00,
- 'uk_pt' => 6.66284940919265E+00,
- 'qt' => 4.00000000000000E+00,
- 'gal' => 1.0,
- 'l' => 3.78623545651745E+00,
- 'lt' => 3.78623545651745E+00
- ),
- 'l' => array( 'tsp' => 2.02840000000000E+02,
- 'tbs' => 6.76133333333333E+01,
- 'oz' => 3.38066666666667E+01,
- 'cup' => 4.22583333333333E+00,
- 'pt' => 2.11291666666667E+00,
- 'us_pt' => 2.11291666666667E+00,
- 'uk_pt' => 1.75975569552166E+00,
- 'qt' => 1.05645833333333E+00,
- 'gal' => 2.64114583333333E-01,
- 'l' => 1.0,
- 'lt' => 1.0
- ),
- 'lt' => array( 'tsp' => 2.02840000000000E+02,
- 'tbs' => 6.76133333333333E+01,
- 'oz' => 3.38066666666667E+01,
- 'cup' => 4.22583333333333E+00,
- 'pt' => 2.11291666666667E+00,
- 'us_pt' => 2.11291666666667E+00,
- 'uk_pt' => 1.75975569552166E+00,
- 'qt' => 1.05645833333333E+00,
- 'gal' => 2.64114583333333E-01,
- 'l' => 1.0,
- 'lt' => 1.0
- )
- )
- );
-
-
- /**
- * _parseComplex
- *
- * Parses a complex number into its real and imaginary parts, and an I or J suffix
- *
- * @param string $complexNumber The complex number
- * @return string[] Indexed on "real", "imaginary" and "suffix"
- */
- public static function _parseComplex($complexNumber) {
- $workString = (string) $complexNumber;
-
- $realNumber = $imaginary = 0;
- // Extract the suffix, if there is one
- $suffix = substr($workString,-1);
- if (!is_numeric($suffix)) {
- $workString = substr($workString,0,-1);
- } else {
- $suffix = '';
- }
-
- // Split the input into its Real and Imaginary components
- $leadingSign = 0;
- if (strlen($workString) > 0) {
- $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0;
- }
- $power = '';
- $realNumber = strtok($workString, '+-');
- if (strtoupper(substr($realNumber,-1)) == 'E') {
- $power = strtok('+-');
- ++$leadingSign;
- }
-
- $realNumber = substr($workString,0,strlen($realNumber)+strlen($power)+$leadingSign);
-
- if ($suffix != '') {
- $imaginary = substr($workString,strlen($realNumber));
-
- if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) {
- $imaginary = $realNumber.'1';
- $realNumber = '0';
- } else if ($imaginary == '') {
- $imaginary = $realNumber;
- $realNumber = '0';
- } elseif (($imaginary == '+') || ($imaginary == '-')) {
- $imaginary .= '1';
- }
- }
-
- return array( 'real' => $realNumber,
- 'imaginary' => $imaginary,
- 'suffix' => $suffix
- );
- } // function _parseComplex()
-
-
- /**
- * Cleans the leading characters in a complex number string
- *
- * @param string $complexNumber The complex number to clean
- * @return string The "cleaned" complex number
- */
- private static function _cleanComplex($complexNumber) {
- if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
- if ($complexNumber{0} == '0') $complexNumber = substr($complexNumber,1);
- if ($complexNumber{0} == '.') $complexNumber = '0'.$complexNumber;
- if ($complexNumber{0} == '+') $complexNumber = substr($complexNumber,1);
- return $complexNumber;
- }
-
- /**
- * Formats a number base string value with leading zeroes
- *
- * @param string $xVal The "number" to pad
- * @param integer $places The length that we want to pad this value
- * @return string The padded "number"
- */
- private static function _nbrConversionFormat($xVal, $places) {
- if (!is_null($places)) {
- if (strlen($xVal) <= $places) {
- return substr(str_pad($xVal, $places, '0', STR_PAD_LEFT), -10);
- } else {
- return PHPExcel_Calculation_Functions::NaN();
- }
- }
-
- return substr($xVal, -10);
- } // function _nbrConversionFormat()
-
- /**
- * BESSELI
- *
- * Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated
- * for purely imaginary arguments
- *
- * Excel Function:
- * BESSELI(x,ord)
- *
- * @access public
- * @category Engineering Functions
- * @param float $x The value at which to evaluate the function.
- * If x is nonnumeric, BESSELI returns the #VALUE! error value.
- * @param integer $ord The order of the Bessel function.
- * If ord is not an integer, it is truncated.
- * If $ord is nonnumeric, BESSELI returns the #VALUE! error value.
- * If $ord < 0, BESSELI returns the #NUM! error value.
- * @return float
- *
- */
- public static function BESSELI($x, $ord) {
- $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
-
- if ((is_numeric($x)) && (is_numeric($ord))) {
- $ord = floor($ord);
- if ($ord < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- if (abs($x) <= 30) {
- $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
- $ordK = 1;
- $fSqrX = ($x * $x) / 4;
- do {
- $fTerm *= $fSqrX;
- $fTerm /= ($ordK * ($ordK + $ord));
- $fResult += $fTerm;
- } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
- } else {
- $f_2_PI = 2 * M_PI;
-
- $fXAbs = abs($x);
- $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs);
- if (($ord & 1) && ($x < 0)) {
- $fResult = -$fResult;
- }
- }
- return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function BESSELI()
-
-
- /**
- * BESSELJ
- *
- * Returns the Bessel function
- *
- * Excel Function:
- * BESSELJ(x,ord)
- *
- * @access public
- * @category Engineering Functions
- * @param float $x The value at which to evaluate the function.
- * If x is nonnumeric, BESSELJ returns the #VALUE! error value.
- * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
- * If $ord is nonnumeric, BESSELJ returns the #VALUE! error value.
- * If $ord < 0, BESSELJ returns the #NUM! error value.
- * @return float
- *
- */
- public static function BESSELJ($x, $ord) {
- $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
-
- if ((is_numeric($x)) && (is_numeric($ord))) {
- $ord = floor($ord);
- if ($ord < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $fResult = 0;
- if (abs($x) <= 30) {
- $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord);
- $ordK = 1;
- $fSqrX = ($x * $x) / -4;
- do {
- $fTerm *= $fSqrX;
- $fTerm /= ($ordK * ($ordK + $ord));
- $fResult += $fTerm;
- } while ((abs($fTerm) > 1e-12) && (++$ordK < 100));
- } else {
- $f_PI_DIV_2 = M_PI / 2;
- $f_PI_DIV_4 = M_PI / 4;
-
- $fXAbs = abs($x);
- $fResult = sqrt(M_2DIVPI / $fXAbs) * cos($fXAbs - $ord * $f_PI_DIV_2 - $f_PI_DIV_4);
- if (($ord & 1) && ($x < 0)) {
- $fResult = -$fResult;
- }
- }
- return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function BESSELJ()
-
-
- private static function _Besselk0($fNum) {
- if ($fNum <= 2) {
- $fNum2 = $fNum * 0.5;
- $y = ($fNum2 * $fNum2);
- $fRet = -log($fNum2) * self::BESSELI($fNum, 0) +
- (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y *
- (0.10750e-3 + $y * 0.74e-5))))));
- } else {
- $y = 2 / $fNum;
- $fRet = exp(-$fNum) / sqrt($fNum) *
- (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y *
- (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3))))));
- }
- return $fRet;
- } // function _Besselk0()
-
-
- private static function _Besselk1($fNum) {
- if ($fNum <= 2) {
- $fNum2 = $fNum * 0.5;
- $y = ($fNum2 * $fNum2);
- $fRet = log($fNum2) * self::BESSELI($fNum, 1) +
- (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y *
- (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum;
- } else {
- $y = 2 / $fNum;
- $fRet = exp(-$fNum) / sqrt($fNum) *
- (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y *
- (0.325614e-2 + $y * (-0.68245e-3)))))));
- }
- return $fRet;
- } // function _Besselk1()
-
-
- /**
- * BESSELK
- *
- * Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated
- * for purely imaginary arguments.
- *
- * Excel Function:
- * BESSELK(x,ord)
- *
- * @access public
- * @category Engineering Functions
- * @param float $x The value at which to evaluate the function.
- * If x is nonnumeric, BESSELK returns the #VALUE! error value.
- * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
- * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
- * If $ord < 0, BESSELK returns the #NUM! error value.
- * @return float
- *
- */
- public static function BESSELK($x, $ord) {
- $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
-
- if ((is_numeric($x)) && (is_numeric($ord))) {
- if (($ord < 0) || ($x == 0.0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- switch(floor($ord)) {
- case 0 : return self::_Besselk0($x);
- break;
- case 1 : return self::_Besselk1($x);
- break;
- default : $fTox = 2 / $x;
- $fBkm = self::_Besselk0($x);
- $fBk = self::_Besselk1($x);
- for ($n = 1; $n < $ord; ++$n) {
- $fBkp = $fBkm + $n * $fTox * $fBk;
- $fBkm = $fBk;
- $fBk = $fBkp;
- }
- }
- return (is_nan($fBk)) ? PHPExcel_Calculation_Functions::NaN() : $fBk;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function BESSELK()
-
-
- private static function _Bessely0($fNum) {
- if ($fNum < 8.0) {
- $y = ($fNum * $fNum);
- $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733))));
- $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y))));
- $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum);
- } else {
- $z = 8.0 / $fNum;
- $y = ($z * $z);
- $xx = $fNum - 0.785398164;
- $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6)));
- $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7))));
- $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2);
- }
- return $fRet;
- } // function _Bessely0()
-
-
- private static function _Bessely1($fNum) {
- if ($fNum < 8.0) {
- $y = ($fNum * $fNum);
- $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y *
- (-0.4237922726e7 + $y * 0.8511937935e4)))));
- $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y *
- (0.1020426050e6 + $y * (0.3549632885e3 + $y)))));
- $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum);
- } else {
- $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491);
- }
- return $fRet;
- } // function _Bessely1()
-
-
- /**
- * BESSELY
- *
- * Returns the Bessel function, which is also called the Weber function or the Neumann function.
- *
- * Excel Function:
- * BESSELY(x,ord)
- *
- * @access public
- * @category Engineering Functions
- * @param float $x The value at which to evaluate the function.
- * If x is nonnumeric, BESSELK returns the #VALUE! error value.
- * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated.
- * If $ord is nonnumeric, BESSELK returns the #VALUE! error value.
- * If $ord < 0, BESSELK returns the #NUM! error value.
- *
- * @return float
- */
- public static function BESSELY($x, $ord) {
- $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord);
-
- if ((is_numeric($x)) && (is_numeric($ord))) {
- if (($ord < 0) || ($x == 0.0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- switch(floor($ord)) {
- case 0 : return self::_Bessely0($x);
- break;
- case 1 : return self::_Bessely1($x);
- break;
- default: $fTox = 2 / $x;
- $fBym = self::_Bessely0($x);
- $fBy = self::_Bessely1($x);
- for ($n = 1; $n < $ord; ++$n) {
- $fByp = $n * $fTox * $fBy - $fBym;
- $fBym = $fBy;
- $fBy = $fByp;
- }
- }
- return (is_nan($fBy)) ? PHPExcel_Calculation_Functions::NaN() : $fBy;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function BESSELY()
-
-
- /**
- * BINTODEC
- *
- * Return a binary value as decimal.
- *
- * Excel Function:
- * BIN2DEC(x)
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The binary number (as a string) that you want to convert. The number
- * cannot contain more than 10 characters (10 bits). The most significant
- * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
- * Negative numbers are represented using two's-complement notation.
- * If number is not a valid binary number, or if number contains more than
- * 10 characters (10 bits), BIN2DEC returns the #NUM! error value.
- * @return string
- */
- public static function BINTODEC($x) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $x = floor($x);
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if (strlen($x) > 10) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (strlen($x) == 10) {
- // Two's Complement
- $x = substr($x,-9);
- return '-'.(512-bindec($x));
- }
- return bindec($x);
- } // function BINTODEC()
-
-
- /**
- * BINTOHEX
- *
- * Return a binary value as hex.
- *
- * Excel Function:
- * BIN2HEX(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The binary number (as a string) that you want to convert. The number
- * cannot contain more than 10 characters (10 bits). The most significant
- * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
- * Negative numbers are represented using two's-complement notation.
- * If number is not a valid binary number, or if number contains more than
- * 10 characters (10 bits), BIN2HEX returns the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, BIN2HEX uses the
- * minimum number of characters necessary. Places is useful for padding the
- * return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, BIN2HEX returns the #VALUE! error value.
- * If places is negative, BIN2HEX returns the #NUM! error value.
- * @return string
- */
- public static function BINTOHEX($x, $places=NULL) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $x = floor($x);
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if (strlen($x) > 10) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (strlen($x) == 10) {
- // Two's Complement
- return str_repeat('F',8).substr(strtoupper(dechex(bindec(substr($x,-9)))),-2);
- }
- $hexVal = (string) strtoupper(dechex(bindec($x)));
-
- return self::_nbrConversionFormat($hexVal,$places);
- } // function BINTOHEX()
-
-
- /**
- * BINTOOCT
- *
- * Return a binary value as octal.
- *
- * Excel Function:
- * BIN2OCT(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The binary number (as a string) that you want to convert. The number
- * cannot contain more than 10 characters (10 bits). The most significant
- * bit of number is the sign bit. The remaining 9 bits are magnitude bits.
- * Negative numbers are represented using two's-complement notation.
- * If number is not a valid binary number, or if number contains more than
- * 10 characters (10 bits), BIN2OCT returns the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, BIN2OCT uses the
- * minimum number of characters necessary. Places is useful for padding the
- * return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, BIN2OCT returns the #VALUE! error value.
- * If places is negative, BIN2OCT returns the #NUM! error value.
- * @return string
- */
- public static function BINTOOCT($x, $places=NULL) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $x = floor($x);
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[01]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if (strlen($x) > 10) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (strlen($x) == 10) {
- // Two's Complement
- return str_repeat('7',7).substr(strtoupper(decoct(bindec(substr($x,-9)))),-3);
- }
- $octVal = (string) decoct(bindec($x));
-
- return self::_nbrConversionFormat($octVal,$places);
- } // function BINTOOCT()
-
-
- /**
- * DECTOBIN
- *
- * Return a decimal value as binary.
- *
- * Excel Function:
- * DEC2BIN(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The decimal integer you want to convert. If number is negative,
- * valid place values are ignored and DEC2BIN returns a 10-character
- * (10-bit) binary number in which the most significant bit is the sign
- * bit. The remaining 9 bits are magnitude bits. Negative numbers are
- * represented using two's-complement notation.
- * If number < -512 or if number > 511, DEC2BIN returns the #NUM! error
- * value.
- * If number is nonnumeric, DEC2BIN returns the #VALUE! error value.
- * If DEC2BIN requires more than places characters, it returns the #NUM!
- * error value.
- * @param integer $places The number of characters to use. If places is omitted, DEC2BIN uses
- * the minimum number of characters necessary. Places is useful for
- * padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, DEC2BIN returns the #VALUE! error value.
- * If places is zero or negative, DEC2BIN returns the #NUM! error value.
- * @return string
- */
- public static function DECTOBIN($x, $places=NULL) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) floor($x);
- $r = decbin($x);
- if (strlen($r) == 32) {
- // Two's Complement
- $r = substr($r,-10);
- } elseif (strlen($r) > 11) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return self::_nbrConversionFormat($r,$places);
- } // function DECTOBIN()
-
-
- /**
- * DECTOHEX
- *
- * Return a decimal value as hex.
- *
- * Excel Function:
- * DEC2HEX(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The decimal integer you want to convert. If number is negative,
- * places is ignored and DEC2HEX returns a 10-character (40-bit)
- * hexadecimal number in which the most significant bit is the sign
- * bit. The remaining 39 bits are magnitude bits. Negative numbers
- * are represented using two's-complement notation.
- * If number < -549,755,813,888 or if number > 549,755,813,887,
- * DEC2HEX returns the #NUM! error value.
- * If number is nonnumeric, DEC2HEX returns the #VALUE! error value.
- * If DEC2HEX requires more than places characters, it returns the
- * #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, DEC2HEX uses
- * the minimum number of characters necessary. Places is useful for
- * padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, DEC2HEX returns the #VALUE! error value.
- * If places is zero or negative, DEC2HEX returns the #NUM! error value.
- * @return string
- */
- public static function DECTOHEX($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) floor($x);
- $r = strtoupper(dechex($x));
- if (strlen($r) == 8) {
- // Two's Complement
- $r = 'FF'.$r;
- }
-
- return self::_nbrConversionFormat($r,$places);
- } // function DECTOHEX()
-
-
- /**
- * DECTOOCT
- *
- * Return an decimal value as octal.
- *
- * Excel Function:
- * DEC2OCT(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The decimal integer you want to convert. If number is negative,
- * places is ignored and DEC2OCT returns a 10-character (30-bit)
- * octal number in which the most significant bit is the sign bit.
- * The remaining 29 bits are magnitude bits. Negative numbers are
- * represented using two's-complement notation.
- * If number < -536,870,912 or if number > 536,870,911, DEC2OCT
- * returns the #NUM! error value.
- * If number is nonnumeric, DEC2OCT returns the #VALUE! error value.
- * If DEC2OCT requires more than places characters, it returns the
- * #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, DEC2OCT uses
- * the minimum number of characters necessary. Places is useful for
- * padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, DEC2OCT returns the #VALUE! error value.
- * If places is zero or negative, DEC2OCT returns the #NUM! error value.
- * @return string
- */
- public static function DECTOOCT($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- $x = (int) $x;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[-0123456789.]/',$x,$out)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) floor($x);
- $r = decoct($x);
- if (strlen($r) == 11) {
- // Two's Complement
- $r = substr($r,-10);
- }
-
- return self::_nbrConversionFormat($r,$places);
- } // function DECTOOCT()
-
-
- /**
- * HEXTOBIN
- *
- * Return a hex value as binary.
- *
- * Excel Function:
- * HEX2BIN(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x the hexadecimal number you want to convert. Number cannot
- * contain more than 10 characters. The most significant bit of
- * number is the sign bit (40th bit from the right). The remaining
- * 9 bits are magnitude bits. Negative numbers are represented
- * using two's-complement notation.
- * If number is negative, HEX2BIN ignores places and returns a
- * 10-character binary number.
- * If number is negative, it cannot be less than FFFFFFFE00, and
- * if number is positive, it cannot be greater than 1FF.
- * If number is not a valid hexadecimal number, HEX2BIN returns
- * the #NUM! error value.
- * If HEX2BIN requires more than places characters, it returns
- * the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted,
- * HEX2BIN uses the minimum number of characters necessary. Places
- * is useful for padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, HEX2BIN returns the #VALUE! error value.
- * If places is negative, HEX2BIN returns the #NUM! error value.
- * @return string
- */
- public static function HEXTOBIN($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $binVal = decbin(hexdec($x));
-
- return substr(self::_nbrConversionFormat($binVal,$places),-10);
- } // function HEXTOBIN()
-
-
- /**
- * HEXTODEC
- *
- * Return a hex value as decimal.
- *
- * Excel Function:
- * HEX2DEC(x)
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The hexadecimal number you want to convert. This number cannot
- * contain more than 10 characters (40 bits). The most significant
- * bit of number is the sign bit. The remaining 39 bits are magnitude
- * bits. Negative numbers are represented using two's-complement
- * notation.
- * If number is not a valid hexadecimal number, HEX2DEC returns the
- * #NUM! error value.
- * @return string
- */
- public static function HEXTODEC($x) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return hexdec($x);
- } // function HEXTODEC()
-
-
- /**
- * HEXTOOCT
- *
- * Return a hex value as octal.
- *
- * Excel Function:
- * HEX2OCT(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The hexadecimal number you want to convert. Number cannot
- * contain more than 10 characters. The most significant bit of
- * number is the sign bit. The remaining 39 bits are magnitude
- * bits. Negative numbers are represented using two's-complement
- * notation.
- * If number is negative, HEX2OCT ignores places and returns a
- * 10-character octal number.
- * If number is negative, it cannot be less than FFE0000000, and
- * if number is positive, it cannot be greater than 1FFFFFFF.
- * If number is not a valid hexadecimal number, HEX2OCT returns
- * the #NUM! error value.
- * If HEX2OCT requires more than places characters, it returns
- * the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, HEX2OCT
- * uses the minimum number of characters necessary. Places is
- * useful for padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, HEX2OCT returns the #VALUE! error
- * value.
- * If places is negative, HEX2OCT returns the #NUM! error value.
- * @return string
- */
- public static function HEXTOOCT($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/',strtoupper($x),$out)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $octVal = decoct(hexdec($x));
-
- return self::_nbrConversionFormat($octVal,$places);
- } // function HEXTOOCT()
-
-
- /**
- * OCTTOBIN
- *
- * Return an octal value as binary.
- *
- * Excel Function:
- * OCT2BIN(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The octal number you want to convert. Number may not
- * contain more than 10 characters. The most significant
- * bit of number is the sign bit. The remaining 29 bits
- * are magnitude bits. Negative numbers are represented
- * using two's-complement notation.
- * If number is negative, OCT2BIN ignores places and returns
- * a 10-character binary number.
- * If number is negative, it cannot be less than 7777777000,
- * and if number is positive, it cannot be greater than 777.
- * If number is not a valid octal number, OCT2BIN returns
- * the #NUM! error value.
- * If OCT2BIN requires more than places characters, it
- * returns the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted,
- * OCT2BIN uses the minimum number of characters necessary.
- * Places is useful for padding the return value with
- * leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, OCT2BIN returns the #VALUE!
- * error value.
- * If places is negative, OCT2BIN returns the #NUM! error
- * value.
- * @return string
- */
- public static function OCTTOBIN($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $r = decbin(octdec($x));
-
- return self::_nbrConversionFormat($r,$places);
- } // function OCTTOBIN()
-
-
- /**
- * OCTTODEC
- *
- * Return an octal value as decimal.
- *
- * Excel Function:
- * OCT2DEC(x)
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The octal number you want to convert. Number may not contain
- * more than 10 octal characters (30 bits). The most significant
- * bit of number is the sign bit. The remaining 29 bits are
- * magnitude bits. Negative numbers are represented using
- * two's-complement notation.
- * If number is not a valid octal number, OCT2DEC returns the
- * #NUM! error value.
- * @return string
- */
- public static function OCTTODEC($x) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return octdec($x);
- } // function OCTTODEC()
-
-
- /**
- * OCTTOHEX
- *
- * Return an octal value as hex.
- *
- * Excel Function:
- * OCT2HEX(x[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param string $x The octal number you want to convert. Number may not contain
- * more than 10 octal characters (30 bits). The most significant
- * bit of number is the sign bit. The remaining 29 bits are
- * magnitude bits. Negative numbers are represented using
- * two's-complement notation.
- * If number is negative, OCT2HEX ignores places and returns a
- * 10-character hexadecimal number.
- * If number is not a valid octal number, OCT2HEX returns the
- * #NUM! error value.
- * If OCT2HEX requires more than places characters, it returns
- * the #NUM! error value.
- * @param integer $places The number of characters to use. If places is omitted, OCT2HEX
- * uses the minimum number of characters necessary. Places is useful
- * for padding the return value with leading 0s (zeros).
- * If places is not an integer, it is truncated.
- * If places is nonnumeric, OCT2HEX returns the #VALUE! error value.
- * If places is negative, OCT2HEX returns the #NUM! error value.
- * @return string
- */
- public static function OCTTOHEX($x, $places=null) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $places = PHPExcel_Calculation_Functions::flattenSingleValue($places);
-
- if (is_bool($x)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $x = (string) $x;
- if (preg_match_all('/[01234567]/',$x,$out) != strlen($x)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $hexVal = strtoupper(dechex(octdec($x)));
-
- return self::_nbrConversionFormat($hexVal,$places);
- } // function OCTTOHEX()
-
-
- /**
- * COMPLEX
- *
- * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.
- *
- * Excel Function:
- * COMPLEX(realNumber,imaginary[,places])
- *
- * @access public
- * @category Engineering Functions
- * @param float $realNumber The real coefficient of the complex number.
- * @param float $imaginary The imaginary coefficient of the complex number.
- * @param string $suffix The suffix for the imaginary component of the complex number.
- * If omitted, the suffix is assumed to be "i".
- * @return string
- */
- public static function COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i') {
- $realNumber = (is_null($realNumber)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
- $imaginary = (is_null($imaginary)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($imaginary);
- $suffix = (is_null($suffix)) ? 'i' : PHPExcel_Calculation_Functions::flattenSingleValue($suffix);
-
- if (((is_numeric($realNumber)) && (is_numeric($imaginary))) &&
- (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) {
- $realNumber = (float) $realNumber;
- $imaginary = (float) $imaginary;
-
- if ($suffix == '') $suffix = 'i';
- if ($realNumber == 0.0) {
- if ($imaginary == 0.0) {
- return (string) '0';
- } elseif ($imaginary == 1.0) {
- return (string) $suffix;
- } elseif ($imaginary == -1.0) {
- return (string) '-'.$suffix;
- }
- return (string) $imaginary.$suffix;
- } elseif ($imaginary == 0.0) {
- return (string) $realNumber;
- } elseif ($imaginary == 1.0) {
- return (string) $realNumber.'+'.$suffix;
- } elseif ($imaginary == -1.0) {
- return (string) $realNumber.'-'.$suffix;
- }
- if ($imaginary > 0) { $imaginary = (string) '+'.$imaginary; }
- return (string) $realNumber.$imaginary.$suffix;
- }
-
- return PHPExcel_Calculation_Functions::VALUE();
- } // function COMPLEX()
-
-
- /**
- * IMAGINARY
- *
- * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMAGINARY(complexNumber)
- *
- * @access public
- * @category Engineering Functions
- * @param string $complexNumber The complex number for which you want the imaginary
- * coefficient.
- * @return float
- */
- public static function IMAGINARY($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
- return $parsedComplex['imaginary'];
- } // function IMAGINARY()
-
-
- /**
- * IMREAL
- *
- * Returns the real coefficient of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMREAL(complexNumber)
- *
- * @access public
- * @category Engineering Functions
- * @param string $complexNumber The complex number for which you want the real coefficient.
- * @return float
- */
- public static function IMREAL($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
- return $parsedComplex['real'];
- } // function IMREAL()
-
-
- /**
- * IMABS
- *
- * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMABS(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the absolute value.
- * @return float
- */
- public static function IMABS($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- return sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
- } // function IMABS()
-
-
- /**
- * IMARGUMENT
- *
- * Returns the argument theta of a complex number, i.e. the angle in radians from the real
- * axis to the representation of the number in polar coordinates.
- *
- * Excel Function:
- * IMARGUMENT(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the argument theta.
- * @return float
- */
- public static function IMARGUMENT($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if ($parsedComplex['real'] == 0.0) {
- if ($parsedComplex['imaginary'] == 0.0) {
- return 0.0;
- } elseif($parsedComplex['imaginary'] < 0.0) {
- return M_PI / -2;
- } else {
- return M_PI / 2;
- }
- } elseif ($parsedComplex['real'] > 0.0) {
- return atan($parsedComplex['imaginary'] / $parsedComplex['real']);
- } elseif ($parsedComplex['imaginary'] < 0.0) {
- return 0 - (M_PI - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real'])));
- } else {
- return M_PI - atan($parsedComplex['imaginary'] / abs($parsedComplex['real']));
- }
- } // function IMARGUMENT()
-
-
- /**
- * IMCONJUGATE
- *
- * Returns the complex conjugate of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMCONJUGATE(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the conjugate.
- * @return string
- */
- public static function IMCONJUGATE($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if ($parsedComplex['imaginary'] == 0.0) {
- return $parsedComplex['real'];
- } else {
- return self::_cleanComplex( self::COMPLEX( $parsedComplex['real'],
- 0 - $parsedComplex['imaginary'],
- $parsedComplex['suffix']
- )
- );
- }
- } // function IMCONJUGATE()
-
-
- /**
- * IMCOS
- *
- * Returns the cosine of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMCOS(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the cosine.
- * @return string|float
- */
- public static function IMCOS($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if ($parsedComplex['imaginary'] == 0.0) {
- return cos($parsedComplex['real']);
- } else {
- return self::IMCONJUGATE(self::COMPLEX(cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']),sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']));
- }
- } // function IMCOS()
-
-
- /**
- * IMSIN
- *
- * Returns the sine of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMSIN(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the sine.
- * @return string|float
- */
- public static function IMSIN($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if ($parsedComplex['imaginary'] == 0.0) {
- return sin($parsedComplex['real']);
- } else {
- return self::COMPLEX(sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']),cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']),$parsedComplex['suffix']);
- }
- } // function IMSIN()
-
-
- /**
- * IMSQRT
- *
- * Returns the square root of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMSQRT(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the square root.
- * @return string
- */
- public static function IMSQRT($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- $theta = self::IMARGUMENT($complexNumber);
- $d1 = cos($theta / 2);
- $d2 = sin($theta / 2);
- $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
-
- if ($parsedComplex['suffix'] == '') {
- return self::COMPLEX($d1 * $r,$d2 * $r);
- } else {
- return self::COMPLEX($d1 * $r,$d2 * $r,$parsedComplex['suffix']);
- }
- } // function IMSQRT()
-
-
- /**
- * IMLN
- *
- * Returns the natural logarithm of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMLN(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the natural logarithm.
- * @return string
- */
- public static function IMLN($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])));
- $t = self::IMARGUMENT($complexNumber);
-
- if ($parsedComplex['suffix'] == '') {
- return self::COMPLEX($logR,$t);
- } else {
- return self::COMPLEX($logR,$t,$parsedComplex['suffix']);
- }
- } // function IMLN()
-
-
- /**
- * IMLOG10
- *
- * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMLOG10(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the common logarithm.
- * @return string
- */
- public static function IMLOG10($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return log10($parsedComplex['real']);
- }
-
- return self::IMPRODUCT(log10(EULER),self::IMLN($complexNumber));
- } // function IMLOG10()
-
-
- /**
- * IMLOG2
- *
- * Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMLOG2(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the base-2 logarithm.
- * @return string
- */
- public static function IMLOG2($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return log($parsedComplex['real'],2);
- }
-
- return self::IMPRODUCT(log(EULER,2),self::IMLN($complexNumber));
- } // function IMLOG2()
-
-
- /**
- * IMEXP
- *
- * Returns the exponential of a complex number in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMEXP(complexNumber)
- *
- * @param string $complexNumber The complex number for which you want the exponential.
- * @return string
- */
- public static function IMEXP($complexNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) {
- return '1';
- }
-
- $e = exp($parsedComplex['real']);
- $eX = $e * cos($parsedComplex['imaginary']);
- $eY = $e * sin($parsedComplex['imaginary']);
-
- if ($parsedComplex['suffix'] == '') {
- return self::COMPLEX($eX,$eY);
- } else {
- return self::COMPLEX($eX,$eY,$parsedComplex['suffix']);
- }
- } // function IMEXP()
-
-
- /**
- * IMPOWER
- *
- * Returns a complex number in x + yi or x + yj text format raised to a power.
- *
- * Excel Function:
- * IMPOWER(complexNumber,realNumber)
- *
- * @param string $complexNumber The complex number you want to raise to a power.
- * @param float $realNumber The power to which you want to raise the complex number.
- * @return string
- */
- public static function IMPOWER($complexNumber,$realNumber) {
- $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber);
- $realNumber = PHPExcel_Calculation_Functions::flattenSingleValue($realNumber);
-
- if (!is_numeric($realNumber)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- $parsedComplex = self::_parseComplex($complexNumber);
-
- $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']));
- $rPower = pow($r,$realNumber);
- $theta = self::IMARGUMENT($complexNumber) * $realNumber;
- if ($theta == 0) {
- return 1;
- } elseif ($parsedComplex['imaginary'] == 0.0) {
- return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
- } else {
- return self::COMPLEX($rPower * cos($theta),$rPower * sin($theta),$parsedComplex['suffix']);
- }
- } // function IMPOWER()
-
-
- /**
- * IMDIV
- *
- * Returns the quotient of two complex numbers in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMDIV(complexDividend,complexDivisor)
- *
- * @param string $complexDividend The complex numerator or dividend.
- * @param string $complexDivisor The complex denominator or divisor.
- * @return string
- */
- public static function IMDIV($complexDividend,$complexDivisor) {
- $complexDividend = PHPExcel_Calculation_Functions::flattenSingleValue($complexDividend);
- $complexDivisor = PHPExcel_Calculation_Functions::flattenSingleValue($complexDivisor);
-
- $parsedComplexDividend = self::_parseComplex($complexDividend);
- $parsedComplexDivisor = self::_parseComplex($complexDivisor);
-
- if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') &&
- ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) {
- $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix'];
- }
-
- $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']);
- $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']);
- $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']);
-
- $r = $d1/$d3;
- $i = $d2/$d3;
-
- if ($i > 0.0) {
- return self::_cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']);
- } elseif ($i < 0.0) {
- return self::_cleanComplex($r.$i.$parsedComplexDivisor['suffix']);
- } else {
- return $r;
- }
- } // function IMDIV()
-
-
- /**
- * IMSUB
- *
- * Returns the difference of two complex numbers in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMSUB(complexNumber1,complexNumber2)
- *
- * @param string $complexNumber1 The complex number from which to subtract complexNumber2.
- * @param string $complexNumber2 The complex number to subtract from complexNumber1.
- * @return string
- */
- public static function IMSUB($complexNumber1,$complexNumber2) {
- $complexNumber1 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber1);
- $complexNumber2 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber2);
-
- $parsedComplex1 = self::_parseComplex($complexNumber1);
- $parsedComplex2 = self::_parseComplex($complexNumber2);
-
- if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) &&
- ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) {
- $parsedComplex1['suffix'] = $parsedComplex2['suffix'];
- }
-
- $d1 = $parsedComplex1['real'] - $parsedComplex2['real'];
- $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary'];
-
- return self::COMPLEX($d1,$d2,$parsedComplex1['suffix']);
- } // function IMSUB()
-
-
- /**
- * IMSUM
- *
- * Returns the sum of two or more complex numbers in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMSUM(complexNumber[,complexNumber[,...]])
- *
- * @param string $complexNumber,... Series of complex numbers to add
- * @return string
- */
- public static function IMSUM() {
- // Return value
- $returnValue = self::_parseComplex('0');
- $activeSuffix = '';
-
- // Loop through the arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- foreach ($aArgs as $arg) {
- $parsedComplex = self::_parseComplex($arg);
-
- if ($activeSuffix == '') {
- $activeSuffix = $parsedComplex['suffix'];
- } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- $returnValue['real'] += $parsedComplex['real'];
- $returnValue['imaginary'] += $parsedComplex['imaginary'];
- }
-
- if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
- return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
- } // function IMSUM()
-
-
- /**
- * IMPRODUCT
- *
- * Returns the product of two or more complex numbers in x + yi or x + yj text format.
- *
- * Excel Function:
- * IMPRODUCT(complexNumber[,complexNumber[,...]])
- *
- * @param string $complexNumber,... Series of complex numbers to multiply
- * @return string
- */
- public static function IMPRODUCT() {
- // Return value
- $returnValue = self::_parseComplex('1');
- $activeSuffix = '';
-
- // Loop through the arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- foreach ($aArgs as $arg) {
- $parsedComplex = self::_parseComplex($arg);
-
- $workValue = $returnValue;
- if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) {
- $activeSuffix = $parsedComplex['suffix'];
- } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']);
- $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']);
- }
-
- if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; }
- return self::COMPLEX($returnValue['real'],$returnValue['imaginary'],$activeSuffix);
- } // function IMPRODUCT()
-
-
- /**
- * DELTA
- *
- * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise.
- * Use this function to filter a set of values. For example, by summing several DELTA
- * functions you calculate the count of equal pairs. This function is also known as the
- * Kronecker Delta function.
- *
- * Excel Function:
- * DELTA(a[,b])
- *
- * @param float $a The first number.
- * @param float $b The second number. If omitted, b is assumed to be zero.
- * @return int
- */
- public static function DELTA($a, $b=0) {
- $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
- $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
-
- return (int) ($a == $b);
- } // function DELTA()
-
-
- /**
- * GESTEP
- *
- * Excel Function:
- * GESTEP(number[,step])
- *
- * Returns 1 if number >= step; returns 0 (zero) otherwise
- * Use this function to filter a set of values. For example, by summing several GESTEP
- * functions you calculate the count of values that exceed a threshold.
- *
- * @param float $number The value to test against step.
- * @param float $step The threshold value.
- * If you omit a value for step, GESTEP uses zero.
- * @return int
- */
- public static function GESTEP($number, $step=0) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $step = PHPExcel_Calculation_Functions::flattenSingleValue($step);
-
- return (int) ($number >= $step);
- } // function GESTEP()
-
-
- //
- // Private method to calculate the erf value
- //
- private static $_two_sqrtpi = 1.128379167095512574;
-
- public static function _erfVal($x) {
- if (abs($x) > 2.2) {
- return 1 - self::_erfcVal($x);
- }
- $sum = $term = $x;
- $xsqr = ($x * $x);
- $j = 1;
- do {
- $term *= $xsqr / $j;
- $sum -= $term / (2 * $j + 1);
- ++$j;
- $term *= $xsqr / $j;
- $sum += $term / (2 * $j + 1);
- ++$j;
- if ($sum == 0.0) {
- break;
- }
- } while (abs($term / $sum) > PRECISION);
- return self::$_two_sqrtpi * $sum;
- } // function _erfVal()
-
-
- /**
- * ERF
- *
- * Returns the error function integrated between the lower and upper bound arguments.
- *
- * Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments,
- * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
- * improved, so that it can now calculate the function for both positive and negative ranges.
- * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
- *
- * Excel Function:
- * ERF(lower[,upper])
- *
- * @param float $lower lower bound for integrating ERF
- * @param float $upper upper bound for integrating ERF.
- * If omitted, ERF integrates between zero and lower_limit
- * @return float
- */
- public static function ERF($lower, $upper = NULL) {
- $lower = PHPExcel_Calculation_Functions::flattenSingleValue($lower);
- $upper = PHPExcel_Calculation_Functions::flattenSingleValue($upper);
-
- if (is_numeric($lower)) {
- if (is_null($upper)) {
- return self::_erfVal($lower);
- }
- if (is_numeric($upper)) {
- return self::_erfVal($upper) - self::_erfVal($lower);
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ERF()
-
-
- //
- // Private method to calculate the erfc value
- //
- private static $_one_sqrtpi = 0.564189583547756287;
-
- private static function _erfcVal($x) {
- if (abs($x) < 2.2) {
- return 1 - self::_erfVal($x);
- }
- if ($x < 0) {
- return 2 - self::ERFC(-$x);
- }
- $a = $n = 1;
- $b = $c = $x;
- $d = ($x * $x) + 0.5;
- $q1 = $q2 = $b / $d;
- $t = 0;
- do {
- $t = $a * $n + $b * $x;
- $a = $b;
- $b = $t;
- $t = $c * $n + $d * $x;
- $c = $d;
- $d = $t;
- $n += 0.5;
- $q1 = $q2;
- $q2 = $b / $d;
- } while ((abs($q1 - $q2) / $q2) > PRECISION);
- return self::$_one_sqrtpi * exp(-$x * $x) * $q2;
- } // function _erfcVal()
-
-
- /**
- * ERFC
- *
- * Returns the complementary ERF function integrated between x and infinity
- *
- * Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument,
- * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
- * improved, so that it can now calculate the function for both positive and negative x values.
- * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments.
- *
- * Excel Function:
- * ERFC(x)
- *
- * @param float $x The lower bound for integrating ERFC
- * @return float
- */
- public static function ERFC($x) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
-
- if (is_numeric($x)) {
- return self::_erfcVal($x);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ERFC()
-
-
- /**
- * getConversionGroups
- * Returns a list of the different conversion groups for UOM conversions
- *
- * @return array
- */
- public static function getConversionGroups() {
- $conversionGroups = array();
- foreach(self::$_conversionUnits as $conversionUnit) {
- $conversionGroups[] = $conversionUnit['Group'];
- }
- return array_merge(array_unique($conversionGroups));
- } // function getConversionGroups()
-
-
- /**
- * getConversionGroupUnits
- * Returns an array of units of measure, for a specified conversion group, or for all groups
- *
- * @param string $group The group whose units of measure you want to retrieve
- * @return array
- */
- public static function getConversionGroupUnits($group = NULL) {
- $conversionGroups = array();
- foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
- if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
- $conversionGroups[$conversionGroup['Group']][] = $conversionUnit;
- }
- }
- return $conversionGroups;
- } // function getConversionGroupUnits()
-
-
- /**
- * getConversionGroupUnitDetails
- *
- * @param string $group The group whose units of measure you want to retrieve
- * @return array
- */
- public static function getConversionGroupUnitDetails($group = NULL) {
- $conversionGroups = array();
- foreach(self::$_conversionUnits as $conversionUnit => $conversionGroup) {
- if ((is_null($group)) || ($conversionGroup['Group'] == $group)) {
- $conversionGroups[$conversionGroup['Group']][] = array( 'unit' => $conversionUnit,
- 'description' => $conversionGroup['Unit Name']
- );
- }
- }
- return $conversionGroups;
- } // function getConversionGroupUnitDetails()
-
-
- /**
- * getConversionMultipliers
- * Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM()
- *
- * @return array of mixed
- */
- public static function getConversionMultipliers() {
- return self::$_conversionMultipliers;
- } // function getConversionGroups()
-
-
- /**
- * CONVERTUOM
- *
- * Converts a number from one measurement system to another.
- * For example, CONVERT can translate a table of distances in miles to a table of distances
- * in kilometers.
- *
- * Excel Function:
- * CONVERT(value,fromUOM,toUOM)
- *
- * @param float $value The value in fromUOM to convert.
- * @param string $fromUOM The units for value.
- * @param string $toUOM The units for the result.
- *
- * @return float
- */
- public static function CONVERTUOM($value, $fromUOM, $toUOM) {
- $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
- $fromUOM = PHPExcel_Calculation_Functions::flattenSingleValue($fromUOM);
- $toUOM = PHPExcel_Calculation_Functions::flattenSingleValue($toUOM);
-
- if (!is_numeric($value)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $fromMultiplier = 1.0;
- if (isset(self::$_conversionUnits[$fromUOM])) {
- $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
- } else {
- $fromMultiplier = substr($fromUOM,0,1);
- $fromUOM = substr($fromUOM,1);
- if (isset(self::$_conversionMultipliers[$fromMultiplier])) {
- $fromMultiplier = self::$_conversionMultipliers[$fromMultiplier]['multiplier'];
- } else {
- return PHPExcel_Calculation_Functions::NA();
- }
- if ((isset(self::$_conversionUnits[$fromUOM])) && (self::$_conversionUnits[$fromUOM]['AllowPrefix'])) {
- $unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
- } else {
- return PHPExcel_Calculation_Functions::NA();
- }
- }
- $value *= $fromMultiplier;
-
- $toMultiplier = 1.0;
- if (isset(self::$_conversionUnits[$toUOM])) {
- $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
- } else {
- $toMultiplier = substr($toUOM,0,1);
- $toUOM = substr($toUOM,1);
- if (isset(self::$_conversionMultipliers[$toMultiplier])) {
- $toMultiplier = self::$_conversionMultipliers[$toMultiplier]['multiplier'];
- } else {
- return PHPExcel_Calculation_Functions::NA();
- }
- if ((isset(self::$_conversionUnits[$toUOM])) && (self::$_conversionUnits[$toUOM]['AllowPrefix'])) {
- $unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
- } else {
- return PHPExcel_Calculation_Functions::NA();
- }
- }
- if ($unitGroup1 != $unitGroup2) {
- return PHPExcel_Calculation_Functions::NA();
- }
-
- if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) {
- // We've already factored $fromMultiplier into the value, so we need
- // to reverse it again
- return $value / $fromMultiplier;
- } elseif ($unitGroup1 == 'Temperature') {
- if (($fromUOM == 'F') || ($fromUOM == 'fah')) {
- if (($toUOM == 'F') || ($toUOM == 'fah')) {
- return $value;
- } else {
- $value = (($value - 32) / 1.8);
- if (($toUOM == 'K') || ($toUOM == 'kel')) {
- $value += 273.15;
- }
- return $value;
- }
- } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) &&
- (($toUOM == 'K') || ($toUOM == 'kel'))) {
- return $value;
- } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) &&
- (($toUOM == 'C') || ($toUOM == 'cel'))) {
- return $value;
- }
- if (($toUOM == 'F') || ($toUOM == 'fah')) {
- if (($fromUOM == 'K') || ($fromUOM == 'kel')) {
- $value -= 273.15;
- }
- return ($value * 1.8) + 32;
- }
- if (($toUOM == 'C') || ($toUOM == 'cel')) {
- return $value - 273.15;
- }
- return $value + 273.15;
- }
- return ($value * self::$_unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier;
- } // function CONVERTUOM()
-
-} // class PHPExcel_Calculation_Engineering
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Exception.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Exception.php
index 2ddf666d..52d73fc4 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Exception.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Exception.php
@@ -1,8 +1,9 @@
line = $line;
- $e->file = $file;
- throw $e;
- }
+class PHPExcel_Calculation_Exception extends PHPExcel_Exception
+{
+ /**
+ * Error handler callback
+ *
+ * @param mixed $code
+ * @param mixed $string
+ * @param mixed $file
+ * @param mixed $line
+ * @param mixed $context
+ */
+ public static function errorHandlerCallback($code, $string, $file, $line, $context)
+ {
+ $e = new self($string, $code);
+ $e->line = $line;
+ $e->file = $file;
+ throw $e;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/ExceptionHandler.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/ExceptionHandler.php
index 41c42d7a..4cb0a688 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/ExceptionHandler.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/ExceptionHandler.php
@@ -1,8 +1,9 @@
format('d') == $testDate->format('t'));
+ }
-/** PHPExcel root directory */
-if (!defined('PHPEXCEL_ROOT')) {
- /**
- * @ignore
- */
- define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
- require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
-}
+ /**
+ * isFirstDayOfMonth
+ *
+ * Returns a boolean TRUE/FALSE indicating if this date is the first date of the month
+ *
+ * @param DateTime $testDate The date for testing
+ * @return boolean
+ */
+ private static function isFirstDayOfMonth($testDate)
+ {
+ return ($testDate->format('d') == 1);
+ }
-/** FINANCIAL_MAX_ITERATIONS */
-define('FINANCIAL_MAX_ITERATIONS', 128);
+ private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next)
+ {
+ $months = 12 / $frequency;
-/** FINANCIAL_PRECISION */
-define('FINANCIAL_PRECISION', 1.0e-08);
+ $result = PHPExcel_Shared_Date::ExcelToPHPObject($maturity);
+ $eom = self::isLastDayOfMonth($result);
+
+ while ($settlement < PHPExcel_Shared_Date::PHPToExcel($result)) {
+ $result->modify('-'.$months.' months');
+ }
+ if ($next) {
+ $result->modify('+'.$months.' months');
+ }
+
+ if ($eom) {
+ $result->modify('-1 day');
+ }
+
+ return PHPExcel_Shared_Date::PHPToExcel($result);
+ }
-/**
- * PHPExcel_Calculation_Financial
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_Financial {
-
- /**
- * _lastDayOfMonth
- *
- * Returns a boolean TRUE/FALSE indicating if this date is the last date of the month
- *
- * @param DateTime $testDate The date for testing
- * @return boolean
- */
- private static function _lastDayOfMonth($testDate)
- {
- return ($testDate->format('d') == $testDate->format('t'));
- } // function _lastDayOfMonth()
+ private static function isValidFrequency($frequency)
+ {
+ if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
+ return true;
+ }
+ if ((PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) &&
+ (($frequency == 6) || ($frequency == 12))) {
+ return true;
+ }
+ return false;
+ }
- /**
- * _firstDayOfMonth
- *
- * Returns a boolean TRUE/FALSE indicating if this date is the first date of the month
- *
- * @param DateTime $testDate The date for testing
- * @return boolean
- */
- private static function _firstDayOfMonth($testDate)
- {
- return ($testDate->format('d') == 1);
- } // function _firstDayOfMonth()
+ /**
+ * daysPerYear
+ *
+ * Returns the number of days in a specified year, as defined by the "basis" value
+ *
+ * @param integer $year The year against which we're testing
+ * @param integer $basis The type of day count:
+ * 0 or omitted US (NASD) 360
+ * 1 Actual (365 or 366 in a leap year)
+ * 2 360
+ * 3 365
+ * 4 European 360
+ * @return integer
+ */
+ private static function daysPerYear($year, $basis = 0)
+ {
+ switch ($basis) {
+ case 0:
+ case 2:
+ case 4:
+ $daysPerYear = 360;
+ break;
+ case 3:
+ $daysPerYear = 365;
+ break;
+ case 1:
+ $daysPerYear = (PHPExcel_Calculation_DateTime::isLeapYear($year)) ? 366 : 365;
+ break;
+ default:
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return $daysPerYear;
+ }
- private static function _coupFirstPeriodDate($settlement, $maturity, $frequency, $next)
- {
- $months = 12 / $frequency;
-
- $result = PHPExcel_Shared_Date::ExcelToPHPObject($maturity);
- $eom = self::_lastDayOfMonth($result);
-
- while ($settlement < PHPExcel_Shared_Date::PHPToExcel($result)) {
- $result->modify('-'.$months.' months');
- }
- if ($next) {
- $result->modify('+'.$months.' months');
- }
-
- if ($eom) {
- $result->modify('-1 day');
- }
-
- return PHPExcel_Shared_Date::PHPToExcel($result);
- } // function _coupFirstPeriodDate()
+ private static function interestAndPrincipal($rate = 0, $per = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0)
+ {
+ $pmt = self::PMT($rate, $nper, $pv, $fv, $type);
+ $capital = $pv;
+ for ($i = 1; $i<= $per; ++$i) {
+ $interest = ($type && $i == 1) ? 0 : -$capital * $rate;
+ $principal = $pmt - $interest;
+ $capital += $principal;
+ }
+ return array($interest, $principal);
+ }
- private static function _validFrequency($frequency)
- {
- if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
- return true;
- }
- if ((PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) &&
- (($frequency == 6) || ($frequency == 12))) {
- return true;
- }
- return false;
- } // function _validFrequency()
+ /**
+ * ACCRINT
+ *
+ * Returns the accrued interest for a security that pays periodic interest.
+ *
+ * Excel Function:
+ * ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed $issue The security's issue date.
+ * @param mixed $firstinterest The security's first interest date.
+ * @param mixed $settlement The security's settlement date.
+ * The security settlement date is the date after the issue date
+ * when the security is traded to the buyer.
+ * @param float $rate The security's annual coupon rate.
+ * @param float $par The security's par value.
+ * If you omit par, ACCRINT uses $1,000.
+ * @param integer $frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer $basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINT($issue, $firstinterest, $settlement, $rate, $par = 1000, $frequency = 1, $basis = 0)
+ {
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $firstinterest = PHPExcel_Calculation_Functions::flattenSingleValue($firstinterest);
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
+ $frequency = (is_null($frequency)) ? 1 : PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ $rate = (float) $rate;
+ $par = (float) $par;
+ if (($rate <= 0) || ($par <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+
+ return $par * $rate * $daysBetweenIssueAndSettlement;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * _daysPerYear
- *
- * Returns the number of days in a specified year, as defined by the "basis" value
- *
- * @param integer $year The year against which we're testing
- * @param integer $basis The type of day count:
- * 0 or omitted US (NASD) 360
- * 1 Actual (365 or 366 in a leap year)
- * 2 360
- * 3 365
- * 4 European 360
- * @return integer
- */
- private static function _daysPerYear($year, $basis=0)
- {
- switch ($basis) {
- case 0 :
- case 2 :
- case 4 :
- $daysPerYear = 360;
- break;
- case 3 :
- $daysPerYear = 365;
- break;
- case 1 :
- $daysPerYear = (PHPExcel_Calculation_DateTime::_isLeapYear($year)) ? 366 : 365;
- break;
- default :
- return PHPExcel_Calculation_Functions::NaN();
- }
- return $daysPerYear;
- } // function _daysPerYear()
+ /**
+ * ACCRINTM
+ *
+ * Returns the accrued interest for a security that pays interest at maturity.
+ *
+ * Excel Function:
+ * ACCRINTM(issue,settlement,rate[,par[,basis]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed issue The security's issue date.
+ * @param mixed settlement The security's settlement (or maturity) date.
+ * @param float rate The security's annual coupon rate.
+ * @param float par The security's par value.
+ * If you omit par, ACCRINT uses $1,000.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function ACCRINTM($issue, $settlement, $rate, $par = 1000, $basis = 0)
+ {
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
+ $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($rate)) && (is_numeric($par))) {
+ $rate = (float) $rate;
+ $par = (float) $par;
+ if (($rate <= 0) || ($par <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ return $par * $rate * $daysBetweenIssueAndSettlement;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- private static function _interestAndPrincipal($rate=0, $per=0, $nper=0, $pv=0, $fv=0, $type=0)
- {
- $pmt = self::PMT($rate, $nper, $pv, $fv, $type);
- $capital = $pv;
- for ($i = 1; $i<= $per; ++$i) {
- $interest = ($type && $i == 1) ? 0 : -$capital * $rate;
- $principal = $pmt - $interest;
- $capital += $principal;
- }
- return array($interest, $principal);
- } // function _interestAndPrincipal()
+ /**
+ * AMORDEGRC
+ *
+ * Returns the depreciation for each accounting period.
+ * This function is provided for the French accounting system. If an asset is purchased in
+ * the middle of the accounting period, the prorated depreciation is taken into account.
+ * The function is similar to AMORLINC, except that a depreciation coefficient is applied in
+ * the calculation depending on the life of the assets.
+ * This function will return the depreciation until the last period of the life of the assets
+ * or until the cumulated value of depreciation is greater than the cost of the assets minus
+ * the salvage value.
+ *
+ * Excel Function:
+ * AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost The cost of the asset.
+ * @param mixed purchased Date of the purchase of the asset.
+ * @param mixed firstPeriod Date of the end of the first period.
+ * @param mixed salvage The salvage value at the end of the life of the asset.
+ * @param float period The period.
+ * @param float rate Rate of depreciation.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis = 0)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
+ $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $period = floor(PHPExcel_Calculation_Functions::flattenSingleValue($period));
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // The depreciation coefficients are:
+ // Life of assets (1/rate) Depreciation coefficient
+ // Less than 3 years 1
+ // Between 3 and 4 years 1.5
+ // Between 5 and 6 years 2
+ // More than 6 years 2.5
+ $fUsePer = 1.0 / $rate;
+ if ($fUsePer < 3.0) {
+ $amortiseCoeff = 1.0;
+ } elseif ($fUsePer < 5.0) {
+ $amortiseCoeff = 1.5;
+ } elseif ($fUsePer <= 6.0) {
+ $amortiseCoeff = 2.0;
+ } else {
+ $amortiseCoeff = 2.5;
+ }
+
+ $rate *= $amortiseCoeff;
+ $fNRate = round(PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis) * $rate * $cost, 0);
+ $cost -= $fNRate;
+ $fRest = $cost - $salvage;
+
+ for ($n = 0; $n < $period; ++$n) {
+ $fNRate = round($rate * $cost, 0);
+ $fRest -= $fNRate;
+
+ if ($fRest < 0.0) {
+ switch ($period - $n) {
+ case 0:
+ case 1:
+ return round($cost * 0.5, 0);
+ default:
+ return 0.0;
+ }
+ }
+ $cost -= $fNRate;
+ }
+ return $fNRate;
+ }
- /**
- * ACCRINT
- *
- * Returns the accrued interest for a security that pays periodic interest.
- *
- * Excel Function:
- * ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed $issue The security's issue date.
- * @param mixed $firstinterest The security's first interest date.
- * @param mixed $settlement The security's settlement date.
- * The security settlement date is the date after the issue date
- * when the security is traded to the buyer.
- * @param float $rate The security's annual coupon rate.
- * @param float $par The security's par value.
- * If you omit par, ACCRINT uses $1,000.
- * @param integer $frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer $basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function ACCRINT($issue, $firstinterest, $settlement, $rate, $par=1000, $frequency=1, $basis=0)
- {
- $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
- $firstinterest = PHPExcel_Calculation_Functions::flattenSingleValue($firstinterest);
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
- $frequency = (is_null($frequency)) ? 1 : PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+ /**
+ * AMORLINC
+ *
+ * Returns the depreciation for each accounting period.
+ * This function is provided for the French accounting system. If an asset is purchased in
+ * the middle of the accounting period, the prorated depreciation is taken into account.
+ *
+ * Excel Function:
+ * AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost The cost of the asset.
+ * @param mixed purchased Date of the purchase of the asset.
+ * @param mixed firstPeriod Date of the end of the first period.
+ * @param mixed salvage The salvage value at the end of the life of the asset.
+ * @param float period The period.
+ * @param float rate Rate of depreciation.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis = 0)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
+ $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
- // Validate
- if ((is_numeric($rate)) && (is_numeric($par))) {
- $rate = (float) $rate;
- $par = (float) $par;
- if (($rate <= 0) || ($par <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
- if (!is_numeric($daysBetweenIssueAndSettlement)) {
- // return date error
- return $daysBetweenIssueAndSettlement;
- }
+ $fOneRate = $cost * $rate;
+ $fCostDelta = $cost - $salvage;
+ // Note, quirky variation for leap years on the YEARFRAC for this function
+ $purchasedYear = PHPExcel_Calculation_DateTime::YEAR($purchased);
+ $yearFrac = PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis);
- return $par * $rate * $daysBetweenIssueAndSettlement;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ACCRINT()
+ if (($basis == 1) && ($yearFrac < 1) && (PHPExcel_Calculation_DateTime::isLeapYear($purchasedYear))) {
+ $yearFrac *= 365 / 366;
+ }
+ $f0Rate = $yearFrac * $rate * $cost;
+ $nNumOfFullPeriods = intval(($cost - $salvage - $f0Rate) / $fOneRate);
- /**
- * ACCRINTM
- *
- * Returns the accrued interest for a security that pays interest at maturity.
- *
- * Excel Function:
- * ACCRINTM(issue,settlement,rate[,par[,basis]])
- *
- * @access public
- * @category Financial Functions
- * @param mixed issue The security's issue date.
- * @param mixed settlement The security's settlement (or maturity) date.
- * @param float rate The security's annual coupon rate.
- * @param float par The security's par value.
- * If you omit par, ACCRINT uses $1,000.
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function ACCRINTM($issue, $settlement, $rate, $par=1000, $basis=0) {
- $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par);
- $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if ((is_numeric($rate)) && (is_numeric($par))) {
- $rate = (float) $rate;
- $par = (float) $par;
- if (($rate <= 0) || ($par <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
- if (!is_numeric($daysBetweenIssueAndSettlement)) {
- // return date error
- return $daysBetweenIssueAndSettlement;
- }
- return $par * $rate * $daysBetweenIssueAndSettlement;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ACCRINTM()
-
-
- /**
- * AMORDEGRC
- *
- * Returns the depreciation for each accounting period.
- * This function is provided for the French accounting system. If an asset is purchased in
- * the middle of the accounting period, the prorated depreciation is taken into account.
- * The function is similar to AMORLINC, except that a depreciation coefficient is applied in
- * the calculation depending on the life of the assets.
- * This function will return the depreciation until the last period of the life of the assets
- * or until the cumulated value of depreciation is greater than the cost of the assets minus
- * the salvage value.
- *
- * Excel Function:
- * AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param float cost The cost of the asset.
- * @param mixed purchased Date of the purchase of the asset.
- * @param mixed firstPeriod Date of the end of the first period.
- * @param mixed salvage The salvage value at the end of the life of the asset.
- * @param float period The period.
- * @param float rate Rate of depreciation.
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
- $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $period = floor(PHPExcel_Calculation_Functions::flattenSingleValue($period));
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // The depreciation coefficients are:
- // Life of assets (1/rate) Depreciation coefficient
- // Less than 3 years 1
- // Between 3 and 4 years 1.5
- // Between 5 and 6 years 2
- // More than 6 years 2.5
- $fUsePer = 1.0 / $rate;
- if ($fUsePer < 3.0) {
- $amortiseCoeff = 1.0;
- } elseif ($fUsePer < 5.0) {
- $amortiseCoeff = 1.5;
- } elseif ($fUsePer <= 6.0) {
- $amortiseCoeff = 2.0;
- } else {
- $amortiseCoeff = 2.5;
- }
-
- $rate *= $amortiseCoeff;
- $fNRate = round(PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis) * $rate * $cost,0);
- $cost -= $fNRate;
- $fRest = $cost - $salvage;
-
- for ($n = 0; $n < $period; ++$n) {
- $fNRate = round($rate * $cost,0);
- $fRest -= $fNRate;
-
- if ($fRest < 0.0) {
- switch ($period - $n) {
- case 0 :
- case 1 : return round($cost * 0.5, 0);
- break;
- default : return 0.0;
- break;
- }
- }
- $cost -= $fNRate;
- }
- return $fNRate;
- } // function AMORDEGRC()
-
-
- /**
- * AMORLINC
- *
- * Returns the depreciation for each accounting period.
- * This function is provided for the French accounting system. If an asset is purchased in
- * the middle of the accounting period, the prorated depreciation is taken into account.
- *
- * Excel Function:
- * AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param float cost The cost of the asset.
- * @param mixed purchased Date of the purchase of the asset.
- * @param mixed firstPeriod Date of the end of the first period.
- * @param mixed salvage The salvage value at the end of the life of the asset.
- * @param float period The period.
- * @param float rate Rate of depreciation.
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis=0) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased);
- $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- $fOneRate = $cost * $rate;
- $fCostDelta = $cost - $salvage;
- // Note, quirky variation for leap years on the YEARFRAC for this function
- $purchasedYear = PHPExcel_Calculation_DateTime::YEAR($purchased);
- $yearFrac = PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis);
-
- if (($basis == 1) && ($yearFrac < 1) && (PHPExcel_Calculation_DateTime::_isLeapYear($purchasedYear))) {
- $yearFrac *= 365 / 366;
- }
-
- $f0Rate = $yearFrac * $rate * $cost;
- $nNumOfFullPeriods = intval(($cost - $salvage - $f0Rate) / $fOneRate);
-
- if ($period == 0) {
- return $f0Rate;
- } elseif ($period <= $nNumOfFullPeriods) {
- return $fOneRate;
- } elseif ($period == ($nNumOfFullPeriods + 1)) {
+ if ($period == 0) {
+ return $f0Rate;
+ } elseif ($period <= $nNumOfFullPeriods) {
+ return $fOneRate;
+ } elseif ($period == ($nNumOfFullPeriods + 1)) {
return ($fCostDelta - $fOneRate * $nNumOfFullPeriods - $f0Rate);
- } else {
- return 0.0;
- }
- } // function AMORLINC()
-
-
- /**
- * COUPDAYBS
- *
- * Returns the number of days from the beginning of the coupon period to the settlement date.
- *
- * Excel Function:
- * COUPDAYBS(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function COUPDAYBS($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
- $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
-
- return PHPExcel_Calculation_DateTime::YEARFRAC($prev, $settlement, $basis) * $daysPerYear;
- } // function COUPDAYBS()
-
-
- /**
- * COUPDAYS
- *
- * Returns the number of days in the coupon period that contains the settlement date.
- *
- * Excel Function:
- * COUPDAYS(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function COUPDAYS($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- switch ($basis) {
- case 3: // Actual/365
- return 365 / $frequency;
- case 1: // Actual/actual
- if ($frequency == 1) {
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($maturity),$basis);
- return ($daysPerYear / $frequency);
- } else {
- $prev = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
- $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
- return ($next - $prev);
- }
- default: // US (NASD) 30/360, Actual/360 or European 30/360
- return 360 / $frequency;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function COUPDAYS()
-
-
- /**
- * COUPDAYSNC
- *
- * Returns the number of days from the settlement date to the next coupon date.
- *
- * Excel Function:
- * COUPDAYSNC(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
- $next = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
-
- return PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $next, $basis) * $daysPerYear;
- } // function COUPDAYSNC()
-
-
- /**
- * COUPNCD
- *
- * Returns the next coupon date after the settlement date.
- *
- * Excel Function:
- * COUPNCD(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function COUPNCD($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
- } // function COUPNCD()
-
-
- /**
- * COUPNUM
- *
- * Returns the number of coupons payable between the settlement date and maturity date,
- * rounded up to the nearest whole coupon.
- *
- * Excel Function:
- * COUPNUM(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return integer
- */
- public static function COUPNUM($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $settlement = self::_coupFirstPeriodDate($settlement, $maturity, $frequency, True);
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis) * 365;
-
- switch ($frequency) {
- case 1: // annual payments
- return ceil($daysBetweenSettlementAndMaturity / 360);
- case 2: // half-yearly
- return ceil($daysBetweenSettlementAndMaturity / 180);
- case 4: // quarterly
- return ceil($daysBetweenSettlementAndMaturity / 90);
- case 6: // bimonthly
- return ceil($daysBetweenSettlementAndMaturity / 60);
- case 12: // monthly
- return ceil($daysBetweenSettlementAndMaturity / 30);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function COUPNUM()
-
-
- /**
- * COUPPCD
- *
- * Returns the previous coupon date before the settlement date.
- *
- * Excel Function:
- * COUPPCD(settlement,maturity,frequency[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed frequency the number of coupon payments per year.
- * Valid frequency values are:
- * 1 Annual
- * 2 Semi-Annual
- * 4 Quarterly
- * If working in Gnumeric Mode, the following frequency options are
- * also available
- * 6 Bimonthly
- * 12 Monthly
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
- * depending on the value of the ReturnDateType flag
- */
- public static function COUPPCD($settlement, $maturity, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return self::_coupFirstPeriodDate($settlement, $maturity, $frequency, False);
- } // function COUPPCD()
-
-
- /**
- * CUMIPMT
- *
- * Returns the cumulative interest paid on a loan between the start and end periods.
- *
- * Excel Function:
- * CUMIPMT(rate,nper,pv,start,end[,type])
- *
- * @access public
- * @category Financial Functions
- * @param float $rate The Interest rate
- * @param integer $nper The total number of payment periods
- * @param float $pv Present Value
- * @param integer $start The first period in the calculation.
- * Payment periods are numbered beginning with 1.
- * @param integer $end The last period in the calculation.
- * @param integer $type A number 0 or 1 and indicates when payments are due:
- * 0 or omitted At the end of the period.
- * 1 At the beginning of the period.
- * @return float
- */
- public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
- $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
- $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($start < 1 || $start > $end) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // Calculate
- $interest = 0;
- for ($per = $start; $per <= $end; ++$per) {
- $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type);
- }
-
- return $interest;
- } // function CUMIPMT()
-
-
- /**
- * CUMPRINC
- *
- * Returns the cumulative principal paid on a loan between the start and end periods.
- *
- * Excel Function:
- * CUMPRINC(rate,nper,pv,start,end[,type])
- *
- * @access public
- * @category Financial Functions
- * @param float $rate The Interest rate
- * @param integer $nper The total number of payment periods
- * @param float $pv Present Value
- * @param integer $start The first period in the calculation.
- * Payment periods are numbered beginning with 1.
- * @param integer $end The last period in the calculation.
- * @param integer $type A number 0 or 1 and indicates when payments are due:
- * 0 or omitted At the end of the period.
- * 1 At the beginning of the period.
- * @return float
- */
- public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
- $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
- $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($start < 1 || $start > $end) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // Calculate
- $principal = 0;
- for ($per = $start; $per <= $end; ++$per) {
- $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type);
- }
-
- return $principal;
- } // function CUMPRINC()
-
-
- /**
- * DB
- *
- * Returns the depreciation of an asset for a specified period using the
- * fixed-declining balance method.
- * This form of depreciation is used if you want to get a higher depreciation value
- * at the beginning of the depreciation (as opposed to linear depreciation). The
- * depreciation value is reduced with every depreciation period by the depreciation
- * already deducted from the initial cost.
- *
- * Excel Function:
- * DB(cost,salvage,life,period[,month])
- *
- * @access public
- * @category Financial Functions
- * @param float cost Initial cost of the asset.
- * @param float salvage Value at the end of the depreciation.
- * (Sometimes called the salvage value of the asset)
- * @param integer life Number of periods over which the asset is depreciated.
- * (Sometimes called the useful life of the asset)
- * @param integer period The period for which you want to calculate the
- * depreciation. Period must use the same units as life.
- * @param integer month Number of months in the first year. If month is omitted,
- * it defaults to 12.
- * @return float
- */
- public static function DB($cost, $salvage, $life, $period, $month=12) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
- $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
- $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
-
- // Validate
- if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) {
- $cost = (float) $cost;
- $salvage = (float) $salvage;
- $life = (int) $life;
- $period = (int) $period;
- $month = (int) $month;
- if ($cost == 0) {
- return 0.0;
- } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- // Set Fixed Depreciation Rate
- $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
- $fixedDepreciationRate = round($fixedDepreciationRate, 3);
-
- // Loop through each period calculating the depreciation
- $previousDepreciation = 0;
- for ($per = 1; $per <= $period; ++$per) {
- if ($per == 1) {
- $depreciation = $cost * $fixedDepreciationRate * $month / 12;
- } elseif ($per == ($life + 1)) {
- $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12;
- } else {
- $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate;
- }
- $previousDepreciation += $depreciation;
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $depreciation = round($depreciation,2);
- }
- return $depreciation;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function DB()
-
-
- /**
- * DDB
- *
- * Returns the depreciation of an asset for a specified period using the
- * double-declining balance method or some other method you specify.
- *
- * Excel Function:
- * DDB(cost,salvage,life,period[,factor])
- *
- * @access public
- * @category Financial Functions
- * @param float cost Initial cost of the asset.
- * @param float salvage Value at the end of the depreciation.
- * (Sometimes called the salvage value of the asset)
- * @param integer life Number of periods over which the asset is depreciated.
- * (Sometimes called the useful life of the asset)
- * @param integer period The period for which you want to calculate the
- * depreciation. Period must use the same units as life.
- * @param float factor The rate at which the balance declines.
- * If factor is omitted, it is assumed to be 2 (the
- * double-declining balance method).
- * @return float
- */
- public static function DDB($cost, $salvage, $life, $period, $factor=2.0) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
- $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
- $factor = PHPExcel_Calculation_Functions::flattenSingleValue($factor);
-
- // Validate
- if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) {
- $cost = (float) $cost;
- $salvage = (float) $salvage;
- $life = (int) $life;
- $period = (int) $period;
- $factor = (float) $factor;
- if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- // Set Fixed Depreciation Rate
- $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
- $fixedDepreciationRate = round($fixedDepreciationRate, 3);
-
- // Loop through each period calculating the depreciation
- $previousDepreciation = 0;
- for ($per = 1; $per <= $period; ++$per) {
- $depreciation = min( ($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation) );
- $previousDepreciation += $depreciation;
- }
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- $depreciation = round($depreciation,2);
- }
- return $depreciation;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function DDB()
-
-
- /**
- * DISC
- *
- * Returns the discount rate for a security.
- *
- * Excel Function:
- * DISC(settlement,maturity,price,redemption[,basis])
- *
- * @access public
- * @category Financial Functions
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue
- * date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param integer price The security's price per $100 face value.
- * @param integer redemption The security's redemption value per $100 face value.
- * @param integer basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function DISC($settlement, $maturity, $price, $redemption, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
- $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
- $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) {
- $price = (float) $price;
- $redemption = (float) $redemption;
- $basis = (int) $basis;
- if (($price <= 0) || ($redemption <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
-
- return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function DISC()
-
-
- /**
- * DOLLARDE
- *
- * Converts a dollar price expressed as an integer part and a fraction
- * part into a dollar price expressed as a decimal number.
- * Fractional dollar numbers are sometimes used for security prices.
- *
- * Excel Function:
- * DOLLARDE(fractional_dollar,fraction)
- *
- * @access public
- * @category Financial Functions
- * @param float $fractional_dollar Fractional Dollar
- * @param integer $fraction Fraction
- * @return float
- */
- public static function DOLLARDE($fractional_dollar = Null, $fraction = 0) {
- $fractional_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($fractional_dollar);
- $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
-
- // Validate parameters
- if (is_null($fractional_dollar) || $fraction < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($fraction == 0) {
- return PHPExcel_Calculation_Functions::DIV0();
- }
-
- $dollars = floor($fractional_dollar);
- $cents = fmod($fractional_dollar,1);
- $cents /= $fraction;
- $cents *= pow(10,ceil(log10($fraction)));
- return $dollars + $cents;
- } // function DOLLARDE()
-
-
- /**
- * DOLLARFR
- *
- * Converts a dollar price expressed as a decimal number into a dollar price
- * expressed as a fraction.
- * Fractional dollar numbers are sometimes used for security prices.
- *
- * Excel Function:
- * DOLLARFR(decimal_dollar,fraction)
- *
- * @access public
- * @category Financial Functions
- * @param float $decimal_dollar Decimal Dollar
- * @param integer $fraction Fraction
- * @return float
- */
- public static function DOLLARFR($decimal_dollar = Null, $fraction = 0) {
- $decimal_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($decimal_dollar);
- $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
-
- // Validate parameters
- if (is_null($decimal_dollar) || $fraction < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($fraction == 0) {
- return PHPExcel_Calculation_Functions::DIV0();
- }
-
- $dollars = floor($decimal_dollar);
- $cents = fmod($decimal_dollar,1);
- $cents *= $fraction;
- $cents *= pow(10,-ceil(log10($fraction)));
- return $dollars + $cents;
- } // function DOLLARFR()
-
-
- /**
- * EFFECT
- *
- * Returns the effective interest rate given the nominal rate and the number of
- * compounding payments per year.
- *
- * Excel Function:
- * EFFECT(nominal_rate,npery)
- *
- * @access public
- * @category Financial Functions
- * @param float $nominal_rate Nominal interest rate
- * @param integer $npery Number of compounding payments per year
- * @return float
- */
- public static function EFFECT($nominal_rate = 0, $npery = 0) {
- $nominal_rate = PHPExcel_Calculation_Functions::flattenSingleValue($nominal_rate);
- $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
-
- // Validate parameters
- if ($nominal_rate <= 0 || $npery < 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return pow((1 + $nominal_rate / $npery), $npery) - 1;
- } // function EFFECT()
-
-
- /**
- * FV
- *
- * Returns the Future Value of a cash flow with constant payments and interest rate (annuities).
- *
- * Excel Function:
- * FV(rate,nper,pmt[,pv[,type]])
- *
- * @access public
- * @category Financial Functions
- * @param float $rate The interest rate per period
- * @param int $nper Total number of payment periods in an annuity
- * @param float $pmt The payment made each period: it cannot change over the
- * life of the annuity. Typically, pmt contains principal
- * and interest but no other fees or taxes.
- * @param float $pv Present Value, or the lump-sum amount that a series of
- * future payments is worth right now.
- * @param integer $type A number 0 or 1 and indicates when payments are due:
- * 0 or omitted At the end of the period.
- * 1 At the beginning of the period.
- * @return float
- */
- public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- // Calculate
- if (!is_null($rate) && $rate != 0) {
- return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate;
- } else {
- return -$pv - $pmt * $nper;
- }
- } // function FV()
-
-
- /**
- * FVSCHEDULE
- *
- * Returns the future value of an initial principal after applying a series of compound interest rates.
- * Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate.
- *
- * Excel Function:
- * FVSCHEDULE(principal,schedule)
- *
- * @param float $principal The present value.
- * @param float[] $schedule An array of interest rates to apply.
- * @return float
- */
- public static function FVSCHEDULE($principal, $schedule) {
- $principal = PHPExcel_Calculation_Functions::flattenSingleValue($principal);
- $schedule = PHPExcel_Calculation_Functions::flattenArray($schedule);
-
- foreach($schedule as $rate) {
- $principal *= 1 + $rate;
- }
-
- return $principal;
- } // function FVSCHEDULE()
-
-
- /**
- * INTRATE
- *
- * Returns the interest rate for a fully invested security.
- *
- * Excel Function:
- * INTRATE(settlement,maturity,investment,redemption[,basis])
- *
- * @param mixed $settlement The security's settlement date.
- * The security settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed $maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param integer $investment The amount invested in the security.
- * @param integer $redemption The amount to be received at maturity.
- * @param integer $basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $investment = PHPExcel_Calculation_Functions::flattenSingleValue($investment);
- $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
- $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) {
- $investment = (float) $investment;
- $redemption = (float) $redemption;
- $basis = (int) $basis;
- if (($investment <= 0) || ($redemption <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
-
- return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function INTRATE()
-
-
- /**
- * IPMT
- *
- * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
- *
- * Excel Function:
- * IPMT(rate,per,nper,pv[,fv][,type])
- *
- * @param float $rate Interest rate per period
- * @param int $per Period for which we want to find the interest
- * @param int $nper Number of periods
- * @param float $pv Present Value
- * @param float $fv Future Value
- * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
- * @return float
- */
- public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
- $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($per <= 0 || $per > $nper) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // Calculate
- $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
- return $interestAndPrincipal[0];
- } // function IPMT()
-
- /**
- * IRR
- *
- * Returns the internal rate of return for a series of cash flows represented by the numbers in values.
- * These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur
- * at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received
- * for an investment consisting of payments (negative values) and income (positive values) that occur at regular
- * periods.
- *
- * Excel Function:
- * IRR(values[,guess])
- *
- * @param float[] $values An array or a reference to cells that contain numbers for which you want
- * to calculate the internal rate of return.
- * Values must contain at least one positive value and one negative value to
- * calculate the internal rate of return.
- * @param float $guess A number that you guess is close to the result of IRR
- * @return float
- */
- public static function IRR($values, $guess = 0.1) {
- if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE();
- $values = PHPExcel_Calculation_Functions::flattenArray($values);
- $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
-
- // create an initial range, with a root somewhere between 0 and guess
- $x1 = 0.0;
- $x2 = $guess;
- $f1 = self::NPV($x1, $values);
- $f2 = self::NPV($x2, $values);
- for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
- if (($f1 * $f2) < 0.0) break;
- if (abs($f1) < abs($f2)) {
- $f1 = self::NPV($x1 += 1.6 * ($x1 - $x2), $values);
- } else {
- $f2 = self::NPV($x2 += 1.6 * ($x2 - $x1), $values);
- }
- }
- if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE();
-
- $f = self::NPV($x1, $values);
- if ($f < 0.0) {
- $rtb = $x1;
- $dx = $x2 - $x1;
- } else {
- $rtb = $x2;
- $dx = $x1 - $x2;
- }
-
- for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
- $dx *= 0.5;
- $x_mid = $rtb + $dx;
- $f_mid = self::NPV($x_mid, $values);
- if ($f_mid <= 0.0)
- $rtb = $x_mid;
- if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION))
- return $x_mid;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function IRR()
-
-
- /**
- * ISPMT
- *
- * Returns the interest payment for an investment based on an interest rate and a constant payment schedule.
- *
- * Excel Function:
- * =ISPMT(interest_rate, period, number_payments, PV)
- *
- * interest_rate is the interest rate for the investment
- *
- * period is the period to calculate the interest rate. It must be betweeen 1 and number_payments.
- *
- * number_payments is the number of payments for the annuity
- *
- * PV is the loan amount or present value of the payments
- */
- public static function ISPMT() {
- // Return value
- $returnValue = 0;
-
- // Get the parameters
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- $interestRate = array_shift($aArgs);
- $period = array_shift($aArgs);
- $numberPeriods = array_shift($aArgs);
- $principleRemaining = array_shift($aArgs);
-
- // Calculate
- $principlePayment = ($principleRemaining * 1.0) / ($numberPeriods * 1.0);
- for($i=0; $i <= $period; ++$i) {
- $returnValue = $interestRate * $principleRemaining * -1;
- $principleRemaining -= $principlePayment;
- // principle needs to be 0 after the last payment, don't let floating point screw it up
- if($i == $numberPeriods) {
- $returnValue = 0;
- }
- }
- return($returnValue);
- } // function ISPMT()
-
-
- /**
- * MIRR
- *
- * Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both
- * the cost of the investment and the interest received on reinvestment of cash.
- *
- * Excel Function:
- * MIRR(values,finance_rate, reinvestment_rate)
- *
- * @param float[] $values An array or a reference to cells that contain a series of payments and
- * income occurring at regular intervals.
- * Payments are negative value, income is positive values.
- * @param float $finance_rate The interest rate you pay on the money used in the cash flows
- * @param float $reinvestment_rate The interest rate you receive on the cash flows as you reinvest them
- * @return float
- */
- public static function MIRR($values, $finance_rate, $reinvestment_rate) {
- if (!is_array($values)) return PHPExcel_Calculation_Functions::VALUE();
- $values = PHPExcel_Calculation_Functions::flattenArray($values);
- $finance_rate = PHPExcel_Calculation_Functions::flattenSingleValue($finance_rate);
- $reinvestment_rate = PHPExcel_Calculation_Functions::flattenSingleValue($reinvestment_rate);
- $n = count($values);
-
- $rr = 1.0 + $reinvestment_rate;
- $fr = 1.0 + $finance_rate;
-
- $npv_pos = $npv_neg = 0.0;
- foreach($values as $i => $v) {
- if ($v >= 0) {
- $npv_pos += $v / pow($rr, $i);
- } else {
- $npv_neg += $v / pow($fr, $i);
- }
- }
-
- if (($npv_neg == 0) || ($npv_pos == 0) || ($reinvestment_rate <= -1)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- $mirr = pow((-$npv_pos * pow($rr, $n))
- / ($npv_neg * ($rr)), (1.0 / ($n - 1))) - 1.0;
-
- return (is_finite($mirr) ? $mirr : PHPExcel_Calculation_Functions::VALUE());
- } // function MIRR()
-
-
- /**
- * NOMINAL
- *
- * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
- *
- * @param float $effect_rate Effective interest rate
- * @param int $npery Number of compounding payments per year
- * @return float
- */
- public static function NOMINAL($effect_rate = 0, $npery = 0) {
- $effect_rate = PHPExcel_Calculation_Functions::flattenSingleValue($effect_rate);
- $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
-
- // Validate parameters
- if ($effect_rate <= 0 || $npery < 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- // Calculate
- return $npery * (pow($effect_rate + 1, 1 / $npery) - 1);
- } // function NOMINAL()
-
-
- /**
- * NPER
- *
- * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
- *
- * @param float $rate Interest rate per period
- * @param int $pmt Periodic payment (annuity)
- * @param float $pv Present Value
- * @param float $fv Future Value
- * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
- * @return float
- */
- public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- // Calculate
- if (!is_null($rate) && $rate != 0) {
- if ($pmt == 0 && $pv == 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate);
- } else {
- if ($pmt == 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return (-$pv -$fv) / $pmt;
- }
- } // function NPER()
-
- /**
- * NPV
- *
- * Returns the Net Present Value of a cash flow series given a discount rate.
- *
- * @return float
- */
- public static function NPV() {
- // Return value
- $returnValue = 0;
-
- // Loop through arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
-
- // Calculate
- $rate = array_shift($aArgs);
- for ($i = 1; $i <= count($aArgs); ++$i) {
- // Is it a numeric value?
- if (is_numeric($aArgs[$i - 1])) {
- $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i);
- }
- }
-
- // Return
- return $returnValue;
- } // function NPV()
-
- /**
- * PMT
- *
- * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
- *
- * @param float $rate Interest rate per period
- * @param int $nper Number of periods
- * @param float $pv Present Value
- * @param float $fv Future Value
- * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
- * @return float
- */
- public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- // Calculate
- if (!is_null($rate) && $rate != 0) {
- return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate);
- } else {
- return (-$pv - $fv) / $nper;
- }
- } // function PMT()
-
-
- /**
- * PPMT
- *
- * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
- *
- * @param float $rate Interest rate per period
- * @param int $per Period for which we want to find the interest
- * @param int $nper Number of periods
- * @param float $pv Present Value
- * @param float $fv Future Value
- * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
- * @return float
- */
- public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
- $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- if ($per <= 0 || $per > $nper) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // Calculate
- $interestAndPrincipal = self::_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
- return $interestAndPrincipal[1];
- } // function PPMT()
-
-
- public static function PRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $rate = (float) PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $yield = (float) PHPExcel_Calculation_Functions::flattenSingleValue($yield);
- $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
- $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
- $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- if (is_string($settlement = PHPExcel_Calculation_DateTime::_getDateValue($settlement))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (($settlement > $maturity) ||
- (!self::_validFrequency($frequency)) ||
- (($basis < 0) || ($basis > 4))) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $dsc = self::COUPDAYSNC($settlement, $maturity, $frequency, $basis);
- $e = self::COUPDAYS($settlement, $maturity, $frequency, $basis);
- $n = self::COUPNUM($settlement, $maturity, $frequency, $basis);
- $a = self::COUPDAYBS($settlement, $maturity, $frequency, $basis);
-
- $baseYF = 1.0 + ($yield / $frequency);
- $rfp = 100 * ($rate / $frequency);
- $de = $dsc / $e;
-
- $result = $redemption / pow($baseYF, (--$n + $de));
- for($k = 0; $k <= $n; ++$k) {
- $result += $rfp / (pow($baseYF, ($k + $de)));
- }
- $result -= $rfp * ($a / $e);
-
- return $result;
- } // function PRICE()
-
-
- /**
- * PRICEDISC
- *
- * Returns the price per $100 face value of a discounted security.
- *
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param int discount The security's discount rate.
- * @param int redemption The security's redemption value per $100 face value.
- * @param int basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
- $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
- $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) {
- if (($discount <= 0) || ($redemption <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
-
- return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function PRICEDISC()
-
-
- /**
- * PRICEMAT
- *
- * Returns the price per $100 face value of a security that pays interest at maturity.
- *
- * @param mixed settlement The security's settlement date.
- * The security's settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed issue The security's issue date.
- * @param int rate The security's interest rate at date of issue.
- * @param int yield The security's annual yield.
- * @param int basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $yield = PHPExcel_Calculation_Functions::flattenSingleValue($yield);
- $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if (is_numeric($rate) && is_numeric($yield)) {
- if (($rate <= 0) || ($yield <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
- if (!is_numeric($daysPerYear)) {
- return $daysPerYear;
- }
- $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
- if (!is_numeric($daysBetweenIssueAndSettlement)) {
- // return date error
- return $daysBetweenIssueAndSettlement;
- }
- $daysBetweenIssueAndSettlement *= $daysPerYear;
- $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
- if (!is_numeric($daysBetweenIssueAndMaturity)) {
- // return date error
- return $daysBetweenIssueAndMaturity;
- }
- $daysBetweenIssueAndMaturity *= $daysPerYear;
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
- $daysBetweenSettlementAndMaturity *= $daysPerYear;
-
- return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) /
- (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) -
- (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100));
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function PRICEMAT()
-
-
- /**
- * PV
- *
- * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
- *
- * @param float $rate Interest rate per period
- * @param int $nper Number of periods
- * @param float $pmt Periodic payment (annuity)
- * @param float $fv Future Value
- * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
- * @return float
- */
- public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
- $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
-
- // Validate parameters
- if ($type != 0 && $type != 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- // Calculate
- if (!is_null($rate) && $rate != 0) {
- return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper);
- } else {
- return -$fv - $pmt * $nper;
- }
- } // function PV()
-
-
- /**
- * RATE
- *
- * Returns the interest rate per period of an annuity.
- * RATE is calculated by iteration and can have zero or more solutions.
- * If the successive results of RATE do not converge to within 0.0000001 after 20 iterations,
- * RATE returns the #NUM! error value.
- *
- * Excel Function:
- * RATE(nper,pmt,pv[,fv[,type[,guess]]])
- *
- * @access public
- * @category Financial Functions
- * @param float nper The total number of payment periods in an annuity.
- * @param float pmt The payment made each period and cannot change over the life
- * of the annuity.
- * Typically, pmt includes principal and interest but no other
- * fees or taxes.
- * @param float pv The present value - the total amount that a series of future
- * payments is worth now.
- * @param float fv The future value, or a cash balance you want to attain after
- * the last payment is made. If fv is omitted, it is assumed
- * to be 0 (the future value of a loan, for example, is 0).
- * @param integer type A number 0 or 1 and indicates when payments are due:
- * 0 or omitted At the end of the period.
- * 1 At the beginning of the period.
- * @param float guess Your guess for what the rate will be.
- * If you omit guess, it is assumed to be 10 percent.
- * @return float
- **/
- public static function RATE($nper, $pmt, $pv, $fv = 0.0, $type = 0, $guess = 0.1) {
- $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
- $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
- $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
- $fv = (is_null($fv)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($fv);
- $type = (is_null($type)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
- $guess = (is_null($guess)) ? 0.1 : PHPExcel_Calculation_Functions::flattenSingleValue($guess);
-
- $rate = $guess;
- if (abs($rate) < FINANCIAL_PRECISION) {
- $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
- } else {
- $f = exp($nper * log(1 + $rate));
- $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
- }
- $y0 = $pv + $pmt * $nper + $fv;
- $y1 = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
-
- // find root by secant method
- $i = $x0 = 0.0;
- $x1 = $rate;
- while ((abs($y0 - $y1) > FINANCIAL_PRECISION) && ($i < FINANCIAL_MAX_ITERATIONS)) {
- $rate = ($y1 * $x0 - $y0 * $x1) / ($y1 - $y0);
- $x0 = $x1;
- $x1 = $rate;
- if (($nper * abs($pmt)) > ($pv - $fv))
- $x1 = abs($x1);
-
- if (abs($rate) < FINANCIAL_PRECISION) {
- $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
- } else {
- $f = exp($nper * log(1 + $rate));
- $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
- }
-
- $y0 = $y1;
- $y1 = $y;
- ++$i;
- }
- return $rate;
- } // function RATE()
-
-
- /**
- * RECEIVED
- *
- * Returns the price per $100 face value of a discounted security.
- *
- * @param mixed settlement The security's settlement date.
- * The security settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param int investment The amount invested in the security.
- * @param int discount The security's discount rate.
- * @param int basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $investment = (float) PHPExcel_Calculation_Functions::flattenSingleValue($investment);
- $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
- $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) {
- if (($investment <= 0) || ($discount <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
-
- return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity));
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function RECEIVED()
-
-
- /**
- * SLN
- *
- * Returns the straight-line depreciation of an asset for one period
- *
- * @param cost Initial cost of the asset
- * @param salvage Value at the end of the depreciation
- * @param life Number of periods over which the asset is depreciated
- * @return float
- */
- public static function SLN($cost, $salvage, $life) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
-
- // Calculate
- if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) {
- if ($life < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return ($cost - $salvage) / $life;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SLN()
-
-
- /**
- * SYD
- *
- * Returns the sum-of-years' digits depreciation of an asset for a specified period.
- *
- * @param cost Initial cost of the asset
- * @param salvage Value at the end of the depreciation
- * @param life Number of periods over which the asset is depreciated
- * @param period Period
- * @return float
- */
- public static function SYD($cost, $salvage, $life, $period) {
- $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
- $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
- $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
- $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
-
- // Calculate
- if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) {
- if (($life < 1) || ($period > $life)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1));
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SYD()
-
-
- /**
- * TBILLEQ
- *
- * Returns the bond-equivalent yield for a Treasury bill.
- *
- * @param mixed settlement The Treasury bill's settlement date.
- * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- * @param mixed maturity The Treasury bill's maturity date.
- * The maturity date is the date when the Treasury bill expires.
- * @param int discount The Treasury bill's discount rate.
- * @return float
- */
- public static function TBILLEQ($settlement, $maturity, $discount) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
-
- // Use TBILLPRICE for validation
- $testValue = self::TBILLPRICE($settlement, $maturity, $discount);
- if (is_string($testValue)) {
- return $testValue;
- }
-
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- ++$maturity;
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
- } else {
- $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
- }
-
- return (365 * $discount) / (360 - $discount * $daysBetweenSettlementAndMaturity);
- } // function TBILLEQ()
-
-
- /**
- * TBILLPRICE
- *
- * Returns the yield for a Treasury bill.
- *
- * @param mixed settlement The Treasury bill's settlement date.
- * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- * @param mixed maturity The Treasury bill's maturity date.
- * The maturity date is the date when the Treasury bill expires.
- * @param int discount The Treasury bill's discount rate.
- * @return float
- */
- public static function TBILLPRICE($settlement, $maturity, $discount) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
-
- if (is_string($maturity = PHPExcel_Calculation_DateTime::_getDateValue($maturity))) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // Validate
- if (is_numeric($discount)) {
- if ($discount <= 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- ++$maturity;
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
- } else {
- $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
- }
-
- if ($daysBetweenSettlementAndMaturity > 360) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360));
- if ($price <= 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return $price;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function TBILLPRICE()
-
-
- /**
- * TBILLYIELD
- *
- * Returns the yield for a Treasury bill.
- *
- * @param mixed settlement The Treasury bill's settlement date.
- * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- * @param mixed maturity The Treasury bill's maturity date.
- * The maturity date is the date when the Treasury bill expires.
- * @param int price The Treasury bill's price per $100 face value.
- * @return float
- */
- public static function TBILLYIELD($settlement, $maturity, $price) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
-
- // Validate
- if (is_numeric($price)) {
- if ($price <= 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
- ++$maturity;
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
- } else {
- $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
- }
-
- if ($daysBetweenSettlementAndMaturity > 360) {
- return PHPExcel_Calculation_Functions::NaN();
- }
-
- return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function TBILLYIELD()
-
-
- public static function XIRR($values, $dates, $guess = 0.1) {
- if ((!is_array($values)) && (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE();
- $values = PHPExcel_Calculation_Functions::flattenArray($values);
- $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
- $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
- if (count($values) != count($dates)) return PHPExcel_Calculation_Functions::NaN();
-
- // create an initial range, with a root somewhere between 0 and guess
- $x1 = 0.0;
- $x2 = $guess;
- $f1 = self::XNPV($x1, $values, $dates);
- $f2 = self::XNPV($x2, $values, $dates);
- for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
- if (($f1 * $f2) < 0.0) break;
- if (abs($f1) < abs($f2)) {
- $f1 = self::XNPV($x1 += 1.6 * ($x1 - $x2), $values, $dates);
- } else {
- $f2 = self::XNPV($x2 += 1.6 * ($x2 - $x1), $values, $dates);
- }
- }
- if (($f1 * $f2) > 0.0) return PHPExcel_Calculation_Functions::VALUE();
-
- $f = self::XNPV($x1, $values, $dates);
- if ($f < 0.0) {
- $rtb = $x1;
- $dx = $x2 - $x1;
- } else {
- $rtb = $x2;
- $dx = $x1 - $x2;
- }
-
- for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
- $dx *= 0.5;
- $x_mid = $rtb + $dx;
- $f_mid = self::XNPV($x_mid, $values, $dates);
- if ($f_mid <= 0.0) $rtb = $x_mid;
- if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) return $x_mid;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
-
- /**
- * XNPV
- *
- * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
- * To calculate the net present value for a series of cash flows that is periodic, use the NPV function.
- *
- * Excel Function:
- * =XNPV(rate,values,dates)
- *
- * @param float $rate The discount rate to apply to the cash flows.
- * @param array of float $values A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.
- * @param array of mixed $dates A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.
- * @return float
- */
- public static function XNPV($rate, $values, $dates) {
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- if (!is_numeric($rate)) return PHPExcel_Calculation_Functions::VALUE();
- if ((!is_array($values)) || (!is_array($dates))) return PHPExcel_Calculation_Functions::VALUE();
- $values = PHPExcel_Calculation_Functions::flattenArray($values);
- $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
- $valCount = count($values);
- if ($valCount != count($dates)) return PHPExcel_Calculation_Functions::NaN();
- if ((min($values) > 0) || (max($values) < 0)) return PHPExcel_Calculation_Functions::VALUE();
-
- $xnpv = 0.0;
- for ($i = 0; $i < $valCount; ++$i) {
- if (!is_numeric($values[$i])) return PHPExcel_Calculation_Functions::VALUE();
- $xnpv += $values[$i] / pow(1 + $rate, PHPExcel_Calculation_DateTime::DATEDIF($dates[0],$dates[$i],'d') / 365);
- }
- return (is_finite($xnpv)) ? $xnpv : PHPExcel_Calculation_Functions::VALUE();
- } // function XNPV()
-
-
- /**
- * YIELDDISC
- *
- * Returns the annual yield of a security that pays interest at maturity.
- *
- * @param mixed settlement The security's settlement date.
- * The security's settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param int price The security's price per $100 face value.
- * @param int redemption The security's redemption value per $100 face value.
- * @param int basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
- $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
- $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if (is_numeric($price) && is_numeric($redemption)) {
- if (($price <= 0) || ($redemption <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
- if (!is_numeric($daysPerYear)) {
- return $daysPerYear;
- }
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity,$basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
- $daysBetweenSettlementAndMaturity *= $daysPerYear;
-
- return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function YIELDDISC()
-
-
- /**
- * YIELDMAT
- *
- * Returns the annual yield of a security that pays interest at maturity.
- *
- * @param mixed settlement The security's settlement date.
- * The security's settlement date is the date after the issue date when the security is traded to the buyer.
- * @param mixed maturity The security's maturity date.
- * The maturity date is the date when the security expires.
- * @param mixed issue The security's issue date.
- * @param int rate The security's interest rate at date of issue.
- * @param int price The security's price per $100 face value.
- * @param int basis The type of day count to use.
- * 0 or omitted US (NASD) 30/360
- * 1 Actual/actual
- * 2 Actual/360
- * 3 Actual/365
- * 4 European 30/360
- * @return float
- */
- public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis=0) {
- $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
- $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
- $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
- $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
- $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
- $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
-
- // Validate
- if (is_numeric($rate) && is_numeric($price)) {
- if (($rate <= 0) || ($price <= 0)) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $daysPerYear = self::_daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement),$basis);
- if (!is_numeric($daysPerYear)) {
- return $daysPerYear;
- }
- $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
- if (!is_numeric($daysBetweenIssueAndSettlement)) {
- // return date error
- return $daysBetweenIssueAndSettlement;
- }
- $daysBetweenIssueAndSettlement *= $daysPerYear;
- $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
- if (!is_numeric($daysBetweenIssueAndMaturity)) {
- // return date error
- return $daysBetweenIssueAndMaturity;
- }
- $daysBetweenIssueAndMaturity *= $daysPerYear;
- $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
- if (!is_numeric($daysBetweenSettlementAndMaturity)) {
- // return date error
- return $daysBetweenSettlementAndMaturity;
- }
- $daysBetweenSettlementAndMaturity *= $daysPerYear;
-
- return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) /
- (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) *
- ($daysPerYear / $daysBetweenSettlementAndMaturity);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function YIELDMAT()
-
-} // class PHPExcel_Calculation_Financial
+ } else {
+ return 0.0;
+ }
+ }
+
+
+ /**
+ * COUPDAYBS
+ *
+ * Returns the number of days from the beginning of the coupon period to the settlement date.
+ *
+ * Excel Function:
+ * COUPDAYBS(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYBS($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis);
+ $prev = self::couponFirstPeriodDate($settlement, $maturity, $frequency, false);
+
+ return PHPExcel_Calculation_DateTime::YEARFRAC($prev, $settlement, $basis) * $daysPerYear;
+ }
+
+
+ /**
+ * COUPDAYS
+ *
+ * Returns the number of days in the coupon period that contains the settlement date.
+ *
+ * Excel Function:
+ * COUPDAYS(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYS($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ switch ($basis) {
+ case 3:
+ // Actual/365
+ return 365 / $frequency;
+ case 1:
+ // Actual/actual
+ if ($frequency == 1) {
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($maturity), $basis);
+ return ($daysPerYear / $frequency);
+ }
+ $prev = self::couponFirstPeriodDate($settlement, $maturity, $frequency, false);
+ $next = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true);
+ return ($next - $prev);
+ default:
+ // US (NASD) 30/360, Actual/360 or European 30/360
+ return 360 / $frequency;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * COUPDAYSNC
+ *
+ * Returns the number of days from the settlement date to the next coupon date.
+ *
+ * Excel Function:
+ * COUPDAYSNC(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis);
+ $next = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true);
+
+ return PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $next, $basis) * $daysPerYear;
+ }
+
+
+ /**
+ * COUPNCD
+ *
+ * Returns the next coupon date after the settlement date.
+ *
+ * Excel Function:
+ * COUPNCD(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function COUPNCD($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::couponFirstPeriodDate($settlement, $maturity, $frequency, true);
+ }
+
+
+ /**
+ * COUPNUM
+ *
+ * Returns the number of coupons payable between the settlement date and maturity date,
+ * rounded up to the nearest whole coupon.
+ *
+ * Excel Function:
+ * COUPNUM(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return integer
+ */
+ public static function COUPNUM($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $settlement = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true);
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis) * 365;
+
+ switch ($frequency) {
+ case 1: // annual payments
+ return ceil($daysBetweenSettlementAndMaturity / 360);
+ case 2: // half-yearly
+ return ceil($daysBetweenSettlementAndMaturity / 180);
+ case 4: // quarterly
+ return ceil($daysBetweenSettlementAndMaturity / 90);
+ case 6: // bimonthly
+ return ceil($daysBetweenSettlementAndMaturity / 60);
+ case 12: // monthly
+ return ceil($daysBetweenSettlementAndMaturity / 30);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * COUPPCD
+ *
+ * Returns the previous coupon date before the settlement date.
+ *
+ * Excel Function:
+ * COUPPCD(settlement,maturity,frequency[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed frequency the number of coupon payments per year.
+ * Valid frequency values are:
+ * 1 Annual
+ * 2 Semi-Annual
+ * 4 Quarterly
+ * If working in Gnumeric Mode, the following frequency options are
+ * also available
+ * 6 Bimonthly
+ * 12 Monthly
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
+ * depending on the value of the ReturnDateType flag
+ */
+ public static function COUPPCD($settlement, $maturity, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return self::couponFirstPeriodDate($settlement, $maturity, $frequency, false);
+ }
+
+
+ /**
+ * CUMIPMT
+ *
+ * Returns the cumulative interest paid on a loan between the start and end periods.
+ *
+ * Excel Function:
+ * CUMIPMT(rate,nper,pv,start,end[,type])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The Interest rate
+ * @param integer $nper The total number of payment periods
+ * @param float $pv Present Value
+ * @param integer $start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param integer $end The last period in the calculation.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
+ $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($start < 1 || $start > $end) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interest = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $interest;
+ }
+
+
+ /**
+ * CUMPRINC
+ *
+ * Returns the cumulative principal paid on a loan between the start and end periods.
+ *
+ * Excel Function:
+ * CUMPRINC(rate,nper,pv,start,end[,type])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The Interest rate
+ * @param integer $nper The total number of payment periods
+ * @param float $pv Present Value
+ * @param integer $start The first period in the calculation.
+ * Payment periods are numbered beginning with 1.
+ * @param integer $end The last period in the calculation.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start);
+ $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($start < 1 || $start > $end) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $principal = 0;
+ for ($per = $start; $per <= $end; ++$per) {
+ $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type);
+ }
+
+ return $principal;
+ }
+
+
+ /**
+ * DB
+ *
+ * Returns the depreciation of an asset for a specified period using the
+ * fixed-declining balance method.
+ * This form of depreciation is used if you want to get a higher depreciation value
+ * at the beginning of the depreciation (as opposed to linear depreciation). The
+ * depreciation value is reduced with every depreciation period by the depreciation
+ * already deducted from the initial cost.
+ *
+ * Excel Function:
+ * DB(cost,salvage,life,period[,month])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation.
+ * (Sometimes called the salvage value of the asset)
+ * @param integer life Number of periods over which the asset is depreciated.
+ * (Sometimes called the useful life of the asset)
+ * @param integer period The period for which you want to calculate the
+ * depreciation. Period must use the same units as life.
+ * @param integer month Number of months in the first year. If month is omitted,
+ * it defaults to 12.
+ * @return float
+ */
+ public static function DB($cost, $salvage, $life, $period, $month = 12)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $month = PHPExcel_Calculation_Functions::flattenSingleValue($month);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) {
+ $cost = (float) $cost;
+ $salvage = (float) $salvage;
+ $life = (int) $life;
+ $period = (int) $period;
+ $month = (int) $month;
+ if ($cost == 0) {
+ return 0.0;
+ } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ if ($per == 1) {
+ $depreciation = $cost * $fixedDepreciationRate * $month / 12;
+ } elseif ($per == ($life + 1)) {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12;
+ } else {
+ $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate;
+ }
+ $previousDepreciation += $depreciation;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $depreciation = round($depreciation, 2);
+ }
+ return $depreciation;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * DDB
+ *
+ * Returns the depreciation of an asset for a specified period using the
+ * double-declining balance method or some other method you specify.
+ *
+ * Excel Function:
+ * DDB(cost,salvage,life,period[,factor])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float cost Initial cost of the asset.
+ * @param float salvage Value at the end of the depreciation.
+ * (Sometimes called the salvage value of the asset)
+ * @param integer life Number of periods over which the asset is depreciated.
+ * (Sometimes called the useful life of the asset)
+ * @param integer period The period for which you want to calculate the
+ * depreciation. Period must use the same units as life.
+ * @param float factor The rate at which the balance declines.
+ * If factor is omitted, it is assumed to be 2 (the
+ * double-declining balance method).
+ * @return float
+ */
+ public static function DDB($cost, $salvage, $life, $period, $factor = 2.0)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+ $factor = PHPExcel_Calculation_Functions::flattenSingleValue($factor);
+
+ // Validate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) {
+ $cost = (float) $cost;
+ $salvage = (float) $salvage;
+ $life = (int) $life;
+ $period = (int) $period;
+ $factor = (float) $factor;
+ if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ // Set Fixed Depreciation Rate
+ $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life));
+ $fixedDepreciationRate = round($fixedDepreciationRate, 3);
+
+ // Loop through each period calculating the depreciation
+ $previousDepreciation = 0;
+ for ($per = 1; $per <= $period; ++$per) {
+ $depreciation = min(($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation));
+ $previousDepreciation += $depreciation;
+ }
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ $depreciation = round($depreciation, 2);
+ }
+ return $depreciation;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * DISC
+ *
+ * Returns the discount rate for a security.
+ *
+ * Excel Function:
+ * DISC(settlement,maturity,price,redemption[,basis])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue
+ * date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param integer price The security's price per $100 face value.
+ * @param integer redemption The security's redemption value per $100 face value.
+ * @param integer basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function DISC($settlement, $maturity, $price, $redemption, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ $price = (float) $price;
+ $redemption = (float) $redemption;
+ $basis = (int) $basis;
+ if (($price <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * DOLLARDE
+ *
+ * Converts a dollar price expressed as an integer part and a fraction
+ * part into a dollar price expressed as a decimal number.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * Excel Function:
+ * DOLLARDE(fractional_dollar,fraction)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $fractional_dollar Fractional Dollar
+ * @param integer $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARDE($fractional_dollar = null, $fraction = 0)
+ {
+ $fractional_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($fractional_dollar);
+ $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($fractional_dollar) || $fraction < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($fraction == 0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ $dollars = floor($fractional_dollar);
+ $cents = fmod($fractional_dollar, 1);
+ $cents /= $fraction;
+ $cents *= pow(10, ceil(log10($fraction)));
+ return $dollars + $cents;
+ }
+
+
+ /**
+ * DOLLARFR
+ *
+ * Converts a dollar price expressed as a decimal number into a dollar price
+ * expressed as a fraction.
+ * Fractional dollar numbers are sometimes used for security prices.
+ *
+ * Excel Function:
+ * DOLLARFR(decimal_dollar,fraction)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $decimal_dollar Decimal Dollar
+ * @param integer $fraction Fraction
+ * @return float
+ */
+ public static function DOLLARFR($decimal_dollar = null, $fraction = 0)
+ {
+ $decimal_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($decimal_dollar);
+ $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction);
+
+ // Validate parameters
+ if (is_null($decimal_dollar) || $fraction < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($fraction == 0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ $dollars = floor($decimal_dollar);
+ $cents = fmod($decimal_dollar, 1);
+ $cents *= $fraction;
+ $cents *= pow(10, -ceil(log10($fraction)));
+ return $dollars + $cents;
+ }
+
+
+ /**
+ * EFFECT
+ *
+ * Returns the effective interest rate given the nominal rate and the number of
+ * compounding payments per year.
+ *
+ * Excel Function:
+ * EFFECT(nominal_rate,npery)
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $nominal_rate Nominal interest rate
+ * @param integer $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function EFFECT($nominal_rate = 0, $npery = 0)
+ {
+ $nominal_rate = PHPExcel_Calculation_Functions::flattenSingleValue($nominal_rate);
+ $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($nominal_rate <= 0 || $npery < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return pow((1 + $nominal_rate / $npery), $npery) - 1;
+ }
+
+
+ /**
+ * FV
+ *
+ * Returns the Future Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * Excel Function:
+ * FV(rate,nper,pmt[,pv[,type]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float $rate The interest rate per period
+ * @param int $nper Total number of payment periods in an annuity
+ * @param float $pmt The payment made each period: it cannot change over the
+ * life of the annuity. Typically, pmt contains principal
+ * and interest but no other fees or taxes.
+ * @param float $pv Present Value, or the lump-sum amount that a series of
+ * future payments is worth right now.
+ * @param integer $type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @return float
+ */
+ public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate;
+ }
+ return -$pv - $pmt * $nper;
+ }
+
+
+ /**
+ * FVSCHEDULE
+ *
+ * Returns the future value of an initial principal after applying a series of compound interest rates.
+ * Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate.
+ *
+ * Excel Function:
+ * FVSCHEDULE(principal,schedule)
+ *
+ * @param float $principal The present value.
+ * @param float[] $schedule An array of interest rates to apply.
+ * @return float
+ */
+ public static function FVSCHEDULE($principal, $schedule)
+ {
+ $principal = PHPExcel_Calculation_Functions::flattenSingleValue($principal);
+ $schedule = PHPExcel_Calculation_Functions::flattenArray($schedule);
+
+ foreach ($schedule as $rate) {
+ $principal *= 1 + $rate;
+ }
+
+ return $principal;
+ }
+
+
+ /**
+ * INTRATE
+ *
+ * Returns the interest rate for a fully invested security.
+ *
+ * Excel Function:
+ * INTRATE(settlement,maturity,investment,redemption[,basis])
+ *
+ * @param mixed $settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed $maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param integer $investment The amount invested in the security.
+ * @param integer $redemption The amount to be received at maturity.
+ * @param integer $basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $investment = PHPExcel_Calculation_Functions::flattenSingleValue($investment);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ $investment = (float) $investment;
+ $redemption = (float) $redemption;
+ $basis = (int) $basis;
+ if (($investment <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * IPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * Excel Function:
+ * IPMT(rate,per,nper,pv[,fv][,type])
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($per <= 0 || $per > $nper) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[0];
+ }
+
+ /**
+ * IRR
+ *
+ * Returns the internal rate of return for a series of cash flows represented by the numbers in values.
+ * These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur
+ * at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received
+ * for an investment consisting of payments (negative values) and income (positive values) that occur at regular
+ * periods.
+ *
+ * Excel Function:
+ * IRR(values[,guess])
+ *
+ * @param float[] $values An array or a reference to cells that contain numbers for which you want
+ * to calculate the internal rate of return.
+ * Values must contain at least one positive value and one negative value to
+ * calculate the internal rate of return.
+ * @param float $guess A number that you guess is close to the result of IRR
+ * @return float
+ */
+ public static function IRR($values, $guess = 0.1)
+ {
+ if (!is_array($values)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+
+ // create an initial range, with a root somewhere between 0 and guess
+ $x1 = 0.0;
+ $x2 = $guess;
+ $f1 = self::NPV($x1, $values);
+ $f2 = self::NPV($x2, $values);
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ if (($f1 * $f2) < 0.0) {
+ break;
+ }
+ if (abs($f1) < abs($f2)) {
+ $f1 = self::NPV($x1 += 1.6 * ($x1 - $x2), $values);
+ } else {
+ $f2 = self::NPV($x2 += 1.6 * ($x2 - $x1), $values);
+ }
+ }
+ if (($f1 * $f2) > 0.0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $f = self::NPV($x1, $values);
+ if ($f < 0.0) {
+ $rtb = $x1;
+ $dx = $x2 - $x1;
+ } else {
+ $rtb = $x2;
+ $dx = $x1 - $x2;
+ }
+
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ $dx *= 0.5;
+ $x_mid = $rtb + $dx;
+ $f_mid = self::NPV($x_mid, $values);
+ if ($f_mid <= 0.0) {
+ $rtb = $x_mid;
+ }
+ if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) {
+ return $x_mid;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * ISPMT
+ *
+ * Returns the interest payment for an investment based on an interest rate and a constant payment schedule.
+ *
+ * Excel Function:
+ * =ISPMT(interest_rate, period, number_payments, PV)
+ *
+ * interest_rate is the interest rate for the investment
+ *
+ * period is the period to calculate the interest rate. It must be betweeen 1 and number_payments.
+ *
+ * number_payments is the number of payments for the annuity
+ *
+ * PV is the loan amount or present value of the payments
+ */
+ public static function ISPMT()
+ {
+ // Return value
+ $returnValue = 0;
+
+ // Get the parameters
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ $interestRate = array_shift($aArgs);
+ $period = array_shift($aArgs);
+ $numberPeriods = array_shift($aArgs);
+ $principleRemaining = array_shift($aArgs);
+
+ // Calculate
+ $principlePayment = ($principleRemaining * 1.0) / ($numberPeriods * 1.0);
+ for ($i=0; $i <= $period; ++$i) {
+ $returnValue = $interestRate * $principleRemaining * -1;
+ $principleRemaining -= $principlePayment;
+ // principle needs to be 0 after the last payment, don't let floating point screw it up
+ if ($i == $numberPeriods) {
+ $returnValue = 0;
+ }
+ }
+ return($returnValue);
+ }
+
+
+ /**
+ * MIRR
+ *
+ * Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both
+ * the cost of the investment and the interest received on reinvestment of cash.
+ *
+ * Excel Function:
+ * MIRR(values,finance_rate, reinvestment_rate)
+ *
+ * @param float[] $values An array or a reference to cells that contain a series of payments and
+ * income occurring at regular intervals.
+ * Payments are negative value, income is positive values.
+ * @param float $finance_rate The interest rate you pay on the money used in the cash flows
+ * @param float $reinvestment_rate The interest rate you receive on the cash flows as you reinvest them
+ * @return float
+ */
+ public static function MIRR($values, $finance_rate, $reinvestment_rate)
+ {
+ if (!is_array($values)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $finance_rate = PHPExcel_Calculation_Functions::flattenSingleValue($finance_rate);
+ $reinvestment_rate = PHPExcel_Calculation_Functions::flattenSingleValue($reinvestment_rate);
+ $n = count($values);
+
+ $rr = 1.0 + $reinvestment_rate;
+ $fr = 1.0 + $finance_rate;
+
+ $npv_pos = $npv_neg = 0.0;
+ foreach ($values as $i => $v) {
+ if ($v >= 0) {
+ $npv_pos += $v / pow($rr, $i);
+ } else {
+ $npv_neg += $v / pow($fr, $i);
+ }
+ }
+
+ if (($npv_neg == 0) || ($npv_pos == 0) || ($reinvestment_rate <= -1)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $mirr = pow((-$npv_pos * pow($rr, $n))
+ / ($npv_neg * ($rr)), (1.0 / ($n - 1))) - 1.0;
+
+ return (is_finite($mirr) ? $mirr : PHPExcel_Calculation_Functions::VALUE());
+ }
+
+
+ /**
+ * NOMINAL
+ *
+ * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
+ *
+ * @param float $effect_rate Effective interest rate
+ * @param int $npery Number of compounding payments per year
+ * @return float
+ */
+ public static function NOMINAL($effect_rate = 0, $npery = 0)
+ {
+ $effect_rate = PHPExcel_Calculation_Functions::flattenSingleValue($effect_rate);
+ $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery);
+
+ // Validate parameters
+ if ($effect_rate <= 0 || $npery < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ return $npery * (pow($effect_rate + 1, 1 / $npery) - 1);
+ }
+
+
+ /**
+ * NPER
+ *
+ * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $pmt Periodic payment (annuity)
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ if ($pmt == 0 && $pv == 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate);
+ }
+ if ($pmt == 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return (-$pv -$fv) / $pmt;
+ }
+
+ /**
+ * NPV
+ *
+ * Returns the Net Present Value of a cash flow series given a discount rate.
+ *
+ * @return float
+ */
+ public static function NPV()
+ {
+ // Return value
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ // Calculate
+ $rate = array_shift($aArgs);
+ for ($i = 1; $i <= count($aArgs); ++$i) {
+ // Is it a numeric value?
+ if (is_numeric($aArgs[$i - 1])) {
+ $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i);
+ }
+ }
+
+ // Return
+ return $returnValue;
+ }
+
+ /**
+ * PMT
+ *
+ * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate);
+ }
+ return (-$pv - $fv) / $nper;
+ }
+
+
+ /**
+ * PPMT
+ *
+ * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
+ *
+ * @param float $rate Interest rate per period
+ * @param int $per Period for which we want to find the interest
+ * @param int $nper Number of periods
+ * @param float $pv Present Value
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per);
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ($per <= 0 || $per > $nper) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Calculate
+ $interestAndPrincipal = self::interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type);
+ return $interestAndPrincipal[1];
+ }
+
+
+ public static function PRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $rate = (float) PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $yield = (float) PHPExcel_Calculation_Functions::flattenSingleValue($yield);
+ $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency);
+ $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (($settlement > $maturity) ||
+ (!self::isValidFrequency($frequency)) ||
+ (($basis < 0) || ($basis > 4))) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $dsc = self::COUPDAYSNC($settlement, $maturity, $frequency, $basis);
+ $e = self::COUPDAYS($settlement, $maturity, $frequency, $basis);
+ $n = self::COUPNUM($settlement, $maturity, $frequency, $basis);
+ $a = self::COUPDAYBS($settlement, $maturity, $frequency, $basis);
+
+ $baseYF = 1.0 + ($yield / $frequency);
+ $rfp = 100 * ($rate / $frequency);
+ $de = $dsc / $e;
+
+ $result = $redemption / pow($baseYF, (--$n + $de));
+ for ($k = 0; $k <= $n; ++$k) {
+ $result += $rfp / (pow($baseYF, ($k + $de)));
+ }
+ $result -= $rfp * ($a / $e);
+
+ return $result;
+ }
+
+
+ /**
+ * PRICEDISC
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int discount The security's discount rate.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+ $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) {
+ if (($discount <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * PRICEMAT
+ *
+ * Returns the price per $100 face value of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int yield The security's annual yield.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $yield = PHPExcel_Calculation_Functions::flattenSingleValue($yield);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($yield)) {
+ if (($rate <= 0) || ($yield <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ // return date error
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) /
+ (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) -
+ (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * PV
+ *
+ * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
+ *
+ * @param float $rate Interest rate per period
+ * @param int $nper Number of periods
+ * @param float $pmt Periodic payment (annuity)
+ * @param float $fv Future Value
+ * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
+ * @return float
+ */
+ public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = PHPExcel_Calculation_Functions::flattenSingleValue($type);
+
+ // Validate parameters
+ if ($type != 0 && $type != 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // Calculate
+ if (!is_null($rate) && $rate != 0) {
+ return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper);
+ }
+ return -$fv - $pmt * $nper;
+ }
+
+
+ /**
+ * RATE
+ *
+ * Returns the interest rate per period of an annuity.
+ * RATE is calculated by iteration and can have zero or more solutions.
+ * If the successive results of RATE do not converge to within 0.0000001 after 20 iterations,
+ * RATE returns the #NUM! error value.
+ *
+ * Excel Function:
+ * RATE(nper,pmt,pv[,fv[,type[,guess]]])
+ *
+ * @access public
+ * @category Financial Functions
+ * @param float nper The total number of payment periods in an annuity.
+ * @param float pmt The payment made each period and cannot change over the life
+ * of the annuity.
+ * Typically, pmt includes principal and interest but no other
+ * fees or taxes.
+ * @param float pv The present value - the total amount that a series of future
+ * payments is worth now.
+ * @param float fv The future value, or a cash balance you want to attain after
+ * the last payment is made. If fv is omitted, it is assumed
+ * to be 0 (the future value of a loan, for example, is 0).
+ * @param integer type A number 0 or 1 and indicates when payments are due:
+ * 0 or omitted At the end of the period.
+ * 1 At the beginning of the period.
+ * @param float guess Your guess for what the rate will be.
+ * If you omit guess, it is assumed to be 10 percent.
+ * @return float
+ **/
+ public static function RATE($nper, $pmt, $pv, $fv = 0.0, $type = 0, $guess = 0.1)
+ {
+ $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper);
+ $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt);
+ $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv);
+ $fv = (is_null($fv)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($fv);
+ $type = (is_null($type)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($type);
+ $guess = (is_null($guess)) ? 0.1 : PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+
+ $rate = $guess;
+ if (abs($rate) < FINANCIAL_PRECISION) {
+ $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
+ } else {
+ $f = exp($nper * log(1 + $rate));
+ $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+ }
+ $y0 = $pv + $pmt * $nper + $fv;
+ $y1 = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+
+ // find root by secant method
+ $i = $x0 = 0.0;
+ $x1 = $rate;
+ while ((abs($y0 - $y1) > FINANCIAL_PRECISION) && ($i < FINANCIAL_MAX_ITERATIONS)) {
+ $rate = ($y1 * $x0 - $y0 * $x1) / ($y1 - $y0);
+ $x0 = $x1;
+ $x1 = $rate;
+ if (($nper * abs($pmt)) > ($pv - $fv)) {
+ $x1 = abs($x1);
+ }
+ if (abs($rate) < FINANCIAL_PRECISION) {
+ $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv;
+ } else {
+ $f = exp($nper * log(1 + $rate));
+ $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv;
+ }
+
+ $y0 = $y1;
+ $y1 = $y;
+ ++$i;
+ }
+ return $rate;
+ }
+
+
+ /**
+ * RECEIVED
+ *
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int investment The amount invested in the security.
+ * @param int discount The security's discount rate.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $investment = (float) PHPExcel_Calculation_Functions::flattenSingleValue($investment);
+ $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) {
+ if (($investment <= 0) || ($discount <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+
+ return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SLN
+ *
+ * Returns the straight-line depreciation of an asset for one period
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @return float
+ */
+ public static function SLN($cost, $salvage, $life)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) {
+ if ($life < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return ($cost - $salvage) / $life;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SYD
+ *
+ * Returns the sum-of-years' digits depreciation of an asset for a specified period.
+ *
+ * @param cost Initial cost of the asset
+ * @param salvage Value at the end of the depreciation
+ * @param life Number of periods over which the asset is depreciated
+ * @param period Period
+ * @return float
+ */
+ public static function SYD($cost, $salvage, $life, $period)
+ {
+ $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost);
+ $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage);
+ $life = PHPExcel_Calculation_Functions::flattenSingleValue($life);
+ $period = PHPExcel_Calculation_Functions::flattenSingleValue($period);
+
+ // Calculate
+ if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) {
+ if (($life < 1) || ($period > $life)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1));
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * TBILLEQ
+ *
+ * Returns the bond-equivalent yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLEQ($settlement, $maturity, $discount)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+
+ // Use TBILLPRICE for validation
+ $testValue = self::TBILLPRICE($settlement, $maturity, $discount);
+ if (is_string($testValue)) {
+ return $testValue;
+ }
+
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement));
+ }
+
+ return (365 * $discount) / (360 - $discount * $daysBetweenSettlementAndMaturity);
+ }
+
+
+ /**
+ * TBILLPRICE
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int discount The Treasury bill's discount rate.
+ * @return float
+ */
+ public static function TBILLPRICE($settlement, $maturity, $discount)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount);
+
+ if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // Validate
+ if (is_numeric($discount)) {
+ if ($discount <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement));
+ }
+
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360));
+ if ($price <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return $price;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * TBILLYIELD
+ *
+ * Returns the yield for a Treasury bill.
+ *
+ * @param mixed settlement The Treasury bill's settlement date.
+ * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param mixed maturity The Treasury bill's maturity date.
+ * The maturity date is the date when the Treasury bill expires.
+ * @param int price The Treasury bill's price per $100 face value.
+ * @return float
+ */
+ public static function TBILLYIELD($settlement, $maturity, $price)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+
+ // Validate
+ if (is_numeric($price)) {
+ if ($price <= 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
+ ++$maturity;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360;
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ } else {
+ $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement));
+ }
+
+ if ($daysBetweenSettlementAndMaturity > 360) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ public static function XIRR($values, $dates, $guess = 0.1)
+ {
+ if ((!is_array($values)) && (!is_array($dates))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
+ $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess);
+ if (count($values) != count($dates)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+
+ // create an initial range, with a root somewhere between 0 and guess
+ $x1 = 0.0;
+ $x2 = $guess;
+ $f1 = self::XNPV($x1, $values, $dates);
+ $f2 = self::XNPV($x2, $values, $dates);
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ if (($f1 * $f2) < 0.0) {
+ break;
+ } elseif (abs($f1) < abs($f2)) {
+ $f1 = self::XNPV($x1 += 1.6 * ($x1 - $x2), $values, $dates);
+ } else {
+ $f2 = self::XNPV($x2 += 1.6 * ($x2 - $x1), $values, $dates);
+ }
+ }
+ if (($f1 * $f2) > 0.0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $f = self::XNPV($x1, $values, $dates);
+ if ($f < 0.0) {
+ $rtb = $x1;
+ $dx = $x2 - $x1;
+ } else {
+ $rtb = $x2;
+ $dx = $x1 - $x2;
+ }
+
+ for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) {
+ $dx *= 0.5;
+ $x_mid = $rtb + $dx;
+ $f_mid = self::XNPV($x_mid, $values, $dates);
+ if ($f_mid <= 0.0) {
+ $rtb = $x_mid;
+ }
+ if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) {
+ return $x_mid;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * XNPV
+ *
+ * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
+ * To calculate the net present value for a series of cash flows that is periodic, use the NPV function.
+ *
+ * Excel Function:
+ * =XNPV(rate,values,dates)
+ *
+ * @param float $rate The discount rate to apply to the cash flows.
+ * @param array of float $values A series of cash flows that corresponds to a schedule of payments in dates.
+ * The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment.
+ * If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year.
+ * The series of values must contain at least one positive value and one negative value.
+ * @param array of mixed $dates A schedule of payment dates that corresponds to the cash flow payments.
+ * The first payment date indicates the beginning of the schedule of payments.
+ * All other dates must be later than this date, but they may occur in any order.
+ * @return float
+ */
+ public static function XNPV($rate, $values, $dates)
+ {
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ if (!is_numeric($rate)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if ((!is_array($values)) || (!is_array($dates))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $values = PHPExcel_Calculation_Functions::flattenArray($values);
+ $dates = PHPExcel_Calculation_Functions::flattenArray($dates);
+ $valCount = count($values);
+ if ($valCount != count($dates)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ if ((min($values) > 0) || (max($values) < 0)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ $xnpv = 0.0;
+ for ($i = 0; $i < $valCount; ++$i) {
+ if (!is_numeric($values[$i])) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $xnpv += $values[$i] / pow(1 + $rate, PHPExcel_Calculation_DateTime::DATEDIF($dates[0], $dates[$i], 'd') / 365);
+ }
+ return (is_finite($xnpv)) ? $xnpv : PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * YIELDDISC
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param int price The security's price per $100 face value.
+ * @param int redemption The security's redemption value per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($price) && is_numeric($redemption)) {
+ if (($price <= 0) || ($redemption <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * YIELDMAT
+ *
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * @param mixed settlement The security's settlement date.
+ * The security's settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param mixed maturity The security's maturity date.
+ * The maturity date is the date when the security expires.
+ * @param mixed issue The security's issue date.
+ * @param int rate The security's interest rate at date of issue.
+ * @param int price The security's price per $100 face value.
+ * @param int basis The type of day count to use.
+ * 0 or omitted US (NASD) 30/360
+ * 1 Actual/actual
+ * 2 Actual/360
+ * 3 Actual/365
+ * 4 European 30/360
+ * @return float
+ */
+ public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis = 0)
+ {
+ $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement);
+ $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity);
+ $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue);
+ $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate);
+ $price = PHPExcel_Calculation_Functions::flattenSingleValue($price);
+ $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis);
+
+ // Validate
+ if (is_numeric($rate) && is_numeric($price)) {
+ if (($rate <= 0) || ($price <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis);
+ if (!is_numeric($daysPerYear)) {
+ return $daysPerYear;
+ }
+ $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis);
+ if (!is_numeric($daysBetweenIssueAndSettlement)) {
+ // return date error
+ return $daysBetweenIssueAndSettlement;
+ }
+ $daysBetweenIssueAndSettlement *= $daysPerYear;
+ $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis);
+ if (!is_numeric($daysBetweenIssueAndMaturity)) {
+ // return date error
+ return $daysBetweenIssueAndMaturity;
+ }
+ $daysBetweenIssueAndMaturity *= $daysPerYear;
+ $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis);
+ if (!is_numeric($daysBetweenSettlementAndMaturity)) {
+ // return date error
+ return $daysBetweenSettlementAndMaturity;
+ }
+ $daysBetweenSettlementAndMaturity *= $daysPerYear;
+
+ return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) /
+ (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) *
+ ($daysPerYear / $daysBetweenSettlementAndMaturity);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaParser.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaParser.php
index 3884fd20..893f19e9 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaParser.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaParser.php
@@ -1,8 +1,32 @@
<";
+ const OPERATORS_POSTFIX = "%";
- The above copyright notice and this permission notice shall be included in all copies or substantial
- portions of the Software.
+ /**
+ * Formula
+ *
+ * @var string
+ */
+ private $formula;
- 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.
-
- http://ewbi.blogs.com/develops/2007/03/excel_formula_p.html
- http://ewbi.blogs.com/develops/2004/12/excel_formula_p.html
-*/
-
-/**
- * PHPExcel_Calculation_FormulaParser
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_FormulaParser {
- /* Character constants */
- const QUOTE_DOUBLE = '"';
- const QUOTE_SINGLE = '\'';
- const BRACKET_CLOSE = ']';
- const BRACKET_OPEN = '[';
- const BRACE_OPEN = '{';
- const BRACE_CLOSE = '}';
- const PAREN_OPEN = '(';
- const PAREN_CLOSE = ')';
- const SEMICOLON = ';';
- const WHITESPACE = ' ';
- const COMMA = ',';
- const ERROR_START = '#';
-
- const OPERATORS_SN = "+-";
- const OPERATORS_INFIX = "+-*/^&=><";
- const OPERATORS_POSTFIX = "%";
-
- /**
- * Formula
- *
- * @var string
- */
- private $_formula;
-
- /**
- * Tokens
- *
- * @var PHPExcel_Calculation_FormulaToken[]
- */
- private $_tokens = array();
+ /**
+ * Tokens
+ *
+ * @var PHPExcel_Calculation_FormulaToken[]
+ */
+ private $tokens = array();
/**
* Create a new PHPExcel_Calculation_FormulaParser
*
- * @param string $pFormula Formula to parse
- * @throws PHPExcel_Calculation_Exception
+ * @param string $pFormula Formula to parse
+ * @throws PHPExcel_Calculation_Exception
*/
public function __construct($pFormula = '')
{
- // Check parameters
- if (is_null($pFormula)) {
- throw new PHPExcel_Calculation_Exception("Invalid parameter passed: formula");
- }
+ // Check parameters
+ if (is_null($pFormula)) {
+ throw new PHPExcel_Calculation_Exception("Invalid parameter passed: formula");
+ }
- // Initialise values
- $this->_formula = trim($pFormula);
- // Parse!
- $this->_parseToTokens();
+ // Initialise values
+ $this->formula = trim($pFormula);
+ // Parse!
+ $this->parseToTokens();
}
/**
@@ -113,23 +108,25 @@ class PHPExcel_Calculation_FormulaParser {
*
* @return string
*/
- public function getFormula() {
- return $this->_formula;
+ public function getFormula()
+ {
+ return $this->formula;
}
/**
* Get Token
*
- * @param int $pId Token id
- * @return string
+ * @param int $pId Token id
+ * @return string
* @throws PHPExcel_Calculation_Exception
*/
- public function getToken($pId = 0) {
- if (isset($this->_tokens[$pId])) {
- return $this->_tokens[$pId];
- } else {
- throw new PHPExcel_Calculation_Exception("Token with id $pId does not exist.");
- }
+ public function getToken($pId = 0)
+ {
+ if (isset($this->tokens[$pId])) {
+ return $this->tokens[$pId];
+ } else {
+ throw new PHPExcel_Calculation_Exception("Token with id $pId does not exist.");
+ }
}
/**
@@ -137,8 +134,9 @@ class PHPExcel_Calculation_FormulaParser {
*
* @return string
*/
- public function getTokenCount() {
- return count($this->_tokens);
+ public function getTokenCount()
+ {
+ return count($this->tokens);
}
/**
@@ -146,469 +144,479 @@ class PHPExcel_Calculation_FormulaParser {
*
* @return PHPExcel_Calculation_FormulaToken[]
*/
- public function getTokens() {
- return $this->_tokens;
+ public function getTokens()
+ {
+ return $this->tokens;
}
/**
* Parse to tokens
*/
- private function _parseToTokens() {
- // No attempt is made to verify formulas; assumes formulas are derived from Excel, where
- // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions.
+ private function parseToTokens()
+ {
+ // No attempt is made to verify formulas; assumes formulas are derived from Excel, where
+ // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions.
- // Check if the formula has a valid starting =
- $formulaLength = strlen($this->_formula);
- if ($formulaLength < 2 || $this->_formula{0} != '=') return;
+ // Check if the formula has a valid starting =
+ $formulaLength = strlen($this->formula);
+ if ($formulaLength < 2 || $this->formula{0} != '=') {
+ return;
+ }
- // Helper variables
- $tokens1 = $tokens2 = $stack = array();
- $inString = $inPath = $inRange = $inError = false;
- $token = $previousToken = $nextToken = null;
+ // Helper variables
+ $tokens1 = $tokens2 = $stack = array();
+ $inString = $inPath = $inRange = $inError = false;
+ $token = $previousToken = $nextToken = null;
- $index = 1;
- $value = '';
+ $index = 1;
+ $value = '';
- $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A");
- $COMPARATORS_MULTI = array(">=", "<=", "<>");
+ $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A");
+ $COMPARATORS_MULTI = array(">=", "<=", "<>");
- while ($index < $formulaLength) {
- // state-dependent character evaluation (order is important)
+ while ($index < $formulaLength) {
+ // state-dependent character evaluation (order is important)
- // double-quoted strings
- // embeds are doubled
- // end marks token
- if ($inString) {
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
- if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) {
- $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE;
- ++$index;
- } else {
- $inString = false;
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT);
- $value = "";
- }
- } else {
- $value .= $this->_formula{$index};
- }
- ++$index;
- continue;
- }
+ // double-quoted strings
+ // embeds are doubled
+ // end marks token
+ if ($inString) {
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE;
+ ++$index;
+ } else {
+ $inString = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT);
+ $value = "";
+ }
+ } else {
+ $value .= $this->formula{$index};
+ }
+ ++$index;
+ continue;
+ }
- // single-quoted strings (links)
- // embeds are double
- // end does not mark a token
- if ($inPath) {
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
- if ((($index + 2) <= $formulaLength) && ($this->_formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) {
- $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE;
- ++$index;
- } else {
- $inPath = false;
- }
- } else {
- $value .= $this->_formula{$index};
- }
- ++$index;
- continue;
- }
+ // single-quoted strings (links)
+ // embeds are double
+ // end does not mark a token
+ if ($inPath) {
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if ((($index + 2) <= $formulaLength) && ($this->formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) {
+ $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE;
+ ++$index;
+ } else {
+ $inPath = false;
+ }
+ } else {
+ $value .= $this->formula{$index};
+ }
+ ++$index;
+ continue;
+ }
- // bracked strings (R1C1 range index or linked workbook name)
- // no embeds (changed to "()" by Excel)
- // end does not mark a token
- if ($inRange) {
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) {
- $inRange = false;
- }
- $value .= $this->_formula{$index};
- ++$index;
- continue;
- }
+ // bracked strings (R1C1 range index or linked workbook name)
+ // no embeds (changed to "()" by Excel)
+ // end does not mark a token
+ if ($inRange) {
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) {
+ $inRange = false;
+ }
+ $value .= $this->formula{$index};
+ ++$index;
+ continue;
+ }
- // error values
- // end marks a token, determined from absolute list of values
- if ($inError) {
- $value .= $this->_formula{$index};
- ++$index;
- if (in_array($value, $ERRORS)) {
- $inError = false;
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR);
- $value = "";
- }
- continue;
- }
+ // error values
+ // end marks a token, determined from absolute list of values
+ if ($inError) {
+ $value .= $this->formula{$index};
+ ++$index;
+ if (in_array($value, $ERRORS)) {
+ $inError = false;
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR);
+ $value = "";
+ }
+ continue;
+ }
- // scientific notation check
- if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->_formula{$index}) !== false) {
- if (strlen($value) > 1) {
- if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->_formula{$index}) != 0) {
- $value .= $this->_formula{$index};
- ++$index;
- continue;
- }
- }
- }
+ // scientific notation check
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->formula{$index}) !== false) {
+ if (strlen($value) > 1) {
+ if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->formula{$index}) != 0) {
+ $value .= $this->formula{$index};
+ ++$index;
+ continue;
+ }
+ }
+ }
- // independent character evaluation (order not important)
+ // independent character evaluation (order not important)
- // establish state-dependent character evaluations
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
- if (strlen($value > 0)) { // unexpected
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
- $value = "";
- }
- $inString = true;
- ++$index;
- continue;
- }
+ // establish state-dependent character evaluations
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) {
+ if (strlen($value > 0)) {
+ // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inString = true;
+ ++$index;
+ continue;
+ }
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
- if (strlen($value) > 0) { // unexpected
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
- $value = "";
- }
- $inPath = true;
- ++$index;
- continue;
- }
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) {
+ if (strlen($value) > 0) {
+ // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inPath = true;
+ ++$index;
+ continue;
+ }
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) {
- $inRange = true;
- $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN;
- ++$index;
- continue;
- }
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) {
+ $inRange = true;
+ $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN;
+ ++$index;
+ continue;
+ }
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) {
- if (strlen($value) > 0) { // unexpected
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
- $value = "";
- }
- $inError = true;
- $value .= PHPExcel_Calculation_FormulaParser::ERROR_START;
- ++$index;
- continue;
- }
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) {
+ if (strlen($value) > 0) {
+ // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
+ $inError = true;
+ $value .= PHPExcel_Calculation_FormulaParser::ERROR_START;
+ ++$index;
+ continue;
+ }
- // mark start and end of arrays and array rows
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) {
- if (strlen($value) > 0) { // unexpected
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
- $value = "";
- }
+ // mark start and end of arrays and array rows
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) {
+ if (strlen($value) > 0) {
+ // unexpected
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN);
+ $value = "";
+ }
- $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
- $tokens1[] = $tmp;
- $stack[] = clone $tmp;
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
- $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
- $tokens1[] = $tmp;
- $stack[] = clone $tmp;
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
- ++$index;
- continue;
- }
+ ++$index;
+ continue;
+ }
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
- $tmp = array_pop($stack);
- $tmp->setValue("");
- $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
- $tokens1[] = $tmp;
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
- $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
- $tokens1[] = $tmp;
+ $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ $tokens1[] = $tmp;
- $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
- $tokens1[] = $tmp;
- $stack[] = clone $tmp;
+ $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
- ++$index;
- continue;
- }
+ ++$index;
+ continue;
+ }
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
- $tmp = array_pop($stack);
- $tmp->setValue("");
- $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
- $tokens1[] = $tmp;
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
- $tmp = array_pop($stack);
- $tmp->setValue("");
- $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
- $tokens1[] = $tmp;
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
- ++$index;
- continue;
- }
+ ++$index;
+ continue;
+ }
- // trim white-space
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
- $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE);
- ++$index;
- while (($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) {
- ++$index;
- }
- continue;
- }
+ // trim white-space
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE);
+ ++$index;
+ while (($this->formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) {
+ ++$index;
+ }
+ continue;
+ }
- // multi-character comparators
- if (($index + 2) <= $formulaLength) {
- if (in_array(substr($this->_formula, $index, 2), $COMPARATORS_MULTI)) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
- $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->_formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
- $index += 2;
- continue;
- }
- }
+ // multi-character comparators
+ if (($index + 2) <= $formulaLength) {
+ if (in_array(substr($this->formula, $index, 2), $COMPARATORS_MULTI)) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ $index += 2;
+ continue;
+ }
+ }
- // standard infix operators
- if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->_formula{$index}) !== false) {
- if (strlen($value) > 0) {
- $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX);
- ++$index;
- continue;
- }
+ // standard infix operators
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX);
+ ++$index;
+ continue;
+ }
- // standard postfix operators (only one)
- if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX);
- ++$index;
- continue;
- }
+ // standard postfix operators (only one)
+ if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->formula{$index}) !== false) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX);
+ ++$index;
+ continue;
+ }
- // start subexpression or function
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) {
- if (strlen($value) > 0) {
- $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
- $tokens1[] = $tmp;
- $stack[] = clone $tmp;
- $value = "";
- } else {
- $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
- $tokens1[] = $tmp;
- $stack[] = clone $tmp;
- }
- ++$index;
- continue;
- }
+ // start subexpression or function
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) {
+ if (strlen($value) > 0) {
+ $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ $value = "";
+ } else {
+ $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START);
+ $tokens1[] = $tmp;
+ $stack[] = clone $tmp;
+ }
+ ++$index;
+ continue;
+ }
- // function, subexpression, or array parameters, or operand unions
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
+ // function, subexpression, or array parameters, or operand unions
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
- $tmp = array_pop($stack);
- $tmp->setValue("");
- $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
- $stack[] = $tmp;
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $stack[] = $tmp;
- if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION);
- } else {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
- }
- ++$index;
- continue;
- }
+ if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION);
+ } else {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT);
+ }
+ ++$index;
+ continue;
+ }
- // stop subexpression
- if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) {
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- $value = "";
- }
+ // stop subexpression
+ if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) {
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ $value = "";
+ }
- $tmp = array_pop($stack);
- $tmp->setValue("");
- $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
- $tokens1[] = $tmp;
+ $tmp = array_pop($stack);
+ $tmp->setValue("");
+ $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP);
+ $tokens1[] = $tmp;
- ++$index;
- continue;
- }
+ ++$index;
+ continue;
+ }
- // token accumulation
- $value .= $this->_formula{$index};
- ++$index;
- }
+ // token accumulation
+ $value .= $this->formula{$index};
+ ++$index;
+ }
- // dump remaining accumulation
- if (strlen($value) > 0) {
- $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
- }
+ // dump remaining accumulation
+ if (strlen($value) > 0) {
+ $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND);
+ }
- // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections
- $tokenCount = count($tokens1);
- for ($i = 0; $i < $tokenCount; ++$i) {
- $token = $tokens1[$i];
- if (isset($tokens1[$i - 1])) {
- $previousToken = $tokens1[$i - 1];
- } else {
- $previousToken = null;
- }
- if (isset($tokens1[$i + 1])) {
- $nextToken = $tokens1[$i + 1];
- } else {
- $nextToken = null;
- }
+ // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections
+ $tokenCount = count($tokens1);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens1[$i];
+ if (isset($tokens1[$i - 1])) {
+ $previousToken = $tokens1[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens1[$i + 1])) {
+ $nextToken = $tokens1[$i + 1];
+ } else {
+ $nextToken = null;
+ }
- if (is_null($token)) {
- continue;
- }
+ if (is_null($token)) {
+ continue;
+ }
- if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) {
- $tokens2[] = $token;
- continue;
- }
+ if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) {
+ $tokens2[] = $token;
+ continue;
+ }
- if (is_null($previousToken)) {
- continue;
- }
+ if (is_null($previousToken)) {
+ continue;
+ }
- if (! (
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
- ) ) {
- continue;
- }
+ if (! (
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
- if (is_null($nextToken)) {
- continue;
- }
+ if (is_null($nextToken)) {
+ continue;
+ }
- if (! (
- (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
- (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
- ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
- ) ) {
- continue;
- }
+ if (! (
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) ||
+ ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
+ ) ) {
+ continue;
+ }
- $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION);
- }
+ $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION);
+ }
- // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators
- // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names
- $this->_tokens = array();
+ // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators
+ // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names
+ $this->tokens = array();
- $tokenCount = count($tokens2);
- for ($i = 0; $i < $tokenCount; ++$i) {
- $token = $tokens2[$i];
- if (isset($tokens2[$i - 1])) {
- $previousToken = $tokens2[$i - 1];
- } else {
- $previousToken = null;
- }
- if (isset($tokens2[$i + 1])) {
- $nextToken = $tokens2[$i + 1];
- } else {
- $nextToken = null;
- }
+ $tokenCount = count($tokens2);
+ for ($i = 0; $i < $tokenCount; ++$i) {
+ $token = $tokens2[$i];
+ if (isset($tokens2[$i - 1])) {
+ $previousToken = $tokens2[$i - 1];
+ } else {
+ $previousToken = null;
+ }
+ if (isset($tokens2[$i + 1])) {
+ $nextToken = $tokens2[$i + 1];
+ } else {
+ $nextToken = null;
+ }
- if (is_null($token)) {
- continue;
- }
+ if (is_null($token)) {
+ continue;
+ }
- if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") {
- if ($i == 0) {
- $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
- } else if (
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
- ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
- ) {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
- } else {
- $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
- }
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") {
+ if ($i == 0) {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ } elseif ((($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) &&
+ ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) &&
+ ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX);
+ }
- $this->_tokens[] = $token;
- continue;
- }
+ $this->tokens[] = $token;
+ continue;
+ }
- if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") {
- if ($i == 0) {
- continue;
- } else if (
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
- ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
- ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)
- ) {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
- } else {
- continue;
- }
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") {
+ if ($i == 0) {
+ continue;
+ } elseif ((($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) &&
+ ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) &&
+ ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) ||
+ ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ } else {
+ continue;
+ }
- $this->_tokens[] = $token;
- continue;
- }
+ $this->tokens[] = $token;
+ continue;
+ }
- if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
- if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
- } else if ($token->getValue() == "&") {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION);
- } else {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
- }
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX &&
+ $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } elseif ($token->getValue() == "&") {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH);
+ }
- $this->_tokens[] = $token;
- continue;
- }
+ $this->tokens[] = $token;
+ continue;
+ }
- if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
- if (!is_numeric($token->getValue())) {
- if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
- } else {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE);
- }
- } else {
- $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER);
- }
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND &&
+ $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
+ if (!is_numeric($token->getValue())) {
+ if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL);
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE);
+ }
+ } else {
+ $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER);
+ }
- $this->_tokens[] = $token;
- continue;
- }
+ $this->tokens[] = $token;
+ continue;
+ }
- if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
- if (strlen($token->getValue() > 0)) {
- if (substr($token->getValue(), 0, 1) == "@") {
- $token->setValue(substr($token->getValue(), 1));
- }
- }
- }
+ if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) {
+ if (strlen($token->getValue() > 0)) {
+ if (substr($token->getValue(), 0, 1) == "@") {
+ $token->setValue(substr($token->getValue(), 1));
+ }
+ }
+ }
- $this->_tokens[] = $token;
- }
+ $this->tokens[] = $token;
+ }
}
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaToken.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaToken.php
index ad10c00a..41c6e3d5 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaToken.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/FormulaToken.php
@@ -1,8 +1,32 @@
_value = $pValue;
- $this->_tokenType = $pTokenType;
- $this->_tokenSubType = $pTokenSubType;
+ // Initialise values
+ $this->value = $pValue;
+ $this->tokenType = $pTokenType;
+ $this->tokenSubType = $pTokenSubType;
}
/**
@@ -125,17 +119,19 @@ class PHPExcel_Calculation_FormulaToken {
*
* @return string
*/
- public function getValue() {
- return $this->_value;
+ public function getValue()
+ {
+ return $this->value;
}
/**
* Set Value
*
- * @param string $value
+ * @param string $value
*/
- public function setValue($value) {
- $this->_value = $value;
+ public function setValue($value)
+ {
+ $this->value = $value;
}
/**
@@ -143,17 +139,19 @@ class PHPExcel_Calculation_FormulaToken {
*
* @return string
*/
- public function getTokenType() {
- return $this->_tokenType;
+ public function getTokenType()
+ {
+ return $this->tokenType;
}
/**
* Set Token Type
*
- * @param string $value
+ * @param string $value
*/
- public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN) {
- $this->_tokenType = $value;
+ public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN)
+ {
+ $this->tokenType = $value;
}
/**
@@ -161,16 +159,18 @@ class PHPExcel_Calculation_FormulaToken {
*
* @return string
*/
- public function getTokenSubType() {
- return $this->_tokenSubType;
+ public function getTokenSubType()
+ {
+ return $this->tokenSubType;
}
/**
* Set Token SubType
*
- * @param string $value
+ * @param string $value
*/
- public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) {
- $this->_tokenSubType = $value;
+ public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING)
+ {
+ $this->tokenSubType = $value;
}
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php
index 1301cd09..d58cef25 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php
@@ -1,8 +1,9 @@
_category = $pCategory;
- $this->_excelName = $pExcelName;
- $this->_phpExcelName = $pPHPExcelName;
- } else {
- throw new PHPExcel_Calculation_Exception("Invalid parameters passed.");
- }
+ if (($pCategory !== null) && ($pExcelName !== null) && ($pPHPExcelName !== null)) {
+ // Initialise values
+ $this->category = $pCategory;
+ $this->excelName = $pExcelName;
+ $this->phpExcelName = $pPHPExcelName;
+ } else {
+ throw new PHPExcel_Calculation_Exception("Invalid parameters passed.");
+ }
}
/**
@@ -93,22 +86,24 @@ class PHPExcel_Calculation_Function {
*
* @return string
*/
- public function getCategory() {
- return $this->_category;
+ public function getCategory()
+ {
+ return $this->category;
}
/**
* Set Category (represented by CATEGORY_*)
*
- * @param string $value
- * @throws PHPExcel_Calculation_Exception
+ * @param string $value
+ * @throws PHPExcel_Calculation_Exception
*/
- public function setCategory($value = null) {
- if (!is_null($value)) {
- $this->_category = $value;
- } else {
- throw new PHPExcel_Calculation_Exception("Invalid parameter passed.");
- }
+ public function setCategory($value = null)
+ {
+ if (!is_null($value)) {
+ $this->category = $value;
+ } else {
+ throw new PHPExcel_Calculation_Exception("Invalid parameter passed.");
+ }
}
/**
@@ -116,17 +111,19 @@ class PHPExcel_Calculation_Function {
*
* @return string
*/
- public function getExcelName() {
- return $this->_excelName;
+ public function getExcelName()
+ {
+ return $this->excelName;
}
/**
* Set Excel name
*
- * @param string $value
+ * @param string $value
*/
- public function setExcelName($value) {
- $this->_excelName = $value;
+ public function setExcelName($value)
+ {
+ $this->excelName = $value;
}
/**
@@ -134,16 +131,18 @@ class PHPExcel_Calculation_Function {
*
* @return string
*/
- public function getPHPExcelName() {
- return $this->_phpExcelName;
+ public function getPHPExcelName()
+ {
+ return $this->phpExcelName;
}
/**
* Set PHPExcel name
*
- * @param string $value
+ * @param string $value
*/
- public function setPHPExcelName($value) {
- $this->_phpExcelName = $value;
+ public function setPHPExcelName($value)
+ {
+ $this->phpExcelName = $value;
}
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php
index dea1503b..b8b784fe 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php
@@ -1,38 +1,12 @@
'#NULL!',
- 'divisionbyzero' => '#DIV/0!',
- 'value' => '#VALUE!',
- 'reference' => '#REF!',
- 'name' => '#NAME?',
- 'num' => '#NUM!',
- 'na' => '#N/A',
- 'gettingdata' => '#GETTING_DATA'
- );
-
-
- /**
- * Set the Compatibility Mode
- *
- * @access public
- * @category Function Configuration
- * @param string $compatibilityMode Compatibility Mode
- * Permitted values are:
- * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
- * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
- * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
- * @return boolean (Success or Failure)
- */
- public static function setCompatibilityMode($compatibilityMode) {
- if (($compatibilityMode == self::COMPATIBILITY_EXCEL) ||
- ($compatibilityMode == self::COMPATIBILITY_GNUMERIC) ||
- ($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
- self::$compatibilityMode = $compatibilityMode;
- return True;
- }
- return False;
- } // function setCompatibilityMode()
-
-
- /**
- * Return the current Compatibility Mode
- *
- * @access public
- * @category Function Configuration
- * @return string Compatibility Mode
- * Possible Return values are:
- * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
- * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
- * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
- */
- public static function getCompatibilityMode() {
- return self::$compatibilityMode;
- } // function getCompatibilityMode()
-
-
- /**
- * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
- *
- * @access public
- * @category Function Configuration
- * @param string $returnDateType Return Date Format
- * Permitted values are:
- * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
- * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
- * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
- * @return boolean Success or failure
- */
- public static function setReturnDateType($returnDateType) {
- if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) ||
- ($returnDateType == self::RETURNDATE_PHP_OBJECT) ||
- ($returnDateType == self::RETURNDATE_EXCEL)) {
- self::$ReturnDateType = $returnDateType;
- return True;
- }
- return False;
- } // function setReturnDateType()
-
-
- /**
- * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
- *
- * @access public
- * @category Function Configuration
- * @return string Return Date Format
- * Possible Return values are:
- * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
- * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
- * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
- */
- public static function getReturnDateType() {
- return self::$ReturnDateType;
- } // function getReturnDateType()
-
-
- /**
- * DUMMY
- *
- * @access public
- * @category Error Returns
- * @return string #Not Yet Implemented
- */
- public static function DUMMY() {
- return '#Not Yet Implemented';
- } // function DUMMY()
-
-
- /**
- * DIV0
- *
- * @access public
- * @category Error Returns
- * @return string #Not Yet Implemented
- */
- public static function DIV0() {
- return self::$_errorCodes['divisionbyzero'];
- } // function DIV0()
-
-
- /**
- * NA
- *
- * Excel Function:
- * =NA()
- *
- * Returns the error value #N/A
- * #N/A is the error value that means "no value is available."
- *
- * @access public
- * @category Logical Functions
- * @return string #N/A!
- */
- public static function NA() {
- return self::$_errorCodes['na'];
- } // function NA()
-
-
- /**
- * NaN
- *
- * Returns the error value #NUM!
- *
- * @access public
- * @category Error Returns
- * @return string #NUM!
- */
- public static function NaN() {
- return self::$_errorCodes['num'];
- } // function NaN()
-
-
- /**
- * NAME
- *
- * Returns the error value #NAME?
- *
- * @access public
- * @category Error Returns
- * @return string #NAME?
- */
- public static function NAME() {
- return self::$_errorCodes['name'];
- } // function NAME()
-
-
- /**
- * REF
- *
- * Returns the error value #REF!
- *
- * @access public
- * @category Error Returns
- * @return string #REF!
- */
- public static function REF() {
- return self::$_errorCodes['reference'];
- } // function REF()
-
-
- /**
- * NULL
- *
- * Returns the error value #NULL!
- *
- * @access public
- * @category Error Returns
- * @return string #NULL!
- */
- public static function NULL() {
- return self::$_errorCodes['null'];
- } // function NULL()
-
-
- /**
- * VALUE
- *
- * Returns the error value #VALUE!
- *
- * @access public
- * @category Error Returns
- * @return string #VALUE!
- */
- public static function VALUE() {
- return self::$_errorCodes['value'];
- } // function VALUE()
-
-
- public static function isMatrixValue($idx) {
- return ((substr_count($idx,'.') <= 1) || (preg_match('/\.[A-Z]/',$idx) > 0));
- }
-
-
- public static function isValue($idx) {
- return (substr_count($idx,'.') == 0);
- }
-
-
- public static function isCellValue($idx) {
- return (substr_count($idx,'.') > 1);
- }
-
-
- public static function _ifCondition($condition) {
- $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition);
- if (!isset($condition{0}))
- $condition = '=""';
- if (!in_array($condition{0},array('>', '<', '='))) {
- if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); }
- return '='.$condition;
- } else {
- preg_match('/([<>=]+)(.*)/',$condition,$matches);
- list(,$operator,$operand) = $matches;
-
- if (!is_numeric($operand)) {
- $operand = str_replace('"', '""', $operand);
- $operand = PHPExcel_Calculation::_wrapResult(strtoupper($operand));
- }
-
- return $operator.$operand;
- }
- } // function _ifCondition()
-
-
- /**
- * ERROR_TYPE
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function ERROR_TYPE($value = '') {
- $value = self::flattenSingleValue($value);
-
- $i = 1;
- foreach(self::$_errorCodes as $errorCode) {
- if ($value === $errorCode) {
- return $i;
- }
- ++$i;
- }
- return self::NA();
- } // function ERROR_TYPE()
-
-
- /**
- * IS_BLANK
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_BLANK($value = NULL) {
- if (!is_null($value)) {
- $value = self::flattenSingleValue($value);
- }
-
- return is_null($value);
- } // function IS_BLANK()
-
-
- /**
- * IS_ERR
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_ERR($value = '') {
- $value = self::flattenSingleValue($value);
-
- return self::IS_ERROR($value) && (!self::IS_NA($value));
- } // function IS_ERR()
-
-
- /**
- * IS_ERROR
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_ERROR($value = '') {
- $value = self::flattenSingleValue($value);
-
- if (!is_string($value))
- return false;
- return in_array($value, array_values(self::$_errorCodes));
- } // function IS_ERROR()
-
-
- /**
- * IS_NA
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_NA($value = '') {
- $value = self::flattenSingleValue($value);
-
- return ($value === self::NA());
- } // function IS_NA()
-
-
- /**
- * IS_EVEN
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_EVEN($value = NULL) {
- $value = self::flattenSingleValue($value);
-
- if ($value === NULL)
- return self::NAME();
- if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value))))
- return self::VALUE();
- return ($value % 2 == 0);
- } // function IS_EVEN()
-
-
- /**
- * IS_ODD
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_ODD($value = NULL) {
- $value = self::flattenSingleValue($value);
-
- if ($value === NULL)
- return self::NAME();
- if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value))))
- return self::VALUE();
- return (abs($value) % 2 == 1);
- } // function IS_ODD()
-
-
- /**
- * IS_NUMBER
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_NUMBER($value = NULL) {
- $value = self::flattenSingleValue($value);
-
- if (is_string($value)) {
- return False;
- }
- return is_numeric($value);
- } // function IS_NUMBER()
-
-
- /**
- * IS_LOGICAL
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_LOGICAL($value = NULL) {
- $value = self::flattenSingleValue($value);
-
- return is_bool($value);
- } // function IS_LOGICAL()
-
-
- /**
- * IS_TEXT
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_TEXT($value = NULL) {
- $value = self::flattenSingleValue($value);
-
- return (is_string($value) && !self::IS_ERROR($value));
- } // function IS_TEXT()
-
-
- /**
- * IS_NONTEXT
- *
- * @param mixed $value Value to check
- * @return boolean
- */
- public static function IS_NONTEXT($value = NULL) {
- return !self::IS_TEXT($value);
- } // function IS_NONTEXT()
+class PHPExcel_Calculation_Functions
+{
+
+ /** constants */
+ const COMPATIBILITY_EXCEL = 'Excel';
+ const COMPATIBILITY_GNUMERIC = 'Gnumeric';
+ const COMPATIBILITY_OPENOFFICE = 'OpenOfficeCalc';
+
+ const RETURNDATE_PHP_NUMERIC = 'P';
+ const RETURNDATE_PHP_OBJECT = 'O';
+ const RETURNDATE_EXCEL = 'E';
+
+
+ /**
+ * Compatibility mode to use for error checking and responses
+ *
+ * @access private
+ * @var string
+ */
+ protected static $compatibilityMode = self::COMPATIBILITY_EXCEL;
+
+ /**
+ * Data Type to use when returning date values
+ *
+ * @access private
+ * @var string
+ */
+ protected static $returnDateType = self::RETURNDATE_EXCEL;
+
+ /**
+ * List of error codes
+ *
+ * @access private
+ * @var array
+ */
+ protected static $errorCodes = array(
+ 'null' => '#NULL!',
+ 'divisionbyzero' => '#DIV/0!',
+ 'value' => '#VALUE!',
+ 'reference' => '#REF!',
+ 'name' => '#NAME?',
+ 'num' => '#NUM!',
+ 'na' => '#N/A',
+ 'gettingdata' => '#GETTING_DATA'
+ );
+
+
+ /**
+ * Set the Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $compatibilityMode Compatibility Mode
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ * @return boolean (Success or Failure)
+ */
+ public static function setCompatibilityMode($compatibilityMode)
+ {
+ if (($compatibilityMode == self::COMPATIBILITY_EXCEL) ||
+ ($compatibilityMode == self::COMPATIBILITY_GNUMERIC) ||
+ ($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
+ self::$compatibilityMode = $compatibilityMode;
+ return true;
+ }
+ return false;
+ }
+
+
+ /**
+ * Return the current Compatibility Mode
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Compatibility Mode
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric'
+ * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc'
+ */
+ public static function getCompatibilityMode()
+ {
+ return self::$compatibilityMode;
+ }
+
+
+ /**
+ * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @param string $returnDateType Return Date Format
+ * Permitted values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ * @return boolean Success or failure
+ */
+ public static function setReturnDateType($returnDateType)
+ {
+ if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) ||
+ ($returnDateType == self::RETURNDATE_PHP_OBJECT) ||
+ ($returnDateType == self::RETURNDATE_EXCEL)) {
+ self::$returnDateType = $returnDateType;
+ return true;
+ }
+ return false;
+ }
+
+
+ /**
+ * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object)
+ *
+ * @access public
+ * @category Function Configuration
+ * @return string Return Date Format
+ * Possible Return values are:
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P'
+ * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O'
+ * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E'
+ */
+ public static function getReturnDateType()
+ {
+ return self::$returnDateType;
+ }
+
+
+ /**
+ * DUMMY
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #Not Yet Implemented
+ */
+ public static function DUMMY()
+ {
+ return '#Not Yet Implemented';
+ }
+
+
+ /**
+ * DIV0
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #Not Yet Implemented
+ */
+ public static function DIV0()
+ {
+ return self::$errorCodes['divisionbyzero'];
+ }
+
+
+ /**
+ * NA
+ *
+ * Excel Function:
+ * =NA()
+ *
+ * Returns the error value #N/A
+ * #N/A is the error value that means "no value is available."
+ *
+ * @access public
+ * @category Logical Functions
+ * @return string #N/A!
+ */
+ public static function NA()
+ {
+ return self::$errorCodes['na'];
+ }
+
+
+ /**
+ * NaN
+ *
+ * Returns the error value #NUM!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NUM!
+ */
+ public static function NaN()
+ {
+ return self::$errorCodes['num'];
+ }
+
+
+ /**
+ * NAME
+ *
+ * Returns the error value #NAME?
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NAME?
+ */
+ public static function NAME()
+ {
+ return self::$errorCodes['name'];
+ }
+
+
+ /**
+ * REF
+ *
+ * Returns the error value #REF!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #REF!
+ */
+ public static function REF()
+ {
+ return self::$errorCodes['reference'];
+ }
+
+
+ /**
+ * NULL
+ *
+ * Returns the error value #NULL!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #NULL!
+ */
+ public static function NULL()
+ {
+ return self::$errorCodes['null'];
+ }
+
+
+ /**
+ * VALUE
+ *
+ * Returns the error value #VALUE!
+ *
+ * @access public
+ * @category Error Returns
+ * @return string #VALUE!
+ */
+ public static function VALUE()
+ {
+ return self::$errorCodes['value'];
+ }
+
+
+ public static function isMatrixValue($idx)
+ {
+ return ((substr_count($idx, '.') <= 1) || (preg_match('/\.[A-Z]/', $idx) > 0));
+ }
+
+
+ public static function isValue($idx)
+ {
+ return (substr_count($idx, '.') == 0);
+ }
+
+
+ public static function isCellValue($idx)
+ {
+ return (substr_count($idx, '.') > 1);
+ }
+
+
+ public static function ifCondition($condition)
+ {
+ $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition);
+ if (!isset($condition{0})) {
+ $condition = '=""';
+ }
+ if (!in_array($condition{0}, array('>', '<', '='))) {
+ if (!is_numeric($condition)) {
+ $condition = PHPExcel_Calculation::wrapResult(strtoupper($condition));
+ }
+ return '=' . $condition;
+ } else {
+ preg_match('/([<>=]+)(.*)/', $condition, $matches);
+ list(, $operator, $operand) = $matches;
+
+ if (!is_numeric($operand)) {
+ $operand = str_replace('"', '""', $operand);
+ $operand = PHPExcel_Calculation::wrapResult(strtoupper($operand));
+ }
+
+ return $operator.$operand;
+ }
+ }
+
+ /**
+ * ERROR_TYPE
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function ERROR_TYPE($value = '')
+ {
+ $value = self::flattenSingleValue($value);
+
+ $i = 1;
+ foreach (self::$errorCodes as $errorCode) {
+ if ($value === $errorCode) {
+ return $i;
+ }
+ ++$i;
+ }
+ return self::NA();
+ }
+
+
+ /**
+ * IS_BLANK
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_BLANK($value = null)
+ {
+ if (!is_null($value)) {
+ $value = self::flattenSingleValue($value);
+ }
+
+ return is_null($value);
+ }
+
+
+ /**
+ * IS_ERR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERR($value = '')
+ {
+ $value = self::flattenSingleValue($value);
+
+ return self::IS_ERROR($value) && (!self::IS_NA($value));
+ }
+
+
+ /**
+ * IS_ERROR
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ERROR($value = '')
+ {
+ $value = self::flattenSingleValue($value);
+
+ if (!is_string($value)) {
+ return false;
+ }
+ return in_array($value, array_values(self::$errorCodes));
+ }
+
+
+ /**
+ * IS_NA
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NA($value = '')
+ {
+ $value = self::flattenSingleValue($value);
+
+ return ($value === self::NA());
+ }
+
+
+ /**
+ * IS_EVEN
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_EVEN($value = null)
+ {
+ $value = self::flattenSingleValue($value);
+
+ if ($value === null) {
+ return self::NAME();
+ } elseif ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
+ return self::VALUE();
+ }
+
+ return ($value % 2 == 0);
+ }
+
+
+ /**
+ * IS_ODD
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_ODD($value = null)
+ {
+ $value = self::flattenSingleValue($value);
+
+ if ($value === null) {
+ return self::NAME();
+ } elseif ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
+ return self::VALUE();
+ }
+
+ return (abs($value) % 2 == 1);
+ }
+
+
+ /**
+ * IS_NUMBER
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NUMBER($value = null)
+ {
+ $value = self::flattenSingleValue($value);
+
+ if (is_string($value)) {
+ return false;
+ }
+ return is_numeric($value);
+ }
+
+
+ /**
+ * IS_LOGICAL
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_LOGICAL($value = null)
+ {
+ $value = self::flattenSingleValue($value);
+
+ return is_bool($value);
+ }
+
+
+ /**
+ * IS_TEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_TEXT($value = null)
+ {
+ $value = self::flattenSingleValue($value);
+
+ return (is_string($value) && !self::IS_ERROR($value));
+ }
+
+
+ /**
+ * IS_NONTEXT
+ *
+ * @param mixed $value Value to check
+ * @return boolean
+ */
+ public static function IS_NONTEXT($value = null)
+ {
+ return !self::IS_TEXT($value);
+ }
/**
@@ -496,230 +524,236 @@ class PHPExcel_Calculation_Functions {
* @return string Version information
*/
public static function VERSION() {
- return 'PHPExcel 1.8.1, 2015-04-30';
+ return 'PHPExcel 1.8.2, 2018-11-22';
} // function VERSION()
- /**
- * N
- *
- * Returns a value converted to a number
- *
- * @param value The value you want converted
- * @return number N converts values listed in the following table
- * If value is or refers to N returns
- * A number That number
- * A date The serial number of that date
- * TRUE 1
- * FALSE 0
- * An error value The error value
- * Anything else 0
- */
- public static function N($value = NULL) {
- while (is_array($value)) {
- $value = array_shift($value);
- }
+ /**
+ * N
+ *
+ * Returns a value converted to a number
+ *
+ * @param value The value you want converted
+ * @return number N converts values listed in the following table
+ * If value is or refers to N returns
+ * A number That number
+ * A date The serial number of that date
+ * TRUE 1
+ * FALSE 0
+ * An error value The error value
+ * Anything else 0
+ */
+ public static function N($value = null)
+ {
+ while (is_array($value)) {
+ $value = array_shift($value);
+ }
- switch (gettype($value)) {
- case 'double' :
- case 'float' :
- case 'integer' :
- return $value;
- break;
- case 'boolean' :
- return (integer) $value;
- break;
- case 'string' :
- // Errors
- if ((strlen($value) > 0) && ($value{0} == '#')) {
- return $value;
- }
- break;
- }
- return 0;
- } // function N()
+ switch (gettype($value)) {
+ case 'double':
+ case 'float':
+ case 'integer':
+ return $value;
+ case 'boolean':
+ return (integer) $value;
+ case 'string':
+ // Errors
+ if ((strlen($value) > 0) && ($value{0} == '#')) {
+ return $value;
+ }
+ break;
+ }
+ return 0;
+ }
- /**
- * TYPE
- *
- * Returns a number that identifies the type of a value
- *
- * @param value The value you want tested
- * @return number N converts values listed in the following table
- * If value is or refers to N returns
- * A number 1
- * Text 2
- * Logical Value 4
- * An error value 16
- * Array or Matrix 64
- */
- public static function TYPE($value = NULL) {
- $value = self::flattenArrayIndexed($value);
- if (is_array($value) && (count($value) > 1)) {
- $a = array_keys($value);
- $a = array_pop($a);
- // Range of cells is an error
- if (self::isCellValue($a)) {
- return 16;
- // Test for Matrix
- } elseif (self::isMatrixValue($a)) {
- return 64;
- }
- } elseif(empty($value)) {
- // Empty Cell
- return 1;
- }
- $value = self::flattenSingleValue($value);
+ /**
+ * TYPE
+ *
+ * Returns a number that identifies the type of a value
+ *
+ * @param value The value you want tested
+ * @return number N converts values listed in the following table
+ * If value is or refers to N returns
+ * A number 1
+ * Text 2
+ * Logical Value 4
+ * An error value 16
+ * Array or Matrix 64
+ */
+ public static function TYPE($value = null)
+ {
+ $value = self::flattenArrayIndexed($value);
+ if (is_array($value) && (count($value) > 1)) {
+ end($value);
+ $a = key($value);
+ // Range of cells is an error
+ if (self::isCellValue($a)) {
+ return 16;
+ // Test for Matrix
+ } elseif (self::isMatrixValue($a)) {
+ return 64;
+ }
+ } elseif (empty($value)) {
+ // Empty Cell
+ return 1;
+ }
+ $value = self::flattenSingleValue($value);
- if (($value === NULL) || (is_float($value)) || (is_int($value))) {
- return 1;
- } elseif(is_bool($value)) {
- return 4;
- } elseif(is_array($value)) {
- return 64;
- } elseif(is_string($value)) {
- // Errors
- if ((strlen($value) > 0) && ($value{0} == '#')) {
- return 16;
- }
- return 2;
- }
- return 0;
- } // function TYPE()
+ if (($value === null) || (is_float($value)) || (is_int($value))) {
+ return 1;
+ } elseif (is_bool($value)) {
+ return 4;
+ } elseif (is_array($value)) {
+ return 64;
+ } elseif (is_string($value)) {
+ // Errors
+ if ((strlen($value) > 0) && ($value{0} == '#')) {
+ return 16;
+ }
+ return 2;
+ }
+ return 0;
+ }
- /**
- * Convert a multi-dimensional array to a simple 1-dimensional array
- *
- * @param array $array Array to be flattened
- * @return array Flattened array
- */
- public static function flattenArray($array) {
- if (!is_array($array)) {
- return (array) $array;
- }
+ /**
+ * Convert a multi-dimensional array to a simple 1-dimensional array
+ *
+ * @param array $array Array to be flattened
+ * @return array Flattened array
+ */
+ public static function flattenArray($array)
+ {
+ if (!is_array($array)) {
+ return (array) $array;
+ }
- $arrayValues = array();
- foreach ($array as $value) {
- if (is_array($value)) {
- foreach ($value as $val) {
- if (is_array($val)) {
- foreach ($val as $v) {
- $arrayValues[] = $v;
- }
- } else {
- $arrayValues[] = $val;
- }
- }
- } else {
- $arrayValues[] = $value;
- }
- }
+ $arrayValues = array();
+ foreach ($array as $value) {
+ if (is_array($value)) {
+ foreach ($value as $val) {
+ if (is_array($val)) {
+ foreach ($val as $v) {
+ $arrayValues[] = $v;
+ }
+ } else {
+ $arrayValues[] = $val;
+ }
+ }
+ } else {
+ $arrayValues[] = $value;
+ }
+ }
- return $arrayValues;
- } // function flattenArray()
+ return $arrayValues;
+ }
- /**
- * Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing
- *
- * @param array $array Array to be flattened
- * @return array Flattened array
- */
- public static function flattenArrayIndexed($array) {
- if (!is_array($array)) {
- return (array) $array;
- }
+ /**
+ * Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing
+ *
+ * @param array $array Array to be flattened
+ * @return array Flattened array
+ */
+ public static function flattenArrayIndexed($array)
+ {
+ if (!is_array($array)) {
+ return (array) $array;
+ }
- $arrayValues = array();
- foreach ($array as $k1 => $value) {
- if (is_array($value)) {
- foreach ($value as $k2 => $val) {
- if (is_array($val)) {
- foreach ($val as $k3 => $v) {
- $arrayValues[$k1.'.'.$k2.'.'.$k3] = $v;
- }
- } else {
- $arrayValues[$k1.'.'.$k2] = $val;
- }
- }
- } else {
- $arrayValues[$k1] = $value;
- }
- }
+ $arrayValues = array();
+ foreach ($array as $k1 => $value) {
+ if (is_array($value)) {
+ foreach ($value as $k2 => $val) {
+ if (is_array($val)) {
+ foreach ($val as $k3 => $v) {
+ $arrayValues[$k1.'.'.$k2.'.'.$k3] = $v;
+ }
+ } else {
+ $arrayValues[$k1.'.'.$k2] = $val;
+ }
+ }
+ } else {
+ $arrayValues[$k1] = $value;
+ }
+ }
- return $arrayValues;
- } // function flattenArrayIndexed()
+ return $arrayValues;
+ }
- /**
- * Convert an array to a single scalar value by extracting the first element
- *
- * @param mixed $value Array or scalar value
- * @return mixed
- */
- public static function flattenSingleValue($value = '') {
- while (is_array($value)) {
- $value = array_pop($value);
- }
+ /**
+ * Convert an array to a single scalar value by extracting the first element
+ *
+ * @param mixed $value Array or scalar value
+ * @return mixed
+ */
+ public static function flattenSingleValue($value = '')
+ {
+ while (is_array($value)) {
+ $value = array_pop($value);
+ }
- return $value;
- } // function flattenSingleValue()
-
-} // class PHPExcel_Calculation_Functions
+ return $value;
+ }
+}
//
-// There are a few mathematical functions that aren't available on all versions of PHP for all platforms
-// These functions aren't available in Windows implementations of PHP prior to version 5.3.0
-// So we test if they do exist for this version of PHP/operating platform; and if not we create them
+// There are a few mathematical functions that aren't available on all versions of PHP for all platforms
+// These functions aren't available in Windows implementations of PHP prior to version 5.3.0
+// So we test if they do exist for this version of PHP/operating platform; and if not we create them
//
if (!function_exists('acosh')) {
- function acosh($x) {
- return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2));
- } // function acosh()
+ function acosh($x)
+ {
+ return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2));
+ } // function acosh()
}
if (!function_exists('asinh')) {
- function asinh($x) {
- return log($x + sqrt(1 + $x * $x));
- } // function asinh()
+ function asinh($x)
+ {
+ return log($x + sqrt(1 + $x * $x));
+ } // function asinh()
}
if (!function_exists('atanh')) {
- function atanh($x) {
- return (log(1 + $x) - log(1 - $x)) / 2;
- } // function atanh()
+ function atanh($x)
+ {
+ return (log(1 + $x) - log(1 - $x)) / 2;
+ } // function atanh()
}
//
-// Strangely, PHP doesn't have a mb_str_replace multibyte function
-// As we'll only ever use this function with UTF-8 characters, we can simply "hard-code" the character set
+// Strangely, PHP doesn't have a mb_str_replace multibyte function
+// As we'll only ever use this function with UTF-8 characters, we can simply "hard-code" the character set
//
if ((!function_exists('mb_str_replace')) &&
- (function_exists('mb_substr')) && (function_exists('mb_strlen')) && (function_exists('mb_strpos'))) {
- function mb_str_replace($search, $replace, $subject) {
- if(is_array($subject)) {
- $ret = array();
- foreach($subject as $key => $val) {
- $ret[$key] = mb_str_replace($search, $replace, $val);
- }
- return $ret;
- }
+ (function_exists('mb_substr')) && (function_exists('mb_strlen')) && (function_exists('mb_strpos'))) {
+ function mb_str_replace($search, $replace, $subject)
+ {
+ if (is_array($subject)) {
+ $ret = array();
+ foreach ($subject as $key => $val) {
+ $ret[$key] = mb_str_replace($search, $replace, $val);
+ }
+ return $ret;
+ }
- foreach((array) $search as $key => $s) {
- if($s == '' && $s !== 0) {
- continue;
- }
- $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');
- $pos = mb_strpos($subject, $s, 0, 'UTF-8');
- while($pos !== false) {
- $subject = mb_substr($subject, 0, $pos, 'UTF-8') . $r . mb_substr($subject, $pos + mb_strlen($s, 'UTF-8'), 65535, 'UTF-8');
- $pos = mb_strpos($subject, $s, $pos + mb_strlen($r, 'UTF-8'), 'UTF-8');
- }
- }
- return $subject;
- }
+ foreach ((array) $search as $key => $s) {
+ if ($s == '' && $s !== 0) {
+ continue;
+ }
+ $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');
+ $pos = mb_strpos($subject, $s, 0, 'UTF-8');
+ while ($pos !== false) {
+ $subject = mb_substr($subject, 0, $pos, 'UTF-8') . $r . mb_substr($subject, $pos + mb_strlen($s, 'UTF-8'), 65535, 'UTF-8');
+ $pos = mb_strpos($subject, $s, $pos + mb_strlen($r, 'UTF-8'), 'UTF-8');
+ }
+ }
+ return $subject;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Logical.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Logical.php
index 48fdb17f..dd65f010 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Logical.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Logical.php
@@ -1,8 +1,18 @@
$arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue && $arg;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue && ($arg != 0);
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
+ $arg = true;
+ } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
+ $arg = false;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $returnValue = $returnValue && ($arg != 0);
+ }
+ }
+
+ // Return
+ if ($argCount < 0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ return $returnValue;
+ }
+
+
+ /**
+ * LOGICAL_OR
+ *
+ * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.
+ *
+ * Excel Function:
+ * =OR(logical1[,logical2[, ...]])
+ *
+ * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
+ * or references that contain logical values.
+ *
+ * Boolean arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
+ * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $arg,... Data values
+ * @return boolean The logical OR of the arguments.
+ */
+ public static function LOGICAL_OR()
+ {
+ // Return value
+ $returnValue = false;
+
+ // Loop through the arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+ $argCount = -1;
+ foreach ($aArgs as $argCount => $arg) {
+ // Is it a boolean value?
+ if (is_bool($arg)) {
+ $returnValue = $returnValue || $arg;
+ } elseif ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue = $returnValue || ($arg != 0);
+ } elseif (is_string($arg)) {
+ $arg = strtoupper($arg);
+ if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
+ $arg = true;
+ } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
+ $arg = false;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $returnValue = $returnValue || ($arg != 0);
+ }
+ }
+
+ // Return
+ if ($argCount < 0) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ return $returnValue;
+ }
+
+
+ /**
+ * NOT
+ *
+ * Returns the boolean inverse of the argument.
+ *
+ * Excel Function:
+ * =NOT(logical)
+ *
+ * The argument must evaluate to a logical value such as TRUE or FALSE
+ *
+ * Boolean arguments are treated as True or False as appropriate
+ * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
+ * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
+ * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE
+ * @return boolean The boolean inverse of the argument.
+ */
+ public static function NOT($logical = false)
+ {
+ $logical = PHPExcel_Calculation_Functions::flattenSingleValue($logical);
+ if (is_string($logical)) {
+ $logical = strtoupper($logical);
+ if (($logical == 'TRUE') || ($logical == PHPExcel_Calculation::getTRUE())) {
+ return false;
+ } elseif (($logical == 'FALSE') || ($logical == PHPExcel_Calculation::getFALSE())) {
+ return true;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+
+ return !$logical;
+ }
+
+ /**
+ * STATEMENT_IF
+ *
+ * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
+ *
+ * Excel Function:
+ * =IF(condition[,returnIfTrue[,returnIfFalse]])
+ *
+ * Condition is any value or expression that can be evaluated to TRUE or FALSE.
+ * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100,
+ * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
+ * This argument can use any comparison calculation operator.
+ * ReturnIfTrue is the value that is returned if condition evaluates to TRUE.
+ * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE,
+ * then the IF function returns the text "Within budget"
+ * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use
+ * the logical value TRUE for this argument.
+ * ReturnIfTrue can be another formula.
+ * ReturnIfFalse is the value that is returned if condition evaluates to FALSE.
+ * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE,
+ * then the IF function returns the text "Over budget".
+ * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned.
+ * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned.
+ * ReturnIfFalse can be another formula.
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $condition Condition to evaluate
+ * @param mixed $returnIfTrue Value to return when condition is true
+ * @param mixed $returnIfFalse Optional value to return when condition is false
+ * @return mixed The value of returnIfTrue or returnIfFalse determined by condition
+ */
+ public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = false)
+ {
+ $condition = (is_null($condition)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition);
+ $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
+ $returnIfFalse = (is_null($returnIfFalse)) ? false : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse);
+
+ return ($condition) ? $returnIfTrue : $returnIfFalse;
+ }
+
+
+ /**
+ * IFERROR
+ *
+ * Excel Function:
+ * =IFERROR(testValue,errorpart)
+ *
+ * @access public
+ * @category Logical Functions
+ * @param mixed $testValue Value to check, is also the value returned when no error
+ * @param mixed $errorpart Value to return when testValue is an error condition
+ * @return mixed The value of errorpart or testValue determined by error condition
+ */
+ public static function IFERROR($testValue = '', $errorpart = '')
+ {
+ $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
+ $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
+
+ return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
+ }
}
-
-
-/**
- * PHPExcel_Calculation_Logical
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_Logical {
-
- /**
- * TRUE
- *
- * Returns the boolean TRUE.
- *
- * Excel Function:
- * =TRUE()
- *
- * @access public
- * @category Logical Functions
- * @return boolean True
- */
- public static function TRUE() {
- return TRUE;
- } // function TRUE()
-
-
- /**
- * FALSE
- *
- * Returns the boolean FALSE.
- *
- * Excel Function:
- * =FALSE()
- *
- * @access public
- * @category Logical Functions
- * @return boolean False
- */
- public static function FALSE() {
- return FALSE;
- } // function FALSE()
-
-
- /**
- * LOGICAL_AND
- *
- * Returns boolean TRUE if all its arguments are TRUE; returns FALSE if one or more argument is FALSE.
- *
- * Excel Function:
- * =AND(logical1[,logical2[, ...]])
- *
- * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
- * or references that contain logical values.
- *
- * Boolean arguments are treated as True or False as appropriate
- * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
- * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
- * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
- *
- * @access public
- * @category Logical Functions
- * @param mixed $arg,... Data values
- * @return boolean The logical AND of the arguments.
- */
- public static function LOGICAL_AND() {
- // Return value
- $returnValue = TRUE;
-
- // Loop through the arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- $argCount = -1;
- foreach ($aArgs as $argCount => $arg) {
- // Is it a boolean value?
- if (is_bool($arg)) {
- $returnValue = $returnValue && $arg;
- } elseif ((is_numeric($arg)) && (!is_string($arg))) {
- $returnValue = $returnValue && ($arg != 0);
- } elseif (is_string($arg)) {
- $arg = strtoupper($arg);
- if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
- $arg = TRUE;
- } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
- $arg = FALSE;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $returnValue = $returnValue && ($arg != 0);
- }
- }
-
- // Return
- if ($argCount < 0) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- return $returnValue;
- } // function LOGICAL_AND()
-
-
- /**
- * LOGICAL_OR
- *
- * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.
- *
- * Excel Function:
- * =OR(logical1[,logical2[, ...]])
- *
- * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays
- * or references that contain logical values.
- *
- * Boolean arguments are treated as True or False as appropriate
- * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
- * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
- * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
- *
- * @access public
- * @category Logical Functions
- * @param mixed $arg,... Data values
- * @return boolean The logical OR of the arguments.
- */
- public static function LOGICAL_OR() {
- // Return value
- $returnValue = FALSE;
-
- // Loop through the arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
- $argCount = -1;
- foreach ($aArgs as $argCount => $arg) {
- // Is it a boolean value?
- if (is_bool($arg)) {
- $returnValue = $returnValue || $arg;
- } elseif ((is_numeric($arg)) && (!is_string($arg))) {
- $returnValue = $returnValue || ($arg != 0);
- } elseif (is_string($arg)) {
- $arg = strtoupper($arg);
- if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
- $arg = TRUE;
- } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
- $arg = FALSE;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $returnValue = $returnValue || ($arg != 0);
- }
- }
-
- // Return
- if ($argCount < 0) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- return $returnValue;
- } // function LOGICAL_OR()
-
-
- /**
- * NOT
- *
- * Returns the boolean inverse of the argument.
- *
- * Excel Function:
- * =NOT(logical)
- *
- * The argument must evaluate to a logical value such as TRUE or FALSE
- *
- * Boolean arguments are treated as True or False as appropriate
- * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False
- * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds
- * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
- *
- * @access public
- * @category Logical Functions
- * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE
- * @return boolean The boolean inverse of the argument.
- */
- public static function NOT($logical=FALSE) {
- $logical = PHPExcel_Calculation_Functions::flattenSingleValue($logical);
- if (is_string($logical)) {
- $logical = strtoupper($logical);
- if (($logical == 'TRUE') || ($logical == PHPExcel_Calculation::getTRUE())) {
- return FALSE;
- } elseif (($logical == 'FALSE') || ($logical == PHPExcel_Calculation::getFALSE())) {
- return TRUE;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
-
- return !$logical;
- } // function NOT()
-
- /**
- * STATEMENT_IF
- *
- * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
- *
- * Excel Function:
- * =IF(condition[,returnIfTrue[,returnIfFalse]])
- *
- * Condition is any value or expression that can be evaluated to TRUE or FALSE.
- * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100,
- * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
- * This argument can use any comparison calculation operator.
- * ReturnIfTrue is the value that is returned if condition evaluates to TRUE.
- * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE,
- * then the IF function returns the text "Within budget"
- * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use
- * the logical value TRUE for this argument.
- * ReturnIfTrue can be another formula.
- * ReturnIfFalse is the value that is returned if condition evaluates to FALSE.
- * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE,
- * then the IF function returns the text "Over budget".
- * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned.
- * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned.
- * ReturnIfFalse can be another formula.
- *
- * @access public
- * @category Logical Functions
- * @param mixed $condition Condition to evaluate
- * @param mixed $returnIfTrue Value to return when condition is true
- * @param mixed $returnIfFalse Optional value to return when condition is false
- * @return mixed The value of returnIfTrue or returnIfFalse determined by condition
- */
- public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) {
- $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition);
- $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
- $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse);
-
- return ($condition) ? $returnIfTrue : $returnIfFalse;
- } // function STATEMENT_IF()
-
-
- /**
- * IFERROR
- *
- * Excel Function:
- * =IFERROR(testValue,errorpart)
- *
- * @access public
- * @category Logical Functions
- * @param mixed $testValue Value to check, is also the value returned when no error
- * @param mixed $errorpart Value to return when testValue is an error condition
- * @return mixed The value of errorpart or testValue determined by error condition
- */
- public static function IFERROR($testValue = '', $errorpart = '') {
- $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
- $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
-
- return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
- } // function IFERROR()
-
-} // class PHPExcel_Calculation_Logical
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/LookupRef.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/LookupRef.php
index 75e7f69c..1fe77902 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/LookupRef.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/LookupRef.php
@@ -1,8 +1,18 @@
'') {
- if (strpos($sheetText,' ') !== False) { $sheetText = "'".$sheetText."'"; }
- $sheetText .='!';
- }
- if ((!is_bool($referenceStyle)) || $referenceStyle) {
- $rowRelative = $columnRelative = '$';
- $column = PHPExcel_Cell::stringFromColumnIndex($column-1);
- if (($relativity == 2) || ($relativity == 4)) { $columnRelative = ''; }
- if (($relativity == 3) || ($relativity == 4)) { $rowRelative = ''; }
- return $sheetText.$columnRelative.$column.$rowRelative.$row;
- } else {
- if (($relativity == 2) || ($relativity == 4)) { $column = '['.$column.']'; }
- if (($relativity == 3) || ($relativity == 4)) { $row = '['.$row.']'; }
- return $sheetText.'R'.$row.'C'.$column;
- }
- } // function CELL_ADDRESS()
-
-
- /**
- * COLUMN
- *
- * Returns the column number of the given cell reference
- * If the cell reference is a range of cells, COLUMN returns the column numbers of each column in the reference as a horizontal array.
- * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
- * reference of the cell in which the COLUMN function appears; otherwise this function returns 0.
- *
- * Excel Function:
- * =COLUMN([cellAddress])
- *
- * @param cellAddress A reference to a range of cells for which you want the column numbers
- * @return integer or array of integer
- */
- public static function COLUMN($cellAddress=Null) {
- if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; }
-
- if (is_array($cellAddress)) {
- foreach($cellAddress as $columnKey => $value) {
- $columnKey = preg_replace('/[^a-z]/i','',$columnKey);
- return (integer) PHPExcel_Cell::columnIndexFromString($columnKey);
- }
- } else {
- if (strpos($cellAddress,'!') !== false) {
- list($sheet,$cellAddress) = explode('!',$cellAddress);
- }
- if (strpos($cellAddress,':') !== false) {
- list($startAddress,$endAddress) = explode(':',$cellAddress);
- $startAddress = preg_replace('/[^a-z]/i','',$startAddress);
- $endAddress = preg_replace('/[^a-z]/i','',$endAddress);
- $returnValue = array();
- do {
- $returnValue[] = (integer) PHPExcel_Cell::columnIndexFromString($startAddress);
- } while ($startAddress++ != $endAddress);
- return $returnValue;
- } else {
- $cellAddress = preg_replace('/[^a-z]/i','',$cellAddress);
- return (integer) PHPExcel_Cell::columnIndexFromString($cellAddress);
- }
- }
- } // function COLUMN()
-
-
- /**
- * COLUMNS
- *
- * Returns the number of columns in an array or reference.
- *
- * Excel Function:
- * =COLUMNS(cellAddress)
- *
- * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of columns
- * @return integer The number of columns in cellAddress
- */
- public static function COLUMNS($cellAddress=Null) {
- if (is_null($cellAddress) || $cellAddress === '') {
- return 1;
- } elseif (!is_array($cellAddress)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- $x = array_keys($cellAddress);
- $x = array_shift($x);
- $isMatrix = (is_numeric($x));
- list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
-
- if ($isMatrix) {
- return $rows;
- } else {
- return $columns;
- }
- } // function COLUMNS()
-
-
- /**
- * ROW
- *
- * Returns the row number of the given cell reference
- * If the cell reference is a range of cells, ROW returns the row numbers of each row in the reference as a vertical array.
- * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
- * reference of the cell in which the ROW function appears; otherwise this function returns 0.
- *
- * Excel Function:
- * =ROW([cellAddress])
- *
- * @param cellAddress A reference to a range of cells for which you want the row numbers
- * @return integer or array of integer
- */
- public static function ROW($cellAddress=Null) {
- if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; }
-
- if (is_array($cellAddress)) {
- foreach($cellAddress as $columnKey => $rowValue) {
- foreach($rowValue as $rowKey => $cellValue) {
- return (integer) preg_replace('/[^0-9]/i','',$rowKey);
- }
- }
- } else {
- if (strpos($cellAddress,'!') !== false) {
- list($sheet,$cellAddress) = explode('!',$cellAddress);
- }
- if (strpos($cellAddress,':') !== false) {
- list($startAddress,$endAddress) = explode(':',$cellAddress);
- $startAddress = preg_replace('/[^0-9]/','',$startAddress);
- $endAddress = preg_replace('/[^0-9]/','',$endAddress);
- $returnValue = array();
- do {
- $returnValue[][] = (integer) $startAddress;
- } while ($startAddress++ != $endAddress);
- return $returnValue;
- } else {
- list($cellAddress) = explode(':',$cellAddress);
- return (integer) preg_replace('/[^0-9]/','',$cellAddress);
- }
- }
- } // function ROW()
-
-
- /**
- * ROWS
- *
- * Returns the number of rows in an array or reference.
- *
- * Excel Function:
- * =ROWS(cellAddress)
- *
- * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of rows
- * @return integer The number of rows in cellAddress
- */
- public static function ROWS($cellAddress=Null) {
- if (is_null($cellAddress) || $cellAddress === '') {
- return 1;
- } elseif (!is_array($cellAddress)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- $i = array_keys($cellAddress);
- $isMatrix = (is_numeric(array_shift($i)));
- list($columns,$rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
-
- if ($isMatrix) {
- return $columns;
- } else {
- return $rows;
- }
- } // function ROWS()
-
-
- /**
- * HYPERLINK
- *
- * Excel Function:
- * =HYPERLINK(linkURL,displayName)
- *
- * @access public
- * @category Logical Functions
- * @param string $linkURL Value to check, is also the value returned when no error
- * @param string $displayName Value to return when testValue is an error condition
- * @param PHPExcel_Cell $pCell The cell to set the hyperlink in
- * @return mixed The value of $displayName (or $linkURL if $displayName was blank)
- */
- public static function HYPERLINK($linkURL = '', $displayName = null, PHPExcel_Cell $pCell = null) {
- $args = func_get_args();
- $pCell = array_pop($args);
-
- $linkURL = (is_null($linkURL)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($linkURL);
- $displayName = (is_null($displayName)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($displayName);
-
- if ((!is_object($pCell)) || (trim($linkURL) == '')) {
- return PHPExcel_Calculation_Functions::REF();
- }
-
- if ((is_object($displayName)) || trim($displayName) == '') {
- $displayName = $linkURL;
- }
-
- $pCell->getHyperlink()->setUrl($linkURL);
-
- return $displayName;
- } // function HYPERLINK()
-
-
- /**
- * INDIRECT
- *
- * Returns the reference specified by a text string.
- * References are immediately evaluated to display their contents.
- *
- * Excel Function:
- * =INDIRECT(cellAddress)
- *
- * NOTE - INDIRECT() does not yet support the optional a1 parameter introduced in Excel 2010
- *
- * @param cellAddress $cellAddress The cell address of the current cell (containing this formula)
- * @param PHPExcel_Cell $pCell The current cell (containing this formula)
- * @return mixed The cells referenced by cellAddress
- *
- * @todo Support for the optional a1 parameter introduced in Excel 2010
- *
- */
- public static function INDIRECT($cellAddress = NULL, PHPExcel_Cell $pCell = NULL) {
- $cellAddress = PHPExcel_Calculation_Functions::flattenSingleValue($cellAddress);
- if (is_null($cellAddress) || $cellAddress === '') {
- return PHPExcel_Calculation_Functions::REF();
- }
-
- $cellAddress1 = $cellAddress;
- $cellAddress2 = NULL;
- if (strpos($cellAddress,':') !== false) {
- list($cellAddress1,$cellAddress2) = explode(':',$cellAddress);
- }
-
- if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress1, $matches)) ||
- ((!is_null($cellAddress2)) && (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress2, $matches)))) {
- if (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $cellAddress1, $matches)) {
- return PHPExcel_Calculation_Functions::REF();
- }
-
- if (strpos($cellAddress,'!') !== FALSE) {
- list($sheetName, $cellAddress) = explode('!',$cellAddress);
- $sheetName = trim($sheetName, "'");
- $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
- } else {
- $pSheet = $pCell->getWorksheet();
- }
-
- return PHPExcel_Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, FALSE);
- }
-
- if (strpos($cellAddress,'!') !== FALSE) {
- list($sheetName,$cellAddress) = explode('!',$cellAddress);
- $sheetName = trim($sheetName, "'");
- $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
- } else {
- $pSheet = $pCell->getWorksheet();
- }
-
- return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, FALSE);
- } // function INDIRECT()
-
-
- /**
- * OFFSET
- *
- * Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells.
- * The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and
- * the number of columns to be returned.
- *
- * Excel Function:
- * =OFFSET(cellAddress, rows, cols, [height], [width])
- *
- * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or
- * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
- * @param rows The number of rows, up or down, that you want the upper-left cell to refer to.
- * Using 5 as the rows argument specifies that the upper-left cell in the reference is
- * five rows below reference. Rows can be positive (which means below the starting reference)
- * or negative (which means above the starting reference).
- * @param cols The number of columns, to the left or right, that you want the upper-left cell of the result
- * to refer to. Using 5 as the cols argument specifies that the upper-left cell in the
- * reference is five columns to the right of reference. Cols can be positive (which means
- * to the right of the starting reference) or negative (which means to the left of the
- * starting reference).
- * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
- * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
- * @return string A reference to a cell or range of cells
- */
- public static function OFFSET($cellAddress=Null,$rows=0,$columns=0,$height=null,$width=null) {
- $rows = PHPExcel_Calculation_Functions::flattenSingleValue($rows);
- $columns = PHPExcel_Calculation_Functions::flattenSingleValue($columns);
- $height = PHPExcel_Calculation_Functions::flattenSingleValue($height);
- $width = PHPExcel_Calculation_Functions::flattenSingleValue($width);
- if ($cellAddress == Null) {
- return 0;
- }
-
- $args = func_get_args();
- $pCell = array_pop($args);
- if (!is_object($pCell)) {
- return PHPExcel_Calculation_Functions::REF();
- }
-
- $sheetName = NULL;
- if (strpos($cellAddress,"!")) {
- list($sheetName,$cellAddress) = explode("!",$cellAddress);
- $sheetName = trim($sheetName, "'");
- }
- if (strpos($cellAddress,":")) {
- list($startCell,$endCell) = explode(":",$cellAddress);
- } else {
- $startCell = $endCell = $cellAddress;
- }
- list($startCellColumn,$startCellRow) = PHPExcel_Cell::coordinateFromString($startCell);
- list($endCellColumn,$endCellRow) = PHPExcel_Cell::coordinateFromString($endCell);
-
- $startCellRow += $rows;
- $startCellColumn = PHPExcel_Cell::columnIndexFromString($startCellColumn) - 1;
- $startCellColumn += $columns;
-
- if (($startCellRow <= 0) || ($startCellColumn < 0)) {
- return PHPExcel_Calculation_Functions::REF();
- }
- $endCellColumn = PHPExcel_Cell::columnIndexFromString($endCellColumn) - 1;
- if (($width != null) && (!is_object($width))) {
- $endCellColumn = $startCellColumn + $width - 1;
- } else {
- $endCellColumn += $columns;
- }
- $startCellColumn = PHPExcel_Cell::stringFromColumnIndex($startCellColumn);
-
- if (($height != null) && (!is_object($height))) {
- $endCellRow = $startCellRow + $height - 1;
- } else {
- $endCellRow += $rows;
- }
-
- if (($endCellRow <= 0) || ($endCellColumn < 0)) {
- return PHPExcel_Calculation_Functions::REF();
- }
- $endCellColumn = PHPExcel_Cell::stringFromColumnIndex($endCellColumn);
-
- $cellAddress = $startCellColumn.$startCellRow;
- if (($startCellColumn != $endCellColumn) || ($startCellRow != $endCellRow)) {
- $cellAddress .= ':'.$endCellColumn.$endCellRow;
- }
-
- if ($sheetName !== NULL) {
- $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
- } else {
- $pSheet = $pCell->getWorksheet();
- }
-
- return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, False);
- } // function OFFSET()
-
-
- /**
- * CHOOSE
- *
- * Uses lookup_value to return a value from the list of value arguments.
- * Use CHOOSE to select one of up to 254 values based on the lookup_value.
- *
- * Excel Function:
- * =CHOOSE(index_num, value1, [value2], ...)
- *
- * @param index_num Specifies which value argument is selected.
- * Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number
- * between 1 and 254.
- * @param value1... Value1 is required, subsequent values are optional.
- * Between 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on
- * index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or
- * text.
- * @return mixed The selected value
- */
- public static function CHOOSE() {
- $chooseArgs = func_get_args();
- $chosenEntry = PHPExcel_Calculation_Functions::flattenArray(array_shift($chooseArgs));
- $entryCount = count($chooseArgs) - 1;
-
- if(is_array($chosenEntry)) {
- $chosenEntry = array_shift($chosenEntry);
- }
- if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) {
- --$chosenEntry;
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $chosenEntry = floor($chosenEntry);
- if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (is_array($chooseArgs[$chosenEntry])) {
- return PHPExcel_Calculation_Functions::flattenArray($chooseArgs[$chosenEntry]);
- } else {
- return $chooseArgs[$chosenEntry];
- }
- } // function CHOOSE()
-
-
- /**
- * MATCH
- *
- * The MATCH function searches for a specified item in a range of cells
- *
- * Excel Function:
- * =MATCH(lookup_value, lookup_array, [match_type])
- *
- * @param lookup_value The value that you want to match in lookup_array
- * @param lookup_array The range of cells being searched
- * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
- * @return integer The relative position of the found item
- */
- public static function MATCH($lookup_value, $lookup_array, $match_type=1) {
- $lookup_array = PHPExcel_Calculation_Functions::flattenArray($lookup_array);
- $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
- $match_type = (is_null($match_type)) ? 1 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($match_type);
- // MATCH is not case sensitive
- $lookup_value = strtolower($lookup_value);
-
- // lookup_value type has to be number, text, or logical values
- if ((!is_numeric($lookup_value)) && (!is_string($lookup_value)) && (!is_bool($lookup_value))) {
- return PHPExcel_Calculation_Functions::NA();
- }
-
- // match_type is 0, 1 or -1
- if (($match_type !== 0) && ($match_type !== -1) && ($match_type !== 1)) {
- return PHPExcel_Calculation_Functions::NA();
- }
-
- // lookup_array should not be empty
- $lookupArraySize = count($lookup_array);
- if ($lookupArraySize <= 0) {
- return PHPExcel_Calculation_Functions::NA();
- }
-
- // lookup_array should contain only number, text, or logical values, or empty (null) cells
- foreach($lookup_array as $i => $lookupArrayValue) {
- // check the type of the value
- if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) &&
- (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue))) {
- return PHPExcel_Calculation_Functions::NA();
- }
- // convert strings to lowercase for case-insensitive testing
- if (is_string($lookupArrayValue)) {
- $lookup_array[$i] = strtolower($lookupArrayValue);
- }
- if ((is_null($lookupArrayValue)) && (($match_type == 1) || ($match_type == -1))) {
- $lookup_array = array_slice($lookup_array,0,$i-1);
- }
- }
-
- // if match_type is 1 or -1, the list has to be ordered
- if ($match_type == 1) {
- asort($lookup_array);
- $keySet = array_keys($lookup_array);
- } elseif($match_type == -1) {
- arsort($lookup_array);
- $keySet = array_keys($lookup_array);
- }
-
- // **
- // find the match
- // **
- // loop on the cells
-// var_dump($lookup_array);
-// echo '
';
- foreach($lookup_array as $i => $lookupArrayValue) {
- if (($match_type == 0) && ($lookupArrayValue == $lookup_value)) {
- // exact match
- return ++$i;
- } elseif (($match_type == -1) && ($lookupArrayValue <= $lookup_value)) {
-// echo '$i = '.$i.' => ';
-// var_dump($lookupArrayValue);
-// echo '
';
-// echo 'Keyset = ';
-// var_dump($keySet);
-// echo '
';
- $i = array_search($i,$keySet);
-// echo '$i='.$i.'
';
- // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value
- if ($i < 1){
- // 1st cell was allready smaller than the lookup_value
- break;
- } else {
- // the previous cell was the match
- return $keySet[$i-1]+1;
- }
- } elseif (($match_type == 1) && ($lookupArrayValue >= $lookup_value)) {
-// echo '$i = '.$i.' => ';
-// var_dump($lookupArrayValue);
-// echo '
';
-// echo 'Keyset = ';
-// var_dump($keySet);
-// echo '
';
- $i = array_search($i,$keySet);
-// echo '$i='.$i.'
';
- // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value
- if ($i < 1){
- // 1st cell was allready bigger than the lookup_value
- break;
- } else {
- // the previous cell was the match
- return $keySet[$i-1]+1;
- }
- }
- }
-
- // unsuccessful in finding a match, return #N/A error value
- return PHPExcel_Calculation_Functions::NA();
- } // function MATCH()
-
-
- /**
- * INDEX
- *
- * Uses an index to choose a value from a reference or array
- *
- * Excel Function:
- * =INDEX(range_array, row_num, [column_num])
- *
- * @param range_array A range of cells or an array constant
- * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required.
- * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required.
- * @return mixed the value of a specified cell or array of cells
- */
- public static function INDEX($arrayValues,$rowNum = 0,$columnNum = 0) {
-
- if (($rowNum < 0) || ($columnNum < 0)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- if (!is_array($arrayValues)) {
- return PHPExcel_Calculation_Functions::REF();
- }
-
- $rowKeys = array_keys($arrayValues);
- $columnKeys = @array_keys($arrayValues[$rowKeys[0]]);
-
- if ($columnNum > count($columnKeys)) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($columnNum == 0) {
- if ($rowNum == 0) {
- return $arrayValues;
- }
- $rowNum = $rowKeys[--$rowNum];
- $returnArray = array();
- foreach($arrayValues as $arrayColumn) {
- if (is_array($arrayColumn)) {
- if (isset($arrayColumn[$rowNum])) {
- $returnArray[] = $arrayColumn[$rowNum];
- } else {
- return $arrayValues[$rowNum];
- }
- } else {
- return $arrayValues[$rowNum];
- }
- }
- return $returnArray;
- }
- $columnNum = $columnKeys[--$columnNum];
- if ($rowNum > count($rowKeys)) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($rowNum == 0) {
- return $arrayValues[$columnNum];
- }
- $rowNum = $rowKeys[--$rowNum];
-
- return $arrayValues[$rowNum][$columnNum];
- } // function INDEX()
-
-
- /**
- * TRANSPOSE
- *
- * @param array $matrixData A matrix of values
- * @return array
- *
- * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix.
- */
- public static function TRANSPOSE($matrixData) {
- $returnMatrix = array();
- if (!is_array($matrixData)) { $matrixData = array(array($matrixData)); }
-
- $column = 0;
- foreach($matrixData as $matrixRow) {
- $row = 0;
- foreach($matrixRow as $matrixCell) {
- $returnMatrix[$row][$column] = $matrixCell;
- ++$row;
- }
- ++$column;
- }
- return $returnMatrix;
- } // function TRANSPOSE()
-
-
- private static function _vlookupSort($a,$b) {
- $f = array_keys($a);
- $firstColumn = array_shift($f);
- if (strtolower($a[$firstColumn]) == strtolower($b[$firstColumn])) {
- return 0;
- }
- return (strtolower($a[$firstColumn]) < strtolower($b[$firstColumn])) ? -1 : 1;
- } // function _vlookupSort()
-
-
- /**
- * VLOOKUP
- * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number.
- * @param lookup_value The value that you want to match in lookup_array
- * @param lookup_array The range of cells being searched
- * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1.
- * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
- * @return mixed The value of the found cell
- */
- public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) {
- $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
- $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
- $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
-
- // index_number must be greater than or equal to 1
- if ($index_number < 1) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- // index_number must be less than or equal to the number of columns in lookup_array
- if ((!is_array($lookup_array)) || (empty($lookup_array))) {
- return PHPExcel_Calculation_Functions::REF();
- } else {
- $f = array_keys($lookup_array);
- $firstRow = array_pop($f);
- if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) {
- return PHPExcel_Calculation_Functions::REF();
- } else {
- $columnKeys = array_keys($lookup_array[$firstRow]);
- $returnColumn = $columnKeys[--$index_number];
- $firstColumn = array_shift($columnKeys);
- }
- }
-
- if (!$not_exact_match) {
- uasort($lookup_array,array('self','_vlookupSort'));
- }
-
- $rowNumber = $rowValue = False;
- foreach($lookup_array as $rowKey => $rowData) {
- if ((is_numeric($lookup_value) && is_numeric($rowData[$firstColumn]) && ($rowData[$firstColumn] > $lookup_value)) ||
- (!is_numeric($lookup_value) && !is_numeric($rowData[$firstColumn]) && (strtolower($rowData[$firstColumn]) > strtolower($lookup_value)))) {
- break;
- }
- $rowNumber = $rowKey;
- $rowValue = $rowData[$firstColumn];
- }
-
- if ($rowNumber !== false) {
- if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
- // if an exact match is required, we have what we need to return an appropriate response
- return PHPExcel_Calculation_Functions::NA();
- } else {
- // otherwise return the appropriate value
- return $lookup_array[$rowNumber][$returnColumn];
- }
- }
-
- return PHPExcel_Calculation_Functions::NA();
- } // function VLOOKUP()
-
-
-/**
- * HLOOKUP
- * The HLOOKUP function searches for value in the top-most row of lookup_array and returns the value in the same column based on the index_number.
- * @param lookup_value The value that you want to match in lookup_array
- * @param lookup_array The range of cells being searched
- * @param index_number The row number in table_array from which the matching value must be returned. The first row is 1.
- * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
- * @return mixed The value of the found cell
- */
- public static function HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true) {
+class PHPExcel_Calculation_LookupRef
+{
+ /**
+ * CELL_ADDRESS
+ *
+ * Creates a cell address as text, given specified row and column numbers.
+ *
+ * Excel Function:
+ * =ADDRESS(row, column, [relativity], [referenceStyle], [sheetText])
+ *
+ * @param row Row number to use in the cell reference
+ * @param column Column number to use in the cell reference
+ * @param relativity Flag indicating the type of reference to return
+ * 1 or omitted Absolute
+ * 2 Absolute row; relative column
+ * 3 Relative row; absolute column
+ * 4 Relative
+ * @param referenceStyle A logical value that specifies the A1 or R1C1 reference style.
+ * TRUE or omitted CELL_ADDRESS returns an A1-style reference
+ * FALSE CELL_ADDRESS returns an R1C1-style reference
+ * @param sheetText Optional Name of worksheet to use
+ * @return string
+ */
+ public static function CELL_ADDRESS($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = '')
+ {
+ $row = PHPExcel_Calculation_Functions::flattenSingleValue($row);
+ $column = PHPExcel_Calculation_Functions::flattenSingleValue($column);
+ $relativity = PHPExcel_Calculation_Functions::flattenSingleValue($relativity);
+ $sheetText = PHPExcel_Calculation_Functions::flattenSingleValue($sheetText);
+
+ if (($row < 1) || ($column < 1)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if ($sheetText > '') {
+ if (strpos($sheetText, ' ') !== false) {
+ $sheetText = "'".$sheetText."'";
+ }
+ $sheetText .='!';
+ }
+ if ((!is_bool($referenceStyle)) || $referenceStyle) {
+ $rowRelative = $columnRelative = '$';
+ $column = PHPExcel_Cell::stringFromColumnIndex($column-1);
+ if (($relativity == 2) || ($relativity == 4)) {
+ $columnRelative = '';
+ }
+ if (($relativity == 3) || ($relativity == 4)) {
+ $rowRelative = '';
+ }
+ return $sheetText.$columnRelative.$column.$rowRelative.$row;
+ } else {
+ if (($relativity == 2) || ($relativity == 4)) {
+ $column = '['.$column.']';
+ }
+ if (($relativity == 3) || ($relativity == 4)) {
+ $row = '['.$row.']';
+ }
+ return $sheetText.'R'.$row.'C'.$column;
+ }
+ }
+
+
+ /**
+ * COLUMN
+ *
+ * Returns the column number of the given cell reference
+ * If the cell reference is a range of cells, COLUMN returns the column numbers of each column in the reference as a horizontal array.
+ * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
+ * reference of the cell in which the COLUMN function appears; otherwise this function returns 0.
+ *
+ * Excel Function:
+ * =COLUMN([cellAddress])
+ *
+ * @param cellAddress A reference to a range of cells for which you want the column numbers
+ * @return integer or array of integer
+ */
+ public static function COLUMN($cellAddress = null)
+ {
+ if (is_null($cellAddress) || trim($cellAddress) === '') {
+ return 0;
+ }
+
+ if (is_array($cellAddress)) {
+ foreach ($cellAddress as $columnKey => $value) {
+ $columnKey = preg_replace('/[^a-z]/i', '', $columnKey);
+ return (integer) PHPExcel_Cell::columnIndexFromString($columnKey);
+ }
+ } else {
+ if (strpos($cellAddress, '!') !== false) {
+ list($sheet, $cellAddress) = explode('!', $cellAddress);
+ }
+ if (strpos($cellAddress, ':') !== false) {
+ list($startAddress, $endAddress) = explode(':', $cellAddress);
+ $startAddress = preg_replace('/[^a-z]/i', '', $startAddress);
+ $endAddress = preg_replace('/[^a-z]/i', '', $endAddress);
+ $returnValue = array();
+ do {
+ $returnValue[] = (integer) PHPExcel_Cell::columnIndexFromString($startAddress);
+ } while ($startAddress++ != $endAddress);
+ return $returnValue;
+ } else {
+ $cellAddress = preg_replace('/[^a-z]/i', '', $cellAddress);
+ return (integer) PHPExcel_Cell::columnIndexFromString($cellAddress);
+ }
+ }
+ }
+
+
+ /**
+ * COLUMNS
+ *
+ * Returns the number of columns in an array or reference.
+ *
+ * Excel Function:
+ * =COLUMNS(cellAddress)
+ *
+ * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of columns
+ * @return integer The number of columns in cellAddress
+ */
+ public static function COLUMNS($cellAddress = null)
+ {
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return 1;
+ } elseif (!is_array($cellAddress)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ reset($cellAddress);
+ $isMatrix = (is_numeric(key($cellAddress)));
+ list($columns, $rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
+
+ if ($isMatrix) {
+ return $rows;
+ } else {
+ return $columns;
+ }
+ }
+
+
+ /**
+ * ROW
+ *
+ * Returns the row number of the given cell reference
+ * If the cell reference is a range of cells, ROW returns the row numbers of each row in the reference as a vertical array.
+ * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the
+ * reference of the cell in which the ROW function appears; otherwise this function returns 0.
+ *
+ * Excel Function:
+ * =ROW([cellAddress])
+ *
+ * @param cellAddress A reference to a range of cells for which you want the row numbers
+ * @return integer or array of integer
+ */
+ public static function ROW($cellAddress = null)
+ {
+ if (is_null($cellAddress) || trim($cellAddress) === '') {
+ return 0;
+ }
+
+ if (is_array($cellAddress)) {
+ foreach ($cellAddress as $columnKey => $rowValue) {
+ foreach ($rowValue as $rowKey => $cellValue) {
+ return (integer) preg_replace('/[^0-9]/i', '', $rowKey);
+ }
+ }
+ } else {
+ if (strpos($cellAddress, '!') !== false) {
+ list($sheet, $cellAddress) = explode('!', $cellAddress);
+ }
+ if (strpos($cellAddress, ':') !== false) {
+ list($startAddress, $endAddress) = explode(':', $cellAddress);
+ $startAddress = preg_replace('/[^0-9]/', '', $startAddress);
+ $endAddress = preg_replace('/[^0-9]/', '', $endAddress);
+ $returnValue = array();
+ do {
+ $returnValue[][] = (integer) $startAddress;
+ } while ($startAddress++ != $endAddress);
+ return $returnValue;
+ } else {
+ list($cellAddress) = explode(':', $cellAddress);
+ return (integer) preg_replace('/[^0-9]/', '', $cellAddress);
+ }
+ }
+ }
+
+
+ /**
+ * ROWS
+ *
+ * Returns the number of rows in an array or reference.
+ *
+ * Excel Function:
+ * =ROWS(cellAddress)
+ *
+ * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of rows
+ * @return integer The number of rows in cellAddress
+ */
+ public static function ROWS($cellAddress = null)
+ {
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return 1;
+ } elseif (!is_array($cellAddress)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ reset($cellAddress);
+ $isMatrix = (is_numeric(key($cellAddress)));
+ list($columns, $rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress);
+
+ if ($isMatrix) {
+ return $columns;
+ } else {
+ return $rows;
+ }
+ }
+
+
+ /**
+ * HYPERLINK
+ *
+ * Excel Function:
+ * =HYPERLINK(linkURL,displayName)
+ *
+ * @access public
+ * @category Logical Functions
+ * @param string $linkURL Value to check, is also the value returned when no error
+ * @param string $displayName Value to return when testValue is an error condition
+ * @param PHPExcel_Cell $pCell The cell to set the hyperlink in
+ * @return mixed The value of $displayName (or $linkURL if $displayName was blank)
+ */
+ public static function HYPERLINK($linkURL = '', $displayName = null, PHPExcel_Cell $pCell = null)
+ {
+ $args = func_get_args();
+ $pCell = array_pop($args);
+
+ $linkURL = (is_null($linkURL)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($linkURL);
+ $displayName = (is_null($displayName)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($displayName);
+
+ if ((!is_object($pCell)) || (trim($linkURL) == '')) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ if ((is_object($displayName)) || trim($displayName) == '') {
+ $displayName = $linkURL;
+ }
+
+ $pCell->getHyperlink()->setUrl($linkURL);
+ $pCell->getHyperlink()->setTooltip($displayName);
+
+ return $displayName;
+ }
+
+
+ /**
+ * INDIRECT
+ *
+ * Returns the reference specified by a text string.
+ * References are immediately evaluated to display their contents.
+ *
+ * Excel Function:
+ * =INDIRECT(cellAddress)
+ *
+ * NOTE - INDIRECT() does not yet support the optional a1 parameter introduced in Excel 2010
+ *
+ * @param cellAddress $cellAddress The cell address of the current cell (containing this formula)
+ * @param PHPExcel_Cell $pCell The current cell (containing this formula)
+ * @return mixed The cells referenced by cellAddress
+ *
+ * @todo Support for the optional a1 parameter introduced in Excel 2010
+ *
+ */
+ public static function INDIRECT($cellAddress = null, PHPExcel_Cell $pCell = null)
+ {
+ $cellAddress = PHPExcel_Calculation_Functions::flattenSingleValue($cellAddress);
+ if (is_null($cellAddress) || $cellAddress === '') {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $cellAddress1 = $cellAddress;
+ $cellAddress2 = null;
+ if (strpos($cellAddress, ':') !== false) {
+ list($cellAddress1, $cellAddress2) = explode(':', $cellAddress);
+ }
+
+ if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress1, $matches)) ||
+ ((!is_null($cellAddress2)) && (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress2, $matches)))) {
+ if (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $cellAddress1, $matches)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ if (strpos($cellAddress, '!') !== false) {
+ list($sheetName, $cellAddress) = explode('!', $cellAddress);
+ $sheetName = trim($sheetName, "'");
+ $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getWorksheet();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, false);
+ }
+
+ if (strpos($cellAddress, '!') !== false) {
+ list($sheetName, $cellAddress) = explode('!', $cellAddress);
+ $sheetName = trim($sheetName, "'");
+ $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getWorksheet();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, false);
+ }
+
+
+ /**
+ * OFFSET
+ *
+ * Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells.
+ * The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and
+ * the number of columns to be returned.
+ *
+ * Excel Function:
+ * =OFFSET(cellAddress, rows, cols, [height], [width])
+ *
+ * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or
+ * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
+ * @param rows The number of rows, up or down, that you want the upper-left cell to refer to.
+ * Using 5 as the rows argument specifies that the upper-left cell in the reference is
+ * five rows below reference. Rows can be positive (which means below the starting reference)
+ * or negative (which means above the starting reference).
+ * @param cols The number of columns, to the left or right, that you want the upper-left cell of the result
+ * to refer to. Using 5 as the cols argument specifies that the upper-left cell in the
+ * reference is five columns to the right of reference. Cols can be positive (which means
+ * to the right of the starting reference) or negative (which means to the left of the
+ * starting reference).
+ * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
+ * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
+ * @return string A reference to a cell or range of cells
+ */
+ public static function OFFSET($cellAddress = null, $rows = 0, $columns = 0, $height = null, $width = null)
+ {
+ $rows = PHPExcel_Calculation_Functions::flattenSingleValue($rows);
+ $columns = PHPExcel_Calculation_Functions::flattenSingleValue($columns);
+ $height = PHPExcel_Calculation_Functions::flattenSingleValue($height);
+ $width = PHPExcel_Calculation_Functions::flattenSingleValue($width);
+ if ($cellAddress == null) {
+ return 0;
+ }
+
+ $args = func_get_args();
+ $pCell = array_pop($args);
+ if (!is_object($pCell)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $sheetName = null;
+ if (strpos($cellAddress, "!")) {
+ list($sheetName, $cellAddress) = explode("!", $cellAddress);
+ $sheetName = trim($sheetName, "'");
+ }
+ if (strpos($cellAddress, ":")) {
+ list($startCell, $endCell) = explode(":", $cellAddress);
+ } else {
+ $startCell = $endCell = $cellAddress;
+ }
+ list($startCellColumn, $startCellRow) = PHPExcel_Cell::coordinateFromString($startCell);
+ list($endCellColumn, $endCellRow) = PHPExcel_Cell::coordinateFromString($endCell);
+
+ $startCellRow += $rows;
+ $startCellColumn = PHPExcel_Cell::columnIndexFromString($startCellColumn) - 1;
+ $startCellColumn += $columns;
+
+ if (($startCellRow <= 0) || ($startCellColumn < 0)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+ $endCellColumn = PHPExcel_Cell::columnIndexFromString($endCellColumn) - 1;
+ if (($width != null) && (!is_object($width))) {
+ $endCellColumn = $startCellColumn + $width - 1;
+ } else {
+ $endCellColumn += $columns;
+ }
+ $startCellColumn = PHPExcel_Cell::stringFromColumnIndex($startCellColumn);
+
+ if (($height != null) && (!is_object($height))) {
+ $endCellRow = $startCellRow + $height - 1;
+ } else {
+ $endCellRow += $rows;
+ }
+
+ if (($endCellRow <= 0) || ($endCellColumn < 0)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+ $endCellColumn = PHPExcel_Cell::stringFromColumnIndex($endCellColumn);
+
+ $cellAddress = $startCellColumn.$startCellRow;
+ if (($startCellColumn != $endCellColumn) || ($startCellRow != $endCellRow)) {
+ $cellAddress .= ':'.$endCellColumn.$endCellRow;
+ }
+
+ if ($sheetName !== null) {
+ $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName);
+ } else {
+ $pSheet = $pCell->getWorksheet();
+ }
+
+ return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, false);
+ }
+
+
+ /**
+ * CHOOSE
+ *
+ * Uses lookup_value to return a value from the list of value arguments.
+ * Use CHOOSE to select one of up to 254 values based on the lookup_value.
+ *
+ * Excel Function:
+ * =CHOOSE(index_num, value1, [value2], ...)
+ *
+ * @param index_num Specifies which value argument is selected.
+ * Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number
+ * between 1 and 254.
+ * @param value1... Value1 is required, subsequent values are optional.
+ * Between 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on
+ * index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or
+ * text.
+ * @return mixed The selected value
+ */
+ public static function CHOOSE()
+ {
+ $chooseArgs = func_get_args();
+ $chosenEntry = PHPExcel_Calculation_Functions::flattenArray(array_shift($chooseArgs));
+ $entryCount = count($chooseArgs) - 1;
+
+ if (is_array($chosenEntry)) {
+ $chosenEntry = array_shift($chosenEntry);
+ }
+ if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) {
+ --$chosenEntry;
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $chosenEntry = floor($chosenEntry);
+ if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (is_array($chooseArgs[$chosenEntry])) {
+ return PHPExcel_Calculation_Functions::flattenArray($chooseArgs[$chosenEntry]);
+ } else {
+ return $chooseArgs[$chosenEntry];
+ }
+ }
+
+
+ /**
+ * MATCH
+ *
+ * The MATCH function searches for a specified item in a range of cells
+ *
+ * Excel Function:
+ * =MATCH(lookup_value, lookup_array, [match_type])
+ *
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
+ * @return integer The relative position of the found item
+ */
+ public static function MATCH($lookup_value, $lookup_array, $match_type = 1)
+ {
+ $lookup_array = PHPExcel_Calculation_Functions::flattenArray($lookup_array);
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+ $match_type = (is_null($match_type)) ? 1 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($match_type);
+ // MATCH is not case sensitive
+ $lookup_value = strtolower($lookup_value);
+
+ // lookup_value type has to be number, text, or logical values
+ if ((!is_numeric($lookup_value)) && (!is_string($lookup_value)) && (!is_bool($lookup_value))) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // match_type is 0, 1 or -1
+ if (($match_type !== 0) && ($match_type !== -1) && ($match_type !== 1)) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // lookup_array should not be empty
+ $lookupArraySize = count($lookup_array);
+ if ($lookupArraySize <= 0) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+ // lookup_array should contain only number, text, or logical values, or empty (null) cells
+ foreach ($lookup_array as $i => $lookupArrayValue) {
+ // check the type of the value
+ if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) &&
+ (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue))) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ // convert strings to lowercase for case-insensitive testing
+ if (is_string($lookupArrayValue)) {
+ $lookup_array[$i] = strtolower($lookupArrayValue);
+ }
+ if ((is_null($lookupArrayValue)) && (($match_type == 1) || ($match_type == -1))) {
+ $lookup_array = array_slice($lookup_array, 0, $i-1);
+ }
+ }
+
+ // if match_type is 1 or -1, the list has to be ordered
+ if ($match_type == 1) {
+ asort($lookup_array);
+ $keySet = array_keys($lookup_array);
+ } elseif ($match_type == -1) {
+ arsort($lookup_array);
+ $keySet = array_keys($lookup_array);
+ }
+
+ // **
+ // find the match
+ // **
+ foreach ($lookup_array as $i => $lookupArrayValue) {
+ if (($match_type == 0) && ($lookupArrayValue == $lookup_value)) {
+ // exact match
+ return ++$i;
+ } elseif (($match_type == -1) && ($lookupArrayValue <= $lookup_value)) {
+ $i = array_search($i, $keySet);
+ // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value
+ if ($i < 1) {
+ // 1st cell was already smaller than the lookup_value
+ break;
+ } else {
+ // the previous cell was the match
+ return $keySet[$i-1]+1;
+ }
+ } elseif (($match_type == 1) && ($lookupArrayValue >= $lookup_value)) {
+ $i = array_search($i, $keySet);
+ // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value
+ if ($i < 1) {
+ // 1st cell was already bigger than the lookup_value
+ break;
+ } else {
+ // the previous cell was the match
+ return $keySet[$i-1]+1;
+ }
+ }
+ }
+
+ // unsuccessful in finding a match, return #N/A error value
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+
+ /**
+ * INDEX
+ *
+ * Uses an index to choose a value from a reference or array
+ *
+ * Excel Function:
+ * =INDEX(range_array, row_num, [column_num])
+ *
+ * @param range_array A range of cells or an array constant
+ * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required.
+ * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required.
+ * @return mixed the value of a specified cell or array of cells
+ */
+ public static function INDEX($arrayValues, $rowNum = 0, $columnNum = 0)
+ {
+ if (($rowNum < 0) || ($columnNum < 0)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ if (!is_array($arrayValues)) {
+ return PHPExcel_Calculation_Functions::REF();
+ }
+
+ $rowKeys = array_keys($arrayValues);
+ $columnKeys = @array_keys($arrayValues[$rowKeys[0]]);
+
+ if ($columnNum > count($columnKeys)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($columnNum == 0) {
+ if ($rowNum == 0) {
+ return $arrayValues;
+ }
+ $rowNum = $rowKeys[--$rowNum];
+ $returnArray = array();
+ foreach ($arrayValues as $arrayColumn) {
+ if (is_array($arrayColumn)) {
+ if (isset($arrayColumn[$rowNum])) {
+ $returnArray[] = $arrayColumn[$rowNum];
+ } else {
+ return $arrayValues[$rowNum];
+ }
+ } else {
+ return $arrayValues[$rowNum];
+ }
+ }
+ return $returnArray;
+ }
+ $columnNum = $columnKeys[--$columnNum];
+ if ($rowNum > count($rowKeys)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($rowNum == 0) {
+ return $arrayValues[$columnNum];
+ }
+ $rowNum = $rowKeys[--$rowNum];
+
+ return $arrayValues[$rowNum][$columnNum];
+ }
+
+
+ /**
+ * TRANSPOSE
+ *
+ * @param array $matrixData A matrix of values
+ * @return array
+ *
+ * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix.
+ */
+ public static function TRANSPOSE($matrixData)
+ {
+ $returnMatrix = array();
+ if (!is_array($matrixData)) {
+ $matrixData = array(array($matrixData));
+ }
+
+ $column = 0;
+ foreach ($matrixData as $matrixRow) {
+ $row = 0;
+ foreach ($matrixRow as $matrixCell) {
+ $returnMatrix[$row][$column] = $matrixCell;
+ ++$row;
+ }
+ ++$column;
+ }
+ return $returnMatrix;
+ }
+
+
+ private static function vlookupSort($a, $b)
+ {
+ reset($a);
+ $firstColumn = key($a);
+ if (($aLower = strtolower($a[$firstColumn])) == ($bLower = strtolower($b[$firstColumn]))) {
+ return 0;
+ }
+ return ($aLower < $bLower) ? -1 : 1;
+ }
+
+
+ /**
+ * VLOOKUP
+ * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1.
+ * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
+ * @return mixed The value of the found cell
+ */
+ public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true)
+ {
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+ $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
+ $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
+
+ // index_number must be greater than or equal to 1
+ if ($index_number < 1) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ // index_number must be less than or equal to the number of columns in lookup_array
+ if ((!is_array($lookup_array)) || (empty($lookup_array))) {
+ return PHPExcel_Calculation_Functions::REF();
+ } else {
+ $f = array_keys($lookup_array);
+ $firstRow = array_pop($f);
+ if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) {
+ return PHPExcel_Calculation_Functions::REF();
+ } else {
+ $columnKeys = array_keys($lookup_array[$firstRow]);
+ $returnColumn = $columnKeys[--$index_number];
+ $firstColumn = array_shift($columnKeys);
+ }
+ }
+
+ if (!$not_exact_match) {
+ uasort($lookup_array, array('self', 'vlookupSort'));
+ }
+
+ $rowNumber = $rowValue = false;
+ foreach ($lookup_array as $rowKey => $rowData) {
+ if ((is_numeric($lookup_value) && is_numeric($rowData[$firstColumn]) && ($rowData[$firstColumn] > $lookup_value)) ||
+ (!is_numeric($lookup_value) && !is_numeric($rowData[$firstColumn]) && (strtolower($rowData[$firstColumn]) > strtolower($lookup_value)))) {
+ break;
+ }
+ $rowNumber = $rowKey;
+ $rowValue = $rowData[$firstColumn];
+ }
+
+ if ($rowNumber !== false) {
+ if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
+ // if an exact match is required, we have what we need to return an appropriate response
+ return PHPExcel_Calculation_Functions::NA();
+ } else {
+ // otherwise return the appropriate value
+ return $lookup_array[$rowNumber][$returnColumn];
+ }
+ }
+
+ return PHPExcel_Calculation_Functions::NA();
+ }
+
+
+ /**
+ * HLOOKUP
+ * The HLOOKUP function searches for value in the top-most row of lookup_array and returns the value in the same column based on the index_number.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_array The range of cells being searched
+ * @param index_number The row number in table_array from which the matching value must be returned. The first row is 1.
+ * @param not_exact_match Determines if you are looking for an exact match based on lookup_value.
+ * @return mixed The value of the found cell
+ */
+ public static function HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true)
+ {
$lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
$index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number);
$not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match);
@@ -782,10 +785,10 @@ class PHPExcel_Calculation_LookupRef {
$firstRowH = asort($lookup_array[$firstColumn]);
}
- $rowNumber = $rowValue = False;
- foreach($lookup_array[$firstColumn] as $rowKey => $rowData) {
- if ((is_numeric($lookup_value) && is_numeric($rowData) && ($rowData > $lookup_value)) ||
- (!is_numeric($lookup_value) && !is_numeric($rowData) && (strtolower($rowData) > strtolower($lookup_value)))) {
+ $rowNumber = $rowValue = false;
+ foreach ($lookup_array[$firstColumn] as $rowKey => $rowData) {
+ if ((is_numeric($lookup_value) && is_numeric($rowData) && ($rowData > $lookup_value)) ||
+ (!is_numeric($lookup_value) && !is_numeric($rowData) && (strtolower($rowData) > strtolower($lookup_value)))) {
break;
}
$rowNumber = $rowKey;
@@ -803,74 +806,74 @@ class PHPExcel_Calculation_LookupRef {
}
return PHPExcel_Calculation_Functions::NA();
- } // function HLOOKUP()
+ }
- /**
- * LOOKUP
- * The LOOKUP function searches for value either from a one-row or one-column range or from an array.
- * @param lookup_value The value that you want to match in lookup_array
- * @param lookup_vector The range of cells being searched
- * @param result_vector The column from which the matching value must be returned
- * @return mixed The value of the found cell
- */
- public static function LOOKUP($lookup_value, $lookup_vector, $result_vector=null) {
- $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
+ /**
+ * LOOKUP
+ * The LOOKUP function searches for value either from a one-row or one-column range or from an array.
+ * @param lookup_value The value that you want to match in lookup_array
+ * @param lookup_vector The range of cells being searched
+ * @param result_vector The column from which the matching value must be returned
+ * @return mixed The value of the found cell
+ */
+ public static function LOOKUP($lookup_value, $lookup_vector, $result_vector = null)
+ {
+ $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value);
- if (!is_array($lookup_vector)) {
- return PHPExcel_Calculation_Functions::NA();
- }
- $lookupRows = count($lookup_vector);
- $l = array_keys($lookup_vector);
- $l = array_shift($l);
- $lookupColumns = count($lookup_vector[$l]);
- if ((($lookupRows == 1) && ($lookupColumns > 1)) || (($lookupRows == 2) && ($lookupColumns != 2))) {
- $lookup_vector = self::TRANSPOSE($lookup_vector);
- $lookupRows = count($lookup_vector);
- $l = array_keys($lookup_vector);
- $lookupColumns = count($lookup_vector[array_shift($l)]);
- }
+ if (!is_array($lookup_vector)) {
+ return PHPExcel_Calculation_Functions::NA();
+ }
+ $lookupRows = count($lookup_vector);
+ $l = array_keys($lookup_vector);
+ $l = array_shift($l);
+ $lookupColumns = count($lookup_vector[$l]);
+ if ((($lookupRows == 1) && ($lookupColumns > 1)) || (($lookupRows == 2) && ($lookupColumns != 2))) {
+ $lookup_vector = self::TRANSPOSE($lookup_vector);
+ $lookupRows = count($lookup_vector);
+ $l = array_keys($lookup_vector);
+ $lookupColumns = count($lookup_vector[array_shift($l)]);
+ }
- if (is_null($result_vector)) {
- $result_vector = $lookup_vector;
- }
- $resultRows = count($result_vector);
- $l = array_keys($result_vector);
- $l = array_shift($l);
- $resultColumns = count($result_vector[$l]);
- if ((($resultRows == 1) && ($resultColumns > 1)) || (($resultRows == 2) && ($resultColumns != 2))) {
- $result_vector = self::TRANSPOSE($result_vector);
- $resultRows = count($result_vector);
- $r = array_keys($result_vector);
- $resultColumns = count($result_vector[array_shift($r)]);
- }
+ if (is_null($result_vector)) {
+ $result_vector = $lookup_vector;
+ }
+ $resultRows = count($result_vector);
+ $l = array_keys($result_vector);
+ $l = array_shift($l);
+ $resultColumns = count($result_vector[$l]);
+ if ((($resultRows == 1) && ($resultColumns > 1)) || (($resultRows == 2) && ($resultColumns != 2))) {
+ $result_vector = self::TRANSPOSE($result_vector);
+ $resultRows = count($result_vector);
+ $r = array_keys($result_vector);
+ $resultColumns = count($result_vector[array_shift($r)]);
+ }
- if ($lookupRows == 2) {
- $result_vector = array_pop($lookup_vector);
- $lookup_vector = array_shift($lookup_vector);
- }
- if ($lookupColumns != 2) {
- foreach($lookup_vector as &$value) {
- if (is_array($value)) {
- $k = array_keys($value);
- $key1 = $key2 = array_shift($k);
- $key2++;
- $dataValue1 = $value[$key1];
- } else {
- $key1 = 0;
- $key2 = 1;
- $dataValue1 = $value;
- }
- $dataValue2 = array_shift($result_vector);
- if (is_array($dataValue2)) {
- $dataValue2 = array_shift($dataValue2);
- }
- $value = array($key1 => $dataValue1, $key2 => $dataValue2);
- }
- unset($value);
- }
+ if ($lookupRows == 2) {
+ $result_vector = array_pop($lookup_vector);
+ $lookup_vector = array_shift($lookup_vector);
+ }
+ if ($lookupColumns != 2) {
+ foreach ($lookup_vector as &$value) {
+ if (is_array($value)) {
+ $k = array_keys($value);
+ $key1 = $key2 = array_shift($k);
+ $key2++;
+ $dataValue1 = $value[$key1];
+ } else {
+ $key1 = 0;
+ $key2 = 1;
+ $dataValue1 = $value;
+ }
+ $dataValue2 = array_shift($result_vector);
+ if (is_array($dataValue2)) {
+ $dataValue2 = array_shift($dataValue2);
+ }
+ $value = array($key1 => $dataValue1, $key2 => $dataValue2);
+ }
+ unset($value);
+ }
- return self::VLOOKUP($lookup_value,$lookup_vector,2);
- } // function LOOKUP()
-
-} // class PHPExcel_Calculation_LookupRef
+ return self::VLOOKUP($lookup_value, $lookup_vector, 2);
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/MathTrig.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/MathTrig.php
index 689d59ff..894ba9cf 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/MathTrig.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/MathTrig.php
@@ -1,8 +1,18 @@
1; --$i) {
+ if (($value % $i) == 0) {
+ $factorArray = array_merge($factorArray, self::factors($value / $i));
+ $factorArray = array_merge($factorArray, self::factors($i));
+ if ($i <= sqrt($value)) {
+ break;
+ }
+ }
+ }
+ if (!empty($factorArray)) {
+ rsort($factorArray);
+ return $factorArray;
+ } else {
+ return array((integer) $value);
+ }
+ }
-/** PHPExcel root directory */
-if (!defined('PHPEXCEL_ROOT')) {
- /**
- * @ignore
- */
- define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
- require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
-}
+ private static function romanCut($num, $n)
+ {
+ return ($num - ($num % $n ) ) / $n;
+ }
-/**
- * PHPExcel_Calculation_MathTrig
- *
- * @category PHPExcel
- * @package PHPExcel_Calculation
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- */
-class PHPExcel_Calculation_MathTrig {
+ /**
+ * ATAN2
+ *
+ * This function calculates the arc tangent of the two variables x and y. It is similar to
+ * calculating the arc tangent of y ÷ x, except that the signs of both arguments are used
+ * to determine the quadrant of the result.
+ * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a
+ * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between
+ * -pi and pi, excluding -pi.
+ *
+ * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard
+ * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function.
+ *
+ * Excel Function:
+ * ATAN2(xCoordinate,yCoordinate)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $xCoordinate The x-coordinate of the point.
+ * @param float $yCoordinate The y-coordinate of the point.
+ * @return float The inverse tangent of the specified x- and y-coordinates.
+ */
+ public static function ATAN2($xCoordinate = null, $yCoordinate = null)
+ {
+ $xCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($xCoordinate);
+ $yCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($yCoordinate);
- //
- // Private method to return an array of the factors of the input value
- //
- private static function _factors($value) {
- $startVal = floor(sqrt($value));
+ $xCoordinate = ($xCoordinate !== null) ? $xCoordinate : 0.0;
+ $yCoordinate = ($yCoordinate !== null) ? $yCoordinate : 0.0;
- $factorArray = array();
- for ($i = $startVal; $i > 1; --$i) {
- if (($value % $i) == 0) {
- $factorArray = array_merge($factorArray,self::_factors($value / $i));
- $factorArray = array_merge($factorArray,self::_factors($i));
- if ($i <= sqrt($value)) {
- break;
- }
- }
- }
- if (!empty($factorArray)) {
- rsort($factorArray);
- return $factorArray;
- } else {
- return array((integer) $value);
- }
- } // function _factors()
+ if (((is_numeric($xCoordinate)) || (is_bool($xCoordinate))) &&
+ ((is_numeric($yCoordinate))) || (is_bool($yCoordinate))) {
+ $xCoordinate = (float) $xCoordinate;
+ $yCoordinate = (float) $yCoordinate;
+
+ if (($xCoordinate == 0) && ($yCoordinate == 0)) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ return atan2($yCoordinate, $xCoordinate);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- private static function _romanCut($num, $n) {
- return ($num - ($num % $n ) ) / $n;
- } // function _romanCut()
+ /**
+ * CEILING
+ *
+ * Returns number rounded up, away from zero, to the nearest multiple of significance.
+ * For example, if you want to avoid using pennies in your prices and your product is
+ * priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the
+ * nearest nickel.
+ *
+ * Excel Function:
+ * CEILING(number[,significance])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number The number you want to round.
+ * @param float $significance The multiple to which you want to round.
+ * @return float Rounded Number
+ */
+ public static function CEILING($number, $significance = null)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
-
- /**
- * ATAN2
- *
- * This function calculates the arc tangent of the two variables x and y. It is similar to
- * calculating the arc tangent of y ÷ x, except that the signs of both arguments are used
- * to determine the quadrant of the result.
- * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a
- * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between
- * -pi and pi, excluding -pi.
- *
- * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard
- * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function.
- *
- * Excel Function:
- * ATAN2(xCoordinate,yCoordinate)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $xCoordinate The x-coordinate of the point.
- * @param float $yCoordinate The y-coordinate of the point.
- * @return float The inverse tangent of the specified x- and y-coordinates.
- */
- public static function ATAN2($xCoordinate = NULL, $yCoordinate = NULL) {
- $xCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($xCoordinate);
- $yCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($yCoordinate);
-
- $xCoordinate = ($xCoordinate !== NULL) ? $xCoordinate : 0.0;
- $yCoordinate = ($yCoordinate !== NULL) ? $yCoordinate : 0.0;
-
- if (((is_numeric($xCoordinate)) || (is_bool($xCoordinate))) &&
- ((is_numeric($yCoordinate))) || (is_bool($yCoordinate))) {
- $xCoordinate = (float) $xCoordinate;
- $yCoordinate = (float) $yCoordinate;
-
- if (($xCoordinate == 0) && ($yCoordinate == 0)) {
- return PHPExcel_Calculation_Functions::DIV0();
- }
-
- return atan2($yCoordinate, $xCoordinate);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ATAN2()
-
-
- /**
- * CEILING
- *
- * Returns number rounded up, away from zero, to the nearest multiple of significance.
- * For example, if you want to avoid using pennies in your prices and your product is
- * priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the
- * nearest nickel.
- *
- * Excel Function:
- * CEILING(number[,significance])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $number The number you want to round.
- * @param float $significance The multiple to which you want to round.
- * @return float Rounded Number
- */
- public static function CEILING($number, $significance = NULL) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
-
- if ((is_null($significance)) &&
- (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
- $significance = $number/abs($number);
- }
+ if ((is_null($significance)) &&
+ (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number / abs($number);
+ }
if ((is_numeric($number)) && (is_numeric($significance))) {
if (($number == 0.0 ) || ($significance == 0.0)) {
- return 0.0;
- } elseif (self::SIGN($number) == self::SIGN($significance)) {
- return ceil($number / $significance) * $significance;
- } else {
- return PHPExcel_Calculation_Functions::NaN();
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function CEILING()
+ return 0.0;
+ } elseif (self::SIGN($number) == self::SIGN($significance)) {
+ return ceil($number / $significance) * $significance;
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * COMBIN
- *
- * Returns the number of combinations for a given number of items. Use COMBIN to
- * determine the total possible number of groups for a given number of items.
- *
- * Excel Function:
- * COMBIN(numObjs,numInSet)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param int $numObjs Number of different objects
- * @param int $numInSet Number of objects in each combination
- * @return int Number of combinations
- */
- public static function COMBIN($numObjs, $numInSet) {
- $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs);
- $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet);
+ /**
+ * COMBIN
+ *
+ * Returns the number of combinations for a given number of items. Use COMBIN to
+ * determine the total possible number of groups for a given number of items.
+ *
+ * Excel Function:
+ * COMBIN(numObjs,numInSet)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param int $numObjs Number of different objects
+ * @param int $numInSet Number of objects in each combination
+ * @return int Number of combinations
+ */
+ public static function COMBIN($numObjs, $numInSet)
+ {
+ $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs);
+ $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet);
- if ((is_numeric($numObjs)) && (is_numeric($numInSet))) {
- if ($numObjs < $numInSet) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif ($numInSet < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function COMBIN()
+ if ((is_numeric($numObjs)) && (is_numeric($numInSet))) {
+ if ($numObjs < $numInSet) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif ($numInSet < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * EVEN
- *
- * Returns number rounded up to the nearest even integer.
- * You can use this function for processing items that come in twos. For example,
- * a packing crate accepts rows of one or two items. The crate is full when
- * the number of items, rounded up to the nearest two, matches the crate's
- * capacity.
- *
- * Excel Function:
- * EVEN(number)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $number Number to round
- * @return int Rounded Number
- */
- public static function EVEN($number) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ /**
+ * EVEN
+ *
+ * Returns number rounded up to the nearest even integer.
+ * You can use this function for processing items that come in twos. For example,
+ * a packing crate accepts rows of one or two items. The crate is full when
+ * the number of items, rounded up to the nearest two, matches the crate's
+ * capacity.
+ *
+ * Excel Function:
+ * EVEN(number)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function EVEN($number)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- if (is_null($number)) {
- return 0;
- } elseif (is_bool($number)) {
- $number = (int) $number;
- }
+ if (is_null($number)) {
+ return 0;
+ } elseif (is_bool($number)) {
+ $number = (int) $number;
+ }
- if (is_numeric($number)) {
- $significance = 2 * self::SIGN($number);
- return (int) self::CEILING($number,$significance);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function EVEN()
+ if (is_numeric($number)) {
+ $significance = 2 * self::SIGN($number);
+ return (int) self::CEILING($number, $significance);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * FACT
- *
- * Returns the factorial of a number.
- * The factorial of a number is equal to 1*2*3*...* number.
- *
- * Excel Function:
- * FACT(factVal)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $factVal Factorial Value
- * @return int Factorial
- */
- public static function FACT($factVal) {
- $factVal = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
+ /**
+ * FACT
+ *
+ * Returns the factorial of a number.
+ * The factorial of a number is equal to 1*2*3*...* number.
+ *
+ * Excel Function:
+ * FACT(factVal)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $factVal Factorial Value
+ * @return int Factorial
+ */
+ public static function FACT($factVal)
+ {
+ $factVal = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
- if (is_numeric($factVal)) {
- if ($factVal < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $factLoop = floor($factVal);
- if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
- if ($factVal > $factLoop) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- }
+ if (is_numeric($factVal)) {
+ if ($factVal < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $factLoop = floor($factVal);
+ if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) {
+ if ($factVal > $factLoop) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
- $factorial = 1;
- while ($factLoop > 1) {
- $factorial *= $factLoop--;
- }
- return $factorial ;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function FACT()
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ }
+ return $factorial ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * FACTDOUBLE
- *
- * Returns the double factorial of a number.
- *
- * Excel Function:
- * FACTDOUBLE(factVal)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $factVal Factorial Value
- * @return int Double Factorial
- */
- public static function FACTDOUBLE($factVal) {
- $factLoop = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
+ /**
+ * FACTDOUBLE
+ *
+ * Returns the double factorial of a number.
+ *
+ * Excel Function:
+ * FACTDOUBLE(factVal)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $factVal Factorial Value
+ * @return int Double Factorial
+ */
+ public static function FACTDOUBLE($factVal)
+ {
+ $factLoop = PHPExcel_Calculation_Functions::flattenSingleValue($factVal);
- if (is_numeric($factLoop)) {
- $factLoop = floor($factLoop);
- if ($factVal < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $factorial = 1;
- while ($factLoop > 1) {
- $factorial *= $factLoop--;
- --$factLoop;
- }
- return $factorial ;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function FACTDOUBLE()
+ if (is_numeric($factLoop)) {
+ $factLoop = floor($factLoop);
+ if ($factVal < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $factorial = 1;
+ while ($factLoop > 1) {
+ $factorial *= $factLoop--;
+ --$factLoop;
+ }
+ return $factorial ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * FLOOR
- *
- * Rounds number down, toward zero, to the nearest multiple of significance.
- *
- * Excel Function:
- * FLOOR(number[,significance])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $number Number to round
- * @param float $significance Significance
- * @return float Rounded Number
- */
- public static function FLOOR($number, $significance = NULL) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
+ /**
+ * FLOOR
+ *
+ * Rounds number down, toward zero, to the nearest multiple of significance.
+ *
+ * Excel Function:
+ * FLOOR(number[,significance])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to round
+ * @param float $significance Significance
+ * @return float Rounded Number
+ */
+ public static function FLOOR($number, $significance = null)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance);
- if ((is_null($significance)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
- $significance = $number/abs($number);
- }
+ if ((is_null($significance)) &&
+ (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) {
+ $significance = $number/abs($number);
+ }
- if ((is_numeric($number)) && (is_numeric($significance))) {
+ if ((is_numeric($number)) && (is_numeric($significance))) {
if ($significance == 0.0) {
return PHPExcel_Calculation_Functions::DIV0();
} elseif ($number == 0.0) {
- return 0.0;
- } elseif (self::SIGN($number) == self::SIGN($significance)) {
- return floor($number / $significance) * $significance;
- } else {
- return PHPExcel_Calculation_Functions::NaN();
- }
- } else
+ return 0.0;
+ } elseif (self::SIGN($number) == self::SIGN($significance)) {
+ return floor($number / $significance) * $significance;
+ } else {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function FLOOR()
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * GCD
- *
- * Returns the greatest common divisor of a series of numbers.
- * The greatest common divisor is the largest integer that divides both
- * number1 and number2 without a remainder.
- *
- * Excel Function:
- * GCD(number1[,number2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return integer Greatest Common Divisor
- */
- public static function GCD() {
- $returnValue = 1;
- $allValuesFactors = array();
- // Loop through arguments
- foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
- if (!is_numeric($value)) {
- return PHPExcel_Calculation_Functions::VALUE();
- } elseif ($value == 0) {
- continue;
- } elseif($value < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $myFactors = self::_factors($value);
- $myCountedFactors = array_count_values($myFactors);
- $allValuesFactors[] = $myCountedFactors;
- }
- $allValuesCount = count($allValuesFactors);
- if ($allValuesCount == 0) {
- return 0;
- }
+ /**
+ * GCD
+ *
+ * Returns the greatest common divisor of a series of numbers.
+ * The greatest common divisor is the largest integer that divides both
+ * number1 and number2 without a remainder.
+ *
+ * Excel Function:
+ * GCD(number1[,number2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return integer Greatest Common Divisor
+ */
+ public static function GCD()
+ {
+ $returnValue = 1;
+ $allValuesFactors = array();
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ } elseif ($value == 0) {
+ continue;
+ } elseif ($value < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $myFactors = self::factors($value);
+ $myCountedFactors = array_count_values($myFactors);
+ $allValuesFactors[] = $myCountedFactors;
+ }
+ $allValuesCount = count($allValuesFactors);
+ if ($allValuesCount == 0) {
+ return 0;
+ }
- $mergedArray = $allValuesFactors[0];
- for ($i=1;$i < $allValuesCount; ++$i) {
- $mergedArray = array_intersect_key($mergedArray,$allValuesFactors[$i]);
- }
- $mergedArrayValues = count($mergedArray);
- if ($mergedArrayValues == 0) {
- return $returnValue;
- } elseif ($mergedArrayValues > 1) {
- foreach($mergedArray as $mergedKey => $mergedValue) {
- foreach($allValuesFactors as $highestPowerTest) {
- foreach($highestPowerTest as $testKey => $testValue) {
- if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
- $mergedArray[$mergedKey] = $testValue;
- $mergedValue = $testValue;
- }
- }
- }
- }
+ $mergedArray = $allValuesFactors[0];
+ for ($i=1; $i < $allValuesCount; ++$i) {
+ $mergedArray = array_intersect_key($mergedArray, $allValuesFactors[$i]);
+ }
+ $mergedArrayValues = count($mergedArray);
+ if ($mergedArrayValues == 0) {
+ return $returnValue;
+ } elseif ($mergedArrayValues > 1) {
+ foreach ($mergedArray as $mergedKey => $mergedValue) {
+ foreach ($allValuesFactors as $highestPowerTest) {
+ foreach ($highestPowerTest as $testKey => $testValue) {
+ if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
+ $mergedArray[$mergedKey] = $testValue;
+ $mergedValue = $testValue;
+ }
+ }
+ }
+ }
- $returnValue = 1;
- foreach($mergedArray as $key => $value) {
- $returnValue *= pow($key,$value);
- }
- return $returnValue;
- } else {
- $keys = array_keys($mergedArray);
- $key = $keys[0];
- $value = $mergedArray[$key];
- foreach($allValuesFactors as $testValue) {
- foreach($testValue as $mergedKey => $mergedValue) {
- if (($mergedKey == $key) && ($mergedValue < $value)) {
- $value = $mergedValue;
- }
- }
- }
- return pow($key,$value);
- }
- } // function GCD()
+ $returnValue = 1;
+ foreach ($mergedArray as $key => $value) {
+ $returnValue *= pow($key, $value);
+ }
+ return $returnValue;
+ } else {
+ $keys = array_keys($mergedArray);
+ $key = $keys[0];
+ $value = $mergedArray[$key];
+ foreach ($allValuesFactors as $testValue) {
+ foreach ($testValue as $mergedKey => $mergedValue) {
+ if (($mergedKey == $key) && ($mergedValue < $value)) {
+ $value = $mergedValue;
+ }
+ }
+ }
+ return pow($key, $value);
+ }
+ }
- /**
- * INT
- *
- * Casts a floating point value to an integer
- *
- * Excel Function:
- * INT(number)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $number Number to cast to an integer
- * @return integer Integer value
- */
- public static function INT($number) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ /**
+ * INT
+ *
+ * Casts a floating point value to an integer
+ *
+ * Excel Function:
+ * INT(number)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number Number to cast to an integer
+ * @return integer Integer value
+ */
+ public static function INT($number)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- if (is_null($number)) {
- return 0;
- } elseif (is_bool($number)) {
- return (int) $number;
- }
- if (is_numeric($number)) {
- return (int) floor($number);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function INT()
+ if (is_null($number)) {
+ return 0;
+ } elseif (is_bool($number)) {
+ return (int) $number;
+ }
+ if (is_numeric($number)) {
+ return (int) floor($number);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- /**
- * LCM
- *
- * Returns the lowest common multiplier of a series of numbers
- * The least common multiple is the smallest positive integer that is a multiple
- * of all integer arguments number1, number2, and so on. Use LCM to add fractions
- * with different denominators.
- *
- * Excel Function:
- * LCM(number1[,number2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return int Lowest Common Multiplier
- */
- public static function LCM() {
- $returnValue = 1;
- $allPoweredFactors = array();
- // Loop through arguments
- foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
- if (!is_numeric($value)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- if ($value == 0) {
- return 0;
- } elseif ($value < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $myFactors = self::_factors(floor($value));
- $myCountedFactors = array_count_values($myFactors);
- $myPoweredFactors = array();
- foreach($myCountedFactors as $myCountedFactor => $myCountedPower) {
- $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor,$myCountedPower);
- }
- foreach($myPoweredFactors as $myPoweredValue => $myPoweredFactor) {
- if (array_key_exists($myPoweredValue,$allPoweredFactors)) {
- if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) {
- $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
- }
- } else {
- $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
- }
- }
- }
- foreach($allPoweredFactors as $allPoweredFactor) {
- $returnValue *= (integer) $allPoweredFactor;
- }
- return $returnValue;
- } // function LCM()
+ /**
+ * LCM
+ *
+ * Returns the lowest common multiplier of a series of numbers
+ * The least common multiple is the smallest positive integer that is a multiple
+ * of all integer arguments number1, number2, and so on. Use LCM to add fractions
+ * with different denominators.
+ *
+ * Excel Function:
+ * LCM(number1[,number2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return int Lowest Common Multiplier
+ */
+ public static function LCM()
+ {
+ $returnValue = 1;
+ $allPoweredFactors = array();
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
+ if (!is_numeric($value)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if ($value == 0) {
+ return 0;
+ } elseif ($value < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $myFactors = self::factors(floor($value));
+ $myCountedFactors = array_count_values($myFactors);
+ $myPoweredFactors = array();
+ foreach ($myCountedFactors as $myCountedFactor => $myCountedPower) {
+ $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor, $myCountedPower);
+ }
+ foreach ($myPoweredFactors as $myPoweredValue => $myPoweredFactor) {
+ if (array_key_exists($myPoweredValue, $allPoweredFactors)) {
+ if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ } else {
+ $allPoweredFactors[$myPoweredValue] = $myPoweredFactor;
+ }
+ }
+ }
+ foreach ($allPoweredFactors as $allPoweredFactor) {
+ $returnValue *= (integer) $allPoweredFactor;
+ }
+ return $returnValue;
+ }
- /**
- * LOG_BASE
- *
- * Returns the logarithm of a number to a specified base. The default base is 10.
- *
- * Excel Function:
- * LOG(number[,base])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param float $number The positive real number for which you want the logarithm
- * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10.
- * @return float
- */
- public static function LOG_BASE($number = NULL, $base = 10) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $base = (is_null($base)) ? 10 : (float) PHPExcel_Calculation_Functions::flattenSingleValue($base);
+ /**
+ * LOG_BASE
+ *
+ * Returns the logarithm of a number to a specified base. The default base is 10.
+ *
+ * Excel Function:
+ * LOG(number[,base])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param float $number The positive real number for which you want the logarithm
+ * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10.
+ * @return float
+ */
+ public static function LOG_BASE($number = null, $base = 10)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $base = (is_null($base)) ? 10 : (float) PHPExcel_Calculation_Functions::flattenSingleValue($base);
- if ((!is_numeric($base)) || (!is_numeric($number)))
- return PHPExcel_Calculation_Functions::VALUE();
- if (($base <= 0) || ($number <= 0))
- return PHPExcel_Calculation_Functions::NaN();
- return log($number, $base);
- } // function LOG_BASE()
+ if ((!is_numeric($base)) || (!is_numeric($number))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ if (($base <= 0) || ($number <= 0)) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return log($number, $base);
+ }
- /**
- * MDETERM
- *
- * Returns the matrix determinant of an array.
- *
- * Excel Function:
- * MDETERM(array)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param array $matrixValues A matrix of values
- * @return float
- */
- public static function MDETERM($matrixValues) {
- $matrixData = array();
- if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+ /**
+ * MDETERM
+ *
+ * Returns the matrix determinant of an array.
+ *
+ * Excel Function:
+ * MDETERM(array)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param array $matrixValues A matrix of values
+ * @return float
+ */
+ public static function MDETERM($matrixValues)
+ {
+ $matrixData = array();
+ if (!is_array($matrixValues)) {
+ $matrixValues = array(array($matrixValues));
+ }
- $row = $maxColumn = 0;
- foreach($matrixValues as $matrixRow) {
- if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
- $column = 0;
- foreach($matrixRow as $matrixCell) {
- if ((is_string($matrixCell)) || ($matrixCell === null)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $matrixData[$column][$row] = $matrixCell;
- ++$column;
- }
- if ($column > $maxColumn) { $maxColumn = $column; }
- ++$row;
- }
- if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); }
+ $row = $maxColumn = 0;
+ foreach ($matrixValues as $matrixRow) {
+ if (!is_array($matrixRow)) {
+ $matrixRow = array($matrixRow);
+ }
+ $column = 0;
+ foreach ($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) {
+ $maxColumn = $column;
+ }
+ ++$row;
+ }
+ if ($row != $maxColumn) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- try {
- $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
- return $matrix->det();
- } catch (PHPExcel_Exception $ex) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- } // function MDETERM()
+ try {
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
+ return $matrix->det();
+ } catch (PHPExcel_Exception $ex) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
- /**
- * MINVERSE
- *
- * Returns the inverse matrix for the matrix stored in an array.
- *
- * Excel Function:
- * MINVERSE(array)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param array $matrixValues A matrix of values
- * @return array
- */
- public static function MINVERSE($matrixValues) {
- $matrixData = array();
- if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); }
+ /**
+ * MINVERSE
+ *
+ * Returns the inverse matrix for the matrix stored in an array.
+ *
+ * Excel Function:
+ * MINVERSE(array)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param array $matrixValues A matrix of values
+ * @return array
+ */
+ public static function MINVERSE($matrixValues)
+ {
+ $matrixData = array();
+ if (!is_array($matrixValues)) {
+ $matrixValues = array(array($matrixValues));
+ }
- $row = $maxColumn = 0;
- foreach($matrixValues as $matrixRow) {
- if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
- $column = 0;
- foreach($matrixRow as $matrixCell) {
- if ((is_string($matrixCell)) || ($matrixCell === null)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $matrixData[$column][$row] = $matrixCell;
- ++$column;
- }
- if ($column > $maxColumn) { $maxColumn = $column; }
- ++$row;
- }
- if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); }
+ $row = $maxColumn = 0;
+ foreach ($matrixValues as $matrixRow) {
+ if (!is_array($matrixRow)) {
+ $matrixRow = array($matrixRow);
+ }
+ $column = 0;
+ foreach ($matrixRow as $matrixCell) {
+ if ((is_string($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixData[$column][$row] = $matrixCell;
+ ++$column;
+ }
+ if ($column > $maxColumn) {
+ $maxColumn = $column;
+ }
+ ++$row;
+ }
+ if ($row != $maxColumn) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- try {
- $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
- return $matrix->inverse()->getArray();
- } catch (PHPExcel_Exception $ex) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- } // function MINVERSE()
+ try {
+ $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData);
+ return $matrix->inverse()->getArray();
+ } catch (PHPExcel_Exception $ex) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
- /**
- * MMULT
- *
- * @param array $matrixData1 A matrix of values
- * @param array $matrixData2 A matrix of values
- * @return array
- */
- public static function MMULT($matrixData1,$matrixData2) {
- $matrixAData = $matrixBData = array();
- if (!is_array($matrixData1)) { $matrixData1 = array(array($matrixData1)); }
- if (!is_array($matrixData2)) { $matrixData2 = array(array($matrixData2)); }
+ /**
+ * MMULT
+ *
+ * @param array $matrixData1 A matrix of values
+ * @param array $matrixData2 A matrix of values
+ * @return array
+ */
+ public static function MMULT($matrixData1, $matrixData2)
+ {
+ $matrixAData = $matrixBData = array();
+ if (!is_array($matrixData1)) {
+ $matrixData1 = array(array($matrixData1));
+ }
+ if (!is_array($matrixData2)) {
+ $matrixData2 = array(array($matrixData2));
+ }
- try {
+ try {
$rowA = 0;
- foreach($matrixData1 as $matrixRow) {
- if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
+ foreach ($matrixData1 as $matrixRow) {
+ if (!is_array($matrixRow)) {
+ $matrixRow = array($matrixRow);
+ }
$columnA = 0;
- foreach($matrixRow as $matrixCell) {
+ foreach ($matrixRow as $matrixCell) {
if ((!is_numeric($matrixCell)) || ($matrixCell === null)) {
return PHPExcel_Calculation_Functions::VALUE();
}
@@ -623,754 +655,805 @@ class PHPExcel_Calculation_MathTrig {
}
++$rowA;
}
- $matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData);
- $rowB = 0;
- foreach($matrixData2 as $matrixRow) {
- if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
- $columnB = 0;
- foreach($matrixRow as $matrixCell) {
- if ((!is_numeric($matrixCell)) || ($matrixCell === null)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $matrixBData[$rowB][$columnB] = $matrixCell;
- ++$columnB;
- }
- ++$rowB;
- }
- $matrixB = new PHPExcel_Shared_JAMA_Matrix($matrixBData);
+ $matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData);
+ $rowB = 0;
+ foreach ($matrixData2 as $matrixRow) {
+ if (!is_array($matrixRow)) {
+ $matrixRow = array($matrixRow);
+ }
+ $columnB = 0;
+ foreach ($matrixRow as $matrixCell) {
+ if ((!is_numeric($matrixCell)) || ($matrixCell === null)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $matrixBData[$rowB][$columnB] = $matrixCell;
+ ++$columnB;
+ }
+ ++$rowB;
+ }
+ $matrixB = new PHPExcel_Shared_JAMA_Matrix($matrixBData);
- if ($columnA != $rowB) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
+ if ($columnA != $rowB) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
- return $matrixA->times($matrixB)->getArray();
- } catch (PHPExcel_Exception $ex) {
+ return $matrixA->times($matrixB)->getArray();
+ } catch (PHPExcel_Exception $ex) {
var_dump($ex->getMessage());
- return PHPExcel_Calculation_Functions::VALUE();
- }
- } // function MMULT()
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
- /**
- * MOD
+ /**
+ * MOD
+ *
+ * @param int $a Dividend
+ * @param int $b Divisor
+ * @return int Remainder
+ */
+ public static function MOD($a = 1, $b = 1)
+ {
+ $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
+ $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
+
+ if ($b == 0.0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ } elseif (($a < 0.0) && ($b > 0.0)) {
+ return $b - fmod(abs($a), $b);
+ } elseif (($a > 0.0) && ($b < 0.0)) {
+ return $b + fmod($a, abs($b));
+ }
+
+ return fmod($a, $b);
+ }
+
+
+ /**
+ * MROUND
+ *
+ * Rounds a number to the nearest multiple of a specified value
+ *
+ * @param float $number Number to round
+ * @param int $multiple Multiple to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function MROUND($number, $multiple)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $multiple = PHPExcel_Calculation_Functions::flattenSingleValue($multiple);
+
+ if ((is_numeric($number)) && (is_numeric($multiple))) {
+ if ($multiple == 0) {
+ return 0;
+ }
+ if ((self::SIGN($number)) == (self::SIGN($multiple))) {
+ $multiplier = 1 / $multiple;
+ return round($number * $multiplier) / $multiplier;
+ }
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * MULTINOMIAL
+ *
+ * Returns the ratio of the factorial of a sum of values to the product of factorials.
+ *
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function MULTINOMIAL()
+ {
+ $summer = 0;
+ $divisor = 1;
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if (is_numeric($arg)) {
+ if ($arg < 1) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ $summer += floor($arg);
+ $divisor *= self::FACT($arg);
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+
+ // Return
+ if ($summer > 0) {
+ $summer = self::FACT($summer);
+ return $summer / $divisor;
+ }
+ return 0;
+ }
+
+
+ /**
+ * ODD
+ *
+ * Returns number rounded up to the nearest odd integer.
+ *
+ * @param float $number Number to round
+ * @return int Rounded Number
+ */
+ public static function ODD($number)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_null($number)) {
+ return 1;
+ } elseif (is_bool($number)) {
+ return 1;
+ } elseif (is_numeric($number)) {
+ $significance = self::SIGN($number);
+ if ($significance == 0) {
+ return 1;
+ }
+
+ $result = self::CEILING($number, $significance);
+ if ($result == self::EVEN($result)) {
+ $result += $significance;
+ }
+
+ return (int) $result;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * POWER
+ *
+ * Computes x raised to the power y.
+ *
+ * @param float $x
+ * @param float $y
+ * @return float
+ */
+ public static function POWER($x = 0, $y = 2)
+ {
+ $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
+ $y = PHPExcel_Calculation_Functions::flattenSingleValue($y);
+
+ // Validate parameters
+ if ($x == 0.0 && $y == 0.0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ } elseif ($x == 0.0 && $y < 0.0) {
+ return PHPExcel_Calculation_Functions::DIV0();
+ }
+
+ // Return
+ $result = pow($x, $y);
+ return (!is_nan($result) && !is_infinite($result)) ? $result : PHPExcel_Calculation_Functions::NaN();
+ }
+
+
+ /**
+ * PRODUCT
+ *
+ * PRODUCT returns the product of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * PRODUCT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function PRODUCT()
+ {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = $arg;
+ } else {
+ $returnValue *= $arg;
+ }
+ }
+ }
+
+ // Return
+ if (is_null($returnValue)) {
+ return 0;
+ }
+ return $returnValue;
+ }
+
+
+ /**
+ * QUOTIENT
+ *
+ * QUOTIENT function returns the integer portion of a division. Numerator is the divided number
+ * and denominator is the divisor.
+ *
+ * Excel Function:
+ * QUOTIENT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function QUOTIENT()
+ {
+ // Return value
+ $returnValue = null;
+
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ if (is_null($returnValue)) {
+ $returnValue = ($arg == 0) ? 0 : $arg;
+ } else {
+ if (($returnValue == 0) || ($arg == 0)) {
+ $returnValue = 0;
+ } else {
+ $returnValue /= $arg;
+ }
+ }
+ }
+ }
+
+ // Return
+ return intval($returnValue);
+ }
+
+
+ /**
+ * RAND
+ *
+ * @param int $min Minimal value
+ * @param int $max Maximal value
+ * @return int Random number
+ */
+ public static function RAND($min = 0, $max = 0)
+ {
+ $min = PHPExcel_Calculation_Functions::flattenSingleValue($min);
+ $max = PHPExcel_Calculation_Functions::flattenSingleValue($max);
+
+ if ($min == 0 && $max == 0) {
+ return (mt_rand(0, 10000000)) / 10000000;
+ } else {
+ return mt_rand($min, $max);
+ }
+ }
+
+
+ public static function ROMAN($aValue, $style = 0)
+ {
+ $aValue = PHPExcel_Calculation_Functions::flattenSingleValue($aValue);
+ $style = (is_null($style)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($style);
+ if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $aValue = (integer) $aValue;
+ if ($aValue == 0) {
+ return '';
+ }
+
+ $mill = array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM');
+ $cent = array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM');
+ $tens = array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC');
+ $ones = array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX');
+
+ $roman = '';
+ while ($aValue > 5999) {
+ $roman .= 'M';
+ $aValue -= 1000;
+ }
+ $m = self::romanCut($aValue, 1000);
+ $aValue %= 1000;
+ $c = self::romanCut($aValue, 100);
+ $aValue %= 100;
+ $t = self::romanCut($aValue, 10);
+ $aValue %= 10;
+
+ return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue];
+ }
+
+
+ /**
+ * ROUNDUP
+ *
+ * Rounds a number up to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDUP($number, $digits)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10, (int) $digits);
+ if ($number < 0.0) {
+ return floor($number * $significance) / $significance;
+ } else {
+ return ceil($number * $significance) / $significance;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * ROUNDDOWN
+ *
+ * Rounds a number down to a specified number of decimal places
+ *
+ * @param float $number Number to round
+ * @param int $digits Number of digits to which you want to round $number
+ * @return float Rounded Number
+ */
+ public static function ROUNDDOWN($number, $digits)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ if ((is_numeric($number)) && (is_numeric($digits))) {
+ $significance = pow(10, (int) $digits);
+ if ($number < 0.0) {
+ return ceil($number * $significance) / $significance;
+ } else {
+ return floor($number * $significance) / $significance;
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SERIESSUM
+ *
+ * Returns the sum of a power series
+ *
+ * @param float $x Input value to the power series
+ * @param float $n Initial power to which you want to raise $x
+ * @param float $m Step by which to increase $n for each term in the series
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SERIESSUM()
+ {
+ $returnValue = 0;
+
+ // Loop through arguments
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ $x = array_shift($aArgs);
+ $n = array_shift($aArgs);
+ $m = array_shift($aArgs);
+
+ if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) {
+ // Calculate
+ $i = 0;
+ foreach ($aArgs as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg * pow($x, $n + ($m * $i++));
+ } else {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ }
+ return $returnValue;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SIGN
+ *
+ * Determines the sign of a number. Returns 1 if the number is positive, zero (0)
+ * if the number is 0, and -1 if the number is negative.
+ *
+ * @param float $number Number to round
+ * @return int sign value
+ */
+ public static function SIGN($number)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_bool($number)) {
+ return (int) $number;
+ }
+ if (is_numeric($number)) {
+ if ($number == 0.0) {
+ return 0;
+ }
+ return $number / abs($number);
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SQRTPI
+ *
+ * Returns the square root of (number * pi).
+ *
+ * @param float $number Number
+ * @return float Square Root of Number * Pi
+ */
+ public static function SQRTPI($number)
+ {
+ $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
+
+ if (is_numeric($number)) {
+ if ($number < 0) {
+ return PHPExcel_Calculation_Functions::NaN();
+ }
+ return sqrt($number * M_PI) ;
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SUBTOTAL
+ *
+ * Returns a subtotal in a list or database.
+ *
+ * @param int the number 1 to 11 that specifies which function to
+ * use in calculating subtotals within a list.
+ * @param array of mixed Data Series
+ * @return float
+ */
+ public static function SUBTOTAL()
+ {
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
+
+ // Calculate
+ $subtotal = array_shift($aArgs);
+
+ if ((is_numeric($subtotal)) && (!is_string($subtotal))) {
+ switch ($subtotal) {
+ case 1:
+ return PHPExcel_Calculation_Statistical::AVERAGE($aArgs);
+ case 2:
+ return PHPExcel_Calculation_Statistical::COUNT($aArgs);
+ case 3:
+ return PHPExcel_Calculation_Statistical::COUNTA($aArgs);
+ case 4:
+ return PHPExcel_Calculation_Statistical::MAX($aArgs);
+ case 5:
+ return PHPExcel_Calculation_Statistical::MIN($aArgs);
+ case 6:
+ return self::PRODUCT($aArgs);
+ case 7:
+ return PHPExcel_Calculation_Statistical::STDEV($aArgs);
+ case 8:
+ return PHPExcel_Calculation_Statistical::STDEVP($aArgs);
+ case 9:
+ return self::SUM($aArgs);
+ case 10:
+ return PHPExcel_Calculation_Statistical::VARFunc($aArgs);
+ case 11:
+ return PHPExcel_Calculation_Statistical::VARP($aArgs);
+ }
+ }
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+
+ /**
+ * SUM
+ *
+ * SUM computes the sum of all the values and cells referenced in the argument list.
+ *
+ * Excel Function:
+ * SUM(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUM()
+ {
+ $returnValue = 0;
+
+ // Loop through the arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += $arg;
+ }
+ }
+
+ return $returnValue;
+ }
+
+
+ /**
+ * SUMIF
+ *
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * SUMIF(value1[,value2[, ...]],condition)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @param string $condition The criteria that defines which cells will be summed.
+ * @return float
+ */
+ public static function SUMIF($aArgs, $condition, $sumArgs = array())
+ {
+ $returnValue = 0;
+
+ $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs);
+ $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs);
+ if (empty($sumArgs)) {
+ $sumArgs = $aArgs;
+ }
+ $condition = PHPExcel_Calculation_Functions::ifCondition($condition);
+ // Loop through arguments
+ foreach ($aArgs as $key => $arg) {
+ if (!is_numeric($arg)) {
+ $arg = str_replace('"', '""', $arg);
+ $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg));
+ }
+
+ $testCondition = '='.$arg.$condition;
+ if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
+ // Is it a value within our criteria
+ $returnValue += $sumArgs[$key];
+ }
+ }
+
+ return $returnValue;
+ }
+
+
+ /**
+ * SUMIFS
*
- * @param int $a Dividend
- * @param int $b Divisor
- * @return int Remainder
+ * Counts the number of cells that contain numbers within the list of arguments
+ *
+ * Excel Function:
+ * SUMIFS(value1[,value2[, ...]],condition)
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @param string $condition The criteria that defines which cells will be summed.
+ * @return float
*/
- public static function MOD($a = 1, $b = 1) {
- $a = PHPExcel_Calculation_Functions::flattenSingleValue($a);
- $b = PHPExcel_Calculation_Functions::flattenSingleValue($b);
-
- if ($b == 0.0) {
- return PHPExcel_Calculation_Functions::DIV0();
- } elseif (($a < 0.0) && ($b > 0.0)) {
- return $b - fmod(abs($a),$b);
- } elseif (($a > 0.0) && ($b < 0.0)) {
- return $b + fmod($a,abs($b));
- }
-
- return fmod($a,$b);
- } // function MOD()
-
-
- /**
- * MROUND
- *
- * Rounds a number to the nearest multiple of a specified value
- *
- * @param float $number Number to round
- * @param int $multiple Multiple to which you want to round $number
- * @return float Rounded Number
- */
- public static function MROUND($number,$multiple) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $multiple = PHPExcel_Calculation_Functions::flattenSingleValue($multiple);
-
- if ((is_numeric($number)) && (is_numeric($multiple))) {
- if ($multiple == 0) {
- return 0;
- }
- if ((self::SIGN($number)) == (self::SIGN($multiple))) {
- $multiplier = 1 / $multiple;
- return round($number * $multiplier) / $multiplier;
- }
- return PHPExcel_Calculation_Functions::NaN();
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function MROUND()
-
-
- /**
- * MULTINOMIAL
- *
- * Returns the ratio of the factorial of a sum of values to the product of factorials.
- *
- * @param array of mixed Data Series
- * @return float
- */
- public static function MULTINOMIAL() {
- $summer = 0;
- $divisor = 1;
- // Loop through arguments
- foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
- // Is it a numeric value?
- if (is_numeric($arg)) {
- if ($arg < 1) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- $summer += floor($arg);
- $divisor *= self::FACT($arg);
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
-
- // Return
- if ($summer > 0) {
- $summer = self::FACT($summer);
- return $summer / $divisor;
- }
- return 0;
- } // function MULTINOMIAL()
-
-
- /**
- * ODD
- *
- * Returns number rounded up to the nearest odd integer.
- *
- * @param float $number Number to round
- * @return int Rounded Number
- */
- public static function ODD($number) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
-
- if (is_null($number)) {
- return 1;
- } elseif (is_bool($number)) {
- $number = (int) $number;
- }
-
- if (is_numeric($number)) {
- $significance = self::SIGN($number);
- if ($significance == 0) {
- return 1;
- }
-
- $result = self::CEILING($number,$significance);
- if ($result == self::EVEN($result)) {
- $result += $significance;
- }
-
- return (int) $result;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ODD()
-
-
- /**
- * POWER
- *
- * Computes x raised to the power y.
- *
- * @param float $x
- * @param float $y
- * @return float
- */
- public static function POWER($x = 0, $y = 2) {
- $x = PHPExcel_Calculation_Functions::flattenSingleValue($x);
- $y = PHPExcel_Calculation_Functions::flattenSingleValue($y);
-
- // Validate parameters
- if ($x == 0.0 && $y == 0.0) {
- return PHPExcel_Calculation_Functions::NaN();
- } elseif ($x == 0.0 && $y < 0.0) {
- return PHPExcel_Calculation_Functions::DIV0();
- }
-
- // Return
- $result = pow($x, $y);
- return (!is_nan($result) && !is_infinite($result)) ? $result : PHPExcel_Calculation_Functions::NaN();
- } // function POWER()
-
-
- /**
- * PRODUCT
- *
- * PRODUCT returns the product of all the values and cells referenced in the argument list.
- *
- * Excel Function:
- * PRODUCT(value1[,value2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return float
- */
- public static function PRODUCT() {
- // Return value
- $returnValue = null;
-
- // Loop through arguments
- foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
- // Is it a numeric value?
- if ((is_numeric($arg)) && (!is_string($arg))) {
- if (is_null($returnValue)) {
- $returnValue = $arg;
- } else {
- $returnValue *= $arg;
- }
- }
- }
-
- // Return
- if (is_null($returnValue)) {
- return 0;
- }
- return $returnValue;
- } // function PRODUCT()
-
-
- /**
- * QUOTIENT
- *
- * QUOTIENT function returns the integer portion of a division. Numerator is the divided number
- * and denominator is the divisor.
- *
- * Excel Function:
- * QUOTIENT(value1[,value2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return float
- */
- public static function QUOTIENT() {
- // Return value
- $returnValue = null;
-
- // Loop through arguments
- foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
- // Is it a numeric value?
- if ((is_numeric($arg)) && (!is_string($arg))) {
- if (is_null($returnValue)) {
- $returnValue = ($arg == 0) ? 0 : $arg;
- } else {
- if (($returnValue == 0) || ($arg == 0)) {
- $returnValue = 0;
- } else {
- $returnValue /= $arg;
- }
- }
- }
- }
-
- // Return
- return intval($returnValue);
- } // function QUOTIENT()
-
-
- /**
- * RAND
- *
- * @param int $min Minimal value
- * @param int $max Maximal value
- * @return int Random number
- */
- public static function RAND($min = 0, $max = 0) {
- $min = PHPExcel_Calculation_Functions::flattenSingleValue($min);
- $max = PHPExcel_Calculation_Functions::flattenSingleValue($max);
-
- if ($min == 0 && $max == 0) {
- return (mt_rand(0,10000000)) / 10000000;
- } else {
- return mt_rand($min, $max);
- }
- } // function RAND()
-
-
- public static function ROMAN($aValue, $style=0) {
- $aValue = PHPExcel_Calculation_Functions::flattenSingleValue($aValue);
- $style = (is_null($style)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($style);
- if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- $aValue = (integer) $aValue;
- if ($aValue == 0) {
- return '';
- }
-
- $mill = Array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM');
- $cent = Array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM');
- $tens = Array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC');
- $ones = Array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX');
-
- $roman = '';
- while ($aValue > 5999) {
- $roman .= 'M';
- $aValue -= 1000;
- }
- $m = self::_romanCut($aValue, 1000); $aValue %= 1000;
- $c = self::_romanCut($aValue, 100); $aValue %= 100;
- $t = self::_romanCut($aValue, 10); $aValue %= 10;
-
- return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue];
- } // function ROMAN()
-
-
- /**
- * ROUNDUP
- *
- * Rounds a number up to a specified number of decimal places
- *
- * @param float $number Number to round
- * @param int $digits Number of digits to which you want to round $number
- * @return float Rounded Number
- */
- public static function ROUNDUP($number,$digits) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
-
- if ((is_numeric($number)) && (is_numeric($digits))) {
- $significance = pow(10,(int) $digits);
- if ($number < 0.0) {
- return floor($number * $significance) / $significance;
- } else {
- return ceil($number * $significance) / $significance;
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ROUNDUP()
-
-
- /**
- * ROUNDDOWN
- *
- * Rounds a number down to a specified number of decimal places
- *
- * @param float $number Number to round
- * @param int $digits Number of digits to which you want to round $number
- * @return float Rounded Number
- */
- public static function ROUNDDOWN($number,$digits) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
- $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
-
- if ((is_numeric($number)) && (is_numeric($digits))) {
- $significance = pow(10,(int) $digits);
- if ($number < 0.0) {
- return ceil($number * $significance) / $significance;
- } else {
- return floor($number * $significance) / $significance;
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function ROUNDDOWN()
-
-
- /**
- * SERIESSUM
- *
- * Returns the sum of a power series
- *
- * @param float $x Input value to the power series
- * @param float $n Initial power to which you want to raise $x
- * @param float $m Step by which to increase $n for each term in the series
- * @param array of mixed Data Series
- * @return float
- */
- public static function SERIESSUM() {
- // Return value
- $returnValue = 0;
-
- // Loop through arguments
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
-
- $x = array_shift($aArgs);
- $n = array_shift($aArgs);
- $m = array_shift($aArgs);
-
- if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) {
- // Calculate
- $i = 0;
- foreach($aArgs as $arg) {
- // Is it a numeric value?
- if ((is_numeric($arg)) && (!is_string($arg))) {
- $returnValue += $arg * pow($x,$n + ($m * $i++));
- } else {
- return PHPExcel_Calculation_Functions::VALUE();
- }
- }
- // Return
- return $returnValue;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SERIESSUM()
-
-
- /**
- * SIGN
- *
- * Determines the sign of a number. Returns 1 if the number is positive, zero (0)
- * if the number is 0, and -1 if the number is negative.
- *
- * @param float $number Number to round
- * @return int sign value
- */
- public static function SIGN($number) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
-
- if (is_bool($number))
- return (int) $number;
- if (is_numeric($number)) {
- if ($number == 0.0) {
- return 0;
- }
- return $number / abs($number);
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SIGN()
-
-
- /**
- * SQRTPI
- *
- * Returns the square root of (number * pi).
- *
- * @param float $number Number
- * @return float Square Root of Number * Pi
- */
- public static function SQRTPI($number) {
- $number = PHPExcel_Calculation_Functions::flattenSingleValue($number);
-
- if (is_numeric($number)) {
- if ($number < 0) {
- return PHPExcel_Calculation_Functions::NaN();
- }
- return sqrt($number * M_PI) ;
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SQRTPI()
-
-
- /**
- * SUBTOTAL
- *
- * Returns a subtotal in a list or database.
- *
- * @param int the number 1 to 11 that specifies which function to
- * use in calculating subtotals within a list.
- * @param array of mixed Data Series
- * @return float
- */
- public static function SUBTOTAL() {
- $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
-
- // Calculate
- $subtotal = array_shift($aArgs);
-
- if ((is_numeric($subtotal)) && (!is_string($subtotal))) {
- switch($subtotal) {
- case 1 :
- return PHPExcel_Calculation_Statistical::AVERAGE($aArgs);
- break;
- case 2 :
- return PHPExcel_Calculation_Statistical::COUNT($aArgs);
- break;
- case 3 :
- return PHPExcel_Calculation_Statistical::COUNTA($aArgs);
- break;
- case 4 :
- return PHPExcel_Calculation_Statistical::MAX($aArgs);
- break;
- case 5 :
- return PHPExcel_Calculation_Statistical::MIN($aArgs);
- break;
- case 6 :
- return self::PRODUCT($aArgs);
- break;
- case 7 :
- return PHPExcel_Calculation_Statistical::STDEV($aArgs);
- break;
- case 8 :
- return PHPExcel_Calculation_Statistical::STDEVP($aArgs);
- break;
- case 9 :
- return self::SUM($aArgs);
- break;
- case 10 :
- return PHPExcel_Calculation_Statistical::VARFunc($aArgs);
- break;
- case 11 :
- return PHPExcel_Calculation_Statistical::VARP($aArgs);
- break;
- }
- }
- return PHPExcel_Calculation_Functions::VALUE();
- } // function SUBTOTAL()
-
-
- /**
- * SUM
- *
- * SUM computes the sum of all the values and cells referenced in the argument list.
- *
- * Excel Function:
- * SUM(value1[,value2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return float
- */
- public static function SUM() {
- // Return value
- $returnValue = 0;
-
- // Loop through the arguments
- foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
- // Is it a numeric value?
- if ((is_numeric($arg)) && (!is_string($arg))) {
- $returnValue += $arg;
- }
- }
-
- // Return
- return $returnValue;
- } // function SUM()
-
-
- /**
- * SUMIF
- *
- * Counts the number of cells that contain numbers within the list of arguments
- *
- * Excel Function:
- * SUMIF(value1[,value2[, ...]],condition)
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @param string $condition The criteria that defines which cells will be summed.
- * @return float
- */
- public static function SUMIF($aArgs,$condition,$sumArgs = array()) {
- // Return value
- $returnValue = 0;
-
- $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs);
- $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs);
- if (empty($sumArgs)) {
- $sumArgs = $aArgs;
- }
- $condition = PHPExcel_Calculation_Functions::_ifCondition($condition);
- // Loop through arguments
- foreach ($aArgs as $key => $arg) {
- if (!is_numeric($arg)) {
- $arg = str_replace('"', '""', $arg);
- $arg = PHPExcel_Calculation::_wrapResult(strtoupper($arg));
- }
-
- $testCondition = '='.$arg.$condition;
- if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
- // Is it a value within our criteria
- $returnValue += $sumArgs[$key];
- }
- }
-
- // Return
- return $returnValue;
- } // function SUMIF()
-
-
- /**
- * SUMPRODUCT
- *
- * Excel Function:
- * SUMPRODUCT(value1[,value2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return float
- */
- public static function SUMPRODUCT() {
+ public static function SUMIFS() {
$arrayList = func_get_args();
- $wrkArray = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList));
- $wrkCellCount = count($wrkArray);
+ $sumArgs = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList));
- for ($i=0; $i< $wrkCellCount; ++$i) {
- if ((!is_numeric($wrkArray[$i])) || (is_string($wrkArray[$i]))) {
- $wrkArray[$i] = 0;
- }
- }
+ while (count($arrayList) > 0) {
+ $aArgsArray[] = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList));
+ $conditions[] = PHPExcel_Calculation_Functions::ifCondition(array_shift($arrayList));
+ }
- foreach($arrayList as $matrixData) {
- $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData);
- $count = count($array2);
- if ($wrkCellCount != $count) {
- return PHPExcel_Calculation_Functions::VALUE();
- }
-
- foreach ($array2 as $i => $val) {
- if ((!is_numeric($val)) || (is_string($val))) {
- $val = 0;
- }
- $wrkArray[$i] *= $val;
- }
- }
-
- return array_sum($wrkArray);
- } // function SUMPRODUCT()
-
-
- /**
- * SUMSQ
- *
- * SUMSQ returns the sum of the squares of the arguments
- *
- * Excel Function:
- * SUMSQ(value1[,value2[, ...]])
- *
- * @access public
- * @category Mathematical and Trigonometric Functions
- * @param mixed $arg,... Data values
- * @return float
- */
- public static function SUMSQ() {
- // Return value
- $returnValue = 0;
-
- // Loop through arguments
- foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
- // Is it a numeric value?
- if ((is_numeric($arg)) && (!is_string($arg))) {
- $returnValue += ($arg * $arg);
- }
- }
+ // Loop through each set of arguments and conditions
+ foreach ($conditions as $index => $condition) {
+ $aArgs = $aArgsArray[$index];
+ $wildcard = false;
+ if ((strpos($condition, '*') !== false) || (strpos($condition, '?') !== false)) {
+ // * and ? are wildcard characters.
+ // Use ~* and ~? for literal star and question mark
+ // Code logic doesn't yet handle escaping
+ $condition = trim(ltrim($condition, '=<>'), '"');
+ $wildcard = true;
+ }
+ // Loop through arguments
+ foreach ($aArgs as $key => $arg) {
+ if ($wildcard) {
+ if (!fnmatch($condition, $arg, FNM_CASEFOLD)) {
+ // Is it a value within our criteria
+ $sumArgs[$key] = 0.0;
+ }
+ } else {
+ if (!is_numeric($arg)) {
+ $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg));
+ }
+ $testCondition = '='.$arg.$condition;
+ if (!PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) {
+ // Is it a value within our criteria
+ $sumArgs[$key] = 0.0;
+ }
+ }
+ }
+ }
// Return
- return $returnValue;
- } // function SUMSQ()
+ return array_sum($sumArgs);
+ }
- /**
- * SUMX2MY2
- *
- * @param mixed[] $matrixData1 Matrix #1
- * @param mixed[] $matrixData2 Matrix #2
- * @return float
- */
- public static function SUMX2MY2($matrixData1,$matrixData2) {
- $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
- $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
- $count1 = count($array1);
- $count2 = count($array2);
- if ($count1 < $count2) {
- $count = $count1;
- } else {
- $count = $count2;
- }
+ /**
+ * SUMPRODUCT
+ *
+ * Excel Function:
+ * SUMPRODUCT(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUMPRODUCT()
+ {
+ $arrayList = func_get_args();
- $result = 0;
- for ($i = 0; $i < $count; ++$i) {
- if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
- ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
- $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]);
- }
- }
+ $wrkArray = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList));
+ $wrkCellCount = count($wrkArray);
- return $result;
- } // function SUMX2MY2()
+ for ($i=0; $i< $wrkCellCount; ++$i) {
+ if ((!is_numeric($wrkArray[$i])) || (is_string($wrkArray[$i]))) {
+ $wrkArray[$i] = 0;
+ }
+ }
+
+ foreach ($arrayList as $matrixData) {
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData);
+ $count = count($array2);
+ if ($wrkCellCount != $count) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+
+ foreach ($array2 as $i => $val) {
+ if ((!is_numeric($val)) || (is_string($val))) {
+ $val = 0;
+ }
+ $wrkArray[$i] *= $val;
+ }
+ }
+
+ return array_sum($wrkArray);
+ }
- /**
- * SUMX2PY2
- *
- * @param mixed[] $matrixData1 Matrix #1
- * @param mixed[] $matrixData2 Matrix #2
- * @return float
- */
- public static function SUMX2PY2($matrixData1,$matrixData2) {
- $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
- $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
- $count1 = count($array1);
- $count2 = count($array2);
- if ($count1 < $count2) {
- $count = $count1;
- } else {
- $count = $count2;
- }
+ /**
+ * SUMSQ
+ *
+ * SUMSQ returns the sum of the squares of the arguments
+ *
+ * Excel Function:
+ * SUMSQ(value1[,value2[, ...]])
+ *
+ * @access public
+ * @category Mathematical and Trigonometric Functions
+ * @param mixed $arg,... Data values
+ * @return float
+ */
+ public static function SUMSQ()
+ {
+ $returnValue = 0;
- $result = 0;
- for ($i = 0; $i < $count; ++$i) {
- if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
- ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
- $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]);
- }
- }
+ // Loop through arguments
+ foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) {
+ // Is it a numeric value?
+ if ((is_numeric($arg)) && (!is_string($arg))) {
+ $returnValue += ($arg * $arg);
+ }
+ }
- return $result;
- } // function SUMX2PY2()
+ return $returnValue;
+ }
- /**
- * SUMXMY2
- *
- * @param mixed[] $matrixData1 Matrix #1
- * @param mixed[] $matrixData2 Matrix #2
- * @return float
- */
- public static function SUMXMY2($matrixData1,$matrixData2) {
- $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
- $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
- $count1 = count($array1);
- $count2 = count($array2);
- if ($count1 < $count2) {
- $count = $count1;
- } else {
- $count = $count2;
- }
+ /**
+ * SUMX2MY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMX2MY2($matrixData1, $matrixData2)
+ {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count = min(count($array1), count($array2));
- $result = 0;
- for ($i = 0; $i < $count; ++$i) {
- if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
- ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
- $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]);
- }
- }
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]);
+ }
+ }
- return $result;
- } // function SUMXMY2()
+ return $result;
+ }
- /**
- * TRUNC
- *
- * Truncates value to the number of fractional digits by number_digits.
- *
- * @param float $value
- * @param int $digits
- * @return float Truncated value
- */
- public static function TRUNC($value = 0, $digits = 0) {
- $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
- $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+ /**
+ * SUMX2PY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMX2PY2($matrixData1, $matrixData2)
+ {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count = min(count($array1), count($array2));
- // Validate parameters
- if ((!is_numeric($value)) || (!is_numeric($digits)))
- return PHPExcel_Calculation_Functions::VALUE();
- $digits = floor($digits);
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]);
+ }
+ }
- // Truncate
- $adjust = pow(10, $digits);
+ return $result;
+ }
- if (($digits > 0) && (rtrim(intval((abs($value) - abs(intval($value))) * $adjust),'0') < $adjust/10))
- return $value;
- return (intval($value * $adjust)) / $adjust;
- } // function TRUNC()
+ /**
+ * SUMXMY2
+ *
+ * @param mixed[] $matrixData1 Matrix #1
+ * @param mixed[] $matrixData2 Matrix #2
+ * @return float
+ */
+ public static function SUMXMY2($matrixData1, $matrixData2)
+ {
+ $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1);
+ $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2);
+ $count = min(count($array1), count($array2));
-} // class PHPExcel_Calculation_MathTrig
+ $result = 0;
+ for ($i = 0; $i < $count; ++$i) {
+ if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) &&
+ ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) {
+ $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]);
+ }
+ }
+
+ return $result;
+ }
+
+
+ /**
+ * TRUNC
+ *
+ * Truncates value to the number of fractional digits by number_digits.
+ *
+ * @param float $value
+ * @param int $digits
+ * @return float Truncated value
+ */
+ public static function TRUNC($value = 0, $digits = 0)
+ {
+ $value = PHPExcel_Calculation_Functions::flattenSingleValue($value);
+ $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits);
+
+ // Validate parameters
+ if ((!is_numeric($value)) || (!is_numeric($digits))) {
+ return PHPExcel_Calculation_Functions::VALUE();
+ }
+ $digits = floor($digits);
+
+ // Truncate
+ $adjust = pow(10, $digits);
+
+ if (($digits > 0) && (rtrim(intval((abs($value) - abs(intval($value))) * $adjust), '0') < $adjust/10)) {
+ return $value;
+ }
+
+ return (intval($value * $adjust)) / $adjust;
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php
index 67e1951c..1a33610f 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Statistical.php
@@ -1,38 +1,12 @@
$value) {
- if ((is_bool($value)) || (is_string($value)) || (is_null($value))) {
- unset($array1[$key]);
- unset($array2[$key]);
- }
- }
- foreach($array2 as $key => $value) {
- if ((is_bool($value)) || (is_string($value)) || (is_null($value))) {
- unset($array1[$key]);
- unset($array2[$key]);
- }
- }
- $array1 = array_merge($array1);
- $array2 = array_merge($array2);
-
- return True;
- } // function _checkTrendArrays()
-
-
- /**
- * Beta function.
- *
- * @author Jaco van Kooten
- *
- * @param p require p>0
- * @param q require q>0
- * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
- */
- private static function _beta($p, $q) {
- if ($p <= 0.0 || $q <= 0.0 || ($p + $q) > LOG_GAMMA_X_MAX_VALUE) {
- return 0.0;
- } else {
- return exp(self::_logBeta($p, $q));
- }
- } // function _beta()
-
-
- /**
- * Incomplete beta function
- *
- * @author Jaco van Kooten
- * @author Paul Meagher
- *
- * The computation is based on formulas from Numerical Recipes, Chapter 6.4 (W.H. Press et al, 1992).
- * @param x require 0<=x<=1
- * @param p require p>0
- * @param q require q>0
- * @return 0 if x<0, p<=0, q<=0 or p+q>2.55E305 and 1 if x>1 to avoid errors and over/underflow
- */
- private static function _incompleteBeta($x, $p, $q) {
- if ($x <= 0.0) {
- return 0.0;
- } elseif ($x >= 1.0) {
- return 1.0;
- } elseif (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
- return 0.0;
- }
- $beta_gam = exp((0 - self::_logBeta($p, $q)) + $p * log($x) + $q * log(1.0 - $x));
- if ($x < ($p + 1.0) / ($p + $q + 2.0)) {
- return $beta_gam * self::_betaFraction($x, $p, $q) / $p;
- } else {
- return 1.0 - ($beta_gam * self::_betaFraction(1 - $x, $q, $p) / $q);
- }
- } // function _incompleteBeta()
-
-
- // Function cache for _logBeta function
- private static $_logBetaCache_p = 0.0;
- private static $_logBetaCache_q = 0.0;
- private static $_logBetaCache_result = 0.0;
-
- /**
- * The natural logarithm of the beta function.
- *
- * @param p require p>0
- * @param q require q>0
- * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
- * @author Jaco van Kooten
- */
- private static function _logBeta($p, $q) {
- if ($p != self::$_logBetaCache_p || $q != self::$_logBetaCache_q) {
- self::$_logBetaCache_p = $p;
- self::$_logBetaCache_q = $q;
- if (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) {
- self::$_logBetaCache_result = 0.0;
- } else {
- self::$_logBetaCache_result = self::_logGamma($p) + self::_logGamma($q) - self::_logGamma($p + $q);
- }
- }
- return self::$_logBetaCache_result;
- } // function _logBeta()
-
-
- /**
- * Evaluates of continued fraction part of incomplete beta function.
- * Based on an idea from Numerical Recipes (W.H. Press et al, 1992).
- * @author Jaco van Kooten
- */
- private static function _betaFraction($x, $p, $q) {
- $c = 1.0;
- $sum_pq = $p + $q;
- $p_plus = $p + 1.0;
- $p_minus = $p - 1.0;
- $h = 1.0 - $sum_pq * $x / $p_plus;
- if (abs($h) < XMININ) {
- $h = XMININ;
- }
- $h = 1.0 / $h;
- $frac = $h;
- $m = 1;
- $delta = 0.0;
- while ($m <= MAX_ITERATIONS && abs($delta-1.0) > PRECISION ) {
- $m2 = 2 * $m;
- // even index for d
- $d = $m * ($q - $m) * $x / ( ($p_minus + $m2) * ($p + $m2));
- $h = 1.0 + $d * $h;
- if (abs($h) < XMININ) {
- $h = XMININ;
- }
- $h = 1.0 / $h;
- $c = 1.0 + $d / $c;
- if (abs($c) < XMININ) {
- $c = XMININ;
- }
- $frac *= $h * $c;
- // odd index for d
- $d = -($p + $m) * ($sum_pq + $m) * $x / (($p + $m2) * ($p_plus + $m2));
- $h = 1.0 + $d * $h;
- if (abs($h) < XMININ) {
- $h = XMININ;
- }
- $h = 1.0 / $h;
- $c = 1.0 + $d / $c;
- if (abs($c) < XMININ) {
- $c = XMININ;
- }
- $delta = $h * $c;
- $frac *= $delta;
- ++$m;
- }
- return $frac;
- } // function _betaFraction()
-
-
- /**
- * logGamma function
- *
- * @version 1.1
- * @author Jaco van Kooten
- *
- * Original author was Jaco van Kooten. Ported to PHP by Paul Meagher.
- *
- * The natural logarithm of the gamma function.
- * Based on public domain NETLIB (Fortran) code by W. J. Cody and L. Stoltz
- * Applied Mathematics Division
- * Argonne National Laboratory
- * Argonne, IL 60439
- *
- *
- *
- * From the original documentation: - *
- *- * This routine calculates the LOG(GAMMA) function for a positive real argument X. - * Computation is based on an algorithm outlined in references 1 and 2. - * The program uses rational functions that theoretically approximate LOG(GAMMA) - * to at least 18 significant decimal digits. The approximation for X > 12 is from - * reference 3, while approximations for X < 12.0 are similar to those in reference - * 1, but are unpublished. The accuracy achieved depends on the arithmetic system, - * the compiler, the intrinsic functions, and proper selection of the - * machine-dependent constants. - *
- *
- * Error returns:
- * The program returns the value XINF for X .LE. 0.0 or when overflow would occur.
- * The computation is believed to be free of underflow and overflow.
- *
+ * References: + *
+ * From the original documentation: + *
+ *+ * This routine calculates the LOG(GAMMA) function for a positive real argument X. + * Computation is based on an algorithm outlined in references 1 and 2. + * The program uses rational functions that theoretically approximate LOG(GAMMA) + * to at least 18 significant decimal digits. The approximation for X > 12 is from + * reference 3, while approximations for X < 12.0 are similar to those in reference + * 1, but are unpublished. The accuracy achieved depends on the arithmetic system, + * the compiler, the intrinsic functions, and proper selection of the + * machine-dependent constants. + *
+ *
+ * Error returns:
+ * The program returns the value XINF for X .LE. 0.0 or when overflow would occur.
+ * The computation is believed to be free of underflow and overflow.
+ *
'; -// echo htmlentities($gFileData,ENT_QUOTES,'UTF-8'); -// echo '
'; +// echo htmlentities($gFileData,ENT_QUOTES,'UTF-8'); +// echo '
'; -// print_r($namespacesMeta); -// echo '
'; +// print_r($namespacesMeta); +// echo '
'; -// print_r($namespacesContent); -// echo '
'; +// print_r($namespacesContent); +// echo '
= -1; --$k) { + if ($k == -1) { + break; + } + if (abs($e[$k]) <= $eps * (abs($this->s[$k]) + abs($this->s[$k+1]))) { + $e[$k] = 0.0; + break; + } + } + if ($k == $p - 2) { + $kase = 4; + } else { + for ($ks = $p - 1; $ks >= $k; --$ks) { + if ($ks == $k) { + break; + } + $t = ($ks != $p ? abs($e[$ks]) : 0.) + ($ks != $k + 1 ? abs($e[$ks-1]) : 0.); + if (abs($this->s[$ks]) <= $eps * $t) { + $this->s[$ks] = 0.0; + break; + } + } + if ($ks == $k) { + $kase = 3; + } elseif ($ks == $p-1) { + $kase = 1; + } else { + $kase = 2; + $k = $ks; + } + } + ++$k; + + // Perform the task indicated by kase. + switch ($kase) { + // Deflate negligible s(p). + case 1: + $f = $e[$p-2]; + $e[$p-2] = 0.0; + for ($j = $p - 2; $j >= $k; --$j) { + $t = hypo($this->s[$j], $f); + $cs = $this->s[$j] / $t; + $sn = $f / $t; + $this->s[$j] = $t; + if ($j != $k) { + $f = -$sn * $e[$j-1]; + $e[$j-1] = $cs * $e[$j-1]; + } + if ($wantv) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$p-1]; + $this->V[$i][$p-1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$p-1]; + $this->V[$i][$j] = $t; + } + } + } + break; + // Split at negligible s(k). + case 2: + $f = $e[$k-1]; + $e[$k-1] = 0.0; + for ($j = $k; $j < $p; ++$j) { + $t = hypo($this->s[$j], $f); + $cs = $this->s[$j] / $t; + $sn = $f / $t; + $this->s[$j] = $t; + $f = -$sn * $e[$j]; + $e[$j] = $cs * $e[$j]; + if ($wantu) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$k-1]; + $this->U[$i][$k-1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$k-1]; + $this->U[$i][$j] = $t; + } + } + } + break; + // Perform one qr step. + case 3: + // Calculate the shift. + $scale = max(max(max(max(abs($this->s[$p-1]), abs($this->s[$p-2])), abs($e[$p-2])), abs($this->s[$k])), abs($e[$k])); + $sp = $this->s[$p-1] / $scale; + $spm1 = $this->s[$p-2] / $scale; + $epm1 = $e[$p-2] / $scale; + $sk = $this->s[$k] / $scale; + $ek = $e[$k] / $scale; + $b = (($spm1 + $sp) * ($spm1 - $sp) + $epm1 * $epm1) / 2.0; + $c = ($sp * $epm1) * ($sp * $epm1); + $shift = 0.0; + if (($b != 0.0) || ($c != 0.0)) { + $shift = sqrt($b * $b + $c); + if ($b < 0.0) { + $shift = -$shift; + } + $shift = $c / ($b + $shift); + } + $f = ($sk + $sp) * ($sk - $sp) + $shift; + $g = $sk * $ek; + // Chase zeros. + for ($j = $k; $j < $p-1; ++$j) { + $t = hypo($f, $g); + $cs = $f/$t; + $sn = $g/$t; + if ($j != $k) { + $e[$j-1] = $t; + } + $f = $cs * $this->s[$j] + $sn * $e[$j]; + $e[$j] = $cs * $e[$j] - $sn * $this->s[$j]; + $g = $sn * $this->s[$j+1]; + $this->s[$j+1] = $cs * $this->s[$j+1]; + if ($wantv) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$j+1]; + $this->V[$i][$j+1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$j+1]; + $this->V[$i][$j] = $t; + } + } + $t = hypo($f, $g); + $cs = $f/$t; + $sn = $g/$t; + $this->s[$j] = $t; + $f = $cs * $e[$j] + $sn * $this->s[$j+1]; + $this->s[$j+1] = -$sn * $e[$j] + $cs * $this->s[$j+1]; + $g = $sn * $e[$j+1]; + $e[$j+1] = $cs * $e[$j+1]; + if ($wantu && ($j < $this->m - 1)) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$j+1]; + $this->U[$i][$j+1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$j+1]; + $this->U[$i][$j] = $t; + } + } + } + $e[$p-2] = $f; + $iter = $iter + 1; + break; + // Convergence. + case 4: + // Make the singular values positive. + if ($this->s[$k] <= 0.0) { + $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0); + if ($wantv) { + for ($i = 0; $i <= $pp; ++$i) { + $this->V[$i][$k] = -$this->V[$i][$k]; + } + } + } + // Order the singular values. + while ($k < $pp) { + if ($this->s[$k] >= $this->s[$k+1]) { + break; + } + $t = $this->s[$k]; + $this->s[$k] = $this->s[$k+1]; + $this->s[$k+1] = $t; + if ($wantv and ($k < $this->n - 1)) { + for ($i = 0; $i < $this->n; ++$i) { + $t = $this->V[$i][$k+1]; + $this->V[$i][$k+1] = $this->V[$i][$k]; + $this->V[$i][$k] = $t; + } + } + if ($wantu and ($k < $this->m-1)) { + for ($i = 0; $i < $this->m; ++$i) { + $t = $this->U[$i][$k+1]; + $this->U[$i][$k+1] = $this->U[$i][$k]; + $this->U[$i][$k] = $t; + } + } + ++$k; + } + $iter = 0; + --$p; + break; + } // end switch + } // end while + + } // end constructor - /** - * Construct the singular value decomposition - * - * Derived from LINPACK code. - * - * @param $A Rectangular matrix - * @return Structure to access U, S and V. - */ - public function __construct($Arg) { - - // Initialize. - $A = $Arg->getArrayCopy(); - $this->m = $Arg->getRowDimension(); - $this->n = $Arg->getColumnDimension(); - $nu = min($this->m, $this->n); - $e = array(); - $work = array(); - $wantu = true; - $wantv = true; - $nct = min($this->m - 1, $this->n); - $nrt = max(0, min($this->n - 2, $this->m)); - - // Reduce A to bidiagonal form, storing the diagonal elements - // in s and the super-diagonal elements in e. - for ($k = 0; $k < max($nct,$nrt); ++$k) { - - if ($k < $nct) { - // Compute the transformation for the k-th column and - // place the k-th diagonal in s[$k]. - // Compute 2-norm of k-th column without under/overflow. - $this->s[$k] = 0; - for ($i = $k; $i < $this->m; ++$i) { - $this->s[$k] = hypo($this->s[$k], $A[$i][$k]); - } - if ($this->s[$k] != 0.0) { - if ($A[$k][$k] < 0.0) { - $this->s[$k] = -$this->s[$k]; - } - for ($i = $k; $i < $this->m; ++$i) { - $A[$i][$k] /= $this->s[$k]; - } - $A[$k][$k] += 1.0; - } - $this->s[$k] = -$this->s[$k]; - } - - for ($j = $k + 1; $j < $this->n; ++$j) { - if (($k < $nct) & ($this->s[$k] != 0.0)) { - // Apply the transformation. - $t = 0; - for ($i = $k; $i < $this->m; ++$i) { - $t += $A[$i][$k] * $A[$i][$j]; - } - $t = -$t / $A[$k][$k]; - for ($i = $k; $i < $this->m; ++$i) { - $A[$i][$j] += $t * $A[$i][$k]; - } - // Place the k-th row of A into e for the - // subsequent calculation of the row transformation. - $e[$j] = $A[$k][$j]; - } - } - - if ($wantu AND ($k < $nct)) { - // Place the transformation in U for subsequent back - // multiplication. - for ($i = $k; $i < $this->m; ++$i) { - $this->U[$i][$k] = $A[$i][$k]; - } - } - - if ($k < $nrt) { - // Compute the k-th row transformation and place the - // k-th super-diagonal in e[$k]. - // Compute 2-norm without under/overflow. - $e[$k] = 0; - for ($i = $k + 1; $i < $this->n; ++$i) { - $e[$k] = hypo($e[$k], $e[$i]); - } - if ($e[$k] != 0.0) { - if ($e[$k+1] < 0.0) { - $e[$k] = -$e[$k]; - } - for ($i = $k + 1; $i < $this->n; ++$i) { - $e[$i] /= $e[$k]; - } - $e[$k+1] += 1.0; - } - $e[$k] = -$e[$k]; - if (($k+1 < $this->m) AND ($e[$k] != 0.0)) { - // Apply the transformation. - for ($i = $k+1; $i < $this->m; ++$i) { - $work[$i] = 0.0; - } - for ($j = $k+1; $j < $this->n; ++$j) { - for ($i = $k+1; $i < $this->m; ++$i) { - $work[$i] += $e[$j] * $A[$i][$j]; - } - } - for ($j = $k + 1; $j < $this->n; ++$j) { - $t = -$e[$j] / $e[$k+1]; - for ($i = $k + 1; $i < $this->m; ++$i) { - $A[$i][$j] += $t * $work[$i]; - } - } - } - if ($wantv) { - // Place the transformation in V for subsequent - // back multiplication. - for ($i = $k + 1; $i < $this->n; ++$i) { - $this->V[$i][$k] = $e[$i]; - } - } - } - } - - // Set up the final bidiagonal matrix or order p. - $p = min($this->n, $this->m + 1); - if ($nct < $this->n) { - $this->s[$nct] = $A[$nct][$nct]; - } - if ($this->m < $p) { - $this->s[$p-1] = 0.0; - } - if ($nrt + 1 < $p) { - $e[$nrt] = $A[$nrt][$p-1]; - } - $e[$p-1] = 0.0; - // If required, generate U. - if ($wantu) { - for ($j = $nct; $j < $nu; ++$j) { - for ($i = 0; $i < $this->m; ++$i) { - $this->U[$i][$j] = 0.0; - } - $this->U[$j][$j] = 1.0; - } - for ($k = $nct - 1; $k >= 0; --$k) { - if ($this->s[$k] != 0.0) { - for ($j = $k + 1; $j < $nu; ++$j) { - $t = 0; - for ($i = $k; $i < $this->m; ++$i) { - $t += $this->U[$i][$k] * $this->U[$i][$j]; - } - $t = -$t / $this->U[$k][$k]; - for ($i = $k; $i < $this->m; ++$i) { - $this->U[$i][$j] += $t * $this->U[$i][$k]; - } - } - for ($i = $k; $i < $this->m; ++$i ) { - $this->U[$i][$k] = -$this->U[$i][$k]; - } - $this->U[$k][$k] = 1.0 + $this->U[$k][$k]; - for ($i = 0; $i < $k - 1; ++$i) { - $this->U[$i][$k] = 0.0; - } - } else { - for ($i = 0; $i < $this->m; ++$i) { - $this->U[$i][$k] = 0.0; - } - $this->U[$k][$k] = 1.0; - } - } - } - - // If required, generate V. - if ($wantv) { - for ($k = $this->n - 1; $k >= 0; --$k) { - if (($k < $nrt) AND ($e[$k] != 0.0)) { - for ($j = $k + 1; $j < $nu; ++$j) { - $t = 0; - for ($i = $k + 1; $i < $this->n; ++$i) { - $t += $this->V[$i][$k]* $this->V[$i][$j]; - } - $t = -$t / $this->V[$k+1][$k]; - for ($i = $k + 1; $i < $this->n; ++$i) { - $this->V[$i][$j] += $t * $this->V[$i][$k]; - } - } - } - for ($i = 0; $i < $this->n; ++$i) { - $this->V[$i][$k] = 0.0; - } - $this->V[$k][$k] = 1.0; - } - } - - // Main iteration loop for the singular values. - $pp = $p - 1; - $iter = 0; - $eps = pow(2.0, -52.0); - - while ($p > 0) { - // Here is where a test for too many iterations would go. - // This section of the program inspects for negligible - // elements in the s and e arrays. On completion the - // variables kase and k are set as follows: - // kase = 1 if s(p) and e[k-1] are negligible and k
= -1; --$k) {
- if ($k == -1) {
- break;
- }
- if (abs($e[$k]) <= $eps * (abs($this->s[$k]) + abs($this->s[$k+1]))) {
- $e[$k] = 0.0;
- break;
- }
- }
- if ($k == $p - 2) {
- $kase = 4;
- } else {
- for ($ks = $p - 1; $ks >= $k; --$ks) {
- if ($ks == $k) {
- break;
- }
- $t = ($ks != $p ? abs($e[$ks]) : 0.) + ($ks != $k + 1 ? abs($e[$ks-1]) : 0.);
- if (abs($this->s[$ks]) <= $eps * $t) {
- $this->s[$ks] = 0.0;
- break;
- }
- }
- if ($ks == $k) {
- $kase = 3;
- } else if ($ks == $p-1) {
- $kase = 1;
- } else {
- $kase = 2;
- $k = $ks;
- }
- }
- ++$k;
-
- // Perform the task indicated by kase.
- switch ($kase) {
- // Deflate negligible s(p).
- case 1:
- $f = $e[$p-2];
- $e[$p-2] = 0.0;
- for ($j = $p - 2; $j >= $k; --$j) {
- $t = hypo($this->s[$j],$f);
- $cs = $this->s[$j] / $t;
- $sn = $f / $t;
- $this->s[$j] = $t;
- if ($j != $k) {
- $f = -$sn * $e[$j-1];
- $e[$j-1] = $cs * $e[$j-1];
- }
- if ($wantv) {
- for ($i = 0; $i < $this->n; ++$i) {
- $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$p-1];
- $this->V[$i][$p-1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$p-1];
- $this->V[$i][$j] = $t;
- }
- }
- }
- break;
- // Split at negligible s(k).
- case 2:
- $f = $e[$k-1];
- $e[$k-1] = 0.0;
- for ($j = $k; $j < $p; ++$j) {
- $t = hypo($this->s[$j], $f);
- $cs = $this->s[$j] / $t;
- $sn = $f / $t;
- $this->s[$j] = $t;
- $f = -$sn * $e[$j];
- $e[$j] = $cs * $e[$j];
- if ($wantu) {
- for ($i = 0; $i < $this->m; ++$i) {
- $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$k-1];
- $this->U[$i][$k-1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$k-1];
- $this->U[$i][$j] = $t;
- }
- }
- }
- break;
- // Perform one qr step.
- case 3:
- // Calculate the shift.
- $scale = max(max(max(max(
- abs($this->s[$p-1]),abs($this->s[$p-2])),abs($e[$p-2])),
- abs($this->s[$k])), abs($e[$k]));
- $sp = $this->s[$p-1] / $scale;
- $spm1 = $this->s[$p-2] / $scale;
- $epm1 = $e[$p-2] / $scale;
- $sk = $this->s[$k] / $scale;
- $ek = $e[$k] / $scale;
- $b = (($spm1 + $sp) * ($spm1 - $sp) + $epm1 * $epm1) / 2.0;
- $c = ($sp * $epm1) * ($sp * $epm1);
- $shift = 0.0;
- if (($b != 0.0) || ($c != 0.0)) {
- $shift = sqrt($b * $b + $c);
- if ($b < 0.0) {
- $shift = -$shift;
- }
- $shift = $c / ($b + $shift);
- }
- $f = ($sk + $sp) * ($sk - $sp) + $shift;
- $g = $sk * $ek;
- // Chase zeros.
- for ($j = $k; $j < $p-1; ++$j) {
- $t = hypo($f,$g);
- $cs = $f/$t;
- $sn = $g/$t;
- if ($j != $k) {
- $e[$j-1] = $t;
- }
- $f = $cs * $this->s[$j] + $sn * $e[$j];
- $e[$j] = $cs * $e[$j] - $sn * $this->s[$j];
- $g = $sn * $this->s[$j+1];
- $this->s[$j+1] = $cs * $this->s[$j+1];
- if ($wantv) {
- for ($i = 0; $i < $this->n; ++$i) {
- $t = $cs * $this->V[$i][$j] + $sn * $this->V[$i][$j+1];
- $this->V[$i][$j+1] = -$sn * $this->V[$i][$j] + $cs * $this->V[$i][$j+1];
- $this->V[$i][$j] = $t;
- }
- }
- $t = hypo($f,$g);
- $cs = $f/$t;
- $sn = $g/$t;
- $this->s[$j] = $t;
- $f = $cs * $e[$j] + $sn * $this->s[$j+1];
- $this->s[$j+1] = -$sn * $e[$j] + $cs * $this->s[$j+1];
- $g = $sn * $e[$j+1];
- $e[$j+1] = $cs * $e[$j+1];
- if ($wantu && ($j < $this->m - 1)) {
- for ($i = 0; $i < $this->m; ++$i) {
- $t = $cs * $this->U[$i][$j] + $sn * $this->U[$i][$j+1];
- $this->U[$i][$j+1] = -$sn * $this->U[$i][$j] + $cs * $this->U[$i][$j+1];
- $this->U[$i][$j] = $t;
- }
- }
- }
- $e[$p-2] = $f;
- $iter = $iter + 1;
- break;
- // Convergence.
- case 4:
- // Make the singular values positive.
- if ($this->s[$k] <= 0.0) {
- $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0);
- if ($wantv) {
- for ($i = 0; $i <= $pp; ++$i) {
- $this->V[$i][$k] = -$this->V[$i][$k];
- }
- }
- }
- // Order the singular values.
- while ($k < $pp) {
- if ($this->s[$k] >= $this->s[$k+1]) {
- break;
- }
- $t = $this->s[$k];
- $this->s[$k] = $this->s[$k+1];
- $this->s[$k+1] = $t;
- if ($wantv AND ($k < $this->n - 1)) {
- for ($i = 0; $i < $this->n; ++$i) {
- $t = $this->V[$i][$k+1];
- $this->V[$i][$k+1] = $this->V[$i][$k];
- $this->V[$i][$k] = $t;
- }
- }
- if ($wantu AND ($k < $this->m-1)) {
- for ($i = 0; $i < $this->m; ++$i) {
- $t = $this->U[$i][$k+1];
- $this->U[$i][$k+1] = $this->U[$i][$k];
- $this->U[$i][$k] = $t;
- }
- }
- ++$k;
- }
- $iter = 0;
- --$p;
- break;
- } // end switch
- } // end while
-
- } // end constructor
+ /**
+ * Return the left singular vectors
+ *
+ * @access public
+ * @return U
+ */
+ public function getU()
+ {
+ return new Matrix($this->U, $this->m, min($this->m + 1, $this->n));
+ }
- /**
- * Return the left singular vectors
- *
- * @access public
- * @return U
- */
- public function getU() {
- return new Matrix($this->U, $this->m, min($this->m + 1, $this->n));
- }
+ /**
+ * Return the right singular vectors
+ *
+ * @access public
+ * @return V
+ */
+ public function getV()
+ {
+ return new Matrix($this->V);
+ }
- /**
- * Return the right singular vectors
- *
- * @access public
- * @return V
- */
- public function getV() {
- return new Matrix($this->V);
- }
+ /**
+ * Return the one-dimensional array of singular values
+ *
+ * @access public
+ * @return diagonal of S.
+ */
+ public function getSingularValues()
+ {
+ return $this->s;
+ }
- /**
- * Return the one-dimensional array of singular values
- *
- * @access public
- * @return diagonal of S.
- */
- public function getSingularValues() {
- return $this->s;
- }
+ /**
+ * Return the diagonal matrix of singular values
+ *
+ * @access public
+ * @return S
+ */
+ public function getS()
+ {
+ for ($i = 0; $i < $this->n; ++$i) {
+ for ($j = 0; $j < $this->n; ++$j) {
+ $S[$i][$j] = 0.0;
+ }
+ $S[$i][$i] = $this->s[$i];
+ }
+ return new Matrix($S);
+ }
- /**
- * Return the diagonal matrix of singular values
- *
- * @access public
- * @return S
- */
- public function getS() {
- for ($i = 0; $i < $this->n; ++$i) {
- for ($j = 0; $j < $this->n; ++$j) {
- $S[$i][$j] = 0.0;
- }
- $S[$i][$i] = $this->s[$i];
- }
- return new Matrix($S);
- }
+ /**
+ * Two norm
+ *
+ * @access public
+ * @return max(S)
+ */
+ public function norm2()
+ {
+ return $this->s[0];
+ }
- /**
- * Two norm
- *
- * @access public
- * @return max(S)
- */
- public function norm2() {
- return $this->s[0];
- }
+ /**
+ * Two norm condition number
+ *
+ * @access public
+ * @return max(S)/min(S)
+ */
+ public function cond()
+ {
+ return $this->s[0] / $this->s[min($this->m, $this->n) - 1];
+ }
- /**
- * Two norm condition number
- *
- * @access public
- * @return max(S)/min(S)
- */
- public function cond() {
- return $this->s[0] / $this->s[min($this->m, $this->n) - 1];
- }
-
-
- /**
- * Effective numerical matrix rank
- *
- * @access public
- * @return Number of nonnegligible singular values.
- */
- public function rank() {
- $eps = pow(2.0, -52.0);
- $tol = max($this->m, $this->n) * $this->s[0] * $eps;
- $r = 0;
- for ($i = 0; $i < count($this->s); ++$i) {
- if ($this->s[$i] > $tol) {
- ++$r;
- }
- }
- return $r;
- }
-
-} // class SingularValueDecomposition
+ /**
+ * Effective numerical matrix rank
+ *
+ * @access public
+ * @return Number of nonnegligible singular values.
+ */
+ public function rank()
+ {
+ $eps = pow(2.0, -52.0);
+ $tol = max($this->m, $this->n) * $this->s[0] * $eps;
+ $r = 0;
+ for ($i = 0; $i < count($this->s); ++$i) {
+ if ($this->s[$i] > $tol) {
+ ++$r;
+ }
+ }
+ return $r;
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/utils/Error.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/utils/Error.php
index e73252b3..71b8c994 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/utils/Error.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/utils/Error.php
@@ -1,10 +1,10 @@
abs($b)) {
- $r = $b / $a;
- $r = abs($a) * sqrt(1 + $r * $r);
- } elseif ($b != 0) {
- $r = $a / $b;
- $r = abs($b) * sqrt(1 + $r * $r);
- } else {
- $r = 0.0;
- }
- return $r;
-} // function hypo()
+function hypo($a, $b)
+{
+ if (abs($a) > abs($b)) {
+ $r = $b / $a;
+ $r = abs($a) * sqrt(1 + $r * $r);
+ } elseif ($b != 0) {
+ $r = $a / $b;
+ $r = abs($b) * sqrt(1 + $r * $r);
+ } else {
+ $r = 0.0;
+ }
+ return $r;
+} // function hypo()
/**
- * Mike Bommarito's version.
- * Compute n-dimensional hyotheneuse.
+ * Mike Bommarito's version.
+ * Compute n-dimensional hyotheneuse.
*
function hypot() {
- $s = 0;
- foreach (func_get_args() as $d) {
- if (is_numeric($d)) {
- $s += pow($d, 2);
- } else {
- throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException));
- }
- }
- return sqrt($s);
+ $s = 0;
+ foreach (func_get_args() as $d) {
+ if (is_numeric($d)) {
+ $s += pow($d, 2);
+ } else {
+ throw new PHPExcel_Calculation_Exception(JAMAError(ARGUMENT_TYPE_EXCEPTION));
+ }
+ }
+ return sqrt($s);
}
*/
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php
index 9796282a..42a3c529 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE.php
@@ -37,495 +37,490 @@ $GLOBALS['_OLE_INSTANCES'] = array();
*/
class PHPExcel_Shared_OLE
{
- const OLE_PPS_TYPE_ROOT = 5;
- const OLE_PPS_TYPE_DIR = 1;
- const OLE_PPS_TYPE_FILE = 2;
- const OLE_DATA_SIZE_SMALL = 0x1000;
- const OLE_LONG_INT_SIZE = 4;
- const OLE_PPS_SIZE = 0x80;
+ const OLE_PPS_TYPE_ROOT = 5;
+ const OLE_PPS_TYPE_DIR = 1;
+ const OLE_PPS_TYPE_FILE = 2;
+ const OLE_DATA_SIZE_SMALL = 0x1000;
+ const OLE_LONG_INT_SIZE = 4;
+ const OLE_PPS_SIZE = 0x80;
- /**
- * The file handle for reading an OLE container
- * @var resource
- */
- public $_file_handle;
+ /**
+ * The file handle for reading an OLE container
+ * @var resource
+ */
+ public $_file_handle;
- /**
- * Array of PPS's found on the OLE container
- * @var array
- */
- public $_list = array();
+ /**
+ * Array of PPS's found on the OLE container
+ * @var array
+ */
+ public $_list = array();
- /**
- * Root directory of OLE container
- * @var OLE_PPS_Root
- */
- public $root;
+ /**
+ * Root directory of OLE container
+ * @var OLE_PPS_Root
+ */
+ public $root;
- /**
- * Big Block Allocation Table
- * @var array (blockId => nextBlockId)
- */
- public $bbat;
+ /**
+ * Big Block Allocation Table
+ * @var array (blockId => nextBlockId)
+ */
+ public $bbat;
- /**
- * Short Block Allocation Table
- * @var array (blockId => nextBlockId)
- */
- public $sbat;
+ /**
+ * Short Block Allocation Table
+ * @var array (blockId => nextBlockId)
+ */
+ public $sbat;
- /**
- * Size of big blocks. This is usually 512.
- * @var int number of octets per block.
- */
- public $bigBlockSize;
+ /**
+ * Size of big blocks. This is usually 512.
+ * @var int number of octets per block.
+ */
+ public $bigBlockSize;
- /**
- * Size of small blocks. This is usually 64.
- * @var int number of octets per block
- */
- public $smallBlockSize;
+ /**
+ * Size of small blocks. This is usually 64.
+ * @var int number of octets per block
+ */
+ public $smallBlockSize;
- /**
- * Reads an OLE container from the contents of the file given.
- *
- * @acces public
- * @param string $file
- * @return mixed true on success, PEAR_Error on failure
- */
- public function read($file)
- {
- $fh = fopen($file, "r");
- if (!$fh) {
- throw new PHPExcel_Reader_Exception("Can't open file $file");
- }
- $this->_file_handle = $fh;
+ /**
+ * Reads an OLE container from the contents of the file given.
+ *
+ * @acces public
+ * @param string $file
+ * @return mixed true on success, PEAR_Error on failure
+ */
+ public function read($file)
+ {
+ $fh = fopen($file, "r");
+ if (!$fh) {
+ throw new PHPExcel_Reader_Exception("Can't open file $file");
+ }
+ $this->_file_handle = $fh;
- $signature = fread($fh, 8);
- if ("\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" != $signature) {
- throw new PHPExcel_Reader_Exception("File doesn't seem to be an OLE container.");
- }
- fseek($fh, 28);
- if (fread($fh, 2) != "\xFE\xFF") {
- // This shouldn't be a problem in practice
- throw new PHPExcel_Reader_Exception("Only Little-Endian encoding is supported.");
- }
- // Size of blocks and short blocks in bytes
- $this->bigBlockSize = pow(2, self::_readInt2($fh));
- $this->smallBlockSize = pow(2, self::_readInt2($fh));
+ $signature = fread($fh, 8);
+ if ("\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" != $signature) {
+ throw new PHPExcel_Reader_Exception("File doesn't seem to be an OLE container.");
+ }
+ fseek($fh, 28);
+ if (fread($fh, 2) != "\xFE\xFF") {
+ // This shouldn't be a problem in practice
+ throw new PHPExcel_Reader_Exception("Only Little-Endian encoding is supported.");
+ }
+ // Size of blocks and short blocks in bytes
+ $this->bigBlockSize = pow(2, self::_readInt2($fh));
+ $this->smallBlockSize = pow(2, self::_readInt2($fh));
- // Skip UID, revision number and version number
- fseek($fh, 44);
- // Number of blocks in Big Block Allocation Table
- $bbatBlockCount = self::_readInt4($fh);
+ // Skip UID, revision number and version number
+ fseek($fh, 44);
+ // Number of blocks in Big Block Allocation Table
+ $bbatBlockCount = self::_readInt4($fh);
- // Root chain 1st block
- $directoryFirstBlockId = self::_readInt4($fh);
+ // Root chain 1st block
+ $directoryFirstBlockId = self::_readInt4($fh);
- // Skip unused bytes
- fseek($fh, 56);
- // Streams shorter than this are stored using small blocks
- $this->bigBlockThreshold = self::_readInt4($fh);
- // Block id of first sector in Short Block Allocation Table
- $sbatFirstBlockId = self::_readInt4($fh);
- // Number of blocks in Short Block Allocation Table
- $sbbatBlockCount = self::_readInt4($fh);
- // Block id of first sector in Master Block Allocation Table
- $mbatFirstBlockId = self::_readInt4($fh);
- // Number of blocks in Master Block Allocation Table
- $mbbatBlockCount = self::_readInt4($fh);
- $this->bbat = array();
+ // Skip unused bytes
+ fseek($fh, 56);
+ // Streams shorter than this are stored using small blocks
+ $this->bigBlockThreshold = self::_readInt4($fh);
+ // Block id of first sector in Short Block Allocation Table
+ $sbatFirstBlockId = self::_readInt4($fh);
+ // Number of blocks in Short Block Allocation Table
+ $sbbatBlockCount = self::_readInt4($fh);
+ // Block id of first sector in Master Block Allocation Table
+ $mbatFirstBlockId = self::_readInt4($fh);
+ // Number of blocks in Master Block Allocation Table
+ $mbbatBlockCount = self::_readInt4($fh);
+ $this->bbat = array();
- // Remaining 4 * 109 bytes of current block is beginning of Master
- // Block Allocation Table
- $mbatBlocks = array();
- for ($i = 0; $i < 109; ++$i) {
- $mbatBlocks[] = self::_readInt4($fh);
- }
+ // Remaining 4 * 109 bytes of current block is beginning of Master
+ // Block Allocation Table
+ $mbatBlocks = array();
+ for ($i = 0; $i < 109; ++$i) {
+ $mbatBlocks[] = self::_readInt4($fh);
+ }
- // Read rest of Master Block Allocation Table (if any is left)
- $pos = $this->_getBlockOffset($mbatFirstBlockId);
- for ($i = 0; $i < $mbbatBlockCount; ++$i) {
- fseek($fh, $pos);
- for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) {
- $mbatBlocks[] = self::_readInt4($fh);
- }
- // Last block id in each block points to next block
- $pos = $this->_getBlockOffset(self::_readInt4($fh));
- }
+ // Read rest of Master Block Allocation Table (if any is left)
+ $pos = $this->_getBlockOffset($mbatFirstBlockId);
+ for ($i = 0; $i < $mbbatBlockCount; ++$i) {
+ fseek($fh, $pos);
+ for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) {
+ $mbatBlocks[] = self::_readInt4($fh);
+ }
+ // Last block id in each block points to next block
+ $pos = $this->_getBlockOffset(self::_readInt4($fh));
+ }
- // Read Big Block Allocation Table according to chain specified by
- // $mbatBlocks
- for ($i = 0; $i < $bbatBlockCount; ++$i) {
- $pos = $this->_getBlockOffset($mbatBlocks[$i]);
- fseek($fh, $pos);
- for ($j = 0 ; $j < $this->bigBlockSize / 4; ++$j) {
- $this->bbat[] = self::_readInt4($fh);
- }
- }
+ // Read Big Block Allocation Table according to chain specified by
+ // $mbatBlocks
+ for ($i = 0; $i < $bbatBlockCount; ++$i) {
+ $pos = $this->_getBlockOffset($mbatBlocks[$i]);
+ fseek($fh, $pos);
+ for ($j = 0; $j < $this->bigBlockSize / 4; ++$j) {
+ $this->bbat[] = self::_readInt4($fh);
+ }
+ }
- // Read short block allocation table (SBAT)
- $this->sbat = array();
- $shortBlockCount = $sbbatBlockCount * $this->bigBlockSize / 4;
- $sbatFh = $this->getStream($sbatFirstBlockId);
- for ($blockId = 0; $blockId < $shortBlockCount; ++$blockId) {
- $this->sbat[$blockId] = self::_readInt4($sbatFh);
- }
- fclose($sbatFh);
+ // Read short block allocation table (SBAT)
+ $this->sbat = array();
+ $shortBlockCount = $sbbatBlockCount * $this->bigBlockSize / 4;
+ $sbatFh = $this->getStream($sbatFirstBlockId);
+ for ($blockId = 0; $blockId < $shortBlockCount; ++$blockId) {
+ $this->sbat[$blockId] = self::_readInt4($sbatFh);
+ }
+ fclose($sbatFh);
- $this->_readPpsWks($directoryFirstBlockId);
+ $this->_readPpsWks($directoryFirstBlockId);
- return true;
- }
+ return true;
+ }
- /**
- * @param int block id
- * @param int byte offset from beginning of file
- * @access public
- */
- public function _getBlockOffset($blockId)
- {
- return 512 + $blockId * $this->bigBlockSize;
- }
+ /**
+ * @param int block id
+ * @param int byte offset from beginning of file
+ * @access public
+ */
+ public function _getBlockOffset($blockId)
+ {
+ return 512 + $blockId * $this->bigBlockSize;
+ }
- /**
- * Returns a stream for use with fread() etc. External callers should
- * use PHPExcel_Shared_OLE_PPS_File::getStream().
- * @param int|PPS block id or PPS
- * @return resource read-only stream
- */
- public function getStream($blockIdOrPps)
- {
- static $isRegistered = false;
- if (!$isRegistered) {
- stream_wrapper_register('ole-chainedblockstream',
- 'PHPExcel_Shared_OLE_ChainedBlockStream');
- $isRegistered = true;
- }
+ /**
+ * Returns a stream for use with fread() etc. External callers should
+ * use PHPExcel_Shared_OLE_PPS_File::getStream().
+ * @param int|PPS block id or PPS
+ * @return resource read-only stream
+ */
+ public function getStream($blockIdOrPps)
+ {
+ static $isRegistered = false;
+ if (!$isRegistered) {
+ stream_wrapper_register('ole-chainedblockstream', 'PHPExcel_Shared_OLE_ChainedBlockStream');
+ $isRegistered = true;
+ }
- // Store current instance in global array, so that it can be accessed
- // in OLE_ChainedBlockStream::stream_open().
- // Object is removed from self::$instances in OLE_Stream::close().
- $GLOBALS['_OLE_INSTANCES'][] = $this;
- $instanceId = end(array_keys($GLOBALS['_OLE_INSTANCES']));
+ // Store current instance in global array, so that it can be accessed
+ // in OLE_ChainedBlockStream::stream_open().
+ // Object is removed from self::$instances in OLE_Stream::close().
+ $GLOBALS['_OLE_INSTANCES'][] = $this;
+ $instanceId = end(array_keys($GLOBALS['_OLE_INSTANCES']));
- $path = 'ole-chainedblockstream://oleInstanceId=' . $instanceId;
- if ($blockIdOrPps instanceof PHPExcel_Shared_OLE_PPS) {
- $path .= '&blockId=' . $blockIdOrPps->_StartBlock;
- $path .= '&size=' . $blockIdOrPps->Size;
- } else {
- $path .= '&blockId=' . $blockIdOrPps;
- }
- return fopen($path, 'r');
- }
+ $path = 'ole-chainedblockstream://oleInstanceId=' . $instanceId;
+ if ($blockIdOrPps instanceof PHPExcel_Shared_OLE_PPS) {
+ $path .= '&blockId=' . $blockIdOrPps->_StartBlock;
+ $path .= '&size=' . $blockIdOrPps->Size;
+ } else {
+ $path .= '&blockId=' . $blockIdOrPps;
+ }
+ return fopen($path, 'r');
+ }
- /**
- * Reads a signed char.
- * @param resource file handle
- * @return int
- * @access public
- */
- private static function _readInt1($fh)
- {
- list(, $tmp) = unpack("c", fread($fh, 1));
- return $tmp;
- }
+ /**
+ * Reads a signed char.
+ * @param resource file handle
+ * @return int
+ * @access public
+ */
+ private static function _readInt1($fh)
+ {
+ list(, $tmp) = unpack("c", fread($fh, 1));
+ return $tmp;
+ }
- /**
- * Reads an unsigned short (2 octets).
- * @param resource file handle
- * @return int
- * @access public
- */
- private static function _readInt2($fh)
- {
- list(, $tmp) = unpack("v", fread($fh, 2));
- return $tmp;
- }
+ /**
+ * Reads an unsigned short (2 octets).
+ * @param resource file handle
+ * @return int
+ * @access public
+ */
+ private static function _readInt2($fh)
+ {
+ list(, $tmp) = unpack("v", fread($fh, 2));
+ return $tmp;
+ }
- /**
- * Reads an unsigned long (4 octets).
- * @param resource file handle
- * @return int
- * @access public
- */
- private static function _readInt4($fh)
- {
- list(, $tmp) = unpack("V", fread($fh, 4));
- return $tmp;
- }
+ /**
+ * Reads an unsigned long (4 octets).
+ * @param resource file handle
+ * @return int
+ * @access public
+ */
+ private static function _readInt4($fh)
+ {
+ list(, $tmp) = unpack("V", fread($fh, 4));
+ return $tmp;
+ }
- /**
- * Gets information about all PPS's on the OLE container from the PPS WK's
- * creates an OLE_PPS object for each one.
- *
- * @access public
- * @param integer the block id of the first block
- * @return mixed true on success, PEAR_Error on failure
- */
- public function _readPpsWks($blockId)
- {
- $fh = $this->getStream($blockId);
- for ($pos = 0; ; $pos += 128) {
- fseek($fh, $pos, SEEK_SET);
- $nameUtf16 = fread($fh, 64);
- $nameLength = self::_readInt2($fh);
- $nameUtf16 = substr($nameUtf16, 0, $nameLength - 2);
- // Simple conversion from UTF-16LE to ISO-8859-1
- $name = str_replace("\x00", "", $nameUtf16);
- $type = self::_readInt1($fh);
- switch ($type) {
- case self::OLE_PPS_TYPE_ROOT:
- $pps = new PHPExcel_Shared_OLE_PPS_Root(null, null, array());
- $this->root = $pps;
- break;
- case self::OLE_PPS_TYPE_DIR:
- $pps = new PHPExcel_Shared_OLE_PPS(null, null, null, null, null,
- null, null, null, null, array());
- break;
- case self::OLE_PPS_TYPE_FILE:
- $pps = new PHPExcel_Shared_OLE_PPS_File($name);
- break;
- default:
- continue;
- }
- fseek($fh, 1, SEEK_CUR);
- $pps->Type = $type;
- $pps->Name = $name;
- $pps->PrevPps = self::_readInt4($fh);
- $pps->NextPps = self::_readInt4($fh);
- $pps->DirPps = self::_readInt4($fh);
- fseek($fh, 20, SEEK_CUR);
- $pps->Time1st = self::OLE2LocalDate(fread($fh, 8));
- $pps->Time2nd = self::OLE2LocalDate(fread($fh, 8));
- $pps->_StartBlock = self::_readInt4($fh);
- $pps->Size = self::_readInt4($fh);
- $pps->No = count($this->_list);
- $this->_list[] = $pps;
+ /**
+ * Gets information about all PPS's on the OLE container from the PPS WK's
+ * creates an OLE_PPS object for each one.
+ *
+ * @access public
+ * @param integer the block id of the first block
+ * @return mixed true on success, PEAR_Error on failure
+ */
+ public function _readPpsWks($blockId)
+ {
+ $fh = $this->getStream($blockId);
+ for ($pos = 0;; $pos += 128) {
+ fseek($fh, $pos, SEEK_SET);
+ $nameUtf16 = fread($fh, 64);
+ $nameLength = self::_readInt2($fh);
+ $nameUtf16 = substr($nameUtf16, 0, $nameLength - 2);
+ // Simple conversion from UTF-16LE to ISO-8859-1
+ $name = str_replace("\x00", "", $nameUtf16);
+ $type = self::_readInt1($fh);
+ switch ($type) {
+ case self::OLE_PPS_TYPE_ROOT:
+ $pps = new PHPExcel_Shared_OLE_PPS_Root(null, null, array());
+ $this->root = $pps;
+ break;
+ case self::OLE_PPS_TYPE_DIR:
+ $pps = new PHPExcel_Shared_OLE_PPS(null, null, null, null, null, null, null, null, null, array());
+ break;
+ case self::OLE_PPS_TYPE_FILE:
+ $pps = new PHPExcel_Shared_OLE_PPS_File($name);
+ break;
+ default:
+ continue;
+ }
+ fseek($fh, 1, SEEK_CUR);
+ $pps->Type = $type;
+ $pps->Name = $name;
+ $pps->PrevPps = self::_readInt4($fh);
+ $pps->NextPps = self::_readInt4($fh);
+ $pps->DirPps = self::_readInt4($fh);
+ fseek($fh, 20, SEEK_CUR);
+ $pps->Time1st = self::OLE2LocalDate(fread($fh, 8));
+ $pps->Time2nd = self::OLE2LocalDate(fread($fh, 8));
+ $pps->_StartBlock = self::_readInt4($fh);
+ $pps->Size = self::_readInt4($fh);
+ $pps->No = count($this->_list);
+ $this->_list[] = $pps;
- // check if the PPS tree (starting from root) is complete
- if (isset($this->root) &&
- $this->_ppsTreeComplete($this->root->No)) {
+ // check if the PPS tree (starting from root) is complete
+ if (isset($this->root) && $this->_ppsTreeComplete($this->root->No)) {
+ break;
+ }
+ }
+ fclose($fh);
- break;
- }
- }
- fclose($fh);
+ // Initialize $pps->children on directories
+ foreach ($this->_list as $pps) {
+ if ($pps->Type == self::OLE_PPS_TYPE_DIR || $pps->Type == self::OLE_PPS_TYPE_ROOT) {
+ $nos = array($pps->DirPps);
+ $pps->children = array();
+ while ($nos) {
+ $no = array_pop($nos);
+ if ($no != -1) {
+ $childPps = $this->_list[$no];
+ $nos[] = $childPps->PrevPps;
+ $nos[] = $childPps->NextPps;
+ $pps->children[] = $childPps;
+ }
+ }
+ }
+ }
- // Initialize $pps->children on directories
- foreach ($this->_list as $pps) {
- if ($pps->Type == self::OLE_PPS_TYPE_DIR || $pps->Type == self::OLE_PPS_TYPE_ROOT) {
- $nos = array($pps->DirPps);
- $pps->children = array();
- while ($nos) {
- $no = array_pop($nos);
- if ($no != -1) {
- $childPps = $this->_list[$no];
- $nos[] = $childPps->PrevPps;
- $nos[] = $childPps->NextPps;
- $pps->children[] = $childPps;
- }
- }
- }
- }
+ return true;
+ }
- return true;
- }
+ /**
+ * It checks whether the PPS tree is complete (all PPS's read)
+ * starting with the given PPS (not necessarily root)
+ *
+ * @access public
+ * @param integer $index The index of the PPS from which we are checking
+ * @return boolean Whether the PPS tree for the given PPS is complete
+ */
+ public function _ppsTreeComplete($index)
+ {
+ return isset($this->_list[$index]) &&
+ ($pps = $this->_list[$index]) &&
+ ($pps->PrevPps == -1 ||
+ $this->_ppsTreeComplete($pps->PrevPps)) &&
+ ($pps->NextPps == -1 ||
+ $this->_ppsTreeComplete($pps->NextPps)) &&
+ ($pps->DirPps == -1 ||
+ $this->_ppsTreeComplete($pps->DirPps));
+ }
- /**
- * It checks whether the PPS tree is complete (all PPS's read)
- * starting with the given PPS (not necessarily root)
- *
- * @access public
- * @param integer $index The index of the PPS from which we are checking
- * @return boolean Whether the PPS tree for the given PPS is complete
- */
- public function _ppsTreeComplete($index)
- {
- return isset($this->_list[$index]) &&
- ($pps = $this->_list[$index]) &&
- ($pps->PrevPps == -1 ||
- $this->_ppsTreeComplete($pps->PrevPps)) &&
- ($pps->NextPps == -1 ||
- $this->_ppsTreeComplete($pps->NextPps)) &&
- ($pps->DirPps == -1 ||
- $this->_ppsTreeComplete($pps->DirPps));
- }
+ /**
+ * Checks whether a PPS is a File PPS or not.
+ * If there is no PPS for the index given, it will return false.
+ *
+ * @access public
+ * @param integer $index The index for the PPS
+ * @return bool true if it's a File PPS, false otherwise
+ */
+ public function isFile($index)
+ {
+ if (isset($this->_list[$index])) {
+ return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE);
+ }
+ return false;
+ }
- /**
- * Checks whether a PPS is a File PPS or not.
- * If there is no PPS for the index given, it will return false.
- *
- * @access public
- * @param integer $index The index for the PPS
- * @return bool true if it's a File PPS, false otherwise
- */
- public function isFile($index)
- {
- if (isset($this->_list[$index])) {
- return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE);
- }
- return false;
- }
+ /**
+ * Checks whether a PPS is a Root PPS or not.
+ * If there is no PPS for the index given, it will return false.
+ *
+ * @access public
+ * @param integer $index The index for the PPS.
+ * @return bool true if it's a Root PPS, false otherwise
+ */
+ public function isRoot($index)
+ {
+ if (isset($this->_list[$index])) {
+ return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT);
+ }
+ return false;
+ }
- /**
- * Checks whether a PPS is a Root PPS or not.
- * If there is no PPS for the index given, it will return false.
- *
- * @access public
- * @param integer $index The index for the PPS.
- * @return bool true if it's a Root PPS, false otherwise
- */
- public function isRoot($index)
- {
- if (isset($this->_list[$index])) {
- return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_ROOT);
- }
- return false;
- }
+ /**
+ * Gives the total number of PPS's found in the OLE container.
+ *
+ * @access public
+ * @return integer The total number of PPS's found in the OLE container
+ */
+ public function ppsTotal()
+ {
+ return count($this->_list);
+ }
- /**
- * Gives the total number of PPS's found in the OLE container.
- *
- * @access public
- * @return integer The total number of PPS's found in the OLE container
- */
- public function ppsTotal()
- {
- return count($this->_list);
- }
+ /**
+ * Gets data from a PPS
+ * If there is no PPS for the index given, it will return an empty string.
+ *
+ * @access public
+ * @param integer $index The index for the PPS
+ * @param integer $position The position from which to start reading
+ * (relative to the PPS)
+ * @param integer $length The amount of bytes to read (at most)
+ * @return string The binary string containing the data requested
+ * @see OLE_PPS_File::getStream()
+ */
+ public function getData($index, $position, $length)
+ {
+ // if position is not valid return empty string
+ if (!isset($this->_list[$index]) || ($position >= $this->_list[$index]->Size) || ($position < 0)) {
+ return '';
+ }
+ $fh = $this->getStream($this->_list[$index]);
+ $data = stream_get_contents($fh, $length, $position);
+ fclose($fh);
+ return $data;
+ }
- /**
- * Gets data from a PPS
- * If there is no PPS for the index given, it will return an empty string.
- *
- * @access public
- * @param integer $index The index for the PPS
- * @param integer $position The position from which to start reading
- * (relative to the PPS)
- * @param integer $length The amount of bytes to read (at most)
- * @return string The binary string containing the data requested
- * @see OLE_PPS_File::getStream()
- */
- public function getData($index, $position, $length)
- {
- // if position is not valid return empty string
- if (!isset($this->_list[$index]) || ($position >= $this->_list[$index]->Size) || ($position < 0)) {
- return '';
- }
- $fh = $this->getStream($this->_list[$index]);
- $data = stream_get_contents($fh, $length, $position);
- fclose($fh);
- return $data;
- }
+ /**
+ * Gets the data length from a PPS
+ * If there is no PPS for the index given, it will return 0.
+ *
+ * @access public
+ * @param integer $index The index for the PPS
+ * @return integer The amount of bytes in data the PPS has
+ */
+ public function getDataLength($index)
+ {
+ if (isset($this->_list[$index])) {
+ return $this->_list[$index]->Size;
+ }
+ return 0;
+ }
- /**
- * Gets the data length from a PPS
- * If there is no PPS for the index given, it will return 0.
- *
- * @access public
- * @param integer $index The index for the PPS
- * @return integer The amount of bytes in data the PPS has
- */
- public function getDataLength($index)
- {
- if (isset($this->_list[$index])) {
- return $this->_list[$index]->Size;
- }
- return 0;
- }
+ /**
+ * Utility function to transform ASCII text to Unicode
+ *
+ * @access public
+ * @static
+ * @param string $ascii The ASCII string to transform
+ * @return string The string in Unicode
+ */
+ public static function Asc2Ucs($ascii)
+ {
+ $rawname = '';
+ for ($i = 0; $i < strlen($ascii); ++$i) {
+ $rawname .= $ascii{$i} . "\x00";
+ }
+ return $rawname;
+ }
- /**
- * Utility function to transform ASCII text to Unicode
- *
- * @access public
- * @static
- * @param string $ascii The ASCII string to transform
- * @return string The string in Unicode
- */
- public static function Asc2Ucs($ascii)
- {
- $rawname = '';
- for ($i = 0; $i < strlen($ascii); ++$i) {
- $rawname .= $ascii{$i} . "\x00";
- }
- return $rawname;
- }
+ /**
+ * Utility function
+ * Returns a string for the OLE container with the date given
+ *
+ * @access public
+ * @static
+ * @param integer $date A timestamp
+ * @return string The string for the OLE container
+ */
+ public static function LocalDate2OLE($date = null)
+ {
+ if (!isset($date)) {
+ return "\x00\x00\x00\x00\x00\x00\x00\x00";
+ }
- /**
- * Utility function
- * Returns a string for the OLE container with the date given
- *
- * @access public
- * @static
- * @param integer $date A timestamp
- * @return string The string for the OLE container
- */
- public static function LocalDate2OLE($date = null)
- {
- if (!isset($date)) {
- return "\x00\x00\x00\x00\x00\x00\x00\x00";
- }
+ // factor used for separating numbers into 4 bytes parts
+ $factor = pow(2, 32);
- // factor used for separating numbers into 4 bytes parts
- $factor = pow(2, 32);
+ // days from 1-1-1601 until the beggining of UNIX era
+ $days = 134774;
+ // calculate seconds
+ $big_date = $days*24*3600 + gmmktime(date("H", $date), date("i", $date), date("s", $date), date("m", $date), date("d", $date), date("Y", $date));
+ // multiply just to make MS happy
+ $big_date *= 10000000;
- // days from 1-1-1601 until the beggining of UNIX era
- $days = 134774;
- // calculate seconds
- $big_date = $days*24*3600 + gmmktime(date("H",$date),date("i",$date),date("s",$date),
- date("m",$date),date("d",$date),date("Y",$date));
- // multiply just to make MS happy
- $big_date *= 10000000;
+ $high_part = floor($big_date / $factor);
+ // lower 4 bytes
+ $low_part = floor((($big_date / $factor) - $high_part) * $factor);
- $high_part = floor($big_date / $factor);
- // lower 4 bytes
- $low_part = floor((($big_date / $factor) - $high_part) * $factor);
+ // Make HEX string
+ $res = '';
- // Make HEX string
- $res = '';
+ for ($i = 0; $i < 4; ++$i) {
+ $hex = $low_part % 0x100;
+ $res .= pack('c', $hex);
+ $low_part /= 0x100;
+ }
+ for ($i = 0; $i < 4; ++$i) {
+ $hex = $high_part % 0x100;
+ $res .= pack('c', $hex);
+ $high_part /= 0x100;
+ }
+ return $res;
+ }
- for ($i = 0; $i < 4; ++$i) {
- $hex = $low_part % 0x100;
- $res .= pack('c', $hex);
- $low_part /= 0x100;
- }
- for ($i = 0; $i < 4; ++$i) {
- $hex = $high_part % 0x100;
- $res .= pack('c', $hex);
- $high_part /= 0x100;
- }
- return $res;
- }
+ /**
+ * Returns a timestamp from an OLE container's date
+ *
+ * @access public
+ * @static
+ * @param integer $string A binary string with the encoded date
+ * @return string The timestamp corresponding to the string
+ */
+ public static function OLE2LocalDate($string)
+ {
+ if (strlen($string) != 8) {
+ return new PEAR_Error("Expecting 8 byte string");
+ }
- /**
- * Returns a timestamp from an OLE container's date
- *
- * @access public
- * @static
- * @param integer $string A binary string with the encoded date
- * @return string The timestamp corresponding to the string
- */
- public static function OLE2LocalDate($string)
- {
- if (strlen($string) != 8) {
- return new PEAR_Error("Expecting 8 byte string");
- }
+ // factor used for separating numbers into 4 bytes parts
+ $factor = pow(2, 32);
+ list(, $high_part) = unpack('V', substr($string, 4, 4));
+ list(, $low_part) = unpack('V', substr($string, 0, 4));
- // factor used for separating numbers into 4 bytes parts
- $factor = pow(2,32);
- list(, $high_part) = unpack('V', substr($string, 4, 4));
- list(, $low_part) = unpack('V', substr($string, 0, 4));
+ $big_date = ($high_part * $factor) + $low_part;
+ // translate to seconds
+ $big_date /= 10000000;
- $big_date = ($high_part * $factor) + $low_part;
- // translate to seconds
- $big_date /= 10000000;
+ // days from 1-1-1601 until the beggining of UNIX era
+ $days = 134774;
- // days from 1-1-1601 until the beggining of UNIX era
- $days = 134774;
-
- // translate to seconds from beggining of UNIX era
- $big_date -= $days * 24 * 3600;
- return floor($big_date);
- }
+ // translate to seconds from beggining of UNIX era
+ $big_date -= $days * 24 * 3600;
+ return floor($big_date);
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/ChainedBlockStream.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/ChainedBlockStream.php
index 0736fc23..84d2cc50 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/ChainedBlockStream.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/ChainedBlockStream.php
@@ -1,8 +1,9 @@
params);
- if (!isset($this->params['oleInstanceId'],
- $this->params['blockId'],
- $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) {
+ // 25 is length of "ole-chainedblockstream://"
+ parse_str(substr($path, 25), $this->params);
+ if (!isset($this->params['oleInstanceId'], $this->params['blockId'], $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) {
+ if ($options & STREAM_REPORT_ERRORS) {
+ trigger_error('OLE stream not found', E_USER_WARNING);
+ }
+ return false;
+ }
+ $this->ole = $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']];
- if ($options & STREAM_REPORT_ERRORS) {
- trigger_error('OLE stream not found', E_USER_WARNING);
- }
- return false;
- }
- $this->ole = $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']];
+ $blockId = $this->params['blockId'];
+ $this->data = '';
+ if (isset($this->params['size']) && $this->params['size'] < $this->ole->bigBlockThreshold && $blockId != $this->ole->root->_StartBlock) {
+ // Block id refers to small blocks
+ $rootPos = $this->ole->_getBlockOffset($this->ole->root->_StartBlock);
+ while ($blockId != -2) {
+ $pos = $rootPos + $blockId * $this->ole->bigBlockSize;
+ $blockId = $this->ole->sbat[$blockId];
+ fseek($this->ole->_file_handle, $pos);
+ $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize);
+ }
+ } else {
+ // Block id refers to big blocks
+ while ($blockId != -2) {
+ $pos = $this->ole->_getBlockOffset($blockId);
+ fseek($this->ole->_file_handle, $pos);
+ $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize);
+ $blockId = $this->ole->bbat[$blockId];
+ }
+ }
+ if (isset($this->params['size'])) {
+ $this->data = substr($this->data, 0, $this->params['size']);
+ }
- $blockId = $this->params['blockId'];
- $this->data = '';
- if (isset($this->params['size']) &&
- $this->params['size'] < $this->ole->bigBlockThreshold &&
- $blockId != $this->ole->root->_StartBlock) {
+ if ($options & STREAM_USE_PATH) {
+ $openedPath = $path;
+ }
- // Block id refers to small blocks
- $rootPos = $this->ole->_getBlockOffset($this->ole->root->_StartBlock);
- while ($blockId != -2) {
- $pos = $rootPos + $blockId * $this->ole->bigBlockSize;
- $blockId = $this->ole->sbat[$blockId];
- fseek($this->ole->_file_handle, $pos);
- $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize);
- }
- } else {
- // Block id refers to big blocks
- while ($blockId != -2) {
- $pos = $this->ole->_getBlockOffset($blockId);
- fseek($this->ole->_file_handle, $pos);
- $this->data .= fread($this->ole->_file_handle, $this->ole->bigBlockSize);
- $blockId = $this->ole->bbat[$blockId];
- }
- }
- if (isset($this->params['size'])) {
- $this->data = substr($this->data, 0, $this->params['size']);
- }
+ return true;
+ }
- if ($options & STREAM_USE_PATH) {
- $openedPath = $path;
- }
+ /**
+ * Implements support for fclose().
+ *
+ */
+ public function stream_close()
+ {
+ $this->ole = null;
+ unset($GLOBALS['_OLE_INSTANCES']);
+ }
- return true;
- }
+ /**
+ * Implements support for fread(), fgets() etc.
+ *
+ * @param int $count maximum number of bytes to read
+ * @return string
+ */
+ public function stream_read($count)
+ {
+ if ($this->stream_eof()) {
+ return false;
+ }
+ $s = substr($this->data, $this->pos, $count);
+ $this->pos += $count;
+ return $s;
+ }
- /**
- * Implements support for fclose().
- *
- */
- public function stream_close()
- {
- $this->ole = null;
- unset($GLOBALS['_OLE_INSTANCES']);
- }
+ /**
+ * Implements support for feof().
+ *
+ * @return bool TRUE if the file pointer is at EOF; otherwise FALSE
+ */
+ public function stream_eof()
+ {
+ return $this->pos >= strlen($this->data);
+ }
- /**
- * Implements support for fread(), fgets() etc.
- *
- * @param int $count maximum number of bytes to read
- * @return string
- */
- public function stream_read($count)
- {
- if ($this->stream_eof()) {
- return false;
- }
- $s = substr($this->data, $this->pos, $count);
- $this->pos += $count;
- return $s;
- }
+ /**
+ * Returns the position of the file pointer, i.e. its offset into the file
+ * stream. Implements support for ftell().
+ *
+ * @return int
+ */
+ public function stream_tell()
+ {
+ return $this->pos;
+ }
- /**
- * Implements support for feof().
- *
- * @return bool TRUE if the file pointer is at EOF; otherwise FALSE
- */
- public function stream_eof()
- {
- return $this->pos >= strlen($this->data);
- }
+ /**
+ * Implements support for fseek().
+ *
+ * @param int $offset byte offset
+ * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END
+ * @return bool
+ */
+ public function stream_seek($offset, $whence)
+ {
+ if ($whence == SEEK_SET && $offset >= 0) {
+ $this->pos = $offset;
+ } elseif ($whence == SEEK_CUR && -$offset <= $this->pos) {
+ $this->pos += $offset;
+ } elseif ($whence == SEEK_END && -$offset <= sizeof($this->data)) {
+ $this->pos = strlen($this->data) + $offset;
+ } else {
+ return false;
+ }
+ return true;
+ }
- /**
- * Returns the position of the file pointer, i.e. its offset into the file
- * stream. Implements support for ftell().
- *
- * @return int
- */
- public function stream_tell()
- {
- return $this->pos;
- }
+ /**
+ * Implements support for fstat(). Currently the only supported field is
+ * "size".
+ * @return array
+ */
+ public function stream_stat()
+ {
+ return array(
+ 'size' => strlen($this->data),
+ );
+ }
- /**
- * Implements support for fseek().
- *
- * @param int $offset byte offset
- * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END
- * @return bool
- */
- public function stream_seek($offset, $whence)
- {
- if ($whence == SEEK_SET && $offset >= 0) {
- $this->pos = $offset;
- } elseif ($whence == SEEK_CUR && -$offset <= $this->pos) {
- $this->pos += $offset;
- } elseif ($whence == SEEK_END && -$offset <= sizeof($this->data)) {
- $this->pos = strlen($this->data) + $offset;
- } else {
- return false;
- }
- return true;
- }
-
- /**
- * Implements support for fstat(). Currently the only supported field is
- * "size".
- * @return array
- */
- public function stream_stat()
- {
- return array(
- 'size' => strlen($this->data),
- );
- }
-
- // Methods used by stream_wrapper_register() that are not implemented:
- // bool stream_flush ( void )
- // int stream_write ( string data )
- // bool rename ( string path_from, string path_to )
- // bool mkdir ( string path, int mode, int options )
- // bool rmdir ( string path, int options )
- // bool dir_opendir ( string path, int options )
- // array url_stat ( string path, int flags )
- // string dir_readdir ( void )
- // bool dir_rewinddir ( void )
- // bool dir_closedir ( void )
+ // Methods used by stream_wrapper_register() that are not implemented:
+ // bool stream_flush ( void )
+ // int stream_write ( string data )
+ // bool rename ( string path_from, string path_to )
+ // bool mkdir ( string path, int mode, int options )
+ // bool rmdir ( string path, int options )
+ // bool dir_opendir ( string path, int options )
+ // array url_stat ( string path, int flags )
+ // string dir_readdir ( void )
+ // bool dir_rewinddir ( void )
+ // bool dir_closedir ( void )
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS.php
index 4db0ae4e..608a892a 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS.php
@@ -29,202 +29,202 @@
*/
class PHPExcel_Shared_OLE_PPS
{
- /**
- * The PPS index
- * @var integer
- */
- public $No;
+ /**
+ * The PPS index
+ * @var integer
+ */
+ public $No;
- /**
- * The PPS name (in Unicode)
- * @var string
- */
- public $Name;
+ /**
+ * The PPS name (in Unicode)
+ * @var string
+ */
+ public $Name;
- /**
- * The PPS type. Dir, Root or File
- * @var integer
- */
- public $Type;
+ /**
+ * The PPS type. Dir, Root or File
+ * @var integer
+ */
+ public $Type;
- /**
- * The index of the previous PPS
- * @var integer
- */
- public $PrevPps;
+ /**
+ * The index of the previous PPS
+ * @var integer
+ */
+ public $PrevPps;
- /**
- * The index of the next PPS
- * @var integer
- */
- public $NextPps;
+ /**
+ * The index of the next PPS
+ * @var integer
+ */
+ public $NextPps;
- /**
- * The index of it's first child if this is a Dir or Root PPS
- * @var integer
- */
- public $DirPps;
+ /**
+ * The index of it's first child if this is a Dir or Root PPS
+ * @var integer
+ */
+ public $DirPps;
- /**
- * A timestamp
- * @var integer
- */
- public $Time1st;
+ /**
+ * A timestamp
+ * @var integer
+ */
+ public $Time1st;
- /**
- * A timestamp
- * @var integer
- */
- public $Time2nd;
+ /**
+ * A timestamp
+ * @var integer
+ */
+ public $Time2nd;
- /**
- * Starting block (small or big) for this PPS's data inside the container
- * @var integer
- */
- public $_StartBlock;
+ /**
+ * Starting block (small or big) for this PPS's data inside the container
+ * @var integer
+ */
+ public $_StartBlock;
- /**
- * The size of the PPS's data (in bytes)
- * @var integer
- */
- public $Size;
+ /**
+ * The size of the PPS's data (in bytes)
+ * @var integer
+ */
+ public $Size;
- /**
- * The PPS's data (only used if it's not using a temporary file)
- * @var string
- */
- public $_data;
+ /**
+ * The PPS's data (only used if it's not using a temporary file)
+ * @var string
+ */
+ public $_data;
- /**
- * Array of child PPS's (only used by Root and Dir PPS's)
- * @var array
- */
- public $children = array();
+ /**
+ * Array of child PPS's (only used by Root and Dir PPS's)
+ * @var array
+ */
+ public $children = array();
- /**
- * Pointer to OLE container
- * @var OLE
- */
- public $ole;
+ /**
+ * Pointer to OLE container
+ * @var OLE
+ */
+ public $ole;
- /**
- * The constructor
- *
- * @access public
- * @param integer $No The PPS index
- * @param string $name The PPS name
- * @param integer $type The PPS type. Dir, Root or File
- * @param integer $prev The index of the previous PPS
- * @param integer $next The index of the next PPS
- * @param integer $dir The index of it's first child if this is a Dir or Root PPS
- * @param integer $time_1st A timestamp
- * @param integer $time_2nd A timestamp
- * @param string $data The (usually binary) source data of the PPS
- * @param array $children Array containing children PPS for this PPS
- */
- public function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
- {
- $this->No = $No;
- $this->Name = $name;
- $this->Type = $type;
- $this->PrevPps = $prev;
- $this->NextPps = $next;
- $this->DirPps = $dir;
- $this->Time1st = $time_1st;
- $this->Time2nd = $time_2nd;
- $this->_data = $data;
- $this->children = $children;
- if ($data != '') {
- $this->Size = strlen($data);
- } else {
- $this->Size = 0;
- }
- }
+ /**
+ * The constructor
+ *
+ * @access public
+ * @param integer $No The PPS index
+ * @param string $name The PPS name
+ * @param integer $type The PPS type. Dir, Root or File
+ * @param integer $prev The index of the previous PPS
+ * @param integer $next The index of the next PPS
+ * @param integer $dir The index of it's first child if this is a Dir or Root PPS
+ * @param integer $time_1st A timestamp
+ * @param integer $time_2nd A timestamp
+ * @param string $data The (usually binary) source data of the PPS
+ * @param array $children Array containing children PPS for this PPS
+ */
+ public function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
+ {
+ $this->No = $No;
+ $this->Name = $name;
+ $this->Type = $type;
+ $this->PrevPps = $prev;
+ $this->NextPps = $next;
+ $this->DirPps = $dir;
+ $this->Time1st = $time_1st;
+ $this->Time2nd = $time_2nd;
+ $this->_data = $data;
+ $this->children = $children;
+ if ($data != '') {
+ $this->Size = strlen($data);
+ } else {
+ $this->Size = 0;
+ }
+ }
- /**
- * Returns the amount of data saved for this PPS
- *
- * @access public
- * @return integer The amount of data (in bytes)
- */
- public function _DataLen()
- {
- if (!isset($this->_data)) {
- return 0;
- }
- //if (isset($this->_PPS_FILE)) {
- // fseek($this->_PPS_FILE, 0);
- // $stats = fstat($this->_PPS_FILE);
- // return $stats[7];
- //} else {
- return strlen($this->_data);
- //}
- }
+ /**
+ * Returns the amount of data saved for this PPS
+ *
+ * @access public
+ * @return integer The amount of data (in bytes)
+ */
+ public function _DataLen()
+ {
+ if (!isset($this->_data)) {
+ return 0;
+ }
+ //if (isset($this->_PPS_FILE)) {
+ // fseek($this->_PPS_FILE, 0);
+ // $stats = fstat($this->_PPS_FILE);
+ // return $stats[7];
+ //} else {
+ return strlen($this->_data);
+ //}
+ }
- /**
- * Returns a string with the PPS's WK (What is a WK?)
- *
- * @access public
- * @return string The binary string
- */
- public function _getPpsWk()
- {
- $ret = str_pad($this->Name,64,"\x00");
+ /**
+ * Returns a string with the PPS's WK (What is a WK?)
+ *
+ * @access public
+ * @return string The binary string
+ */
+ public function _getPpsWk()
+ {
+ $ret = str_pad($this->Name, 64, "\x00");
- $ret .= pack("v", strlen($this->Name) + 2) // 66
- . pack("c", $this->Type) // 67
- . pack("c", 0x00) //UK // 68
- . pack("V", $this->PrevPps) //Prev // 72
- . pack("V", $this->NextPps) //Next // 76
- . pack("V", $this->DirPps) //Dir // 80
- . "\x00\x09\x02\x00" // 84
- . "\x00\x00\x00\x00" // 88
- . "\xc0\x00\x00\x00" // 92
- . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root
- . "\x00\x00\x00\x00" // 100
- . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time1st) // 108
- . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time2nd) // 116
- . pack("V", isset($this->_StartBlock)?
- $this->_StartBlock:0) // 120
- . pack("V", $this->Size) // 124
- . pack("V", 0); // 128
- return $ret;
- }
+ $ret .= pack("v", strlen($this->Name) + 2) // 66
+ . pack("c", $this->Type) // 67
+ . pack("c", 0x00) //UK // 68
+ . pack("V", $this->PrevPps) //Prev // 72
+ . pack("V", $this->NextPps) //Next // 76
+ . pack("V", $this->DirPps) //Dir // 80
+ . "\x00\x09\x02\x00" // 84
+ . "\x00\x00\x00\x00" // 88
+ . "\xc0\x00\x00\x00" // 92
+ . "\x00\x00\x00\x46" // 96 // Seems to be ok only for Root
+ . "\x00\x00\x00\x00" // 100
+ . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time1st) // 108
+ . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time2nd) // 116
+ . pack("V", isset($this->_StartBlock)?
+ $this->_StartBlock:0) // 120
+ . pack("V", $this->Size) // 124
+ . pack("V", 0); // 128
+ return $ret;
+ }
- /**
- * Updates index and pointers to previous, next and children PPS's for this
- * PPS. I don't think it'll work with Dir PPS's.
- *
- * @access public
- * @param array &$raList Reference to the array of PPS's for the whole OLE
- * container
- * @return integer The index for this PPS
- */
- public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0)
- {
- if ( !is_array($to_save) || (empty($to_save)) ) {
- return 0xFFFFFFFF;
- } elseif( count($to_save) == 1 ) {
- $cnt = count($raList);
- // If the first entry, it's the root... Don't clone it!
- $raList[$cnt] = ( $depth == 0 ) ? $to_save[0] : clone $to_save[0];
- $raList[$cnt]->No = $cnt;
- $raList[$cnt]->PrevPps = 0xFFFFFFFF;
- $raList[$cnt]->NextPps = 0xFFFFFFFF;
- $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
- } else {
- $iPos = floor(count($to_save) / 2);
- $aPrev = array_slice($to_save, 0, $iPos);
- $aNext = array_slice($to_save, $iPos + 1);
- $cnt = count($raList);
- // If the first entry, it's the root... Don't clone it!
- $raList[$cnt] = ( $depth == 0 ) ? $to_save[$iPos] : clone $to_save[$iPos];
- $raList[$cnt]->No = $cnt;
- $raList[$cnt]->PrevPps = self::_savePpsSetPnt($raList, $aPrev, $depth++);
- $raList[$cnt]->NextPps = self::_savePpsSetPnt($raList, $aNext, $depth++);
- $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
+ /**
+ * Updates index and pointers to previous, next and children PPS's for this
+ * PPS. I don't think it'll work with Dir PPS's.
+ *
+ * @access public
+ * @param array &$raList Reference to the array of PPS's for the whole OLE
+ * container
+ * @return integer The index for this PPS
+ */
+ public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0)
+ {
+ if (!is_array($to_save) || (empty($to_save))) {
+ return 0xFFFFFFFF;
+ } elseif (count($to_save) == 1) {
+ $cnt = count($raList);
+ // If the first entry, it's the root... Don't clone it!
+ $raList[$cnt] = ( $depth == 0 ) ? $to_save[0] : clone $to_save[0];
+ $raList[$cnt]->No = $cnt;
+ $raList[$cnt]->PrevPps = 0xFFFFFFFF;
+ $raList[$cnt]->NextPps = 0xFFFFFFFF;
+ $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
+ } else {
+ $iPos = floor(count($to_save) / 2);
+ $aPrev = array_slice($to_save, 0, $iPos);
+ $aNext = array_slice($to_save, $iPos + 1);
+ $cnt = count($raList);
+ // If the first entry, it's the root... Don't clone it!
+ $raList[$cnt] = ( $depth == 0 ) ? $to_save[$iPos] : clone $to_save[$iPos];
+ $raList[$cnt]->No = $cnt;
+ $raList[$cnt]->PrevPps = self::_savePpsSetPnt($raList, $aPrev, $depth++);
+ $raList[$cnt]->NextPps = self::_savePpsSetPnt($raList, $aNext, $depth++);
+ $raList[$cnt]->DirPps = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
- }
- return $cnt;
- }
+ }
+ return $cnt;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php
index f061f568..1ca337cb 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/File.php
@@ -28,57 +28,47 @@
* @package PHPExcel_Shared_OLE
*/
class PHPExcel_Shared_OLE_PPS_File extends PHPExcel_Shared_OLE_PPS
- {
- /**
- * The constructor
- *
- * @access public
- * @param string $name The name of the file (in Unicode)
- * @see OLE::Asc2Ucs()
- */
- public function __construct($name)
- {
- parent::__construct(
- null,
- $name,
- PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE,
- null,
- null,
- null,
- null,
- null,
- '',
- array());
- }
+{
+ /**
+ * The constructor
+ *
+ * @access public
+ * @param string $name The name of the file (in Unicode)
+ * @see OLE::Asc2Ucs()
+ */
+ public function __construct($name)
+ {
+ parent::__construct(null, $name, PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE, null, null, null, null, null, '', array());
+ }
- /**
- * Initialization method. Has to be called right after OLE_PPS_File().
- *
- * @access public
- * @return mixed true on success
- */
- public function init()
- {
- return true;
- }
+ /**
+ * Initialization method. Has to be called right after OLE_PPS_File().
+ *
+ * @access public
+ * @return mixed true on success
+ */
+ public function init()
+ {
+ return true;
+ }
- /**
- * Append data to PPS
- *
- * @access public
- * @param string $data The data to append
- */
- public function append($data)
- {
- $this->_data .= $data;
- }
+ /**
+ * Append data to PPS
+ *
+ * @access public
+ * @param string $data The data to append
+ */
+ public function append($data)
+ {
+ $this->_data .= $data;
+ }
- /**
- * Returns a stream for reading this file using fread() etc.
- * @return resource a read-only stream
- */
- public function getStream()
- {
- $this->ole->getStream($this);
- }
+ /**
+ * Returns a stream for reading this file using fread() etc.
+ * @return resource a read-only stream
+ */
+ public function getStream()
+ {
+ $this->ole->getStream($this);
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
index eb929d20..5d4052f0 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
@@ -28,440 +28,435 @@
* @package PHPExcel_Shared_OLE
*/
class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
- {
+{
- /**
- * Directory for temporary files
- * @var string
- */
- protected $_tmp_dir = NULL;
+ /**
+ * Directory for temporary files
+ * @var string
+ */
+ protected $tempDirectory = null;
- /**
- * @param integer $time_1st A timestamp
- * @param integer $time_2nd A timestamp
- */
- public function __construct($time_1st, $time_2nd, $raChild)
- {
- $this->_tempDir = PHPExcel_Shared_File::sys_get_temp_dir();
+ /**
+ * @param integer $time_1st A timestamp
+ * @param integer $time_2nd A timestamp
+ */
+ public function __construct($time_1st, $time_2nd, $raChild)
+ {
+ $this->_tempDir = PHPExcel_Shared_File::sys_get_temp_dir();
- parent::__construct(
- null,
- PHPExcel_Shared_OLE::Asc2Ucs('Root Entry'),
- PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT,
- null,
- null,
- null,
- $time_1st,
- $time_2nd,
- null,
- $raChild);
- }
+ parent::__construct(null, PHPExcel_Shared_OLE::Asc2Ucs('Root Entry'), PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT, null, null, null, $time_1st, $time_2nd, null, $raChild);
+ }
- /**
- * Method for saving the whole OLE container (including files).
- * In fact, if called with an empty argument (or '-'), it saves to a
- * temporary file and then outputs it's contents to stdout.
- * If a resource pointer to a stream created by fopen() is passed
- * it will be used, but you have to close such stream by yourself.
- *
- * @param string|resource $filename The name of the file or stream where to save the OLE container.
- * @access public
- * @return mixed true on success
- */
- public function save($filename)
- {
- // Initial Setting for saving
- $this->_BIG_BLOCK_SIZE = pow(2,
- ((isset($this->_BIG_BLOCK_SIZE))? self::_adjust2($this->_BIG_BLOCK_SIZE) : 9));
- $this->_SMALL_BLOCK_SIZE= pow(2,
- ((isset($this->_SMALL_BLOCK_SIZE))? self::_adjust2($this->_SMALL_BLOCK_SIZE): 6));
+ /**
+ * Method for saving the whole OLE container (including files).
+ * In fact, if called with an empty argument (or '-'), it saves to a
+ * temporary file and then outputs it's contents to stdout.
+ * If a resource pointer to a stream created by fopen() is passed
+ * it will be used, but you have to close such stream by yourself.
+ *
+ * @param string|resource $filename The name of the file or stream where to save the OLE container.
+ * @access public
+ * @return mixed true on success
+ */
+ public function save($filename)
+ {
+ // Initial Setting for saving
+ $this->_BIG_BLOCK_SIZE = pow(
+ 2,
+ (isset($this->_BIG_BLOCK_SIZE))? self::adjust2($this->_BIG_BLOCK_SIZE) : 9
+ );
+ $this->_SMALL_BLOCK_SIZE= pow(
+ 2,
+ (isset($this->_SMALL_BLOCK_SIZE))? self::adjust2($this->_SMALL_BLOCK_SIZE) : 6
+ );
- if (is_resource($filename)) {
- $this->_FILEH_ = $filename;
- } else if ($filename == '-' || $filename == '') {
- if ($this->_tmp_dir === NULL)
- $this->_tmp_dir = PHPExcel_Shared_File::sys_get_temp_dir();
- $this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_Root");
- $this->_FILEH_ = fopen($this->_tmp_filename,"w+b");
- if ($this->_FILEH_ == false) {
- throw new PHPExcel_Writer_Exception("Can't create temporary file.");
- }
- } else {
- $this->_FILEH_ = fopen($filename, "wb");
- }
- if ($this->_FILEH_ == false) {
- throw new PHPExcel_Writer_Exception("Can't open $filename. It may be in use or protected.");
- }
- // Make an array of PPS's (for Save)
- $aList = array();
- PHPExcel_Shared_OLE_PPS::_savePpsSetPnt($aList, array($this));
- // calculate values for header
- list($iSBDcnt, $iBBcnt, $iPPScnt) = $this->_calcSize($aList); //, $rhInfo);
- // Save Header
- $this->_saveHeader($iSBDcnt, $iBBcnt, $iPPScnt);
+ if (is_resource($filename)) {
+ $this->_FILEH_ = $filename;
+ } elseif ($filename == '-' || $filename == '') {
+ if ($this->tempDirectory === null) {
+ $this->tempDirectory = PHPExcel_Shared_File::sys_get_temp_dir();
+ }
+ $this->_tmp_filename = tempnam($this->tempDirectory, "OLE_PPS_Root");
+ $this->_FILEH_ = fopen($this->_tmp_filename, "w+b");
+ if ($this->_FILEH_ == false) {
+ throw new PHPExcel_Writer_Exception("Can't create temporary file.");
+ }
+ } else {
+ $this->_FILEH_ = fopen($filename, "wb");
+ }
+ if ($this->_FILEH_ == false) {
+ throw new PHPExcel_Writer_Exception("Can't open $filename. It may be in use or protected.");
+ }
+ // Make an array of PPS's (for Save)
+ $aList = array();
+ PHPExcel_Shared_OLE_PPS::_savePpsSetPnt($aList, array($this));
+ // calculate values for header
+ list($iSBDcnt, $iBBcnt, $iPPScnt) = $this->_calcSize($aList); //, $rhInfo);
+ // Save Header
+ $this->_saveHeader($iSBDcnt, $iBBcnt, $iPPScnt);
- // Make Small Data string (write SBD)
- $this->_data = $this->_makeSmallData($aList);
+ // Make Small Data string (write SBD)
+ $this->_data = $this->_makeSmallData($aList);
- // Write BB
- $this->_saveBigData($iSBDcnt, $aList);
- // Write PPS
- $this->_savePps($aList);
- // Write Big Block Depot and BDList and Adding Header informations
- $this->_saveBbd($iSBDcnt, $iBBcnt, $iPPScnt);
+ // Write BB
+ $this->_saveBigData($iSBDcnt, $aList);
+ // Write PPS
+ $this->_savePps($aList);
+ // Write Big Block Depot and BDList and Adding Header informations
+ $this->_saveBbd($iSBDcnt, $iBBcnt, $iPPScnt);
- if (!is_resource($filename)) {
- fclose($this->_FILEH_);
- }
+ if (!is_resource($filename)) {
+ fclose($this->_FILEH_);
+ }
- return true;
- }
+ return true;
+ }
- /**
- * Calculate some numbers
- *
- * @access public
- * @param array $raList Reference to an array of PPS's
- * @return array The array of numbers
- */
- public function _calcSize(&$raList)
- {
- // Calculate Basic Setting
- list($iSBDcnt, $iBBcnt, $iPPScnt) = array(0,0,0);
- $iSmallLen = 0;
- $iSBcnt = 0;
- $iCount = count($raList);
- for ($i = 0; $i < $iCount; ++$i) {
- if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
- $raList[$i]->Size = $raList[$i]->_DataLen();
- if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
- $iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
- + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
- } else {
- $iBBcnt += (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
- (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
- }
- }
- }
- $iSmallLen = $iSBcnt * $this->_SMALL_BLOCK_SIZE;
- $iSlCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE);
- $iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt)? 1:0);
- $iBBcnt += (floor($iSmallLen / $this->_BIG_BLOCK_SIZE) +
- (( $iSmallLen % $this->_BIG_BLOCK_SIZE)? 1: 0));
- $iCnt = count($raList);
- $iBdCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE;
- $iPPScnt = (floor($iCnt/$iBdCnt) + (($iCnt % $iBdCnt)? 1: 0));
+ /**
+ * Calculate some numbers
+ *
+ * @access public
+ * @param array $raList Reference to an array of PPS's
+ * @return array The array of numbers
+ */
+ public function _calcSize(&$raList)
+ {
+ // Calculate Basic Setting
+ list($iSBDcnt, $iBBcnt, $iPPScnt) = array(0,0,0);
+ $iSmallLen = 0;
+ $iSBcnt = 0;
+ $iCount = count($raList);
+ for ($i = 0; $i < $iCount; ++$i) {
+ if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
+ $raList[$i]->Size = $raList[$i]->_DataLen();
+ if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
+ $iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
+ + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
+ } else {
+ $iBBcnt += (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
+ (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
+ }
+ }
+ }
+ $iSmallLen = $iSBcnt * $this->_SMALL_BLOCK_SIZE;
+ $iSlCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE);
+ $iSBDcnt = floor($iSBcnt / $iSlCnt) + (($iSBcnt % $iSlCnt)? 1:0);
+ $iBBcnt += (floor($iSmallLen / $this->_BIG_BLOCK_SIZE) +
+ (( $iSmallLen % $this->_BIG_BLOCK_SIZE)? 1: 0));
+ $iCnt = count($raList);
+ $iBdCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE;
+ $iPPScnt = (floor($iCnt/$iBdCnt) + (($iCnt % $iBdCnt)? 1: 0));
- return array($iSBDcnt, $iBBcnt, $iPPScnt);
- }
+ return array($iSBDcnt, $iBBcnt, $iPPScnt);
+ }
- /**
- * Helper function for caculating a magic value for block sizes
- *
- * @access public
- * @param integer $i2 The argument
- * @see save()
- * @return integer
- */
- private static function _adjust2($i2)
- {
- $iWk = log($i2)/log(2);
- return ($iWk > floor($iWk))? floor($iWk)+1:$iWk;
- }
+ /**
+ * Helper function for caculating a magic value for block sizes
+ *
+ * @access public
+ * @param integer $i2 The argument
+ * @see save()
+ * @return integer
+ */
+ private static function adjust2($i2)
+ {
+ $iWk = log($i2)/log(2);
+ return ($iWk > floor($iWk))? floor($iWk)+1:$iWk;
+ }
- /**
- * Save OLE header
- *
- * @access public
- * @param integer $iSBDcnt
- * @param integer $iBBcnt
- * @param integer $iPPScnt
- */
- public function _saveHeader($iSBDcnt, $iBBcnt, $iPPScnt)
- {
- $FILE = $this->_FILEH_;
+ /**
+ * Save OLE header
+ *
+ * @access public
+ * @param integer $iSBDcnt
+ * @param integer $iBBcnt
+ * @param integer $iPPScnt
+ */
+ public function _saveHeader($iSBDcnt, $iBBcnt, $iPPScnt)
+ {
+ $FILE = $this->_FILEH_;
- // Calculate Basic Setting
- $iBlCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
- $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
+ // Calculate Basic Setting
+ $iBlCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
+ $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
- $iBdExL = 0;
- $iAll = $iBBcnt + $iPPScnt + $iSBDcnt;
- $iAllW = $iAll;
- $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
- $iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0);
+ $iBdExL = 0;
+ $iAll = $iBBcnt + $iPPScnt + $iSBDcnt;
+ $iAllW = $iAll;
+ $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
+ $iBdCnt = floor(($iAll + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0);
- // Calculate BD count
- if ($iBdCnt > $i1stBdL) {
- while (1) {
- ++$iBdExL;
- ++$iAllW;
- $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
- $iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0);
- if ($iBdCnt <= ($iBdExL*$iBlCnt+ $i1stBdL)) {
- break;
- }
- }
- }
+ // Calculate BD count
+ if ($iBdCnt > $i1stBdL) {
+ while (1) {
+ ++$iBdExL;
+ ++$iAllW;
+ $iBdCntW = floor($iAllW / $iBlCnt) + (($iAllW % $iBlCnt)? 1: 0);
+ $iBdCnt = floor(($iAllW + $iBdCntW) / $iBlCnt) + ((($iAllW+$iBdCntW) % $iBlCnt)? 1: 0);
+ if ($iBdCnt <= ($iBdExL*$iBlCnt+ $i1stBdL)) {
+ break;
+ }
+ }
+ }
- // Save Header
- fwrite($FILE,
- "\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1"
- . "\x00\x00\x00\x00"
- . "\x00\x00\x00\x00"
- . "\x00\x00\x00\x00"
- . "\x00\x00\x00\x00"
- . pack("v", 0x3b)
- . pack("v", 0x03)
- . pack("v", -2)
- . pack("v", 9)
- . pack("v", 6)
- . pack("v", 0)
- . "\x00\x00\x00\x00"
- . "\x00\x00\x00\x00"
- . pack("V", $iBdCnt)
- . pack("V", $iBBcnt+$iSBDcnt) //ROOT START
- . pack("V", 0)
- . pack("V", 0x1000)
- . pack("V", $iSBDcnt ? 0 : -2) //Small Block Depot
- . pack("V", $iSBDcnt)
- );
- // Extra BDList Start, Count
- if ($iBdCnt < $i1stBdL) {
- fwrite($FILE,
- pack("V", -2) // Extra BDList Start
- . pack("V", 0) // Extra BDList Count
- );
- } else {
- fwrite($FILE, pack("V", $iAll+$iBdCnt) . pack("V", $iBdExL));
- }
+ // Save Header
+ fwrite(
+ $FILE,
+ "\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1"
+ . "\x00\x00\x00\x00"
+ . "\x00\x00\x00\x00"
+ . "\x00\x00\x00\x00"
+ . "\x00\x00\x00\x00"
+ . pack("v", 0x3b)
+ . pack("v", 0x03)
+ . pack("v", -2)
+ . pack("v", 9)
+ . pack("v", 6)
+ . pack("v", 0)
+ . "\x00\x00\x00\x00"
+ . "\x00\x00\x00\x00"
+ . pack("V", $iBdCnt)
+ . pack("V", $iBBcnt+$iSBDcnt) //ROOT START
+ . pack("V", 0)
+ . pack("V", 0x1000)
+ . pack("V", $iSBDcnt ? 0 : -2) //Small Block Depot
+ . pack("V", $iSBDcnt)
+ );
+ // Extra BDList Start, Count
+ if ($iBdCnt < $i1stBdL) {
+ fwrite(
+ $FILE,
+ pack("V", -2) // Extra BDList Start
+ . pack("V", 0)// Extra BDList Count
+ );
+ } else {
+ fwrite($FILE, pack("V", $iAll+$iBdCnt) . pack("V", $iBdExL));
+ }
- // BDList
- for ($i = 0; $i < $i1stBdL && $i < $iBdCnt; ++$i) {
- fwrite($FILE, pack("V", $iAll+$i));
- }
- if ($i < $i1stBdL) {
- $jB = $i1stBdL - $i;
- for ($j = 0; $j < $jB; ++$j) {
- fwrite($FILE, (pack("V", -1)));
- }
- }
- }
+ // BDList
+ for ($i = 0; $i < $i1stBdL && $i < $iBdCnt; ++$i) {
+ fwrite($FILE, pack("V", $iAll+$i));
+ }
+ if ($i < $i1stBdL) {
+ $jB = $i1stBdL - $i;
+ for ($j = 0; $j < $jB; ++$j) {
+ fwrite($FILE, (pack("V", -1)));
+ }
+ }
+ }
- /**
- * Saving big data (PPS's with data bigger than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL)
- *
- * @access public
- * @param integer $iStBlk
- * @param array &$raList Reference to array of PPS's
- */
- public function _saveBigData($iStBlk, &$raList)
- {
- $FILE = $this->_FILEH_;
+ /**
+ * Saving big data (PPS's with data bigger than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL)
+ *
+ * @access public
+ * @param integer $iStBlk
+ * @param array &$raList Reference to array of PPS's
+ */
+ public function _saveBigData($iStBlk, &$raList)
+ {
+ $FILE = $this->_FILEH_;
- // cycle through PPS's
- $iCount = count($raList);
- for ($i = 0; $i < $iCount; ++$i) {
- if ($raList[$i]->Type != PHPExcel_Shared_OLE::OLE_PPS_TYPE_DIR) {
- $raList[$i]->Size = $raList[$i]->_DataLen();
- if (($raList[$i]->Size >= PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) ||
- (($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT) && isset($raList[$i]->_data)))
- {
- // Write Data
- //if (isset($raList[$i]->_PPS_FILE)) {
- // $iLen = 0;
- // fseek($raList[$i]->_PPS_FILE, 0); // To The Top
- // while($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) {
- // $iLen += strlen($sBuff);
- // fwrite($FILE, $sBuff);
- // }
- //} else {
- fwrite($FILE, $raList[$i]->_data);
- //}
+ // cycle through PPS's
+ $iCount = count($raList);
+ for ($i = 0; $i < $iCount; ++$i) {
+ if ($raList[$i]->Type != PHPExcel_Shared_OLE::OLE_PPS_TYPE_DIR) {
+ $raList[$i]->Size = $raList[$i]->_DataLen();
+ if (($raList[$i]->Size >= PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) || (($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_ROOT) && isset($raList[$i]->_data))) {
+ // Write Data
+ //if (isset($raList[$i]->_PPS_FILE)) {
+ // $iLen = 0;
+ // fseek($raList[$i]->_PPS_FILE, 0); // To The Top
+ // while ($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) {
+ // $iLen += strlen($sBuff);
+ // fwrite($FILE, $sBuff);
+ // }
+ //} else {
+ fwrite($FILE, $raList[$i]->_data);
+ //}
- if ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) {
- fwrite($FILE, str_repeat("\x00", $this->_BIG_BLOCK_SIZE - ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)));
- }
- // Set For PPS
- $raList[$i]->_StartBlock = $iStBlk;
- $iStBlk +=
- (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
- (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
- }
- // Close file for each PPS, and unlink it
- //if (isset($raList[$i]->_PPS_FILE)) {
- // fclose($raList[$i]->_PPS_FILE);
- // $raList[$i]->_PPS_FILE = null;
- // unlink($raList[$i]->_tmp_filename);
- //}
- }
- }
- }
+ if ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE) {
+ fwrite($FILE, str_repeat("\x00", $this->_BIG_BLOCK_SIZE - ($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)));
+ }
+ // Set For PPS
+ $raList[$i]->_StartBlock = $iStBlk;
+ $iStBlk +=
+ (floor($raList[$i]->Size / $this->_BIG_BLOCK_SIZE) +
+ (($raList[$i]->Size % $this->_BIG_BLOCK_SIZE)? 1: 0));
+ }
+ // Close file for each PPS, and unlink it
+ //if (isset($raList[$i]->_PPS_FILE)) {
+ // fclose($raList[$i]->_PPS_FILE);
+ // $raList[$i]->_PPS_FILE = null;
+ // unlink($raList[$i]->_tmp_filename);
+ //}
+ }
+ }
+ }
- /**
- * get small data (PPS's with data smaller than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL)
- *
- * @access public
- * @param array &$raList Reference to array of PPS's
- */
- public function _makeSmallData(&$raList)
- {
- $sRes = '';
- $FILE = $this->_FILEH_;
- $iSmBlk = 0;
+ /**
+ * get small data (PPS's with data smaller than PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL)
+ *
+ * @access public
+ * @param array &$raList Reference to array of PPS's
+ */
+ public function _makeSmallData(&$raList)
+ {
+ $sRes = '';
+ $FILE = $this->_FILEH_;
+ $iSmBlk = 0;
- $iCount = count($raList);
- for ($i = 0; $i < $iCount; ++$i) {
- // Make SBD, small data string
- if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
- if ($raList[$i]->Size <= 0) {
- continue;
- }
- if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
- $iSmbCnt = floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
- + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
- // Add to SBD
- $jB = $iSmbCnt - 1;
- for ($j = 0; $j < $jB; ++$j) {
- fwrite($FILE, pack("V", $j+$iSmBlk+1));
- }
- fwrite($FILE, pack("V", -2));
+ $iCount = count($raList);
+ for ($i = 0; $i < $iCount; ++$i) {
+ // Make SBD, small data string
+ if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
+ if ($raList[$i]->Size <= 0) {
+ continue;
+ }
+ if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
+ $iSmbCnt = floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
+ + (($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE)? 1: 0);
+ // Add to SBD
+ $jB = $iSmbCnt - 1;
+ for ($j = 0; $j < $jB; ++$j) {
+ fwrite($FILE, pack("V", $j+$iSmBlk+1));
+ }
+ fwrite($FILE, pack("V", -2));
- //// Add to Data String(this will be written for RootEntry)
- //if ($raList[$i]->_PPS_FILE) {
- // fseek($raList[$i]->_PPS_FILE, 0); // To The Top
- // while ($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) {
- // $sRes .= $sBuff;
- // }
- //} else {
- $sRes .= $raList[$i]->_data;
- //}
- if ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) {
- $sRes .= str_repeat("\x00",$this->_SMALL_BLOCK_SIZE - ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE));
- }
- // Set for PPS
- $raList[$i]->_StartBlock = $iSmBlk;
- $iSmBlk += $iSmbCnt;
- }
- }
- }
- $iSbCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE);
- if ($iSmBlk % $iSbCnt) {
- $iB = $iSbCnt - ($iSmBlk % $iSbCnt);
- for ($i = 0; $i < $iB; ++$i) {
- fwrite($FILE, pack("V", -1));
- }
- }
- return $sRes;
- }
+ //// Add to Data String(this will be written for RootEntry)
+ //if ($raList[$i]->_PPS_FILE) {
+ // fseek($raList[$i]->_PPS_FILE, 0); // To The Top
+ // while ($sBuff = fread($raList[$i]->_PPS_FILE, 4096)) {
+ // $sRes .= $sBuff;
+ // }
+ //} else {
+ $sRes .= $raList[$i]->_data;
+ //}
+ if ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE) {
+ $sRes .= str_repeat("\x00", $this->_SMALL_BLOCK_SIZE - ($raList[$i]->Size % $this->_SMALL_BLOCK_SIZE));
+ }
+ // Set for PPS
+ $raList[$i]->_StartBlock = $iSmBlk;
+ $iSmBlk += $iSmbCnt;
+ }
+ }
+ }
+ $iSbCnt = floor($this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE);
+ if ($iSmBlk % $iSbCnt) {
+ $iB = $iSbCnt - ($iSmBlk % $iSbCnt);
+ for ($i = 0; $i < $iB; ++$i) {
+ fwrite($FILE, pack("V", -1));
+ }
+ }
+ return $sRes;
+ }
- /**
- * Saves all the PPS's WKs
- *
- * @access public
- * @param array $raList Reference to an array with all PPS's
- */
- public function _savePps(&$raList)
- {
- // Save each PPS WK
- $iC = count($raList);
- for ($i = 0; $i < $iC; ++$i) {
- fwrite($this->_FILEH_, $raList[$i]->_getPpsWk());
- }
- // Adjust for Block
- $iCnt = count($raList);
- $iBCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE;
- if ($iCnt % $iBCnt) {
- fwrite($this->_FILEH_, str_repeat("\x00",($iBCnt - ($iCnt % $iBCnt)) * PHPExcel_Shared_OLE::OLE_PPS_SIZE));
- }
- }
+ /**
+ * Saves all the PPS's WKs
+ *
+ * @access public
+ * @param array $raList Reference to an array with all PPS's
+ */
+ public function _savePps(&$raList)
+ {
+ // Save each PPS WK
+ $iC = count($raList);
+ for ($i = 0; $i < $iC; ++$i) {
+ fwrite($this->_FILEH_, $raList[$i]->_getPpsWk());
+ }
+ // Adjust for Block
+ $iCnt = count($raList);
+ $iBCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_PPS_SIZE;
+ if ($iCnt % $iBCnt) {
+ fwrite($this->_FILEH_, str_repeat("\x00", ($iBCnt - ($iCnt % $iBCnt)) * PHPExcel_Shared_OLE::OLE_PPS_SIZE));
+ }
+ }
- /**
- * Saving Big Block Depot
- *
- * @access public
- * @param integer $iSbdSize
- * @param integer $iBsize
- * @param integer $iPpsCnt
- */
- public function _saveBbd($iSbdSize, $iBsize, $iPpsCnt)
- {
- $FILE = $this->_FILEH_;
- // Calculate Basic Setting
- $iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
- $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
+ /**
+ * Saving Big Block Depot
+ *
+ * @access public
+ * @param integer $iSbdSize
+ * @param integer $iBsize
+ * @param integer $iPpsCnt
+ */
+ public function _saveBbd($iSbdSize, $iBsize, $iPpsCnt)
+ {
+ $FILE = $this->_FILEH_;
+ // Calculate Basic Setting
+ $iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
+ $i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
- $iBdExL = 0;
- $iAll = $iBsize + $iPpsCnt + $iSbdSize;
- $iAllW = $iAll;
- $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
- $iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0);
- // Calculate BD count
- if ($iBdCnt >$i1stBdL) {
- while (1) {
- ++$iBdExL;
- ++$iAllW;
- $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
- $iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0);
- if ($iBdCnt <= ($iBdExL*$iBbCnt+ $i1stBdL)) {
- break;
- }
- }
- }
+ $iBdExL = 0;
+ $iAll = $iBsize + $iPpsCnt + $iSbdSize;
+ $iAllW = $iAll;
+ $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
+ $iBdCnt = floor(($iAll + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0);
+ // Calculate BD count
+ if ($iBdCnt >$i1stBdL) {
+ while (1) {
+ ++$iBdExL;
+ ++$iAllW;
+ $iBdCntW = floor($iAllW / $iBbCnt) + (($iAllW % $iBbCnt)? 1: 0);
+ $iBdCnt = floor(($iAllW + $iBdCntW) / $iBbCnt) + ((($iAllW+$iBdCntW) % $iBbCnt)? 1: 0);
+ if ($iBdCnt <= ($iBdExL*$iBbCnt+ $i1stBdL)) {
+ break;
+ }
+ }
+ }
- // Making BD
- // Set for SBD
- if ($iSbdSize > 0) {
- for ($i = 0; $i < ($iSbdSize - 1); ++$i) {
- fwrite($FILE, pack("V", $i+1));
- }
- fwrite($FILE, pack("V", -2));
- }
- // Set for B
- for ($i = 0; $i < ($iBsize - 1); ++$i) {
- fwrite($FILE, pack("V", $i+$iSbdSize+1));
- }
- fwrite($FILE, pack("V", -2));
+ // Making BD
+ // Set for SBD
+ if ($iSbdSize > 0) {
+ for ($i = 0; $i < ($iSbdSize - 1); ++$i) {
+ fwrite($FILE, pack("V", $i+1));
+ }
+ fwrite($FILE, pack("V", -2));
+ }
+ // Set for B
+ for ($i = 0; $i < ($iBsize - 1); ++$i) {
+ fwrite($FILE, pack("V", $i+$iSbdSize+1));
+ }
+ fwrite($FILE, pack("V", -2));
- // Set for PPS
- for ($i = 0; $i < ($iPpsCnt - 1); ++$i) {
- fwrite($FILE, pack("V", $i+$iSbdSize+$iBsize+1));
- }
- fwrite($FILE, pack("V", -2));
- // Set for BBD itself ( 0xFFFFFFFD : BBD)
- for ($i = 0; $i < $iBdCnt; ++$i) {
- fwrite($FILE, pack("V", 0xFFFFFFFD));
- }
- // Set for ExtraBDList
- for ($i = 0; $i < $iBdExL; ++$i) {
- fwrite($FILE, pack("V", 0xFFFFFFFC));
- }
- // Adjust for Block
- if (($iAllW + $iBdCnt) % $iBbCnt) {
- $iBlock = ($iBbCnt - (($iAllW + $iBdCnt) % $iBbCnt));
- for ($i = 0; $i < $iBlock; ++$i) {
- fwrite($FILE, pack("V", -1));
- }
- }
- // Extra BDList
- if ($iBdCnt > $i1stBdL) {
- $iN=0;
- $iNb=0;
- for ($i = $i1stBdL;$i < $iBdCnt; $i++, ++$iN) {
- if ($iN >= ($iBbCnt - 1)) {
- $iN = 0;
- ++$iNb;
- fwrite($FILE, pack("V", $iAll+$iBdCnt+$iNb));
- }
- fwrite($FILE, pack("V", $iBsize+$iSbdSize+$iPpsCnt+$i));
- }
- if (($iBdCnt-$i1stBdL) % ($iBbCnt-1)) {
- $iB = ($iBbCnt - 1) - (($iBdCnt - $i1stBdL) % ($iBbCnt - 1));
- for ($i = 0; $i < $iB; ++$i) {
- fwrite($FILE, pack("V", -1));
- }
- }
- fwrite($FILE, pack("V", -2));
- }
- }
+ // Set for PPS
+ for ($i = 0; $i < ($iPpsCnt - 1); ++$i) {
+ fwrite($FILE, pack("V", $i+$iSbdSize+$iBsize+1));
+ }
+ fwrite($FILE, pack("V", -2));
+ // Set for BBD itself ( 0xFFFFFFFD : BBD)
+ for ($i = 0; $i < $iBdCnt; ++$i) {
+ fwrite($FILE, pack("V", 0xFFFFFFFD));
+ }
+ // Set for ExtraBDList
+ for ($i = 0; $i < $iBdExL; ++$i) {
+ fwrite($FILE, pack("V", 0xFFFFFFFC));
+ }
+ // Adjust for Block
+ if (($iAllW + $iBdCnt) % $iBbCnt) {
+ $iBlock = ($iBbCnt - (($iAllW + $iBdCnt) % $iBbCnt));
+ for ($i = 0; $i < $iBlock; ++$i) {
+ fwrite($FILE, pack("V", -1));
+ }
+ }
+ // Extra BDList
+ if ($iBdCnt > $i1stBdL) {
+ $iN=0;
+ $iNb=0;
+ for ($i = $i1stBdL; $i < $iBdCnt; $i++, ++$iN) {
+ if ($iN >= ($iBbCnt - 1)) {
+ $iN = 0;
+ ++$iNb;
+ fwrite($FILE, pack("V", $iAll+$iBdCnt+$iNb));
+ }
+ fwrite($FILE, pack("V", $iBsize+$iSbdSize+$iPpsCnt+$i));
+ }
+ if (($iBdCnt-$i1stBdL) % ($iBbCnt-1)) {
+ $iB = ($iBbCnt - 1) - (($iBdCnt - $i1stBdL) % ($iBbCnt - 1));
+ for ($i = 0; $i < $iB; ++$i) {
+ fwrite($FILE, pack("V", -1));
+ }
+ }
+ fwrite($FILE, pack("V", -2));
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLERead.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLERead.php
index 261bdde5..6b15d970 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLERead.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLERead.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,298 +20,299 @@
*
* @category PHPExcel
* @package PHPExcel_Shared
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
defined('IDENTIFIER_OLE') ||
define('IDENTIFIER_OLE', pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1));
-class PHPExcel_Shared_OLERead {
- private $data = '';
+class PHPExcel_Shared_OLERead
+{
+ private $data = '';
- // OLE identifier
- const IDENTIFIER_OLE = IDENTIFIER_OLE;
+ // OLE identifier
+ const IDENTIFIER_OLE = IDENTIFIER_OLE;
- // Size of a sector = 512 bytes
- const BIG_BLOCK_SIZE = 0x200;
+ // Size of a sector = 512 bytes
+ const BIG_BLOCK_SIZE = 0x200;
- // Size of a short sector = 64 bytes
- const SMALL_BLOCK_SIZE = 0x40;
+ // Size of a short sector = 64 bytes
+ const SMALL_BLOCK_SIZE = 0x40;
- // Size of a directory entry always = 128 bytes
- const PROPERTY_STORAGE_BLOCK_SIZE = 0x80;
+ // Size of a directory entry always = 128 bytes
+ const PROPERTY_STORAGE_BLOCK_SIZE = 0x80;
- // Minimum size of a standard stream = 4096 bytes, streams smaller than this are stored as short streams
- const SMALL_BLOCK_THRESHOLD = 0x1000;
+ // Minimum size of a standard stream = 4096 bytes, streams smaller than this are stored as short streams
+ const SMALL_BLOCK_THRESHOLD = 0x1000;
- // header offsets
- const NUM_BIG_BLOCK_DEPOT_BLOCKS_POS = 0x2c;
- const ROOT_START_BLOCK_POS = 0x30;
- const SMALL_BLOCK_DEPOT_BLOCK_POS = 0x3c;
- const EXTENSION_BLOCK_POS = 0x44;
- const NUM_EXTENSION_BLOCK_POS = 0x48;
- const BIG_BLOCK_DEPOT_BLOCKS_POS = 0x4c;
+ // header offsets
+ const NUM_BIG_BLOCK_DEPOT_BLOCKS_POS = 0x2c;
+ const ROOT_START_BLOCK_POS = 0x30;
+ const SMALL_BLOCK_DEPOT_BLOCK_POS = 0x3c;
+ const EXTENSION_BLOCK_POS = 0x44;
+ const NUM_EXTENSION_BLOCK_POS = 0x48;
+ const BIG_BLOCK_DEPOT_BLOCKS_POS = 0x4c;
- // property storage offsets (directory offsets)
- const SIZE_OF_NAME_POS = 0x40;
- const TYPE_POS = 0x42;
- const START_BLOCK_POS = 0x74;
- const SIZE_POS = 0x78;
+ // property storage offsets (directory offsets)
+ const SIZE_OF_NAME_POS = 0x40;
+ const TYPE_POS = 0x42;
+ const START_BLOCK_POS = 0x74;
+ const SIZE_POS = 0x78;
- public $wrkbook = null;
- public $summaryInformation = null;
- public $documentSummaryInformation = null;
+ public $wrkbook = null;
+ public $summaryInformation = null;
+ public $documentSummaryInformation = null;
- /**
- * Read the file
- *
- * @param $sFileName string Filename
- * @throws PHPExcel_Reader_Exception
- */
- public function read($sFileName)
- {
- // Check if file exists and is readable
- if(!is_readable($sFileName)) {
- throw new PHPExcel_Reader_Exception("Could not open " . $sFileName . " for reading! File does not exist, or it is not readable.");
- }
+ /**
+ * Read the file
+ *
+ * @param $sFileName string Filename
+ * @throws PHPExcel_Reader_Exception
+ */
+ public function read($sFileName)
+ {
+ // Check if file exists and is readable
+ if (!is_readable($sFileName)) {
+ throw new PHPExcel_Reader_Exception("Could not open " . $sFileName . " for reading! File does not exist, or it is not readable.");
+ }
- // Get the file identifier
- // Don't bother reading the whole file until we know it's a valid OLE file
- $this->data = file_get_contents($sFileName, FALSE, NULL, 0, 8);
+ // Get the file identifier
+ // Don't bother reading the whole file until we know it's a valid OLE file
+ $this->data = file_get_contents($sFileName, false, null, 0, 8);
- // Check OLE identifier
- if ($this->data != self::IDENTIFIER_OLE) {
- throw new PHPExcel_Reader_Exception('The filename ' . $sFileName . ' is not recognised as an OLE file');
- }
+ // Check OLE identifier
+ if ($this->data != self::IDENTIFIER_OLE) {
+ throw new PHPExcel_Reader_Exception('The filename ' . $sFileName . ' is not recognised as an OLE file');
+ }
- // Get the file data
- $this->data = file_get_contents($sFileName);
+ // Get the file data
+ $this->data = file_get_contents($sFileName);
- // Total number of sectors used for the SAT
- $this->numBigBlockDepotBlocks = self::_GetInt4d($this->data, self::NUM_BIG_BLOCK_DEPOT_BLOCKS_POS);
+ // Total number of sectors used for the SAT
+ $this->numBigBlockDepotBlocks = self::getInt4d($this->data, self::NUM_BIG_BLOCK_DEPOT_BLOCKS_POS);
- // SecID of the first sector of the directory stream
- $this->rootStartBlock = self::_GetInt4d($this->data, self::ROOT_START_BLOCK_POS);
+ // SecID of the first sector of the directory stream
+ $this->rootStartBlock = self::getInt4d($this->data, self::ROOT_START_BLOCK_POS);
- // SecID of the first sector of the SSAT (or -2 if not extant)
- $this->sbdStartBlock = self::_GetInt4d($this->data, self::SMALL_BLOCK_DEPOT_BLOCK_POS);
+ // SecID of the first sector of the SSAT (or -2 if not extant)
+ $this->sbdStartBlock = self::getInt4d($this->data, self::SMALL_BLOCK_DEPOT_BLOCK_POS);
- // SecID of the first sector of the MSAT (or -2 if no additional sectors are used)
- $this->extensionBlock = self::_GetInt4d($this->data, self::EXTENSION_BLOCK_POS);
+ // SecID of the first sector of the MSAT (or -2 if no additional sectors are used)
+ $this->extensionBlock = self::getInt4d($this->data, self::EXTENSION_BLOCK_POS);
- // Total number of sectors used by MSAT
- $this->numExtensionBlocks = self::_GetInt4d($this->data, self::NUM_EXTENSION_BLOCK_POS);
+ // Total number of sectors used by MSAT
+ $this->numExtensionBlocks = self::getInt4d($this->data, self::NUM_EXTENSION_BLOCK_POS);
- $bigBlockDepotBlocks = array();
- $pos = self::BIG_BLOCK_DEPOT_BLOCKS_POS;
+ $bigBlockDepotBlocks = array();
+ $pos = self::BIG_BLOCK_DEPOT_BLOCKS_POS;
- $bbdBlocks = $this->numBigBlockDepotBlocks;
+ $bbdBlocks = $this->numBigBlockDepotBlocks;
- if ($this->numExtensionBlocks != 0) {
- $bbdBlocks = (self::BIG_BLOCK_SIZE - self::BIG_BLOCK_DEPOT_BLOCKS_POS)/4;
- }
+ if ($this->numExtensionBlocks != 0) {
+ $bbdBlocks = (self::BIG_BLOCK_SIZE - self::BIG_BLOCK_DEPOT_BLOCKS_POS)/4;
+ }
- for ($i = 0; $i < $bbdBlocks; ++$i) {
- $bigBlockDepotBlocks[$i] = self::_GetInt4d($this->data, $pos);
- $pos += 4;
- }
+ for ($i = 0; $i < $bbdBlocks; ++$i) {
+ $bigBlockDepotBlocks[$i] = self::getInt4d($this->data, $pos);
+ $pos += 4;
+ }
- for ($j = 0; $j < $this->numExtensionBlocks; ++$j) {
- $pos = ($this->extensionBlock + 1) * self::BIG_BLOCK_SIZE;
- $blocksToRead = min($this->numBigBlockDepotBlocks - $bbdBlocks, self::BIG_BLOCK_SIZE / 4 - 1);
+ for ($j = 0; $j < $this->numExtensionBlocks; ++$j) {
+ $pos = ($this->extensionBlock + 1) * self::BIG_BLOCK_SIZE;
+ $blocksToRead = min($this->numBigBlockDepotBlocks - $bbdBlocks, self::BIG_BLOCK_SIZE / 4 - 1);
- for ($i = $bbdBlocks; $i < $bbdBlocks + $blocksToRead; ++$i) {
- $bigBlockDepotBlocks[$i] = self::_GetInt4d($this->data, $pos);
- $pos += 4;
- }
+ for ($i = $bbdBlocks; $i < $bbdBlocks + $blocksToRead; ++$i) {
+ $bigBlockDepotBlocks[$i] = self::getInt4d($this->data, $pos);
+ $pos += 4;
+ }
- $bbdBlocks += $blocksToRead;
- if ($bbdBlocks < $this->numBigBlockDepotBlocks) {
- $this->extensionBlock = self::_GetInt4d($this->data, $pos);
- }
- }
+ $bbdBlocks += $blocksToRead;
+ if ($bbdBlocks < $this->numBigBlockDepotBlocks) {
+ $this->extensionBlock = self::getInt4d($this->data, $pos);
+ }
+ }
- $pos = 0;
- $this->bigBlockChain = '';
- $bbs = self::BIG_BLOCK_SIZE / 4;
- for ($i = 0; $i < $this->numBigBlockDepotBlocks; ++$i) {
- $pos = ($bigBlockDepotBlocks[$i] + 1) * self::BIG_BLOCK_SIZE;
+ $pos = 0;
+ $this->bigBlockChain = '';
+ $bbs = self::BIG_BLOCK_SIZE / 4;
+ for ($i = 0; $i < $this->numBigBlockDepotBlocks; ++$i) {
+ $pos = ($bigBlockDepotBlocks[$i] + 1) * self::BIG_BLOCK_SIZE;
- $this->bigBlockChain .= substr($this->data, $pos, 4*$bbs);
- $pos += 4*$bbs;
- }
+ $this->bigBlockChain .= substr($this->data, $pos, 4*$bbs);
+ $pos += 4*$bbs;
+ }
- $pos = 0;
- $sbdBlock = $this->sbdStartBlock;
- $this->smallBlockChain = '';
- while ($sbdBlock != -2) {
- $pos = ($sbdBlock + 1) * self::BIG_BLOCK_SIZE;
+ $pos = 0;
+ $sbdBlock = $this->sbdStartBlock;
+ $this->smallBlockChain = '';
+ while ($sbdBlock != -2) {
+ $pos = ($sbdBlock + 1) * self::BIG_BLOCK_SIZE;
- $this->smallBlockChain .= substr($this->data, $pos, 4*$bbs);
- $pos += 4*$bbs;
+ $this->smallBlockChain .= substr($this->data, $pos, 4*$bbs);
+ $pos += 4*$bbs;
- $sbdBlock = self::_GetInt4d($this->bigBlockChain, $sbdBlock*4);
- }
+ $sbdBlock = self::getInt4d($this->bigBlockChain, $sbdBlock*4);
+ }
- // read the directory stream
- $block = $this->rootStartBlock;
- $this->entry = $this->_readData($block);
+ // read the directory stream
+ $block = $this->rootStartBlock;
+ $this->entry = $this->_readData($block);
- $this->_readPropertySets();
- }
+ $this->readPropertySets();
+ }
- /**
- * Extract binary stream data
- *
- * @return string
- */
- public function getStream($stream)
- {
- if ($stream === NULL) {
- return null;
- }
+ /**
+ * Extract binary stream data
+ *
+ * @return string
+ */
+ public function getStream($stream)
+ {
+ if ($stream === null) {
+ return null;
+ }
- $streamData = '';
+ $streamData = '';
- if ($this->props[$stream]['size'] < self::SMALL_BLOCK_THRESHOLD) {
- $rootdata = $this->_readData($this->props[$this->rootentry]['startBlock']);
+ if ($this->props[$stream]['size'] < self::SMALL_BLOCK_THRESHOLD) {
+ $rootdata = $this->_readData($this->props[$this->rootentry]['startBlock']);
- $block = $this->props[$stream]['startBlock'];
+ $block = $this->props[$stream]['startBlock'];
- while ($block != -2) {
- $pos = $block * self::SMALL_BLOCK_SIZE;
- $streamData .= substr($rootdata, $pos, self::SMALL_BLOCK_SIZE);
+ while ($block != -2) {
+ $pos = $block * self::SMALL_BLOCK_SIZE;
+ $streamData .= substr($rootdata, $pos, self::SMALL_BLOCK_SIZE);
- $block = self::_GetInt4d($this->smallBlockChain, $block*4);
- }
+ $block = self::getInt4d($this->smallBlockChain, $block*4);
+ }
- return $streamData;
- } else {
- $numBlocks = $this->props[$stream]['size'] / self::BIG_BLOCK_SIZE;
- if ($this->props[$stream]['size'] % self::BIG_BLOCK_SIZE != 0) {
- ++$numBlocks;
- }
+ return $streamData;
+ } else {
+ $numBlocks = $this->props[$stream]['size'] / self::BIG_BLOCK_SIZE;
+ if ($this->props[$stream]['size'] % self::BIG_BLOCK_SIZE != 0) {
+ ++$numBlocks;
+ }
- if ($numBlocks == 0) return '';
+ if ($numBlocks == 0) {
+ return '';
+ }
- $block = $this->props[$stream]['startBlock'];
+ $block = $this->props[$stream]['startBlock'];
- while ($block != -2) {
- $pos = ($block + 1) * self::BIG_BLOCK_SIZE;
- $streamData .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
- $block = self::_GetInt4d($this->bigBlockChain, $block*4);
- }
+ while ($block != -2) {
+ $pos = ($block + 1) * self::BIG_BLOCK_SIZE;
+ $streamData .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
+ $block = self::getInt4d($this->bigBlockChain, $block*4);
+ }
- return $streamData;
- }
- }
+ return $streamData;
+ }
+ }
- /**
- * Read a standard stream (by joining sectors using information from SAT)
- *
- * @param int $bl Sector ID where the stream starts
- * @return string Data for standard stream
- */
- private function _readData($bl)
- {
- $block = $bl;
- $data = '';
+ /**
+ * Read a standard stream (by joining sectors using information from SAT)
+ *
+ * @param int $bl Sector ID where the stream starts
+ * @return string Data for standard stream
+ */
+ private function _readData($bl)
+ {
+ $block = $bl;
+ $data = '';
- while ($block != -2) {
- $pos = ($block + 1) * self::BIG_BLOCK_SIZE;
- $data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
- $block = self::_GetInt4d($this->bigBlockChain, $block*4);
- }
- return $data;
- }
+ while ($block != -2) {
+ $pos = ($block + 1) * self::BIG_BLOCK_SIZE;
+ $data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE);
+ $block = self::getInt4d($this->bigBlockChain, $block*4);
+ }
+ return $data;
+ }
- /**
- * Read entries in the directory stream.
- */
- private function _readPropertySets() {
- $offset = 0;
+ /**
+ * Read entries in the directory stream.
+ */
+ private function readPropertySets()
+ {
+ $offset = 0;
- // loop through entires, each entry is 128 bytes
- $entryLen = strlen($this->entry);
- while ($offset < $entryLen) {
- // entry data (128 bytes)
- $d = substr($this->entry, $offset, self::PROPERTY_STORAGE_BLOCK_SIZE);
+ // loop through entires, each entry is 128 bytes
+ $entryLen = strlen($this->entry);
+ while ($offset < $entryLen) {
+ // entry data (128 bytes)
+ $d = substr($this->entry, $offset, self::PROPERTY_STORAGE_BLOCK_SIZE);
- // size in bytes of name
- $nameSize = ord($d[self::SIZE_OF_NAME_POS]) | (ord($d[self::SIZE_OF_NAME_POS+1]) << 8);
+ // size in bytes of name
+ $nameSize = ord($d[self::SIZE_OF_NAME_POS]) | (ord($d[self::SIZE_OF_NAME_POS+1]) << 8);
- // type of entry
- $type = ord($d[self::TYPE_POS]);
+ // type of entry
+ $type = ord($d[self::TYPE_POS]);
- // sectorID of first sector or short sector, if this entry refers to a stream (the case with workbook)
- // sectorID of first sector of the short-stream container stream, if this entry is root entry
- $startBlock = self::_GetInt4d($d, self::START_BLOCK_POS);
+ // sectorID of first sector or short sector, if this entry refers to a stream (the case with workbook)
+ // sectorID of first sector of the short-stream container stream, if this entry is root entry
+ $startBlock = self::getInt4d($d, self::START_BLOCK_POS);
- $size = self::_GetInt4d($d, self::SIZE_POS);
+ $size = self::getInt4d($d, self::SIZE_POS);
- $name = str_replace("\x00", "", substr($d,0,$nameSize));
+ $name = str_replace("\x00", "", substr($d, 0, $nameSize));
+ $this->props[] = array(
+ 'name' => $name,
+ 'type' => $type,
+ 'startBlock' => $startBlock,
+ 'size' => $size
+ );
- $this->props[] = array (
- 'name' => $name,
- 'type' => $type,
- 'startBlock' => $startBlock,
- 'size' => $size);
+ // tmp helper to simplify checks
+ $upName = strtoupper($name);
- // tmp helper to simplify checks
- $upName = strtoupper($name);
+ // Workbook directory entry (BIFF5 uses Book, BIFF8 uses Workbook)
+ if (($upName === 'WORKBOOK') || ($upName === 'BOOK')) {
+ $this->wrkbook = count($this->props) - 1;
+ } elseif ($upName === 'ROOT ENTRY' || $upName === 'R') {
+ // Root entry
+ $this->rootentry = count($this->props) - 1;
+ }
- // Workbook directory entry (BIFF5 uses Book, BIFF8 uses Workbook)
- if (($upName === 'WORKBOOK') || ($upName === 'BOOK')) {
- $this->wrkbook = count($this->props) - 1;
- }
- else if ( $upName === 'ROOT ENTRY' || $upName === 'R') {
- // Root entry
- $this->rootentry = count($this->props) - 1;
- }
+ // Summary information
+ if ($name == chr(5) . 'SummaryInformation') {
+// echo 'Summary Information Warning: The PHPExcel DATEVALUE() function accepts a wider range of date formats than MS Excel's DATEFORMAT() function. -tjo1m*iiL9yHMl^gIJaDg8geGI50ORQfNJ|J+0VGY|Pg9`b`8
z@`pX-4|>Rd=pnz+L+-`L3;%J2GaV{%>gPuua+6PCdXrC~{9X^7M?K_Ec*uY2A^(nt
z{8t|G&&%f*3a7e2KW0CfY{_q{ufM(e_G$?qQ0eP)@_794+{1Gv{G^g|CQy3*2X541
z&I4F+x%6-Lw+c)Cige?4t~GB&oN~}JaVqn29k-z8lDo=1#Y&&!Z}v~D6HPv^$d$OA
zW#QCV^4vIjK-CLx5i|Xv`ugeB)1ikul)ToG1K-qxsUKPz#q==ElD~qbn4F)hFIRc)
z^kbnZQYWZE+lu*mtG>3U$LLS3q_o~GZKHIGTiQ
';
+ $this->summaryInformation = count($this->props) - 1;
+ }
- // Summary information
- if ($name == chr(5) . 'SummaryInformation') {
-// echo 'Summary Information
';
- $this->summaryInformation = count($this->props) - 1;
- }
+ // Additional Document Summary information
+ if ($name == chr(5) . 'DocumentSummaryInformation') {
+// echo 'Document Summary Information
';
+ $this->documentSummaryInformation = count($this->props) - 1;
+ }
- // Additional Document Summary information
- if ($name == chr(5) . 'DocumentSummaryInformation') {
-// echo 'Document Summary Information
';
- $this->documentSummaryInformation = count($this->props) - 1;
- }
-
- $offset += self::PROPERTY_STORAGE_BLOCK_SIZE;
- }
-
- }
-
- /**
- * Read 4 bytes of data at specified position
- *
- * @param string $data
- * @param int $pos
- * @return int
- */
- private static function _GetInt4d($data, $pos)
- {
- // FIX: represent numbers correctly on 64-bit system
- // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
- // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
- $_or_24 = ord($data[$pos + 3]);
- if ($_or_24 >= 128) {
- // negative number
- $_ord_24 = -abs((256 - $_or_24) << 24);
- } else {
- $_ord_24 = ($_or_24 & 127) << 24;
- }
- return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
- }
+ $offset += self::PROPERTY_STORAGE_BLOCK_SIZE;
+ }
+ }
+ /**
+ * Read 4 bytes of data at specified position
+ *
+ * @param string $data
+ * @param int $pos
+ * @return int
+ */
+ private static function getInt4d($data, $pos)
+ {
+ // FIX: represent numbers correctly on 64-bit system
+ // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334
+ // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems
+ $_or_24 = ord($data[$pos + 3]);
+ if ($_or_24 >= 128) {
+ // negative number
+ $_ord_24 = -abs((256 - $_or_24) << 24);
+ } else {
+ $_ord_24 = ($_or_24 & 127) << 24;
+ }
+ return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
index 5b81e679..a5a9b0a8 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
@@ -1,5691 +1,5173 @@
-zipname = $p_zipname;
- $this->zip_fd = 0;
- $this->magic_quotes_status = -1;
-
- // ----- Return
- return;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function :
- // create($p_filelist, $p_add_dir="", $p_remove_dir="")
- // create($p_filelist, $p_option, $p_option_value, ...)
- // Description :
- // This method supports two different synopsis. The first one is historical.
- // This method creates a Zip Archive. The Zip file is created in the
- // filesystem. The files and directories indicated in $p_filelist
- // are added in the archive. See the parameters description for the
- // supported format of $p_filelist.
- // When a directory is in the list, the directory and its content is added
- // in the archive.
- // In this synopsis, the function takes an optional variable list of
- // options. See bellow the supported options.
- // Parameters :
- // $p_filelist : An array containing file or directory names, or
- // a string containing one filename or one directory name, or
- // a string containing a list of filenames and/or directory
- // names separated by spaces.
- // $p_add_dir : A path to add before the real path of the archived file,
- // in order to have it memorized in the archive.
- // $p_remove_dir : A path to remove from the real path of the file to archive,
- // in order to have a shorter path memorized in the archive.
- // When $p_add_dir and $p_remove_dir are set, $p_remove_dir
- // is removed first, before $p_add_dir is added.
- // Options :
- // PCLZIP_OPT_ADD_PATH :
- // PCLZIP_OPT_REMOVE_PATH :
- // PCLZIP_OPT_REMOVE_ALL_PATH :
- // PCLZIP_OPT_COMMENT :
- // PCLZIP_CB_PRE_ADD :
- // PCLZIP_CB_POST_ADD :
- // Return Values :
- // 0 on failure,
- // The list of the added files, with a status of the add action.
- // (see PclZip::listContent() for list entry format)
- // --------------------------------------------------------------------------------
- function create($p_filelist)
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Set default values
- $v_options = array();
- $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE;
-
- // ----- Look for variable options arguments
- $v_size = func_num_args();
-
- // ----- Look for arguments
- if ($v_size > 1) {
- // ----- Get the arguments
- $v_arg_list = func_get_args();
-
- // ----- Remove from the options list the first argument
- array_shift($v_arg_list);
- $v_size--;
-
- // ----- Look for first arg
- if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
-
- // ----- Parse the options
- $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
- array (PCLZIP_OPT_REMOVE_PATH => 'optional',
- PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
- PCLZIP_OPT_ADD_PATH => 'optional',
- PCLZIP_CB_PRE_ADD => 'optional',
- PCLZIP_CB_POST_ADD => 'optional',
- PCLZIP_OPT_NO_COMPRESSION => 'optional',
- PCLZIP_OPT_COMMENT => 'optional',
- PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
- PCLZIP_OPT_TEMP_FILE_ON => 'optional',
- PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
- //, PCLZIP_OPT_CRYPT => 'optional'
- ));
- if ($v_result != 1) {
- return 0;
- }
- }
-
- // ----- Look for 2 args
- // Here we need to support the first historic synopsis of the
- // method.
- else {
-
- // ----- Get the first argument
- $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0];
-
- // ----- Look for the optional second argument
- if ($v_size == 2) {
- $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
- }
- else if ($v_size > 2) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER,
- "Invalid number / type of arguments");
- return 0;
- }
- }
- }
-
- // ----- Look for default option values
- $this->privOptionDefaultThreshold($v_options);
-
- // ----- Init
- $v_string_list = array();
- $v_att_list = array();
- $v_filedescr_list = array();
- $p_result_list = array();
-
- // ----- Look if the $p_filelist is really an array
- if (is_array($p_filelist)) {
-
- // ----- Look if the first element is also an array
- // This will mean that this is a file description entry
- if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
- $v_att_list = $p_filelist;
- }
-
- // ----- The list is a list of string names
- else {
- $v_string_list = $p_filelist;
- }
- }
-
- // ----- Look if the $p_filelist is a string
- else if (is_string($p_filelist)) {
- // ----- Create a list from the string
- $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
- }
-
- // ----- Invalid variable type for $p_filelist
- else {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist");
- return 0;
- }
-
- // ----- Reformat the string list
- if (sizeof($v_string_list) != 0) {
- foreach ($v_string_list as $v_string) {
- if ($v_string != '') {
- $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
- }
- else {
- }
- }
- }
-
- // ----- For each file in the list check the attributes
- $v_supported_attributes
- = array ( PCLZIP_ATT_FILE_NAME => 'mandatory'
- ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional'
- ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional'
- ,PCLZIP_ATT_FILE_MTIME => 'optional'
- ,PCLZIP_ATT_FILE_CONTENT => 'optional'
- ,PCLZIP_ATT_FILE_COMMENT => 'optional'
- );
- foreach ($v_att_list as $v_entry) {
- $v_result = $this->privFileDescrParseAtt($v_entry,
- $v_filedescr_list[],
- $v_options,
- $v_supported_attributes);
- if ($v_result != 1) {
- return 0;
- }
- }
-
- // ----- Expand the filelist (expand directories)
- $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options);
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Call the create fct
- $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options);
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Return
- return $p_result_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function :
- // add($p_filelist, $p_add_dir="", $p_remove_dir="")
- // add($p_filelist, $p_option, $p_option_value, ...)
- // Description :
- // This method supports two synopsis. The first one is historical.
- // This methods add the list of files in an existing archive.
- // If a file with the same name already exists, it is added at the end of the
- // archive, the first one is still present.
- // If the archive does not exist, it is created.
- // Parameters :
- // $p_filelist : An array containing file or directory names, or
- // a string containing one filename or one directory name, or
- // a string containing a list of filenames and/or directory
- // names separated by spaces.
- // $p_add_dir : A path to add before the real path of the archived file,
- // in order to have it memorized in the archive.
- // $p_remove_dir : A path to remove from the real path of the file to archive,
- // in order to have a shorter path memorized in the archive.
- // When $p_add_dir and $p_remove_dir are set, $p_remove_dir
- // is removed first, before $p_add_dir is added.
- // Options :
- // PCLZIP_OPT_ADD_PATH :
- // PCLZIP_OPT_REMOVE_PATH :
- // PCLZIP_OPT_REMOVE_ALL_PATH :
- // PCLZIP_OPT_COMMENT :
- // PCLZIP_OPT_ADD_COMMENT :
- // PCLZIP_OPT_PREPEND_COMMENT :
- // PCLZIP_CB_PRE_ADD :
- // PCLZIP_CB_POST_ADD :
- // Return Values :
- // 0 on failure,
- // The list of the added files, with a status of the add action.
- // (see PclZip::listContent() for list entry format)
- // --------------------------------------------------------------------------------
- function add($p_filelist)
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Set default values
- $v_options = array();
- $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE;
-
- // ----- Look for variable options arguments
- $v_size = func_num_args();
-
- // ----- Look for arguments
- if ($v_size > 1) {
- // ----- Get the arguments
- $v_arg_list = func_get_args();
-
- // ----- Remove form the options list the first argument
- array_shift($v_arg_list);
- $v_size--;
-
- // ----- Look for first arg
- if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
-
- // ----- Parse the options
- $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
- array (PCLZIP_OPT_REMOVE_PATH => 'optional',
- PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
- PCLZIP_OPT_ADD_PATH => 'optional',
- PCLZIP_CB_PRE_ADD => 'optional',
- PCLZIP_CB_POST_ADD => 'optional',
- PCLZIP_OPT_NO_COMPRESSION => 'optional',
- PCLZIP_OPT_COMMENT => 'optional',
- PCLZIP_OPT_ADD_COMMENT => 'optional',
- PCLZIP_OPT_PREPEND_COMMENT => 'optional',
- PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
- PCLZIP_OPT_TEMP_FILE_ON => 'optional',
- PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
- //, PCLZIP_OPT_CRYPT => 'optional'
- ));
- if ($v_result != 1) {
- return 0;
- }
- }
-
- // ----- Look for 2 args
- // Here we need to support the first historic synopsis of the
- // method.
- else {
-
- // ----- Get the first argument
- $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0];
-
- // ----- Look for the optional second argument
- if ($v_size == 2) {
- $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1];
- }
- else if ($v_size > 2) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");
-
- // ----- Return
- return 0;
- }
- }
- }
-
- // ----- Look for default option values
- $this->privOptionDefaultThreshold($v_options);
-
- // ----- Init
- $v_string_list = array();
- $v_att_list = array();
- $v_filedescr_list = array();
- $p_result_list = array();
-
- // ----- Look if the $p_filelist is really an array
- if (is_array($p_filelist)) {
-
- // ----- Look if the first element is also an array
- // This will mean that this is a file description entry
- if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
- $v_att_list = $p_filelist;
- }
-
- // ----- The list is a list of string names
- else {
- $v_string_list = $p_filelist;
- }
- }
-
- // ----- Look if the $p_filelist is a string
- else if (is_string($p_filelist)) {
- // ----- Create a list from the string
- $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
- }
-
- // ----- Invalid variable type for $p_filelist
- else {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist");
- return 0;
- }
-
- // ----- Reformat the string list
- if (sizeof($v_string_list) != 0) {
- foreach ($v_string_list as $v_string) {
- $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string;
- }
- }
-
- // ----- For each file in the list check the attributes
- $v_supported_attributes
- = array ( PCLZIP_ATT_FILE_NAME => 'mandatory'
- ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional'
- ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional'
- ,PCLZIP_ATT_FILE_MTIME => 'optional'
- ,PCLZIP_ATT_FILE_CONTENT => 'optional'
- ,PCLZIP_ATT_FILE_COMMENT => 'optional'
- );
- foreach ($v_att_list as $v_entry) {
- $v_result = $this->privFileDescrParseAtt($v_entry,
- $v_filedescr_list[],
- $v_options,
- $v_supported_attributes);
- if ($v_result != 1) {
- return 0;
- }
- }
-
- // ----- Expand the filelist (expand directories)
- $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options);
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Call the create fct
- $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options);
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Return
- return $p_result_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : listContent()
- // Description :
- // This public method, gives the list of the files and directories, with their
- // properties.
- // The properties of each entries in the list are (used also in other functions) :
- // filename : Name of the file. For a create or add action it is the filename
- // given by the user. For an extract function it is the filename
- // of the extracted file.
- // stored_filename : Name of the file / directory stored in the archive.
- // size : Size of the stored file.
- // compressed_size : Size of the file's data compressed in the archive
- // (without the headers overhead)
- // mtime : Last known modification date of the file (UNIX timestamp)
- // comment : Comment associated with the file
- // folder : true | false
- // index : index of the file in the archive
- // status : status of the action (depending of the action) :
- // Values are :
- // ok : OK !
- // filtered : the file / dir is not extracted (filtered by user)
- // already_a_directory : the file can not be extracted because a
- // directory with the same name already exists
- // write_protected : the file can not be extracted because a file
- // with the same name already exists and is
- // write protected
- // newer_exist : the file was not extracted because a newer file exists
- // path_creation_fail : the file is not extracted because the folder
- // does not exist and can not be created
- // write_error : the file was not extracted because there was a
- // error while writing the file
- // read_error : the file was not extracted because there was a error
- // while reading the file
- // invalid_header : the file was not extracted because of an archive
- // format error (bad file header)
- // Note that each time a method can continue operating when there
- // is an action error on a file, the error is only logged in the file status.
- // Return Values :
- // 0 on an unrecoverable failure,
- // The list of the files in the archive.
- // --------------------------------------------------------------------------------
- function listContent()
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- return(0);
- }
-
- // ----- Call the extracting fct
- $p_list = array();
- if (($v_result = $this->privList($p_list)) != 1)
- {
- unset($p_list);
- return(0);
- }
-
- // ----- Return
- return $p_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function :
- // extract($p_path="./", $p_remove_path="")
- // extract([$p_option, $p_option_value, ...])
- // Description :
- // This method supports two synopsis. The first one is historical.
- // This method extract all the files / directories from the archive to the
- // folder indicated in $p_path.
- // If you want to ignore the 'root' part of path of the memorized files
- // you can indicate this in the optional $p_remove_path parameter.
- // By default, if a newer file with the same name already exists, the
- // file is not extracted.
- //
- // If both PCLZIP_OPT_PATH and PCLZIP_OPT_ADD_PATH aoptions
- // are used, the path indicated in PCLZIP_OPT_ADD_PATH is append
- // at the end of the path value of PCLZIP_OPT_PATH.
- // Parameters :
- // $p_path : Path where the files and directories are to be extracted
- // $p_remove_path : First part ('root' part) of the memorized path
- // (if any similar) to remove while extracting.
- // Options :
- // PCLZIP_OPT_PATH :
- // PCLZIP_OPT_ADD_PATH :
- // PCLZIP_OPT_REMOVE_PATH :
- // PCLZIP_OPT_REMOVE_ALL_PATH :
- // PCLZIP_CB_PRE_EXTRACT :
- // PCLZIP_CB_POST_EXTRACT :
- // Return Values :
- // 0 or a negative value on failure,
- // The list of the extracted files, with a status of the action.
- // (see PclZip::listContent() for list entry format)
- // --------------------------------------------------------------------------------
- function extract()
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- return(0);
- }
-
- // ----- Set default values
- $v_options = array();
-// $v_path = "./";
- $v_path = '';
- $v_remove_path = "";
- $v_remove_all_path = false;
-
- // ----- Look for variable options arguments
- $v_size = func_num_args();
-
- // ----- Default values for option
- $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;
-
- // ----- Look for arguments
- if ($v_size > 0) {
- // ----- Get the arguments
- $v_arg_list = func_get_args();
-
- // ----- Look for first arg
- if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
-
- // ----- Parse the options
- $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
- array (PCLZIP_OPT_PATH => 'optional',
- PCLZIP_OPT_REMOVE_PATH => 'optional',
- PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
- PCLZIP_OPT_ADD_PATH => 'optional',
- PCLZIP_CB_PRE_EXTRACT => 'optional',
- PCLZIP_CB_POST_EXTRACT => 'optional',
- PCLZIP_OPT_SET_CHMOD => 'optional',
- PCLZIP_OPT_BY_NAME => 'optional',
- PCLZIP_OPT_BY_EREG => 'optional',
- PCLZIP_OPT_BY_PREG => 'optional',
- PCLZIP_OPT_BY_INDEX => 'optional',
- PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
- PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional',
- PCLZIP_OPT_REPLACE_NEWER => 'optional'
- ,PCLZIP_OPT_STOP_ON_ERROR => 'optional'
- ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
- PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
- PCLZIP_OPT_TEMP_FILE_ON => 'optional',
- PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
- ));
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Set the arguments
- if (isset($v_options[PCLZIP_OPT_PATH])) {
- $v_path = $v_options[PCLZIP_OPT_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) {
- $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) {
- $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_ADD_PATH])) {
- // ----- Check for '/' in last path char
- if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) {
- $v_path .= '/';
- }
- $v_path .= $v_options[PCLZIP_OPT_ADD_PATH];
- }
- }
-
- // ----- Look for 2 args
- // Here we need to support the first historic synopsis of the
- // method.
- else {
-
- // ----- Get the first argument
- $v_path = $v_arg_list[0];
-
- // ----- Look for the optional second argument
- if ($v_size == 2) {
- $v_remove_path = $v_arg_list[1];
- }
- else if ($v_size > 2) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");
-
- // ----- Return
- return 0;
- }
- }
- }
-
- // ----- Look for default option values
- $this->privOptionDefaultThreshold($v_options);
-
- // ----- Trace
-
- // ----- Call the extracting fct
- $p_list = array();
- $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path,
- $v_remove_all_path, $v_options);
- if ($v_result < 1) {
- unset($p_list);
- return(0);
- }
-
- // ----- Return
- return $p_list;
- }
- // --------------------------------------------------------------------------------
-
-
- // --------------------------------------------------------------------------------
- // Function :
- // extractByIndex($p_index, $p_path="./", $p_remove_path="")
- // extractByIndex($p_index, [$p_option, $p_option_value, ...])
- // Description :
- // This method supports two synopsis. The first one is historical.
- // This method is doing a partial extract of the archive.
- // The extracted files or folders are identified by their index in the
- // archive (from 0 to n).
- // Note that if the index identify a folder, only the folder entry is
- // extracted, not all the files included in the archive.
- // Parameters :
- // $p_index : A single index (integer) or a string of indexes of files to
- // extract. The form of the string is "0,4-6,8-12" with only numbers
- // and '-' for range or ',' to separate ranges. No spaces or ';'
- // are allowed.
- // $p_path : Path where the files and directories are to be extracted
- // $p_remove_path : First part ('root' part) of the memorized path
- // (if any similar) to remove while extracting.
- // Options :
- // PCLZIP_OPT_PATH :
- // PCLZIP_OPT_ADD_PATH :
- // PCLZIP_OPT_REMOVE_PATH :
- // PCLZIP_OPT_REMOVE_ALL_PATH :
- // PCLZIP_OPT_EXTRACT_AS_STRING : The files are extracted as strings and
- // not as files.
- // The resulting content is in a new field 'content' in the file
- // structure.
- // This option must be used alone (any other options are ignored).
- // PCLZIP_CB_PRE_EXTRACT :
- // PCLZIP_CB_POST_EXTRACT :
- // Return Values :
- // 0 on failure,
- // The list of the extracted files, with a status of the action.
- // (see PclZip::listContent() for list entry format)
- // --------------------------------------------------------------------------------
- //function extractByIndex($p_index, options...)
- function extractByIndex($p_index)
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- return(0);
- }
-
- // ----- Set default values
- $v_options = array();
-// $v_path = "./";
- $v_path = '';
- $v_remove_path = "";
- $v_remove_all_path = false;
-
- // ----- Look for variable options arguments
- $v_size = func_num_args();
-
- // ----- Default values for option
- $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;
-
- // ----- Look for arguments
- if ($v_size > 1) {
- // ----- Get the arguments
- $v_arg_list = func_get_args();
-
- // ----- Remove form the options list the first argument
- array_shift($v_arg_list);
- $v_size--;
-
- // ----- Look for first arg
- if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {
-
- // ----- Parse the options
- $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
- array (PCLZIP_OPT_PATH => 'optional',
- PCLZIP_OPT_REMOVE_PATH => 'optional',
- PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
- PCLZIP_OPT_EXTRACT_AS_STRING => 'optional',
- PCLZIP_OPT_ADD_PATH => 'optional',
- PCLZIP_CB_PRE_EXTRACT => 'optional',
- PCLZIP_CB_POST_EXTRACT => 'optional',
- PCLZIP_OPT_SET_CHMOD => 'optional',
- PCLZIP_OPT_REPLACE_NEWER => 'optional'
- ,PCLZIP_OPT_STOP_ON_ERROR => 'optional'
- ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional',
- PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
- PCLZIP_OPT_TEMP_FILE_ON => 'optional',
- PCLZIP_OPT_TEMP_FILE_OFF => 'optional'
- ));
- if ($v_result != 1) {
- return 0;
- }
-
- // ----- Set the arguments
- if (isset($v_options[PCLZIP_OPT_PATH])) {
- $v_path = $v_options[PCLZIP_OPT_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) {
- $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) {
- $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH];
- }
- if (isset($v_options[PCLZIP_OPT_ADD_PATH])) {
- // ----- Check for '/' in last path char
- if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) {
- $v_path .= '/';
- }
- $v_path .= $v_options[PCLZIP_OPT_ADD_PATH];
- }
- if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) {
- $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE;
- }
- else {
- }
- }
-
- // ----- Look for 2 args
- // Here we need to support the first historic synopsis of the
- // method.
- else {
-
- // ----- Get the first argument
- $v_path = $v_arg_list[0];
-
- // ----- Look for the optional second argument
- if ($v_size == 2) {
- $v_remove_path = $v_arg_list[1];
- }
- else if ($v_size > 2) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments");
-
- // ----- Return
- return 0;
- }
- }
- }
-
- // ----- Trace
-
- // ----- Trick
- // Here I want to reuse extractByRule(), so I need to parse the $p_index
- // with privParseOptions()
- $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index);
- $v_options_trick = array();
- $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick,
- array (PCLZIP_OPT_BY_INDEX => 'optional' ));
- if ($v_result != 1) {
- return 0;
- }
- $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX];
-
- // ----- Look for default option values
- $this->privOptionDefaultThreshold($v_options);
-
- // ----- Call the extracting fct
- if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) {
- return(0);
- }
-
- // ----- Return
- return $p_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function :
- // delete([$p_option, $p_option_value, ...])
- // Description :
- // This method removes files from the archive.
- // If no parameters are given, then all the archive is emptied.
- // Parameters :
- // None or optional arguments.
- // Options :
- // PCLZIP_OPT_BY_INDEX :
- // PCLZIP_OPT_BY_NAME :
- // PCLZIP_OPT_BY_EREG :
- // PCLZIP_OPT_BY_PREG :
- // Return Values :
- // 0 on failure,
- // The list of the files which are still present in the archive.
- // (see PclZip::listContent() for list entry format)
- // --------------------------------------------------------------------------------
- function delete()
- {
- $v_result=1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- return(0);
- }
-
- // ----- Set default values
- $v_options = array();
-
- // ----- Look for variable options arguments
- $v_size = func_num_args();
-
- // ----- Look for arguments
- if ($v_size > 0) {
- // ----- Get the arguments
- $v_arg_list = func_get_args();
-
- // ----- Parse the options
- $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options,
- array (PCLZIP_OPT_BY_NAME => 'optional',
- PCLZIP_OPT_BY_EREG => 'optional',
- PCLZIP_OPT_BY_PREG => 'optional',
- PCLZIP_OPT_BY_INDEX => 'optional' ));
- if ($v_result != 1) {
- return 0;
- }
- }
-
- // ----- Magic quotes trick
- $this->privDisableMagicQuotes();
-
- // ----- Call the delete fct
- $v_list = array();
- if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) {
- $this->privSwapBackMagicQuotes();
- unset($v_list);
- return(0);
- }
-
- // ----- Magic quotes trick
- $this->privSwapBackMagicQuotes();
-
- // ----- Return
- return $v_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : deleteByIndex()
- // Description :
- // ***** Deprecated *****
- // delete(PCLZIP_OPT_BY_INDEX, $p_index) should be prefered.
- // --------------------------------------------------------------------------------
- function deleteByIndex($p_index)
- {
-
- $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index);
-
- // ----- Return
- return $p_list;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : properties()
- // Description :
- // This method gives the properties of the archive.
- // The properties are :
- // nb : Number of files in the archive
- // comment : Comment associated with the archive file
- // status : not_exist, ok
- // Parameters :
- // None
- // Return Values :
- // 0 on failure,
- // An array with the archive properties.
- // --------------------------------------------------------------------------------
- function properties()
- {
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Magic quotes trick
- $this->privDisableMagicQuotes();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- $this->privSwapBackMagicQuotes();
- return(0);
- }
-
- // ----- Default properties
- $v_prop = array();
- $v_prop['comment'] = '';
- $v_prop['nb'] = 0;
- $v_prop['status'] = 'not_exist';
-
- // ----- Look if file exists
- if (@is_file($this->zipname))
- {
- // ----- Open the zip file
- if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0)
- {
- $this->privSwapBackMagicQuotes();
-
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode');
-
- // ----- Return
- return 0;
- }
-
- // ----- Read the central directory informations
- $v_central_dir = array();
- if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
- {
- $this->privSwapBackMagicQuotes();
- return 0;
- }
-
- // ----- Close the zip file
- $this->privCloseFd();
-
- // ----- Set the user attributes
- $v_prop['comment'] = $v_central_dir['comment'];
- $v_prop['nb'] = $v_central_dir['entries'];
- $v_prop['status'] = 'ok';
- }
-
- // ----- Magic quotes trick
- $this->privSwapBackMagicQuotes();
-
- // ----- Return
- return $v_prop;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : duplicate()
- // Description :
- // This method creates an archive by copying the content of an other one. If
- // the archive already exist, it is replaced by the new one without any warning.
- // Parameters :
- // $p_archive : The filename of a valid archive, or
- // a valid PclZip object.
- // Return Values :
- // 1 on success.
- // 0 or a negative value on error (error code).
- // --------------------------------------------------------------------------------
- function duplicate($p_archive)
- {
- $v_result = 1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Look if the $p_archive is a PclZip object
- if ((is_object($p_archive)) && (get_class($p_archive) == 'pclzip'))
- {
-
- // ----- Duplicate the archive
- $v_result = $this->privDuplicate($p_archive->zipname);
- }
-
- // ----- Look if the $p_archive is a string (so a filename)
- else if (is_string($p_archive))
- {
-
- // ----- Check that $p_archive is a valid zip file
- // TBC : Should also check the archive format
- if (!is_file($p_archive)) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename '".$p_archive."'");
- $v_result = PCLZIP_ERR_MISSING_FILE;
- }
- else {
- // ----- Duplicate the archive
- $v_result = $this->privDuplicate($p_archive);
- }
- }
-
- // ----- Invalid variable
- else
- {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add");
- $v_result = PCLZIP_ERR_INVALID_PARAMETER;
- }
-
- // ----- Return
- return $v_result;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : merge()
- // Description :
- // This method merge the $p_archive_to_add archive at the end of the current
- // one ($this).
- // If the archive ($this) does not exist, the merge becomes a duplicate.
- // If the $p_archive_to_add archive does not exist, the merge is a success.
- // Parameters :
- // $p_archive_to_add : It can be directly the filename of a valid zip archive,
- // or a PclZip object archive.
- // Return Values :
- // 1 on success,
- // 0 or negative values on error (see below).
- // --------------------------------------------------------------------------------
- function merge($p_archive_to_add)
- {
- $v_result = 1;
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Check archive
- if (!$this->privCheckFormat()) {
- return(0);
- }
-
- // ----- Look if the $p_archive_to_add is a PclZip object
- if ((is_object($p_archive_to_add)) && (get_class($p_archive_to_add) == 'pclzip'))
- {
-
- // ----- Merge the archive
- $v_result = $this->privMerge($p_archive_to_add);
- }
-
- // ----- Look if the $p_archive_to_add is a string (so a filename)
- else if (is_string($p_archive_to_add))
- {
-
- // ----- Create a temporary archive
- $v_object_archive = new PclZip($p_archive_to_add);
-
- // ----- Merge the archive
- $v_result = $this->privMerge($v_object_archive);
- }
-
- // ----- Invalid variable
- else
- {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add");
- $v_result = PCLZIP_ERR_INVALID_PARAMETER;
- }
-
- // ----- Return
- return $v_result;
- }
- // --------------------------------------------------------------------------------
-
-
-
- // --------------------------------------------------------------------------------
- // Function : errorCode()
- // Description :
- // Parameters :
- // --------------------------------------------------------------------------------
- function errorCode()
- {
- if (PCLZIP_ERROR_EXTERNAL == 1) {
- return(PclErrorCode());
- }
- else {
- return($this->error_code);
- }
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : errorName()
- // Description :
- // Parameters :
- // --------------------------------------------------------------------------------
- function errorName($p_with_code=false)
- {
- $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR',
- PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL',
- PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL',
- PCLZIP_ERR_INVALID_PARAMETER => 'PCLZIP_ERR_INVALID_PARAMETER',
- PCLZIP_ERR_MISSING_FILE => 'PCLZIP_ERR_MISSING_FILE',
- PCLZIP_ERR_FILENAME_TOO_LONG => 'PCLZIP_ERR_FILENAME_TOO_LONG',
- PCLZIP_ERR_INVALID_ZIP => 'PCLZIP_ERR_INVALID_ZIP',
- PCLZIP_ERR_BAD_EXTRACTED_FILE => 'PCLZIP_ERR_BAD_EXTRACTED_FILE',
- PCLZIP_ERR_DIR_CREATE_FAIL => 'PCLZIP_ERR_DIR_CREATE_FAIL',
- PCLZIP_ERR_BAD_EXTENSION => 'PCLZIP_ERR_BAD_EXTENSION',
- PCLZIP_ERR_BAD_FORMAT => 'PCLZIP_ERR_BAD_FORMAT',
- PCLZIP_ERR_DELETE_FILE_FAIL => 'PCLZIP_ERR_DELETE_FILE_FAIL',
- PCLZIP_ERR_RENAME_FILE_FAIL => 'PCLZIP_ERR_RENAME_FILE_FAIL',
- PCLZIP_ERR_BAD_CHECKSUM => 'PCLZIP_ERR_BAD_CHECKSUM',
- PCLZIP_ERR_INVALID_ARCHIVE_ZIP => 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP',
- PCLZIP_ERR_MISSING_OPTION_VALUE => 'PCLZIP_ERR_MISSING_OPTION_VALUE',
- PCLZIP_ERR_INVALID_OPTION_VALUE => 'PCLZIP_ERR_INVALID_OPTION_VALUE',
- PCLZIP_ERR_UNSUPPORTED_COMPRESSION => 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION',
- PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION'
- ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE'
- ,PCLZIP_ERR_DIRECTORY_RESTRICTION => 'PCLZIP_ERR_DIRECTORY_RESTRICTION'
- );
-
- if (isset($v_name[$this->error_code])) {
- $v_value = $v_name[$this->error_code];
- }
- else {
- $v_value = 'NoName';
- }
-
- if ($p_with_code) {
- return($v_value.' ('.$this->error_code.')');
- }
- else {
- return($v_value);
- }
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : errorInfo()
- // Description :
- // Parameters :
- // --------------------------------------------------------------------------------
- function errorInfo($p_full=false)
- {
- if (PCLZIP_ERROR_EXTERNAL == 1) {
- return(PclErrorString());
- }
- else {
- if ($p_full) {
- return($this->errorName(true)." : ".$this->error_string);
- }
- else {
- return($this->error_string." [code ".$this->error_code."]");
- }
- }
- }
- // --------------------------------------------------------------------------------
-
-
-// --------------------------------------------------------------------------------
-// ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS *****
-// ***** *****
-// ***** THESES FUNCTIONS MUST NOT BE USED DIRECTLY *****
-// --------------------------------------------------------------------------------
-
-
-
- // --------------------------------------------------------------------------------
- // Function : privCheckFormat()
- // Description :
- // This method check that the archive exists and is a valid zip archive.
- // Several level of check exists. (futur)
- // Parameters :
- // $p_level : Level of check. Default 0.
- // 0 : Check the first bytes (magic codes) (default value))
- // 1 : 0 + Check the central directory (futur)
- // 2 : 1 + Check each file header (futur)
- // Return Values :
- // true on success,
- // false on error, the error code is set.
- // --------------------------------------------------------------------------------
- function privCheckFormat($p_level=0)
- {
- $v_result = true;
-
- // ----- Reset the file system cache
- clearstatcache();
-
- // ----- Reset the error handler
- $this->privErrorReset();
-
- // ----- Look if the file exits
- if (!is_file($this->zipname)) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'");
- return(false);
- }
-
- // ----- Check that the file is readeable
- if (!is_readable($this->zipname)) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'");
- return(false);
- }
-
- // ----- Check the magic code
- // TBC
-
- // ----- Check the central header
- // TBC
-
- // ----- Check each file header
- // TBC
-
- // ----- Return
- return $v_result;
- }
- // --------------------------------------------------------------------------------
-
- // --------------------------------------------------------------------------------
- // Function : privParseOptions()
- // Description :
- // This internal methods reads the variable list of arguments ($p_options_list,
- // $p_size) and generate an array with the options and values ($v_result_list).
- // $v_requested_options contains the options that can be present and those that
- // must be present.
- // $v_requested_options is an array, with the option value as key, and 'optional',
- // or 'mandatory' as value.
- // Parameters :
- // See above.
- // Return Values :
- // 1 on success.
- // 0 on failure.
- // --------------------------------------------------------------------------------
- function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false)
- {
- $v_result=1;
-
- // ----- Read the options
- $i=0;
- while ($i<$p_size) {
-
- // ----- Check if the option is supported
- if (!isset($v_requested_options[$p_options_list[$i]])) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Look for next option
- switch ($p_options_list[$i]) {
- // ----- Look for options that request a path value
- case PCLZIP_OPT_PATH :
- case PCLZIP_OPT_REMOVE_PATH :
- case PCLZIP_OPT_ADD_PATH :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);
- $i++;
- break;
-
- case PCLZIP_OPT_TEMP_FILE_THRESHOLD :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
- return PclZip::errorCode();
- }
-
- // ----- Check for incompatible options
- if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'");
- return PclZip::errorCode();
- }
-
- // ----- Check the value
- $v_value = $p_options_list[$i+1];
- if ((!is_integer($v_value)) || ($v_value<0)) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'");
- return PclZip::errorCode();
- }
-
- // ----- Get the value (and convert it in bytes)
- $v_result_list[$p_options_list[$i]] = $v_value*1048576;
- $i++;
- break;
-
- case PCLZIP_OPT_TEMP_FILE_ON :
- // ----- Check for incompatible options
- if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'");
- return PclZip::errorCode();
- }
-
- $v_result_list[$p_options_list[$i]] = true;
- break;
-
- case PCLZIP_OPT_TEMP_FILE_OFF :
- // ----- Check for incompatible options
- if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_ON'");
- return PclZip::errorCode();
- }
- // ----- Check for incompatible options
- if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) {
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_THRESHOLD'");
- return PclZip::errorCode();
- }
-
- $v_result_list[$p_options_list[$i]] = true;
- break;
-
- case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- if ( is_string($p_options_list[$i+1])
- && ($p_options_list[$i+1] != '')) {
- $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);
- $i++;
- }
- else {
- }
- break;
-
- // ----- Look for options that request an array of string for value
- case PCLZIP_OPT_BY_NAME :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- if (is_string($p_options_list[$i+1])) {
- $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1];
- }
- else if (is_array($p_options_list[$i+1])) {
- $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
- }
- else {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
- $i++;
- break;
-
- // ----- Look for options that request an EREG or PREG expression
- case PCLZIP_OPT_BY_EREG :
- // ereg() is deprecated starting with PHP 5.3. Move PCLZIP_OPT_BY_EREG
- // to PCLZIP_OPT_BY_PREG
- $p_options_list[$i] = PCLZIP_OPT_BY_PREG;
- case PCLZIP_OPT_BY_PREG :
- //case PCLZIP_OPT_CRYPT :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- if (is_string($p_options_list[$i+1])) {
- $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
- }
- else {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
- $i++;
- break;
-
- // ----- Look for options that takes a string
- case PCLZIP_OPT_COMMENT :
- case PCLZIP_OPT_ADD_COMMENT :
- case PCLZIP_OPT_PREPEND_COMMENT :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE,
- "Missing parameter value for option '"
- .PclZipUtilOptionText($p_options_list[$i])
- ."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- if (is_string($p_options_list[$i+1])) {
- $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1];
- }
- else {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE,
- "Wrong parameter value for option '"
- .PclZipUtilOptionText($p_options_list[$i])
- ."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
- $i++;
- break;
-
- // ----- Look for options that request an array of index
- case PCLZIP_OPT_BY_INDEX :
- // ----- Check the number of parameters
- if (($i+1) >= $p_size) {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Get the value
- $v_work_list = array();
- if (is_string($p_options_list[$i+1])) {
-
- // ----- Remove spaces
- $p_options_list[$i+1] = strtr($p_options_list[$i+1], ' ', '');
-
- // ----- Parse items
- $v_work_list = explode(",", $p_options_list[$i+1]);
- }
- else if (is_integer($p_options_list[$i+1])) {
- $v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1];
- }
- else if (is_array($p_options_list[$i+1])) {
- $v_work_list = $p_options_list[$i+1];
- }
- else {
- // ----- Error log
- PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option '".PclZipUtilOptionText($p_options_list[$i])."'");
-
- // ----- Return
- return PclZip::errorCode();
- }
-
- // ----- Reduce the index list
- // each index item in the list must be a couple with a start and
- // an end value : [0,3], [5-5], [8-10], ...
- // ----- Check the format of each item
- $v_sort_flag=false;
- $v_sort_value=0;
- for ($j=0; $j
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
- * array(
- * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
- * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
- * 'rotation' => 0,
- * 'wrap' => TRUE
- * )
- * );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Alignment
- */
- public function applyFromArray($pStyles = NULL) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())
- ->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (isset($pStyles['horizontal'])) {
- $this->setHorizontal($pStyles['horizontal']);
- }
- if (isset($pStyles['vertical'])) {
- $this->setVertical($pStyles['vertical']);
- }
- if (isset($pStyles['rotation'])) {
- $this->setTextRotation($pStyles['rotation']);
- }
- if (isset($pStyles['wrap'])) {
- $this->setWrapText($pStyles['wrap']);
- }
- if (isset($pStyles['shrinkToFit'])) {
- $this->setShrinkToFit($pStyles['shrinkToFit']);
- }
- if (isset($pStyles['indent'])) {
- $this->setIndent($pStyles['indent']);
- }
- if (isset($pStyles['readorder'])) {
- $this->setReadorder($pStyles['readorder']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
+ * array(
+ * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
+ * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
+ * 'rotation' => 0,
+ * 'wrap' => TRUE
+ * )
+ * );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Alignment
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())
+ ->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (isset($pStyles['horizontal'])) {
+ $this->setHorizontal($pStyles['horizontal']);
+ }
+ if (isset($pStyles['vertical'])) {
+ $this->setVertical($pStyles['vertical']);
+ }
+ if (isset($pStyles['rotation'])) {
+ $this->setTextRotation($pStyles['rotation']);
+ }
+ if (isset($pStyles['wrap'])) {
+ $this->setWrapText($pStyles['wrap']);
+ }
+ if (isset($pStyles['shrinkToFit'])) {
+ $this->setShrinkToFit($pStyles['shrinkToFit']);
+ }
+ if (isset($pStyles['indent'])) {
+ $this->setIndent($pStyles['indent']);
+ }
+ if (isset($pStyles['readorder'])) {
+ $this->setReadorder($pStyles['readorder']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Get Horizontal
- *
- * @return string
- */
- public function getHorizontal() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHorizontal();
- }
- return $this->_horizontal;
- }
+ /**
+ * Get Horizontal
+ *
+ * @return string
+ */
+ public function getHorizontal()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHorizontal();
+ }
+ return $this->horizontal;
+ }
- /**
- * Set Horizontal
- *
- * @param string $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setHorizontal($pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) {
- if ($pValue == '') {
- $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL;
- }
+ /**
+ * Set Horizontal
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setHorizontal($pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL)
+ {
+ if ($pValue == '') {
+ $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL;
+ }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('horizontal' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- }
- else {
- $this->_horizontal = $pValue;
- }
- return $this;
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('horizontal' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->horizontal = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Vertical
- *
- * @return string
- */
- public function getVertical() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getVertical();
- }
- return $this->_vertical;
- }
+ /**
+ * Get Vertical
+ *
+ * @return string
+ */
+ public function getVertical()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getVertical();
+ }
+ return $this->vertical;
+ }
- /**
- * Set Vertical
- *
- * @param string $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setVertical($pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM) {
- if ($pValue == '') {
- $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM;
- }
+ /**
+ * Set Vertical
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setVertical($pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM)
+ {
+ if ($pValue == '') {
+ $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM;
+ }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('vertical' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_vertical = $pValue;
- }
- return $this;
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('vertical' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->vertical = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get TextRotation
- *
- * @return int
- */
- public function getTextRotation() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getTextRotation();
- }
- return $this->_textRotation;
- }
+ /**
+ * Get TextRotation
+ *
+ * @return int
+ */
+ public function getTextRotation()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getTextRotation();
+ }
+ return $this->textRotation;
+ }
- /**
- * Set TextRotation
- *
- * @param int $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Alignment
- */
- public function setTextRotation($pValue = 0) {
- // Excel2007 value 255 => PHPExcel value -165
- if ($pValue == 255) {
- $pValue = -165;
- }
+ /**
+ * Set TextRotation
+ *
+ * @param int $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setTextRotation($pValue = 0)
+ {
+ // Excel2007 value 255 => PHPExcel value -165
+ if ($pValue == 255) {
+ $pValue = -165;
+ }
- // Set rotation
- if ( ($pValue >= -90 && $pValue <= 90) || $pValue == -165 ) {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('rotation' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_textRotation = $pValue;
- }
- } else {
- throw new PHPExcel_Exception("Text rotation should be a value between -90 and 90.");
- }
+ // Set rotation
+ if (($pValue >= -90 && $pValue <= 90) || $pValue == -165) {
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('rotation' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->textRotation = $pValue;
+ }
+ } else {
+ throw new PHPExcel_Exception("Text rotation should be a value between -90 and 90.");
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Get Wrap Text
- *
- * @return boolean
- */
- public function getWrapText() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getWrapText();
- }
- return $this->_wrapText;
- }
+ /**
+ * Get Wrap Text
+ *
+ * @return boolean
+ */
+ public function getWrapText()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getWrapText();
+ }
+ return $this->wrapText;
+ }
- /**
- * Set Wrap Text
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setWrapText($pValue = FALSE) {
- if ($pValue == '') {
- $pValue = FALSE;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('wrap' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_wrapText = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Wrap Text
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setWrapText($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('wrap' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->wrapText = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Shrink to fit
- *
- * @return boolean
- */
- public function getShrinkToFit() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getShrinkToFit();
- }
- return $this->_shrinkToFit;
- }
+ /**
+ * Get Shrink to fit
+ *
+ * @return boolean
+ */
+ public function getShrinkToFit()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getShrinkToFit();
+ }
+ return $this->shrinkToFit;
+ }
- /**
- * Set Shrink to fit
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setShrinkToFit($pValue = FALSE) {
- if ($pValue == '') {
- $pValue = FALSE;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('shrinkToFit' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_shrinkToFit = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Shrink to fit
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setShrinkToFit($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('shrinkToFit' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->shrinkToFit = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get indent
- *
- * @return int
- */
- public function getIndent() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getIndent();
- }
- return $this->_indent;
- }
+ /**
+ * Get indent
+ *
+ * @return int
+ */
+ public function getIndent()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getIndent();
+ }
+ return $this->indent;
+ }
- /**
- * Set indent
- *
- * @param int $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setIndent($pValue = 0) {
- if ($pValue > 0) {
- if ($this->getHorizontal() != self::HORIZONTAL_GENERAL &&
- $this->getHorizontal() != self::HORIZONTAL_LEFT &&
- $this->getHorizontal() != self::HORIZONTAL_RIGHT) {
- $pValue = 0; // indent not supported
- }
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('indent' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_indent = $pValue;
- }
- return $this;
- }
+ /**
+ * Set indent
+ *
+ * @param int $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setIndent($pValue = 0)
+ {
+ if ($pValue > 0) {
+ if ($this->getHorizontal() != self::HORIZONTAL_GENERAL &&
+ $this->getHorizontal() != self::HORIZONTAL_LEFT &&
+ $this->getHorizontal() != self::HORIZONTAL_RIGHT) {
+ $pValue = 0; // indent not supported
+ }
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('indent' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->indent = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get read order
- *
- * @return integer
- */
- public function getReadorder() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getReadorder();
- }
- return $this->_readorder;
- }
+ /**
+ * Get read order
+ *
+ * @return integer
+ */
+ public function getReadorder()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getReadorder();
+ }
+ return $this->readorder;
+ }
- /**
- * Set read order
- *
- * @param int $pValue
- * @return PHPExcel_Style_Alignment
- */
- public function setReadorder($pValue = 0) {
- if ($pValue < 0 || $pValue > 2) {
+ /**
+ * Set read order
+ *
+ * @param int $pValue
+ * @return PHPExcel_Style_Alignment
+ */
+ public function setReadorder($pValue = 0)
+ {
+ if ($pValue < 0 || $pValue > 2) {
$pValue = 0;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('readorder' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_readorder = $pValue;
- }
- return $this;
- }
-
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_horizontal
- . $this->_vertical
- . $this->_textRotation
- . ($this->_wrapText ? 't' : 'f')
- . ($this->_shrinkToFit ? 't' : 'f')
- . $this->_indent
- . $this->_readorder
- . __CLASS__
- );
- }
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('readorder' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->readorder = $pValue;
+ }
+ return $this;
+ }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->horizontal .
+ $this->vertical .
+ $this->textRotation .
+ ($this->wrapText ? 't' : 'f') .
+ ($this->shrinkToFit ? 't' : 'f') .
+ $this->indent .
+ $this->readorder .
+ __CLASS__
+ );
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php
index ec737bf0..55efc501 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php
@@ -1,8 +1,9 @@
_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
+ // Initialise values
+ $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
- // bind parent if we are a supervisor
- if ($isSupervisor) {
- $this->_color->bindParent($this, '_color');
- }
- }
+ // bind parent if we are a supervisor
+ if ($isSupervisor) {
+ $this->color->bindParent($this, 'color');
+ }
+ }
- /**
- * Bind parent. Only used for supervisor
- *
- * @param PHPExcel_Style_Borders $parent
- * @param string $parentPropertyName
- * @return PHPExcel_Style_Border
- */
- public function bindParent($parent, $parentPropertyName=NULL)
- {
- $this->_parent = $parent;
- $this->_parentPropertyName = $parentPropertyName;
- return $this;
- }
+ /**
+ * Bind parent. Only used for supervisor
+ *
+ * @param PHPExcel_Style_Borders $parent
+ * @param string $parentPropertyName
+ * @return PHPExcel_Style_Border
+ */
+ public function bindParent($parent, $parentPropertyName = null)
+ {
+ $this->parent = $parent;
+ $this->parentPropertyName = $parentPropertyName;
+ return $this;
+ }
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Border
- * @throws PHPExcel_Exception
- */
- public function getSharedComponent()
- {
- switch ($this->_parentPropertyName) {
- case '_allBorders':
- case '_horizontal':
- case '_inside':
- case '_outline':
- case '_vertical':
- throw new PHPExcel_Exception('Cannot get shared component for a pseudo-border.');
- break;
- case '_bottom':
- return $this->_parent->getSharedComponent()->getBottom(); break;
- case '_diagonal':
- return $this->_parent->getSharedComponent()->getDiagonal(); break;
- case '_left':
- return $this->_parent->getSharedComponent()->getLeft(); break;
- case '_right':
- return $this->_parent->getSharedComponent()->getRight(); break;
- case '_top':
- return $this->_parent->getSharedComponent()->getTop(); break;
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Border
+ * @throws PHPExcel_Exception
+ */
+ public function getSharedComponent()
+ {
+ switch ($this->parentPropertyName) {
+ case 'allBorders':
+ case 'horizontal':
+ case 'inside':
+ case 'outline':
+ case 'vertical':
+ throw new PHPExcel_Exception('Cannot get shared component for a pseudo-border.');
+ break;
+ case 'bottom':
+ return $this->parent->getSharedComponent()->getBottom();
+ case 'diagonal':
+ return $this->parent->getSharedComponent()->getDiagonal();
+ case 'left':
+ return $this->parent->getSharedComponent()->getLeft();
+ case 'right':
+ return $this->parent->getSharedComponent()->getRight();
+ case 'top':
+ return $this->parent->getSharedComponent()->getTop();
+ }
+ }
- }
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ switch ($this->parentPropertyName) {
+ case 'allBorders':
+ case 'bottom':
+ case 'diagonal':
+ case 'horizontal':
+ case 'inside':
+ case 'left':
+ case 'outline':
+ case 'right':
+ case 'top':
+ case 'vertical':
+ $key = strtolower('vertical');
+ break;
+ }
+ return $this->parent->getStyleArray(array($key => $array));
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- switch ($this->_parentPropertyName) {
- case '_allBorders':
- $key = 'allborders'; break;
- case '_bottom':
- $key = 'bottom'; break;
- case '_diagonal':
- $key = 'diagonal'; break;
- case '_horizontal':
- $key = 'horizontal'; break;
- case '_inside':
- $key = 'inside'; break;
- case '_left':
- $key = 'left'; break;
- case '_outline':
- $key = 'outline'; break;
- case '_right':
- $key = 'right'; break;
- case '_top':
- $key = 'top'; break;
- case '_vertical':
- $key = 'vertical'; break;
- }
- return $this->_parent->getStyleArray(array($key => $array));
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray(
+ * array(
+ * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
+ * 'color' => array(
+ * 'rgb' => '808080'
+ * )
+ * )
+ * );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Border
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (isset($pStyles['style'])) {
+ $this->setBorderStyle($pStyles['style']);
+ }
+ if (isset($pStyles['color'])) {
+ $this->getColor()->applyFromArray($pStyles['color']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Apply styles from array
- *
- *
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray(
- * array(
- * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
- * 'color' => array(
- * 'rgb' => '808080'
- * )
- * )
- * );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Border
- */
- public function applyFromArray($pStyles = null) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (isset($pStyles['style'])) {
- $this->setBorderStyle($pStyles['style']);
- }
- if (isset($pStyles['color'])) {
- $this->getColor()->applyFromArray($pStyles['color']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Get Border style
+ *
+ * @return string
+ */
+ public function getBorderStyle()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getBorderStyle();
+ }
+ return $this->borderStyle;
+ }
- /**
- * Get Border style
- *
- * @return string
- */
- public function getBorderStyle() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getBorderStyle();
- }
- return $this->_borderStyle;
- }
+ /**
+ * Set Border style
+ *
+ * @param string|boolean $pValue
+ * When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE
+ * and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM
+ * @return PHPExcel_Style_Border
+ */
+ public function setBorderStyle($pValue = PHPExcel_Style_Border::BORDER_NONE)
+ {
- /**
- * Set Border style
- *
- * @param string|boolean $pValue
- * When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE
- * and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM
- * @return PHPExcel_Style_Border
- */
- public function setBorderStyle($pValue = PHPExcel_Style_Border::BORDER_NONE) {
+ if (empty($pValue)) {
+ $pValue = PHPExcel_Style_Border::BORDER_NONE;
+ } elseif (is_bool($pValue) && $pValue) {
+ $pValue = PHPExcel_Style_Border::BORDER_MEDIUM;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('style' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->borderStyle = $pValue;
+ }
+ return $this;
+ }
- if (empty($pValue)) {
- $pValue = PHPExcel_Style_Border::BORDER_NONE;
- } elseif(is_bool($pValue) && $pValue) {
- $pValue = PHPExcel_Style_Border::BORDER_MEDIUM;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('style' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_borderStyle = $pValue;
- }
- return $this;
- }
+ /**
+ * Get Border Color
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getColor()
+ {
+ return $this->color;
+ }
- /**
- * Get Border Color
- *
- * @return PHPExcel_Style_Color
- */
- public function getColor() {
- return $this->_color;
- }
+ /**
+ * Set Border Color
+ *
+ * @param PHPExcel_Style_Color $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Border
+ */
+ public function setColor(PHPExcel_Style_Color $pValue = null)
+ {
+ // make sure parameter is a real color and not a supervisor
+ $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
- /**
- * Set Border Color
- *
- * @param PHPExcel_Style_Color $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Border
- */
- public function setColor(PHPExcel_Style_Color $pValue = null) {
- // make sure parameter is a real color and not a supervisor
- $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
-
- if ($this->_isSupervisor) {
- $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB()));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_color = $color;
- }
- return $this;
- }
-
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_borderStyle
- . $this->_color->getHashCode()
- . __CLASS__
- );
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB()));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->color = $color;
+ }
+ return $this;
+ }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->borderStyle .
+ $this->color->getHashCode() .
+ __CLASS__
+ );
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Borders.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Borders.php
index 21dcfeee..27c40a48 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Borders.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Borders.php
@@ -1,8 +1,9 @@
_left = new PHPExcel_Style_Border($isSupervisor, $isConditional);
- $this->_right = new PHPExcel_Style_Border($isSupervisor, $isConditional);
- $this->_top = new PHPExcel_Style_Border($isSupervisor, $isConditional);
- $this->_bottom = new PHPExcel_Style_Border($isSupervisor, $isConditional);
- $this->_diagonal = new PHPExcel_Style_Border($isSupervisor, $isConditional);
- $this->_diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE;
+ // Initialise values
+ $this->left = new PHPExcel_Style_Border($isSupervisor, $isConditional);
+ $this->right = new PHPExcel_Style_Border($isSupervisor, $isConditional);
+ $this->top = new PHPExcel_Style_Border($isSupervisor, $isConditional);
+ $this->bottom = new PHPExcel_Style_Border($isSupervisor, $isConditional);
+ $this->diagonal = new PHPExcel_Style_Border($isSupervisor, $isConditional);
+ $this->diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE;
- // Specially for supervisor
- if ($isSupervisor) {
- // Initialize pseudo-borders
- $this->_allBorders = new PHPExcel_Style_Border(TRUE);
- $this->_outline = new PHPExcel_Style_Border(TRUE);
- $this->_inside = new PHPExcel_Style_Border(TRUE);
- $this->_vertical = new PHPExcel_Style_Border(TRUE);
- $this->_horizontal = new PHPExcel_Style_Border(TRUE);
+ // Specially for supervisor
+ if ($isSupervisor) {
+ // Initialize pseudo-borders
+ $this->allBorders = new PHPExcel_Style_Border(true);
+ $this->outline = new PHPExcel_Style_Border(true);
+ $this->inside = new PHPExcel_Style_Border(true);
+ $this->vertical = new PHPExcel_Style_Border(true);
+ $this->horizontal = new PHPExcel_Style_Border(true);
- // bind parent if we are a supervisor
- $this->_left->bindParent($this, '_left');
- $this->_right->bindParent($this, '_right');
- $this->_top->bindParent($this, '_top');
- $this->_bottom->bindParent($this, '_bottom');
- $this->_diagonal->bindParent($this, '_diagonal');
- $this->_allBorders->bindParent($this, '_allBorders');
- $this->_outline->bindParent($this, '_outline');
- $this->_inside->bindParent($this, '_inside');
- $this->_vertical->bindParent($this, '_vertical');
- $this->_horizontal->bindParent($this, '_horizontal');
- }
+ // bind parent if we are a supervisor
+ $this->left->bindParent($this, 'left');
+ $this->right->bindParent($this, 'right');
+ $this->top->bindParent($this, 'top');
+ $this->bottom->bindParent($this, 'bottom');
+ $this->diagonal->bindParent($this, 'diagonal');
+ $this->allBorders->bindParent($this, 'allBorders');
+ $this->outline->bindParent($this, 'outline');
+ $this->inside->bindParent($this, 'inside');
+ $this->vertical->bindParent($this, 'vertical');
+ $this->horizontal->bindParent($this, 'horizontal');
+ }
}
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Borders
- */
- public function getSharedComponent()
- {
- return $this->_parent->getSharedComponent()->getBorders();
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Borders
+ */
+ public function getSharedComponent()
+ {
+ return $this->parent->getSharedComponent()->getBorders();
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- return array('borders' => $array);
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ return array('borders' => $array);
+ }
- /**
+ /**
* Apply styles from array
*
*
* $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
- * array(
- * 'bottom' => array(
- * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
- * 'color' => array(
- * 'rgb' => '808080'
- * )
- * ),
- * 'top' => array(
- * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
- * 'color' => array(
- * 'rgb' => '808080'
- * )
- * )
- * )
+ * array(
+ * 'bottom' => array(
+ * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
+ * 'color' => array(
+ * 'rgb' => '808080'
+ * )
+ * ),
+ * 'top' => array(
+ * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
+ * 'color' => array(
+ * 'rgb' => '808080'
+ * )
+ * )
+ * )
* );
*
*
* $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
- * array(
- * 'allborders' => array(
- * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
- * 'color' => array(
- * 'rgb' => '808080'
- * )
- * )
- * )
+ * array(
+ * 'allborders' => array(
+ * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
+ * 'color' => array(
+ * 'rgb' => '808080'
+ * )
+ * )
+ * )
* );
*
*
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
* @return PHPExcel_Style_Borders
*/
- public function applyFromArray($pStyles = null) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (array_key_exists('left', $pStyles)) {
- $this->getLeft()->applyFromArray($pStyles['left']);
- }
- if (array_key_exists('right', $pStyles)) {
- $this->getRight()->applyFromArray($pStyles['right']);
- }
- if (array_key_exists('top', $pStyles)) {
- $this->getTop()->applyFromArray($pStyles['top']);
- }
- if (array_key_exists('bottom', $pStyles)) {
- $this->getBottom()->applyFromArray($pStyles['bottom']);
- }
- if (array_key_exists('diagonal', $pStyles)) {
- $this->getDiagonal()->applyFromArray($pStyles['diagonal']);
- }
- if (array_key_exists('diagonaldirection', $pStyles)) {
- $this->setDiagonalDirection($pStyles['diagonaldirection']);
- }
- if (array_key_exists('allborders', $pStyles)) {
- $this->getLeft()->applyFromArray($pStyles['allborders']);
- $this->getRight()->applyFromArray($pStyles['allborders']);
- $this->getTop()->applyFromArray($pStyles['allborders']);
- $this->getBottom()->applyFromArray($pStyles['allborders']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (array_key_exists('left', $pStyles)) {
+ $this->getLeft()->applyFromArray($pStyles['left']);
+ }
+ if (array_key_exists('right', $pStyles)) {
+ $this->getRight()->applyFromArray($pStyles['right']);
+ }
+ if (array_key_exists('top', $pStyles)) {
+ $this->getTop()->applyFromArray($pStyles['top']);
+ }
+ if (array_key_exists('bottom', $pStyles)) {
+ $this->getBottom()->applyFromArray($pStyles['bottom']);
+ }
+ if (array_key_exists('diagonal', $pStyles)) {
+ $this->getDiagonal()->applyFromArray($pStyles['diagonal']);
+ }
+ if (array_key_exists('diagonaldirection', $pStyles)) {
+ $this->setDiagonalDirection($pStyles['diagonaldirection']);
+ }
+ if (array_key_exists('allborders', $pStyles)) {
+ $this->getLeft()->applyFromArray($pStyles['allborders']);
+ $this->getRight()->applyFromArray($pStyles['allborders']);
+ $this->getTop()->applyFromArray($pStyles['allborders']);
+ $this->getBottom()->applyFromArray($pStyles['allborders']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
/**
* Get Left
*
* @return PHPExcel_Style_Border
*/
- public function getLeft() {
- return $this->_left;
+ public function getLeft()
+ {
+ return $this->left;
}
/**
@@ -274,8 +268,9 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
*
* @return PHPExcel_Style_Border
*/
- public function getRight() {
- return $this->_right;
+ public function getRight()
+ {
+ return $this->right;
}
/**
@@ -283,8 +278,9 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
*
* @return PHPExcel_Style_Border
*/
- public function getTop() {
- return $this->_top;
+ public function getTop()
+ {
+ return $this->top;
}
/**
@@ -292,8 +288,9 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
*
* @return PHPExcel_Style_Border
*/
- public function getBottom() {
- return $this->_bottom;
+ public function getBottom()
+ {
+ return $this->bottom;
}
/**
@@ -301,8 +298,9 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
*
* @return PHPExcel_Style_Border
*/
- public function getDiagonal() {
- return $this->_diagonal;
+ public function getDiagonal()
+ {
+ return $this->diagonal;
}
/**
@@ -311,11 +309,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @return PHPExcel_Style_Border
* @throws PHPExcel_Exception
*/
- public function getAllBorders() {
- if (!$this->_isSupervisor) {
- throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
- }
- return $this->_allBorders;
+ public function getAllBorders()
+ {
+ if (!$this->isSupervisor) {
+ throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
+ }
+ return $this->allBorders;
}
/**
@@ -324,11 +323,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @return boolean
* @throws PHPExcel_Exception
*/
- public function getOutline() {
- if (!$this->_isSupervisor) {
- throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
- }
- return $this->_outline;
+ public function getOutline()
+ {
+ if (!$this->isSupervisor) {
+ throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
+ }
+ return $this->outline;
}
/**
@@ -337,11 +337,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @return boolean
* @throws PHPExcel_Exception
*/
- public function getInside() {
- if (!$this->_isSupervisor) {
- throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
- }
- return $this->_inside;
+ public function getInside()
+ {
+ if (!$this->isSupervisor) {
+ throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
+ }
+ return $this->inside;
}
/**
@@ -350,11 +351,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @return PHPExcel_Style_Border
* @throws PHPExcel_Exception
*/
- public function getVertical() {
- if (!$this->_isSupervisor) {
- throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
- }
- return $this->_vertical;
+ public function getVertical()
+ {
+ if (!$this->isSupervisor) {
+ throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
+ }
+ return $this->vertical;
}
/**
@@ -363,11 +365,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @return PHPExcel_Style_Border
* @throws PHPExcel_Exception
*/
- public function getHorizontal() {
- if (!$this->_isSupervisor) {
- throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
- }
- return $this->_horizontal;
+ public function getHorizontal()
+ {
+ if (!$this->isSupervisor) {
+ throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.');
+ }
+ return $this->horizontal;
}
/**
@@ -375,11 +378,12 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
*
* @return int
*/
- public function getDiagonalDirection() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getDiagonalDirection();
- }
- return $this->_diagonalDirection;
+ public function getDiagonalDirection()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getDiagonalDirection();
+ }
+ return $this->diagonalDirection;
}
/**
@@ -388,37 +392,38 @@ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExc
* @param int $pValue
* @return PHPExcel_Style_Borders
*/
- public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE) {
+ public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE)
+ {
if ($pValue == '') {
- $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('diagonaldirection' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_diagonalDirection = $pValue;
- }
- return $this;
+ $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('diagonaldirection' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->diagonalDirection = $pValue;
+ }
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashcode();
- }
- return md5(
- $this->getLeft()->getHashCode()
- . $this->getRight()->getHashCode()
- . $this->getTop()->getHashCode()
- . $this->getBottom()->getHashCode()
- . $this->getDiagonal()->getHashCode()
- . $this->getDiagonalDirection()
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashcode();
+ }
+ return md5(
+ $this->getLeft()->getHashCode() .
+ $this->getRight()->getHashCode() .
+ $this->getTop()->getHashCode() .
+ $this->getBottom()->getHashCode() .
+ $this->getDiagonal()->getHashCode() .
+ $this->getDiagonalDirection() .
+ __CLASS__
+ );
}
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php
index a56c9a63..9c7790f0 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php
@@ -1,8 +1,9 @@
_argb = $pARGB;
- }
- }
+ // Initialise values
+ if (!$isConditional) {
+ $this->argb = $pARGB;
+ }
+ }
- /**
- * Bind parent. Only used for supervisor
- *
- * @param mixed $parent
- * @param string $parentPropertyName
- * @return PHPExcel_Style_Color
- */
- public function bindParent($parent, $parentPropertyName=NULL)
- {
- $this->_parent = $parent;
- $this->_parentPropertyName = $parentPropertyName;
- return $this;
- }
+ /**
+ * Bind parent. Only used for supervisor
+ *
+ * @param mixed $parent
+ * @param string $parentPropertyName
+ * @return PHPExcel_Style_Color
+ */
+ public function bindParent($parent, $parentPropertyName = null)
+ {
+ $this->parent = $parent;
+ $this->parentPropertyName = $parentPropertyName;
+ return $this;
+ }
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Color
- */
- public function getSharedComponent()
- {
- switch ($this->_parentPropertyName) {
- case '_endColor':
- return $this->_parent->getSharedComponent()->getEndColor(); break;
- case '_color':
- return $this->_parent->getSharedComponent()->getColor(); break;
- case '_startColor':
- return $this->_parent->getSharedComponent()->getStartColor(); break;
- }
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getSharedComponent()
+ {
+ switch ($this->parentPropertyName) {
+ case 'endColor':
+ return $this->parent->getSharedComponent()->getEndColor();
+ case 'color':
+ return $this->parent->getSharedComponent()->getColor();
+ case 'startColor':
+ return $this->parent->getSharedComponent()->getStartColor();
+ }
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- switch ($this->_parentPropertyName) {
- case '_endColor':
- $key = 'endcolor';
- break;
- case '_color':
- $key = 'color';
- break;
- case '_startColor':
- $key = 'startcolor';
- break;
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ switch ($this->parentPropertyName) {
+ case 'endColor':
+ $key = 'endcolor';
+ break;
+ case 'color':
+ $key = 'color';
+ break;
+ case 'startColor':
+ $key = 'startcolor';
+ break;
- }
- return $this->_parent->getStyleArray(array($key => $array));
- }
+ }
+ return $this->parent->getStyleArray(array($key => $array));
+ }
- /**
- * Apply styles from array
- *
- *
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Color
- */
- public function applyFromArray($pStyles = NULL) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (array_key_exists('rgb', $pStyles)) {
- $this->setRGB($pStyles['rgb']);
- }
- if (array_key_exists('argb', $pStyles)) {
- $this->setARGB($pStyles['argb']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Color
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (array_key_exists('rgb', $pStyles)) {
+ $this->setRGB($pStyles['rgb']);
+ }
+ if (array_key_exists('argb', $pStyles)) {
+ $this->setARGB($pStyles['argb']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Get ARGB
- *
- * @return string
- */
- public function getARGB() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getARGB();
- }
- return $this->_argb;
- }
+ /**
+ * Get ARGB
+ *
+ * @return string
+ */
+ public function getARGB()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getARGB();
+ }
+ return $this->argb;
+ }
- /**
- * Set ARGB
- *
- * @param string $pValue
- * @return PHPExcel_Style_Color
- */
- public function setARGB($pValue = PHPExcel_Style_Color::COLOR_BLACK) {
- if ($pValue == '') {
- $pValue = PHPExcel_Style_Color::COLOR_BLACK;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('argb' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_argb = $pValue;
- }
- return $this;
- }
+ /**
+ * Set ARGB
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style_Color
+ */
+ public function setARGB($pValue = PHPExcel_Style_Color::COLOR_BLACK)
+ {
+ if ($pValue == '') {
+ $pValue = PHPExcel_Style_Color::COLOR_BLACK;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('argb' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->argb = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get RGB
- *
- * @return string
- */
- public function getRGB() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getRGB();
- }
- return substr($this->_argb, 2);
- }
+ /**
+ * Get RGB
+ *
+ * @return string
+ */
+ public function getRGB()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getRGB();
+ }
+ return substr($this->argb, 2);
+ }
- /**
- * Set RGB
- *
- * @param string $pValue RGB value
- * @return PHPExcel_Style_Color
- */
- public function setRGB($pValue = '000000') {
- if ($pValue == '') {
- $pValue = '000000';
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('argb' => 'FF' . $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_argb = 'FF' . $pValue;
- }
- return $this;
- }
+ /**
+ * Set RGB
+ *
+ * @param string $pValue RGB value
+ * @return PHPExcel_Style_Color
+ */
+ public function setRGB($pValue = '000000')
+ {
+ if ($pValue == '') {
+ $pValue = '000000';
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('argb' => 'FF' . $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->argb = 'FF' . $pValue;
+ }
+ return $this;
+ }
- /**
- * Get a specified colour component of an RGB value
- *
- * @private
- * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
- * @param int $offset Position within the RGB value to extract
- * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
- * decimal value
- * @return string The extracted colour component
- */
- private static function _getColourComponent($RGB,$offset,$hex=TRUE) {
- $colour = substr($RGB, $offset, 2);
- if (!$hex)
- $colour = hexdec($colour);
- return $colour;
- }
+ /**
+ * Get a specified colour component of an RGB value
+ *
+ * @private
+ * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
+ * @param int $offset Position within the RGB value to extract
+ * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
+ * decimal value
+ * @return string The extracted colour component
+ */
+ private static function getColourComponent($RGB, $offset, $hex = true)
+ {
+ $colour = substr($RGB, $offset, 2);
+ if (!$hex) {
+ $colour = hexdec($colour);
+ }
+ return $colour;
+ }
- /**
- * Get the red colour component of an RGB value
- *
- * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
- * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
- * decimal value
- * @return string The red colour component
- */
- public static function getRed($RGB,$hex=TRUE) {
- return self::_getColourComponent($RGB, strlen($RGB) - 6, $hex);
- }
+ /**
+ * Get the red colour component of an RGB value
+ *
+ * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
+ * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
+ * decimal value
+ * @return string The red colour component
+ */
+ public static function getRed($RGB, $hex = true)
+ {
+ return self::getColourComponent($RGB, strlen($RGB) - 6, $hex);
+ }
- /**
- * Get the green colour component of an RGB value
- *
- * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
- * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
- * decimal value
- * @return string The green colour component
- */
- public static function getGreen($RGB,$hex=TRUE) {
- return self::_getColourComponent($RGB, strlen($RGB) - 4, $hex);
- }
+ /**
+ * Get the green colour component of an RGB value
+ *
+ * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
+ * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
+ * decimal value
+ * @return string The green colour component
+ */
+ public static function getGreen($RGB, $hex = true)
+ {
+ return self::getColourComponent($RGB, strlen($RGB) - 4, $hex);
+ }
- /**
- * Get the blue colour component of an RGB value
- *
- * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
- * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
- * decimal value
- * @return string The blue colour component
- */
- public static function getBlue($RGB,$hex=TRUE) {
- return self::_getColourComponent($RGB, strlen($RGB) - 2, $hex);
- }
+ /**
+ * Get the blue colour component of an RGB value
+ *
+ * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE
+ * @param boolean $hex Flag indicating whether the component should be returned as a hex or a
+ * decimal value
+ * @return string The blue colour component
+ */
+ public static function getBlue($RGB, $hex = true)
+ {
+ return self::getColourComponent($RGB, strlen($RGB) - 2, $hex);
+ }
- /**
- * Adjust the brightness of a color
- *
- * @param string $hex The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
- * @param float $adjustPercentage The percentage by which to adjust the colour as a float from -1 to 1
- * @return string The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
- */
- public static function changeBrightness($hex, $adjustPercentage) {
- $rgba = (strlen($hex) == 8);
+ /**
+ * Adjust the brightness of a color
+ *
+ * @param string $hex The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
+ * @param float $adjustPercentage The percentage by which to adjust the colour as a float from -1 to 1
+ * @return string The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
+ */
+ public static function changeBrightness($hex, $adjustPercentage)
+ {
+ $rgba = (strlen($hex) == 8);
- $red = self::getRed($hex, FALSE);
- $green = self::getGreen($hex, FALSE);
- $blue = self::getBlue($hex, FALSE);
- if ($adjustPercentage > 0) {
- $red += (255 - $red) * $adjustPercentage;
- $green += (255 - $green) * $adjustPercentage;
- $blue += (255 - $blue) * $adjustPercentage;
- } else {
- $red += $red * $adjustPercentage;
- $green += $green * $adjustPercentage;
- $blue += $blue * $adjustPercentage;
- }
+ $red = self::getRed($hex, false);
+ $green = self::getGreen($hex, false);
+ $blue = self::getBlue($hex, false);
+ if ($adjustPercentage > 0) {
+ $red += (255 - $red) * $adjustPercentage;
+ $green += (255 - $green) * $adjustPercentage;
+ $blue += (255 - $blue) * $adjustPercentage;
+ } else {
+ $red += $red * $adjustPercentage;
+ $green += $green * $adjustPercentage;
+ $blue += $blue * $adjustPercentage;
+ }
- if ($red < 0) $red = 0;
- elseif ($red > 255) $red = 255;
- if ($green < 0) $green = 0;
- elseif ($green > 255) $green = 255;
- if ($blue < 0) $blue = 0;
- elseif ($blue > 255) $blue = 255;
+ if ($red < 0) {
+ $red = 0;
+ } elseif ($red > 255) {
+ $red = 255;
+ }
+ if ($green < 0) {
+ $green = 0;
+ } elseif ($green > 255) {
+ $green = 255;
+ }
+ if ($blue < 0) {
+ $blue = 0;
+ } elseif ($blue > 255) {
+ $blue = 255;
+ }
- $rgb = strtoupper( str_pad(dechex($red), 2, '0', 0) .
- str_pad(dechex($green), 2, '0', 0) .
- str_pad(dechex($blue), 2, '0', 0)
- );
- return (($rgba) ? 'FF' : '') . $rgb;
- }
+ $rgb = strtoupper(
+ str_pad(dechex($red), 2, '0', 0) .
+ str_pad(dechex($green), 2, '0', 0) .
+ str_pad(dechex($blue), 2, '0', 0)
+ );
+ return (($rgba) ? 'FF' : '') . $rgb;
+ }
- /**
- * Get indexed color
- *
- * @param int $pIndex Index entry point into the colour array
- * @param boolean $background Flag to indicate whether default background or foreground colour
- * should be returned if the indexed colour doesn't exist
- * @return PHPExcel_Style_Color
- */
- public static function indexedColor($pIndex, $background=FALSE) {
- // Clean parameter
- $pIndex = intval($pIndex);
+ /**
+ * Get indexed color
+ *
+ * @param int $pIndex Index entry point into the colour array
+ * @param boolean $background Flag to indicate whether default background or foreground colour
+ * should be returned if the indexed colour doesn't exist
+ * @return PHPExcel_Style_Color
+ */
+ public static function indexedColor($pIndex, $background = false)
+ {
+ // Clean parameter
+ $pIndex = intval($pIndex);
- // Indexed colors
- if (is_null(self::$_indexedColors)) {
- self::$_indexedColors = array(
- 1 => 'FF000000', // System Colour #1 - Black
- 2 => 'FFFFFFFF', // System Colour #2 - White
- 3 => 'FFFF0000', // System Colour #3 - Red
- 4 => 'FF00FF00', // System Colour #4 - Green
- 5 => 'FF0000FF', // System Colour #5 - Blue
- 6 => 'FFFFFF00', // System Colour #6 - Yellow
- 7 => 'FFFF00FF', // System Colour #7- Magenta
- 8 => 'FF00FFFF', // System Colour #8- Cyan
- 9 => 'FF800000', // Standard Colour #9
- 10 => 'FF008000', // Standard Colour #10
- 11 => 'FF000080', // Standard Colour #11
- 12 => 'FF808000', // Standard Colour #12
- 13 => 'FF800080', // Standard Colour #13
- 14 => 'FF008080', // Standard Colour #14
- 15 => 'FFC0C0C0', // Standard Colour #15
- 16 => 'FF808080', // Standard Colour #16
- 17 => 'FF9999FF', // Chart Fill Colour #17
- 18 => 'FF993366', // Chart Fill Colour #18
- 19 => 'FFFFFFCC', // Chart Fill Colour #19
- 20 => 'FFCCFFFF', // Chart Fill Colour #20
- 21 => 'FF660066', // Chart Fill Colour #21
- 22 => 'FFFF8080', // Chart Fill Colour #22
- 23 => 'FF0066CC', // Chart Fill Colour #23
- 24 => 'FFCCCCFF', // Chart Fill Colour #24
- 25 => 'FF000080', // Chart Line Colour #25
- 26 => 'FFFF00FF', // Chart Line Colour #26
- 27 => 'FFFFFF00', // Chart Line Colour #27
- 28 => 'FF00FFFF', // Chart Line Colour #28
- 29 => 'FF800080', // Chart Line Colour #29
- 30 => 'FF800000', // Chart Line Colour #30
- 31 => 'FF008080', // Chart Line Colour #31
- 32 => 'FF0000FF', // Chart Line Colour #32
- 33 => 'FF00CCFF', // Standard Colour #33
- 34 => 'FFCCFFFF', // Standard Colour #34
- 35 => 'FFCCFFCC', // Standard Colour #35
- 36 => 'FFFFFF99', // Standard Colour #36
- 37 => 'FF99CCFF', // Standard Colour #37
- 38 => 'FFFF99CC', // Standard Colour #38
- 39 => 'FFCC99FF', // Standard Colour #39
- 40 => 'FFFFCC99', // Standard Colour #40
- 41 => 'FF3366FF', // Standard Colour #41
- 42 => 'FF33CCCC', // Standard Colour #42
- 43 => 'FF99CC00', // Standard Colour #43
- 44 => 'FFFFCC00', // Standard Colour #44
- 45 => 'FFFF9900', // Standard Colour #45
- 46 => 'FFFF6600', // Standard Colour #46
- 47 => 'FF666699', // Standard Colour #47
- 48 => 'FF969696', // Standard Colour #48
- 49 => 'FF003366', // Standard Colour #49
- 50 => 'FF339966', // Standard Colour #50
- 51 => 'FF003300', // Standard Colour #51
- 52 => 'FF333300', // Standard Colour #52
- 53 => 'FF993300', // Standard Colour #53
- 54 => 'FF993366', // Standard Colour #54
- 55 => 'FF333399', // Standard Colour #55
- 56 => 'FF333333' // Standard Colour #56
- );
- }
+ // Indexed colors
+ if (is_null(self::$indexedColors)) {
+ self::$indexedColors = array(
+ 1 => 'FF000000', // System Colour #1 - Black
+ 2 => 'FFFFFFFF', // System Colour #2 - White
+ 3 => 'FFFF0000', // System Colour #3 - Red
+ 4 => 'FF00FF00', // System Colour #4 - Green
+ 5 => 'FF0000FF', // System Colour #5 - Blue
+ 6 => 'FFFFFF00', // System Colour #6 - Yellow
+ 7 => 'FFFF00FF', // System Colour #7- Magenta
+ 8 => 'FF00FFFF', // System Colour #8- Cyan
+ 9 => 'FF800000', // Standard Colour #9
+ 10 => 'FF008000', // Standard Colour #10
+ 11 => 'FF000080', // Standard Colour #11
+ 12 => 'FF808000', // Standard Colour #12
+ 13 => 'FF800080', // Standard Colour #13
+ 14 => 'FF008080', // Standard Colour #14
+ 15 => 'FFC0C0C0', // Standard Colour #15
+ 16 => 'FF808080', // Standard Colour #16
+ 17 => 'FF9999FF', // Chart Fill Colour #17
+ 18 => 'FF993366', // Chart Fill Colour #18
+ 19 => 'FFFFFFCC', // Chart Fill Colour #19
+ 20 => 'FFCCFFFF', // Chart Fill Colour #20
+ 21 => 'FF660066', // Chart Fill Colour #21
+ 22 => 'FFFF8080', // Chart Fill Colour #22
+ 23 => 'FF0066CC', // Chart Fill Colour #23
+ 24 => 'FFCCCCFF', // Chart Fill Colour #24
+ 25 => 'FF000080', // Chart Line Colour #25
+ 26 => 'FFFF00FF', // Chart Line Colour #26
+ 27 => 'FFFFFF00', // Chart Line Colour #27
+ 28 => 'FF00FFFF', // Chart Line Colour #28
+ 29 => 'FF800080', // Chart Line Colour #29
+ 30 => 'FF800000', // Chart Line Colour #30
+ 31 => 'FF008080', // Chart Line Colour #31
+ 32 => 'FF0000FF', // Chart Line Colour #32
+ 33 => 'FF00CCFF', // Standard Colour #33
+ 34 => 'FFCCFFFF', // Standard Colour #34
+ 35 => 'FFCCFFCC', // Standard Colour #35
+ 36 => 'FFFFFF99', // Standard Colour #36
+ 37 => 'FF99CCFF', // Standard Colour #37
+ 38 => 'FFFF99CC', // Standard Colour #38
+ 39 => 'FFCC99FF', // Standard Colour #39
+ 40 => 'FFFFCC99', // Standard Colour #40
+ 41 => 'FF3366FF', // Standard Colour #41
+ 42 => 'FF33CCCC', // Standard Colour #42
+ 43 => 'FF99CC00', // Standard Colour #43
+ 44 => 'FFFFCC00', // Standard Colour #44
+ 45 => 'FFFF9900', // Standard Colour #45
+ 46 => 'FFFF6600', // Standard Colour #46
+ 47 => 'FF666699', // Standard Colour #47
+ 48 => 'FF969696', // Standard Colour #48
+ 49 => 'FF003366', // Standard Colour #49
+ 50 => 'FF339966', // Standard Colour #50
+ 51 => 'FF003300', // Standard Colour #51
+ 52 => 'FF333300', // Standard Colour #52
+ 53 => 'FF993300', // Standard Colour #53
+ 54 => 'FF993366', // Standard Colour #54
+ 55 => 'FF333399', // Standard Colour #55
+ 56 => 'FF333333' // Standard Colour #56
+ );
+ }
- if (array_key_exists($pIndex, self::$_indexedColors)) {
- return new PHPExcel_Style_Color(self::$_indexedColors[$pIndex]);
- }
+ if (array_key_exists($pIndex, self::$indexedColors)) {
+ return new PHPExcel_Style_Color(self::$indexedColors[$pIndex]);
+ }
- if ($background) {
- return new PHPExcel_Style_Color('FFFFFFFF');
- }
- return new PHPExcel_Style_Color('FF000000');
- }
-
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_argb
- . __CLASS__
- );
- }
+ if ($background) {
+ return new PHPExcel_Style_Color(self::COLOR_WHITE);
+ }
+ return new PHPExcel_Style_Color(self::COLOR_BLACK);
+ }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->argb .
+ __CLASS__
+ );
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Conditional.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Conditional.php
index aebf1e31..331362b4 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Conditional.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Conditional.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Style
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,76 +31,76 @@
*
* @category PHPExcel
* @package PHPExcel_Style
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Style_Conditional implements PHPExcel_IComparable
{
- /* Condition types */
- const CONDITION_NONE = 'none';
- const CONDITION_CELLIS = 'cellIs';
- const CONDITION_CONTAINSTEXT = 'containsText';
- const CONDITION_EXPRESSION = 'expression';
+ /* Condition types */
+ const CONDITION_NONE = 'none';
+ const CONDITION_CELLIS = 'cellIs';
+ const CONDITION_CONTAINSTEXT = 'containsText';
+ const CONDITION_EXPRESSION = 'expression';
- /* Operator types */
- const OPERATOR_NONE = '';
- const OPERATOR_BEGINSWITH = 'beginsWith';
- const OPERATOR_ENDSWITH = 'endsWith';
- const OPERATOR_EQUAL = 'equal';
- const OPERATOR_GREATERTHAN = 'greaterThan';
- const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual';
- const OPERATOR_LESSTHAN = 'lessThan';
- const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual';
- const OPERATOR_NOTEQUAL = 'notEqual';
- const OPERATOR_CONTAINSTEXT = 'containsText';
- const OPERATOR_NOTCONTAINS = 'notContains';
- const OPERATOR_BETWEEN = 'between';
+ /* Operator types */
+ const OPERATOR_NONE = '';
+ const OPERATOR_BEGINSWITH = 'beginsWith';
+ const OPERATOR_ENDSWITH = 'endsWith';
+ const OPERATOR_EQUAL = 'equal';
+ const OPERATOR_GREATERTHAN = 'greaterThan';
+ const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual';
+ const OPERATOR_LESSTHAN = 'lessThan';
+ const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual';
+ const OPERATOR_NOTEQUAL = 'notEqual';
+ const OPERATOR_CONTAINSTEXT = 'containsText';
+ const OPERATOR_NOTCONTAINS = 'notContains';
+ const OPERATOR_BETWEEN = 'between';
- /**
- * Condition type
- *
- * @var int
- */
- private $_conditionType;
+ /**
+ * Condition type
+ *
+ * @var int
+ */
+ private $conditionType;
- /**
- * Operator type
- *
- * @var int
- */
- private $_operatorType;
+ /**
+ * Operator type
+ *
+ * @var int
+ */
+ private $operatorType;
- /**
- * Text
- *
- * @var string
- */
- private $_text;
+ /**
+ * Text
+ *
+ * @var string
+ */
+ private $text;
- /**
- * Condition
- *
- * @var string[]
- */
- private $_condition = array();
+ /**
+ * Condition
+ *
+ * @var string[]
+ */
+ private $condition = array();
- /**
- * Style
- *
- * @var PHPExcel_Style
- */
- private $_style;
+ /**
+ * Style
+ *
+ * @var PHPExcel_Style
+ */
+ private $style;
/**
* Create a new PHPExcel_Style_Conditional
*/
public function __construct()
{
- // Initialise values
- $this->_conditionType = PHPExcel_Style_Conditional::CONDITION_NONE;
- $this->_operatorType = PHPExcel_Style_Conditional::OPERATOR_NONE;
- $this->_text = null;
- $this->_condition = array();
- $this->_style = new PHPExcel_Style(FALSE, TRUE);
+ // Initialise values
+ $this->conditionType = PHPExcel_Style_Conditional::CONDITION_NONE;
+ $this->operatorType = PHPExcel_Style_Conditional::OPERATOR_NONE;
+ $this->text = null;
+ $this->condition = array();
+ $this->style = new PHPExcel_Style(false, true);
}
/**
@@ -108,19 +108,21 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
*
* @return string
*/
- public function getConditionType() {
- return $this->_conditionType;
+ public function getConditionType()
+ {
+ return $this->conditionType;
}
/**
* Set Condition type
*
- * @param string $pValue PHPExcel_Style_Conditional condition type
+ * @param string $pValue PHPExcel_Style_Conditional condition type
* @return PHPExcel_Style_Conditional
*/
- public function setConditionType($pValue = PHPExcel_Style_Conditional::CONDITION_NONE) {
- $this->_conditionType = $pValue;
- return $this;
+ public function setConditionType($pValue = PHPExcel_Style_Conditional::CONDITION_NONE)
+ {
+ $this->conditionType = $pValue;
+ return $this;
}
/**
@@ -128,19 +130,21 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
*
* @return string
*/
- public function getOperatorType() {
- return $this->_operatorType;
+ public function getOperatorType()
+ {
+ return $this->operatorType;
}
/**
* Set Operator type
*
- * @param string $pValue PHPExcel_Style_Conditional operator type
+ * @param string $pValue PHPExcel_Style_Conditional operator type
* @return PHPExcel_Style_Conditional
*/
- public function setOperatorType($pValue = PHPExcel_Style_Conditional::OPERATOR_NONE) {
- $this->_operatorType = $pValue;
- return $this;
+ public function setOperatorType($pValue = PHPExcel_Style_Conditional::OPERATOR_NONE)
+ {
+ $this->operatorType = $pValue;
+ return $this;
}
/**
@@ -148,8 +152,9 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
*
* @return string
*/
- public function getText() {
- return $this->_text;
+ public function getText()
+ {
+ return $this->text;
}
/**
@@ -158,9 +163,10 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
* @param string $value
* @return PHPExcel_Style_Conditional
*/
- public function setText($value = null) {
- $this->_text = $value;
- return $this;
+ public function setText($value = null)
+ {
+ $this->text = $value;
+ return $this;
}
/**
@@ -169,26 +175,29 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
* @deprecated Deprecated, use getConditions instead
* @return string
*/
- public function getCondition() {
- if (isset($this->_condition[0])) {
- return $this->_condition[0];
- }
+ public function getCondition()
+ {
+ if (isset($this->condition[0])) {
+ return $this->condition[0];
+ }
- return '';
+ return '';
}
/**
* Set Condition
*
* @deprecated Deprecated, use setConditions instead
- * @param string $pValue Condition
+ * @param string $pValue Condition
* @return PHPExcel_Style_Conditional
*/
- public function setCondition($pValue = '') {
- if (!is_array($pValue))
- $pValue = array($pValue);
+ public function setCondition($pValue = '')
+ {
+ if (!is_array($pValue)) {
+ $pValue = array($pValue);
+ }
- return $this->setConditions($pValue);
+ return $this->setConditions($pValue);
}
/**
@@ -196,33 +205,36 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
*
* @return string[]
*/
- public function getConditions() {
- return $this->_condition;
+ public function getConditions()
+ {
+ return $this->condition;
}
/**
* Set Conditions
*
- * @param string[] $pValue Condition
+ * @param string[] $pValue Condition
* @return PHPExcel_Style_Conditional
*/
- public function setConditions($pValue) {
- if (!is_array($pValue))
- $pValue = array($pValue);
-
- $this->_condition = $pValue;
- return $this;
+ public function setConditions($pValue)
+ {
+ if (!is_array($pValue)) {
+ $pValue = array($pValue);
+ }
+ $this->condition = $pValue;
+ return $this;
}
/**
* Add Condition
*
- * @param string $pValue Condition
+ * @param string $pValue Condition
* @return PHPExcel_Style_Conditional
*/
- public function addCondition($pValue = '') {
- $this->_condition[] = $pValue;
- return $this;
+ public function addCondition($pValue = '')
+ {
+ $this->condition[] = $pValue;
+ return $this;
}
/**
@@ -230,48 +242,52 @@ class PHPExcel_Style_Conditional implements PHPExcel_IComparable
*
* @return PHPExcel_Style
*/
- public function getStyle() {
- return $this->_style;
+ public function getStyle()
+ {
+ return $this->style;
}
/**
* Set Style
*
- * @param PHPExcel_Style $pValue
- * @throws PHPExcel_Exception
+ * @param PHPExcel_Style $pValue
+ * @throws PHPExcel_Exception
* @return PHPExcel_Style_Conditional
*/
- public function setStyle(PHPExcel_Style $pValue = null) {
- $this->_style = $pValue;
- return $this;
+ public function setStyle(PHPExcel_Style $pValue = null)
+ {
+ $this->style = $pValue;
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- $this->_conditionType
- . $this->_operatorType
- . implode(';', $this->_condition)
- . $this->_style->getHashCode()
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ $this->conditionType .
+ $this->operatorType .
+ implode(';', $this->condition) .
+ $this->style->getHashCode() .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Fill.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Fill.php
index 6412ba63..26343ff5 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Fill.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Fill.php
@@ -1,8 +1,9 @@
_fillType = NULL;
- }
- $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional);
- $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
+ // Initialise values
+ if ($isConditional) {
+ $this->fillType = null;
+ }
+ $this->startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional);
+ $this->endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
- // bind parent if we are a supervisor
- if ($isSupervisor) {
- $this->_startColor->bindParent($this, '_startColor');
- $this->_endColor->bindParent($this, '_endColor');
- }
- }
+ // bind parent if we are a supervisor
+ if ($isSupervisor) {
+ $this->startColor->bindParent($this, 'startColor');
+ $this->endColor->bindParent($this, 'endColor');
+ }
+ }
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Fill
- */
- public function getSharedComponent()
- {
- return $this->_parent->getSharedComponent()->getFill();
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Fill
+ */
+ public function getSharedComponent()
+ {
+ return $this->parent->getSharedComponent()->getFill();
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- return array('fill' => $array);
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ return array('fill' => $array);
+ }
- /**
- * Apply styles from array
- *
- *
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray(
- * array(
- * 'type' => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR,
- * 'rotation' => 0,
- * 'startcolor' => array(
- * 'rgb' => '000000'
- * ),
- * 'endcolor' => array(
- * 'argb' => 'FFFFFFFF'
- * )
- * )
- * );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Fill
- */
- public function applyFromArray($pStyles = null) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (array_key_exists('type', $pStyles)) {
- $this->setFillType($pStyles['type']);
- }
- if (array_key_exists('rotation', $pStyles)) {
- $this->setRotation($pStyles['rotation']);
- }
- if (array_key_exists('startcolor', $pStyles)) {
- $this->getStartColor()->applyFromArray($pStyles['startcolor']);
- }
- if (array_key_exists('endcolor', $pStyles)) {
- $this->getEndColor()->applyFromArray($pStyles['endcolor']);
- }
- if (array_key_exists('color', $pStyles)) {
- $this->getStartColor()->applyFromArray($pStyles['color']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray(
+ * array(
+ * 'type' => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR,
+ * 'rotation' => 0,
+ * 'startcolor' => array(
+ * 'rgb' => '000000'
+ * ),
+ * 'endcolor' => array(
+ * 'argb' => 'FFFFFFFF'
+ * )
+ * )
+ * );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Fill
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (array_key_exists('type', $pStyles)) {
+ $this->setFillType($pStyles['type']);
+ }
+ if (array_key_exists('rotation', $pStyles)) {
+ $this->setRotation($pStyles['rotation']);
+ }
+ if (array_key_exists('startcolor', $pStyles)) {
+ $this->getStartColor()->applyFromArray($pStyles['startcolor']);
+ }
+ if (array_key_exists('endcolor', $pStyles)) {
+ $this->getEndColor()->applyFromArray($pStyles['endcolor']);
+ }
+ if (array_key_exists('color', $pStyles)) {
+ $this->getStartColor()->applyFromArray($pStyles['color']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Get Fill Type
- *
- * @return string
- */
- public function getFillType() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getFillType();
- }
- return $this->_fillType;
- }
+ /**
+ * Get Fill Type
+ *
+ * @return string
+ */
+ public function getFillType()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getFillType();
+ }
+ return $this->fillType;
+ }
- /**
- * Set Fill Type
- *
- * @param string $pValue PHPExcel_Style_Fill fill type
- * @return PHPExcel_Style_Fill
- */
- public function setFillType($pValue = PHPExcel_Style_Fill::FILL_NONE) {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('type' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_fillType = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Fill Type
+ *
+ * @param string $pValue PHPExcel_Style_Fill fill type
+ * @return PHPExcel_Style_Fill
+ */
+ public function setFillType($pValue = PHPExcel_Style_Fill::FILL_NONE)
+ {
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('type' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->fillType = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Rotation
- *
- * @return double
- */
- public function getRotation() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getRotation();
- }
- return $this->_rotation;
- }
+ /**
+ * Get Rotation
+ *
+ * @return double
+ */
+ public function getRotation()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getRotation();
+ }
+ return $this->rotation;
+ }
- /**
- * Set Rotation
- *
- * @param double $pValue
- * @return PHPExcel_Style_Fill
- */
- public function setRotation($pValue = 0) {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('rotation' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_rotation = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Rotation
+ *
+ * @param double $pValue
+ * @return PHPExcel_Style_Fill
+ */
+ public function setRotation($pValue = 0)
+ {
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('rotation' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->rotation = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Start Color
- *
- * @return PHPExcel_Style_Color
- */
- public function getStartColor() {
- return $this->_startColor;
- }
+ /**
+ * Get Start Color
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getStartColor()
+ {
+ return $this->startColor;
+ }
- /**
- * Set Start Color
- *
- * @param PHPExcel_Style_Color $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Fill
- */
- public function setStartColor(PHPExcel_Style_Color $pValue = null) {
- // make sure parameter is a real color and not a supervisor
- $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
+ /**
+ * Set Start Color
+ *
+ * @param PHPExcel_Style_Color $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Fill
+ */
+ public function setStartColor(PHPExcel_Style_Color $pValue = null)
+ {
+ // make sure parameter is a real color and not a supervisor
+ $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
- if ($this->_isSupervisor) {
- $styleArray = $this->getStartColor()->getStyleArray(array('argb' => $color->getARGB()));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_startColor = $color;
- }
- return $this;
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStartColor()->getStyleArray(array('argb' => $color->getARGB()));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->startColor = $color;
+ }
+ return $this;
+ }
- /**
- * Get End Color
- *
- * @return PHPExcel_Style_Color
- */
- public function getEndColor() {
- return $this->_endColor;
- }
+ /**
+ * Get End Color
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getEndColor()
+ {
+ return $this->endColor;
+ }
- /**
- * Set End Color
- *
- * @param PHPExcel_Style_Color $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Fill
- */
- public function setEndColor(PHPExcel_Style_Color $pValue = null) {
- // make sure parameter is a real color and not a supervisor
- $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
+ /**
+ * Set End Color
+ *
+ * @param PHPExcel_Style_Color $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Fill
+ */
+ public function setEndColor(PHPExcel_Style_Color $pValue = null)
+ {
+ // make sure parameter is a real color and not a supervisor
+ $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
- if ($this->_isSupervisor) {
- $styleArray = $this->getEndColor()->getStyleArray(array('argb' => $color->getARGB()));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_endColor = $color;
- }
- return $this;
- }
-
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->getFillType()
- . $this->getRotation()
- . $this->getStartColor()->getHashCode()
- . $this->getEndColor()->getHashCode()
- . __CLASS__
- );
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getEndColor()->getStyleArray(array('argb' => $color->getARGB()));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->endColor = $color;
+ }
+ return $this;
+ }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->getFillType() .
+ $this->getRotation() .
+ $this->getStartColor()->getHashCode() .
+ $this->getEndColor()->getHashCode() .
+ __CLASS__
+ );
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php
index 296e3485..9566e1df 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php
@@ -1,8 +1,9 @@
_name = NULL;
- $this->_size = NULL;
- $this->_bold = NULL;
- $this->_italic = NULL;
- $this->_superScript = NULL;
- $this->_subScript = NULL;
- $this->_underline = NULL;
- $this->_strikethrough = NULL;
- $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
- } else {
- $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
- }
- // bind parent if we are a supervisor
- if ($isSupervisor) {
- $this->_color->bindParent($this, '_color');
- }
- }
+ // Initialise values
+ if ($isConditional) {
+ $this->name = null;
+ $this->size = null;
+ $this->bold = null;
+ $this->italic = null;
+ $this->superScript = null;
+ $this->subScript = null;
+ $this->underline = null;
+ $this->strikethrough = null;
+ $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
+ } else {
+ $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
+ }
+ // bind parent if we are a supervisor
+ if ($isSupervisor) {
+ $this->color->bindParent($this, 'color');
+ }
+ }
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Font
- */
- public function getSharedComponent()
- {
- return $this->_parent->getSharedComponent()->getFont();
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Font
+ */
+ public function getSharedComponent()
+ {
+ return $this->parent->getSharedComponent()->getFont();
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- return array('font' => $array);
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ return array('font' => $array);
+ }
- /**
- * Apply styles from array
- *
- *
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
- * array(
- * 'name' => 'Arial',
- * 'bold' => TRUE,
- * 'italic' => FALSE,
- * 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
- * 'strike' => FALSE,
- * 'color' => array(
- * 'rgb' => '808080'
- * )
- * )
- * );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Font
- */
- public function applyFromArray($pStyles = null) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (array_key_exists('name', $pStyles)) {
- $this->setName($pStyles['name']);
- }
- if (array_key_exists('bold', $pStyles)) {
- $this->setBold($pStyles['bold']);
- }
- if (array_key_exists('italic', $pStyles)) {
- $this->setItalic($pStyles['italic']);
- }
- if (array_key_exists('superScript', $pStyles)) {
- $this->setSuperScript($pStyles['superScript']);
- }
- if (array_key_exists('subScript', $pStyles)) {
- $this->setSubScript($pStyles['subScript']);
- }
- if (array_key_exists('underline', $pStyles)) {
- $this->setUnderline($pStyles['underline']);
- }
- if (array_key_exists('strike', $pStyles)) {
- $this->setStrikethrough($pStyles['strike']);
- }
- if (array_key_exists('color', $pStyles)) {
- $this->getColor()->applyFromArray($pStyles['color']);
- }
- if (array_key_exists('size', $pStyles)) {
- $this->setSize($pStyles['size']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
+ * array(
+ * 'name' => 'Arial',
+ * 'bold' => TRUE,
+ * 'italic' => FALSE,
+ * 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
+ * 'strike' => FALSE,
+ * 'color' => array(
+ * 'rgb' => '808080'
+ * )
+ * )
+ * );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Font
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (array_key_exists('name', $pStyles)) {
+ $this->setName($pStyles['name']);
+ }
+ if (array_key_exists('bold', $pStyles)) {
+ $this->setBold($pStyles['bold']);
+ }
+ if (array_key_exists('italic', $pStyles)) {
+ $this->setItalic($pStyles['italic']);
+ }
+ if (array_key_exists('superScript', $pStyles)) {
+ $this->setSuperScript($pStyles['superScript']);
+ }
+ if (array_key_exists('subScript', $pStyles)) {
+ $this->setSubScript($pStyles['subScript']);
+ }
+ if (array_key_exists('underline', $pStyles)) {
+ $this->setUnderline($pStyles['underline']);
+ }
+ if (array_key_exists('strike', $pStyles)) {
+ $this->setStrikethrough($pStyles['strike']);
+ }
+ if (array_key_exists('color', $pStyles)) {
+ $this->getColor()->applyFromArray($pStyles['color']);
+ }
+ if (array_key_exists('size', $pStyles)) {
+ $this->setSize($pStyles['size']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Get Name
- *
- * @return string
- */
- public function getName() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getName();
- }
- return $this->_name;
- }
+ /**
+ * Get Name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getName();
+ }
+ return $this->name;
+ }
- /**
- * Set Name
- *
- * @param string $pValue
- * @return PHPExcel_Style_Font
- */
- public function setName($pValue = 'Calibri') {
- if ($pValue == '') {
- $pValue = 'Calibri';
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('name' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_name = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Name
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setName($pValue = 'Calibri')
+ {
+ if ($pValue == '') {
+ $pValue = 'Calibri';
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('name' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->name = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Size
- *
- * @return double
- */
- public function getSize() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getSize();
- }
- return $this->_size;
- }
+ /**
+ * Get Size
+ *
+ * @return double
+ */
+ public function getSize()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getSize();
+ }
+ return $this->size;
+ }
- /**
- * Set Size
- *
- * @param double $pValue
- * @return PHPExcel_Style_Font
- */
- public function setSize($pValue = 10) {
- if ($pValue == '') {
- $pValue = 10;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('size' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_size = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Size
+ *
+ * @param double $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setSize($pValue = 10)
+ {
+ if ($pValue == '') {
+ $pValue = 10;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('size' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->size = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Bold
- *
- * @return boolean
- */
- public function getBold() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getBold();
- }
- return $this->_bold;
- }
+ /**
+ * Get Bold
+ *
+ * @return boolean
+ */
+ public function getBold()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getBold();
+ }
+ return $this->bold;
+ }
- /**
- * Set Bold
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Font
- */
- public function setBold($pValue = false) {
- if ($pValue == '') {
- $pValue = false;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('bold' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_bold = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Bold
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setBold($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('bold' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->bold = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Italic
- *
- * @return boolean
- */
- public function getItalic() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getItalic();
- }
- return $this->_italic;
- }
+ /**
+ * Get Italic
+ *
+ * @return boolean
+ */
+ public function getItalic()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getItalic();
+ }
+ return $this->italic;
+ }
- /**
- * Set Italic
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Font
- */
- public function setItalic($pValue = false) {
- if ($pValue == '') {
- $pValue = false;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('italic' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_italic = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Italic
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setItalic($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('italic' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->italic = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get SuperScript
- *
- * @return boolean
- */
- public function getSuperScript() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getSuperScript();
- }
- return $this->_superScript;
- }
+ /**
+ * Get SuperScript
+ *
+ * @return boolean
+ */
+ public function getSuperScript()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getSuperScript();
+ }
+ return $this->superScript;
+ }
- /**
- * Set SuperScript
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Font
- */
- public function setSuperScript($pValue = false) {
- if ($pValue == '') {
- $pValue = false;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('superScript' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_superScript = $pValue;
- $this->_subScript = !$pValue;
- }
- return $this;
- }
+ /**
+ * Set SuperScript
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setSuperScript($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('superScript' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->superScript = $pValue;
+ $this->subScript = !$pValue;
+ }
+ return $this;
+ }
- /**
- * Get SubScript
- *
- * @return boolean
- */
- public function getSubScript() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getSubScript();
- }
- return $this->_subScript;
- }
+ /**
+ * Get SubScript
+ *
+ * @return boolean
+ */
+ public function getSubScript()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getSubScript();
+ }
+ return $this->subScript;
+ }
- /**
- * Set SubScript
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Font
- */
- public function setSubScript($pValue = false) {
- if ($pValue == '') {
- $pValue = false;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('subScript' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_subScript = $pValue;
- $this->_superScript = !$pValue;
- }
- return $this;
- }
+ /**
+ * Set SubScript
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setSubScript($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('subScript' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->subScript = $pValue;
+ $this->superScript = !$pValue;
+ }
+ return $this;
+ }
- /**
- * Get Underline
- *
- * @return string
- */
- public function getUnderline() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getUnderline();
- }
- return $this->_underline;
- }
+ /**
+ * Get Underline
+ *
+ * @return string
+ */
+ public function getUnderline()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getUnderline();
+ }
+ return $this->underline;
+ }
- /**
- * Set Underline
- *
- * @param string|boolean $pValue PHPExcel_Style_Font underline type
- * If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE,
- * false equates to UNDERLINE_NONE
- * @return PHPExcel_Style_Font
- */
- public function setUnderline($pValue = self::UNDERLINE_NONE) {
- if (is_bool($pValue)) {
- $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE;
- } elseif ($pValue == '') {
- $pValue = self::UNDERLINE_NONE;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('underline' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_underline = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Underline
+ *
+ * @param string|boolean $pValue PHPExcel_Style_Font underline type
+ * If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE,
+ * false equates to UNDERLINE_NONE
+ * @return PHPExcel_Style_Font
+ */
+ public function setUnderline($pValue = self::UNDERLINE_NONE)
+ {
+ if (is_bool($pValue)) {
+ $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE;
+ } elseif ($pValue == '') {
+ $pValue = self::UNDERLINE_NONE;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('underline' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->underline = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Strikethrough
- *
- * @return boolean
- */
- public function getStrikethrough() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getStrikethrough();
- }
- return $this->_strikethrough;
- }
+ /**
+ * Get Strikethrough
+ *
+ * @return boolean
+ */
+ public function getStrikethrough()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getStrikethrough();
+ }
+ return $this->strikethrough;
+ }
- /**
- * Set Strikethrough
- *
- * @param boolean $pValue
- * @return PHPExcel_Style_Font
- */
- public function setStrikethrough($pValue = false) {
- if ($pValue == '') {
- $pValue = false;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('strike' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_strikethrough = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Strikethrough
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Style_Font
+ */
+ public function setStrikethrough($pValue = false)
+ {
+ if ($pValue == '') {
+ $pValue = false;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('strike' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->strikethrough = $pValue;
+ }
+ return $this;
+ }
- /**
- * Get Color
- *
- * @return PHPExcel_Style_Color
- */
- public function getColor() {
- return $this->_color;
- }
+ /**
+ * Get Color
+ *
+ * @return PHPExcel_Style_Color
+ */
+ public function getColor()
+ {
+ return $this->color;
+ }
- /**
- * Set Color
- *
- * @param PHPExcel_Style_Color $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_Font
- */
- public function setColor(PHPExcel_Style_Color $pValue = null) {
- // make sure parameter is a real color and not a supervisor
- $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
+ /**
+ * Set Color
+ *
+ * @param PHPExcel_Style_Color $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_Font
+ */
+ public function setColor(PHPExcel_Style_Color $pValue = null)
+ {
+ // make sure parameter is a real color and not a supervisor
+ $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
- if ($this->_isSupervisor) {
- $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB()));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_color = $color;
- }
- return $this;
- }
-
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_name
- . $this->_size
- . ($this->_bold ? 't' : 'f')
- . ($this->_italic ? 't' : 'f')
- . ($this->_superScript ? 't' : 'f')
- . ($this->_subScript ? 't' : 'f')
- . $this->_underline
- . ($this->_strikethrough ? 't' : 'f')
- . $this->_color->getHashCode()
- . __CLASS__
- );
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB()));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->color = $color;
+ }
+ return $this;
+ }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->name .
+ $this->size .
+ ($this->bold ? 't' : 'f') .
+ ($this->italic ? 't' : 'f') .
+ ($this->superScript ? 't' : 'f') .
+ ($this->subScript ? 't' : 'f') .
+ $this->underline .
+ ($this->strikethrough ? 't' : 'f') .
+ $this->color->getHashCode() .
+ __CLASS__
+ );
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
index 62ab3e27..1b72cda9 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/NumberFormat.php
@@ -1,8 +1,9 @@
_formatCode = NULL;
- $this->_builtInFormatCode = FALSE;
- }
- }
+ if ($isConditional) {
+ $this->formatCode = null;
+ $this->builtInFormatCode = false;
+ }
+ }
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_NumberFormat
- */
- public function getSharedComponent()
- {
- return $this->_parent->getSharedComponent()->getNumberFormat();
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_NumberFormat
+ */
+ public function getSharedComponent()
+ {
+ return $this->parent->getSharedComponent()->getNumberFormat();
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- return array('numberformat' => $array);
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ return array('numberformat' => $array);
+ }
- /**
- * Apply styles from array
- *
- *
- * $objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
- * array(
- * 'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
- * )
- * );
- *
- *
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
- * @return PHPExcel_Style_NumberFormat
- */
- public function applyFromArray($pStyles = null)
- {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (array_key_exists('code', $pStyles)) {
- $this->setFormatCode($pStyles['code']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ /**
+ * Apply styles from array
+ *
+ *
+ * $objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray(
+ * array(
+ * 'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE
+ * )
+ * );
+ *
+ *
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Style_NumberFormat
+ */
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (array_key_exists('code', $pStyles)) {
+ $this->setFormatCode($pStyles['code']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
- /**
- * Get Format Code
- *
- * @return string
- */
- public function getFormatCode()
- {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getFormatCode();
- }
- if ($this->_builtInFormatCode !== false)
- {
- return self::builtInFormatCode($this->_builtInFormatCode);
- }
- return $this->_formatCode;
- }
+ /**
+ * Get Format Code
+ *
+ * @return string
+ */
+ public function getFormatCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getFormatCode();
+ }
+ if ($this->builtInFormatCode !== false) {
+ return self::builtInFormatCode($this->builtInFormatCode);
+ }
+ return $this->formatCode;
+ }
- /**
- * Set Format Code
- *
- * @param string $pValue
- * @return PHPExcel_Style_NumberFormat
- */
- public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL)
- {
- if ($pValue == '') {
- $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
- }
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('code' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_formatCode = $pValue;
- $this->_builtInFormatCode = self::builtInFormatCodeIndex($pValue);
- }
- return $this;
- }
+ /**
+ * Set Format Code
+ *
+ * @param string $pValue
+ * @return PHPExcel_Style_NumberFormat
+ */
+ public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL)
+ {
+ if ($pValue == '') {
+ $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
+ }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('code' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->formatCode = $pValue;
+ $this->builtInFormatCode = self::builtInFormatCodeIndex($pValue);
+ }
+ return $this;
+ }
- /**
- * Get Built-In Format Code
- *
- * @return int
- */
- public function getBuiltInFormatCode()
- {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getBuiltInFormatCode();
- }
- return $this->_builtInFormatCode;
- }
+ /**
+ * Get Built-In Format Code
+ *
+ * @return int
+ */
+ public function getBuiltInFormatCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getBuiltInFormatCode();
+ }
+ return $this->builtInFormatCode;
+ }
- /**
- * Set Built-In Format Code
- *
- * @param int $pValue
- * @return PHPExcel_Style_NumberFormat
- */
- public function setBuiltInFormatCode($pValue = 0)
- {
+ /**
+ * Set Built-In Format Code
+ *
+ * @param int $pValue
+ * @return PHPExcel_Style_NumberFormat
+ */
+ public function setBuiltInFormatCode($pValue = 0)
+ {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('code' => self::builtInFormatCode($pValue)));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_builtInFormatCode = $pValue;
- $this->_formatCode = self::builtInFormatCode($pValue);
- }
- return $this;
- }
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('code' => self::builtInFormatCode($pValue)));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->builtInFormatCode = $pValue;
+ $this->formatCode = self::builtInFormatCode($pValue);
+ }
+ return $this;
+ }
- /**
- * Fill built-in format codes
- */
- private static function fillBuiltInFormatCodes()
- {
- // Built-in format codes
- if (is_null(self::$_builtInFormats)) {
- self::$_builtInFormats = array();
+ /**
+ * Fill built-in format codes
+ */
+ private static function fillBuiltInFormatCodes()
+ {
+ // [MS-OI29500: Microsoft Office Implementation Information for ISO/IEC-29500 Standard Compliance]
+ // 18.8.30. numFmt (Number Format)
+ //
+ // The ECMA standard defines built-in format IDs
+ // 14: "mm-dd-yy"
+ // 22: "m/d/yy h:mm"
+ // 37: "#,##0 ;(#,##0)"
+ // 38: "#,##0 ;[Red](#,##0)"
+ // 39: "#,##0.00;(#,##0.00)"
+ // 40: "#,##0.00;[Red](#,##0.00)"
+ // 47: "mmss.0"
+ // KOR fmt 55: "yyyy-mm-dd"
+ // Excel defines built-in format IDs
+ // 14: "m/d/yyyy"
+ // 22: "m/d/yyyy h:mm"
+ // 37: "#,##0_);(#,##0)"
+ // 38: "#,##0_);[Red](#,##0)"
+ // 39: "#,##0.00_);(#,##0.00)"
+ // 40: "#,##0.00_);[Red](#,##0.00)"
+ // 47: "mm:ss.0"
+ // KOR fmt 55: "yyyy/mm/dd"
+
+ // Built-in format codes
+ if (is_null(self::$builtInFormats)) {
+ self::$builtInFormats = array();
- // General
- self::$_builtInFormats[0] = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
- self::$_builtInFormats[1] = '0';
- self::$_builtInFormats[2] = '0.00';
- self::$_builtInFormats[3] = '#,##0';
- self::$_builtInFormats[4] = '#,##0.00';
+ // General
+ self::$builtInFormats[0] = PHPExcel_Style_NumberFormat::FORMAT_GENERAL;
+ self::$builtInFormats[1] = '0';
+ self::$builtInFormats[2] = '0.00';
+ self::$builtInFormats[3] = '#,##0';
+ self::$builtInFormats[4] = '#,##0.00';
- self::$_builtInFormats[9] = '0%';
- self::$_builtInFormats[10] = '0.00%';
- self::$_builtInFormats[11] = '0.00E+00';
- self::$_builtInFormats[12] = '# ?/?';
- self::$_builtInFormats[13] = '# ??/??';
- self::$_builtInFormats[14] = 'mm-dd-yy';
- self::$_builtInFormats[15] = 'd-mmm-yy';
- self::$_builtInFormats[16] = 'd-mmm';
- self::$_builtInFormats[17] = 'mmm-yy';
- self::$_builtInFormats[18] = 'h:mm AM/PM';
- self::$_builtInFormats[19] = 'h:mm:ss AM/PM';
- self::$_builtInFormats[20] = 'h:mm';
- self::$_builtInFormats[21] = 'h:mm:ss';
- self::$_builtInFormats[22] = 'm/d/yy h:mm';
+ self::$builtInFormats[9] = '0%';
+ self::$builtInFormats[10] = '0.00%';
+ self::$builtInFormats[11] = '0.00E+00';
+ self::$builtInFormats[12] = '# ?/?';
+ self::$builtInFormats[13] = '# ??/??';
+ self::$builtInFormats[14] = 'm/d/yyyy'; // Despite ECMA 'mm-dd-yy';
+ self::$builtInFormats[15] = 'd-mmm-yy';
+ self::$builtInFormats[16] = 'd-mmm';
+ self::$builtInFormats[17] = 'mmm-yy';
+ self::$builtInFormats[18] = 'h:mm AM/PM';
+ self::$builtInFormats[19] = 'h:mm:ss AM/PM';
+ self::$builtInFormats[20] = 'h:mm';
+ self::$builtInFormats[21] = 'h:mm:ss';
+ self::$builtInFormats[22] = 'm/d/yyyy h:mm'; // Despite ECMA 'm/d/yy h:mm';
- self::$_builtInFormats[37] = '#,##0 ;(#,##0)';
- self::$_builtInFormats[38] = '#,##0 ;[Red](#,##0)';
- self::$_builtInFormats[39] = '#,##0.00;(#,##0.00)';
- self::$_builtInFormats[40] = '#,##0.00;[Red](#,##0.00)';
+ self::$builtInFormats[37] = '#,##0_);(#,##0)'; // Despite ECMA '#,##0 ;(#,##0)';
+ self::$builtInFormats[38] = '#,##0_);[Red](#,##0)'; // Despite ECMA '#,##0 ;[Red](#,##0)';
+ self::$builtInFormats[39] = '#,##0.00_);(#,##0.00)'; // Despite ECMA '#,##0.00;(#,##0.00)';
+ self::$builtInFormats[40] = '#,##0.00_);[Red](#,##0.00)'; // Despite ECMA '#,##0.00;[Red](#,##0.00)';
- self::$_builtInFormats[44] = '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)';
- self::$_builtInFormats[45] = 'mm:ss';
- self::$_builtInFormats[46] = '[h]:mm:ss';
- self::$_builtInFormats[47] = 'mmss.0';
- self::$_builtInFormats[48] = '##0.0E+0';
- self::$_builtInFormats[49] = '@';
+ self::$builtInFormats[44] = '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)';
+ self::$builtInFormats[45] = 'mm:ss';
+ self::$builtInFormats[46] = '[h]:mm:ss';
+ self::$builtInFormats[47] = 'mm:ss.0'; // Despite ECMA 'mmss.0';
+ self::$builtInFormats[48] = '##0.0E+0';
+ self::$builtInFormats[49] = '@';
- // CHT
- self::$_builtInFormats[27] = '[$-404]e/m/d';
- self::$_builtInFormats[30] = 'm/d/yy';
- self::$_builtInFormats[36] = '[$-404]e/m/d';
- self::$_builtInFormats[50] = '[$-404]e/m/d';
- self::$_builtInFormats[57] = '[$-404]e/m/d';
+ // CHT
+ self::$builtInFormats[27] = '[$-404]e/m/d';
+ self::$builtInFormats[30] = 'm/d/yy';
+ self::$builtInFormats[36] = '[$-404]e/m/d';
+ self::$builtInFormats[50] = '[$-404]e/m/d';
+ self::$builtInFormats[57] = '[$-404]e/m/d';
- // THA
- self::$_builtInFormats[59] = 't0';
- self::$_builtInFormats[60] = 't0.00';
- self::$_builtInFormats[61] = 't#,##0';
- self::$_builtInFormats[62] = 't#,##0.00';
- self::$_builtInFormats[67] = 't0%';
- self::$_builtInFormats[68] = 't0.00%';
- self::$_builtInFormats[69] = 't# ?/?';
- self::$_builtInFormats[70] = 't# ??/??';
+ // THA
+ self::$builtInFormats[59] = 't0';
+ self::$builtInFormats[60] = 't0.00';
+ self::$builtInFormats[61] = 't#,##0';
+ self::$builtInFormats[62] = 't#,##0.00';
+ self::$builtInFormats[67] = 't0%';
+ self::$builtInFormats[68] = 't0.00%';
+ self::$builtInFormats[69] = 't# ?/?';
+ self::$builtInFormats[70] = 't# ??/??';
- // Flip array (for faster lookups)
- self::$_flippedBuiltInFormats = array_flip(self::$_builtInFormats);
- }
- }
+ // Flip array (for faster lookups)
+ self::$flippedBuiltInFormats = array_flip(self::$builtInFormats);
+ }
+ }
- /**
- * Get built-in format code
- *
- * @param int $pIndex
- * @return string
- */
- public static function builtInFormatCode($pIndex)
- {
- // Clean parameter
- $pIndex = intval($pIndex);
+ /**
+ * Get built-in format code
+ *
+ * @param int $pIndex
+ * @return string
+ */
+ public static function builtInFormatCode($pIndex)
+ {
+ // Clean parameter
+ $pIndex = intval($pIndex);
- // Ensure built-in format codes are available
- self::fillBuiltInFormatCodes();
+ // Ensure built-in format codes are available
+ self::fillBuiltInFormatCodes();
+ // Lookup format code
+ if (isset(self::$builtInFormats[$pIndex])) {
+ return self::$builtInFormats[$pIndex];
+ }
- // Lookup format code
- if (isset(self::$_builtInFormats[$pIndex])) {
- return self::$_builtInFormats[$pIndex];
- }
+ return '';
+ }
- return '';
- }
+ /**
+ * Get built-in format code index
+ *
+ * @param string $formatCode
+ * @return int|boolean
+ */
+ public static function builtInFormatCodeIndex($formatCode)
+ {
+ // Ensure built-in format codes are available
+ self::fillBuiltInFormatCodes();
- /**
- * Get built-in format code index
- *
- * @param string $formatCode
- * @return int|boolean
- */
- public static function builtInFormatCodeIndex($formatCode)
- {
- // Ensure built-in format codes are available
- self::fillBuiltInFormatCodes();
+ // Lookup format code
+ if (isset(self::$flippedBuiltInFormats[$formatCode])) {
+ return self::$flippedBuiltInFormats[$formatCode];
+ }
- // Lookup format code
- if (isset(self::$_flippedBuiltInFormats[$formatCode])) {
- return self::$_flippedBuiltInFormats[$formatCode];
- }
+ return false;
+ }
- return false;
- }
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->formatCode .
+ $this->builtInFormatCode .
+ __CLASS__
+ );
+ }
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode()
- {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_formatCode
- . $this->_builtInFormatCode
- . __CLASS__
- );
- }
+ /**
+ * Search/replace values to convert Excel date/time format masks to PHP format masks
+ *
+ * @var array
+ */
+ private static $dateFormatReplacements = array(
+ // first remove escapes related to non-format characters
+ '\\' => '',
+ // 12-hour suffix
+ 'am/pm' => 'A',
+ // 4-digit year
+ 'e' => 'Y',
+ 'yyyy' => 'Y',
+ // 2-digit year
+ 'yy' => 'y',
+ // first letter of month - no php equivalent
+ 'mmmmm' => 'M',
+ // full month name
+ 'mmmm' => 'F',
+ // short month name
+ 'mmm' => 'M',
+ // mm is minutes if time, but can also be month w/leading zero
+ // so we try to identify times be the inclusion of a : separator in the mask
+ // It isn't perfect, but the best way I know how
+ ':mm' => ':i',
+ 'mm:' => 'i:',
+ // month leading zero
+ 'mm' => 'm',
+ // month no leading zero
+ 'm' => 'n',
+ // full day of week name
+ 'dddd' => 'l',
+ // short day of week name
+ 'ddd' => 'D',
+ // days leading zero
+ 'dd' => 'd',
+ // days no leading zero
+ 'd' => 'j',
+ // seconds
+ 'ss' => 's',
+ // fractional seconds - no php equivalent
+ '.s' => ''
+ );
+ /**
+ * Search/replace values to convert Excel date/time format masks hours to PHP format masks (24 hr clock)
+ *
+ * @var array
+ */
+ private static $dateFormatReplacements24 = array(
+ 'hh' => 'H',
+ 'h' => 'G'
+ );
+ /**
+ * Search/replace values to convert Excel date/time format masks hours to PHP format masks (12 hr clock)
+ *
+ * @var array
+ */
+ private static $dateFormatReplacements12 = array(
+ 'hh' => 'h',
+ 'h' => 'g'
+ );
- /**
- * Search/replace values to convert Excel date/time format masks to PHP format masks
- *
- * @var array
- */
- private static $_dateFormatReplacements = array(
- // first remove escapes related to non-format characters
- '\\' => '',
- // 12-hour suffix
- 'am/pm' => 'A',
- // 4-digit year
- 'e' => 'Y',
- 'yyyy' => 'Y',
- // 2-digit year
- 'yy' => 'y',
- // first letter of month - no php equivalent
- 'mmmmm' => 'M',
- // full month name
- 'mmmm' => 'F',
- // short month name
- 'mmm' => 'M',
- // mm is minutes if time, but can also be month w/leading zero
- // so we try to identify times be the inclusion of a : separator in the mask
- // It isn't perfect, but the best way I know how
- ':mm' => ':i',
- 'mm:' => 'i:',
- // month leading zero
- 'mm' => 'm',
- // month no leading zero
- 'm' => 'n',
- // full day of week name
- 'dddd' => 'l',
- // short day of week name
- 'ddd' => 'D',
- // days leading zero
- 'dd' => 'd',
- // days no leading zero
- 'd' => 'j',
- // seconds
- 'ss' => 's',
- // fractional seconds - no php equivalent
- '.s' => ''
- );
- /**
- * Search/replace values to convert Excel date/time format masks hours to PHP format masks (24 hr clock)
- *
- * @var array
- */
- private static $_dateFormatReplacements24 = array(
- 'hh' => 'H',
- 'h' => 'G'
- );
- /**
- * Search/replace values to convert Excel date/time format masks hours to PHP format masks (12 hr clock)
- *
- * @var array
- */
- private static $_dateFormatReplacements12 = array(
- 'hh' => 'h',
- 'h' => 'g'
- );
+ private static function setLowercaseCallback($matches) {
+ return mb_strtolower($matches[0]);
+ }
- private static function _formatAsDate(&$value, &$format)
- {
- // dvc: convert Excel formats to PHP date formats
+ private static function escapeQuotesCallback($matches) {
+ return '\\' . implode('\\', str_split($matches[1]));
+ }
- // strip off first part containing e.g. [$-F800] or [$USD-409]
- // general syntax: [$
';
- if ($value != (int)$value) {
- self::_formatAsFraction($value, $format);
- }
+ // Strip #
+ $format = preg_replace('/\\#/', '0', $format);
- } else {
- // Handle the number itself
+ $n = "/\[[^\]]+\]/";
+ $m = preg_replace($n, '', $format);
+ $number_regex = "/(0+)(\.?)(0*)/";
+ if (preg_match($number_regex, $m, $matches)) {
+ $left = $matches[1];
+ $dec = $matches[2];
+ $right = $matches[3];
- // scale number
- $value = $value / $scale;
+ // minimun width of formatted number (including dot)
+ $minWidth = strlen($left) + strlen($dec) + strlen($right);
+ if ($useThousands) {
+ $value = number_format(
+ $value,
+ strlen($right),
+ PHPExcel_Shared_String::getDecimalSeparator(),
+ PHPExcel_Shared_String::getThousandsSeparator()
+ );
+ $value = preg_replace($number_regex, $value, $format);
+ } else {
+ if (preg_match('/[0#]E[+-]0/i', $format)) {
+ // Scientific format
+ $value = sprintf('%5.2E', $value);
+ } elseif (preg_match('/0([^\d\.]+)0/', $format)) {
+ $value = self::complexNumberFormatMask($value, $format);
+ } else {
+ $sprintf_pattern = "%0$minWidth." . strlen($right) . "f";
+ $value = sprintf($sprintf_pattern, $value);
+ $value = preg_replace($number_regex, $value, $format);
+ }
+ }
+ }
+ }
+ if (preg_match('/\[\$(.*)\]/u', $format, $m)) {
+ // Currency or Accounting
+ $currencyFormat = $m[0];
+ $currencyCode = $m[1];
+ list($currencyCode) = explode('-', $currencyCode);
+ if ($currencyCode == '') {
+ $currencyCode = PHPExcel_Shared_String::getCurrencyCode();
+ }
+ $value = preg_replace('/\[\$([^\]]*)\]/u', $currencyCode, $value);
+ }
+ }
+ }
- // Strip #
- $format = preg_replace('/\\#/', '0', $format);
+ // Escape any escaped slashes to a single slash
+ $format = preg_replace("/\\\\/u", '\\', $format);
- $n = "/\[[^\]]+\]/";
- $m = preg_replace($n, '', $format);
- $number_regex = "/(0+)(\.?)(0*)/";
- if (preg_match($number_regex, $m, $matches)) {
- $left = $matches[1];
- $dec = $matches[2];
- $right = $matches[3];
-
- // minimun width of formatted number (including dot)
- $minWidth = strlen($left) + strlen($dec) + strlen($right);
- if ($useThousands) {
- $value = number_format(
- $value
- , strlen($right)
- , PHPExcel_Shared_String::getDecimalSeparator()
- , PHPExcel_Shared_String::getThousandsSeparator()
- );
- $value = preg_replace($number_regex, $value, $format);
- } else {
- if (preg_match('/[0#]E[+-]0/i', $format)) {
- // Scientific format
- $value = sprintf('%5.2E', $value);
- } elseif (preg_match('/0([^\d\.]+)0/', $format)) {
- $value = self::_complexNumberFormatMask($value, $format);
- } else {
- $sprintf_pattern = "%0$minWidth." . strlen($right) . "f";
- $value = sprintf($sprintf_pattern, $value);
- $value = preg_replace($number_regex, $value, $format);
- }
- }
- }
- }
- if (preg_match('/\[\$(.*)\]/u', $format, $m)) {
- // Currency or Accounting
- $currencyFormat = $m[0];
- $currencyCode = $m[1];
- list($currencyCode) = explode('-',$currencyCode);
- if ($currencyCode == '') {
- $currencyCode = PHPExcel_Shared_String::getCurrencyCode();
- }
- $value = preg_replace('/\[\$([^\]]*)\]/u',$currencyCode,$value);
- }
- }
- }
-
- // Additional formatting provided by callback function
- if ($callBack !== null) {
- list($writerInstance, $function) = $callBack;
- $value = $writerInstance->$function($value, $formatColor);
- }
-
- return $value;
- }
+ // Additional formatting provided by callback function
+ if ($callBack !== null) {
+ list($writerInstance, $function) = $callBack;
+ $value = $writerInstance->$function($value, $formatColor);
+ }
+ return $value;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Protection.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Protection.php
index 8dc1f31a..d5568f65 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Protection.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Protection.php
@@ -1,8 +1,9 @@
_locked = self::PROTECTION_INHERIT;
- $this->_hidden = self::PROTECTION_INHERIT;
- }
+ /**
+ * Hidden
+ *
+ * @var string
+ */
+ protected $hidden;
+
+ /**
+ * Create a new PHPExcel_Style_Protection
+ *
+ * @param boolean $isSupervisor Flag indicating if this is a supervisor or not
+ * Leave this value at default unless you understand exactly what
+ * its ramifications are
+ * @param boolean $isConditional Flag indicating if this is a conditional style or not
+ * Leave this value at default unless you understand exactly what
+ * its ramifications are
+ */
+ public function __construct($isSupervisor = false, $isConditional = false)
+ {
+ // Supervisor?
+ parent::__construct($isSupervisor);
+
+ // Initialise values
+ if (!$isConditional) {
+ $this->locked = self::PROTECTION_INHERIT;
+ $this->hidden = self::PROTECTION_INHERIT;
+ }
}
- /**
- * Get the shared style component for the currently active cell in currently active sheet.
- * Only used for style supervisor
- *
- * @return PHPExcel_Style_Protection
- */
- public function getSharedComponent()
- {
- return $this->_parent->getSharedComponent()->getProtection();
- }
+ /**
+ * Get the shared style component for the currently active cell in currently active sheet.
+ * Only used for style supervisor
+ *
+ * @return PHPExcel_Style_Protection
+ */
+ public function getSharedComponent()
+ {
+ return $this->parent->getSharedComponent()->getProtection();
+ }
- /**
- * Build style array from subcomponents
- *
- * @param array $array
- * @return array
- */
- public function getStyleArray($array)
- {
- return array('protection' => $array);
- }
+ /**
+ * Build style array from subcomponents
+ *
+ * @param array $array
+ * @return array
+ */
+ public function getStyleArray($array)
+ {
+ return array('protection' => $array);
+ }
/**
* Apply styles from array
*
*
* $objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray(
- * array(
- * 'locked' => TRUE,
- * 'hidden' => FALSE
- * )
+ * array(
+ * 'locked' => TRUE,
+ * 'hidden' => FALSE
+ * )
* );
*
*
- * @param array $pStyles Array containing style information
- * @throws PHPExcel_Exception
+ * @param array $pStyles Array containing style information
+ * @throws PHPExcel_Exception
* @return PHPExcel_Style_Protection
*/
- public function applyFromArray($pStyles = NULL) {
- if (is_array($pStyles)) {
- if ($this->_isSupervisor) {
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
- } else {
- if (isset($pStyles['locked'])) {
- $this->setLocked($pStyles['locked']);
- }
- if (isset($pStyles['hidden'])) {
- $this->setHidden($pStyles['hidden']);
- }
- }
- } else {
- throw new PHPExcel_Exception("Invalid style array passed.");
- }
- return $this;
- }
+ public function applyFromArray($pStyles = null)
+ {
+ if (is_array($pStyles)) {
+ if ($this->isSupervisor) {
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles));
+ } else {
+ if (isset($pStyles['locked'])) {
+ $this->setLocked($pStyles['locked']);
+ }
+ if (isset($pStyles['hidden'])) {
+ $this->setHidden($pStyles['hidden']);
+ }
+ }
+ } else {
+ throw new PHPExcel_Exception("Invalid style array passed.");
+ }
+ return $this;
+ }
/**
* Get locked
*
* @return string
*/
- public function getLocked() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getLocked();
- }
- return $this->_locked;
+ public function getLocked()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getLocked();
+ }
+ return $this->locked;
}
/**
@@ -150,14 +144,15 @@ class PHPExcel_Style_Protection extends PHPExcel_Style_Supervisor implements PHP
* @param string $pValue
* @return PHPExcel_Style_Protection
*/
- public function setLocked($pValue = self::PROTECTION_INHERIT) {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('locked' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_locked = $pValue;
- }
- return $this;
+ public function setLocked($pValue = self::PROTECTION_INHERIT)
+ {
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('locked' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->locked = $pValue;
+ }
+ return $this;
}
/**
@@ -165,11 +160,12 @@ class PHPExcel_Style_Protection extends PHPExcel_Style_Supervisor implements PHP
*
* @return string
*/
- public function getHidden() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHidden();
- }
- return $this->_hidden;
+ public function getHidden()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHidden();
+ }
+ return $this->hidden;
}
/**
@@ -178,30 +174,31 @@ class PHPExcel_Style_Protection extends PHPExcel_Style_Supervisor implements PHP
* @param string $pValue
* @return PHPExcel_Style_Protection
*/
- public function setHidden($pValue = self::PROTECTION_INHERIT) {
- if ($this->_isSupervisor) {
- $styleArray = $this->getStyleArray(array('hidden' => $pValue));
- $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
- } else {
- $this->_hidden = $pValue;
- }
- return $this;
+ public function setHidden($pValue = self::PROTECTION_INHERIT)
+ {
+ if ($this->isSupervisor) {
+ $styleArray = $this->getStyleArray(array('hidden' => $pValue));
+ $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
+ } else {
+ $this->hidden = $pValue;
+ }
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- if ($this->_isSupervisor) {
- return $this->getSharedComponent()->getHashCode();
- }
- return md5(
- $this->_locked
- . $this->_hidden
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ if ($this->isSupervisor) {
+ return $this->getSharedComponent()->getHashCode();
+ }
+ return md5(
+ $this->locked .
+ $this->hidden .
+ __CLASS__
+ );
}
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php
index 2d21f529..a90e1c6a 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php
@@ -1,8 +1,9 @@
_isSupervisor = $isSupervisor;
- }
+ /**
+ * Create a new PHPExcel_Style_Alignment
+ *
+ * @param boolean $isSupervisor Flag indicating if this is a supervisor or not
+ * Leave this value at default unless you understand exactly what
+ * its ramifications are
+ */
+ public function __construct($isSupervisor = false)
+ {
+ // Supervisor?
+ $this->isSupervisor = $isSupervisor;
+ }
- /**
- * Bind parent. Only used for supervisor
- *
- * @param PHPExcel $parent
- * @return PHPExcel_Style_Supervisor
- */
- public function bindParent($parent, $parentPropertyName=NULL)
- {
- $this->_parent = $parent;
- return $this;
- }
+ /**
+ * Bind parent. Only used for supervisor
+ *
+ * @param PHPExcel $parent
+ * @return PHPExcel_Style_Supervisor
+ */
+ public function bindParent($parent, $parentPropertyName = null)
+ {
+ $this->parent = $parent;
+ return $this;
+ }
- /**
- * Is this a supervisor or a cell style component?
- *
- * @return boolean
- */
- public function getIsSupervisor()
- {
- return $this->_isSupervisor;
- }
+ /**
+ * Is this a supervisor or a cell style component?
+ *
+ * @return boolean
+ */
+ public function getIsSupervisor()
+ {
+ return $this->isSupervisor;
+ }
- /**
- * Get the currently active sheet. Only used for supervisor
- *
- * @return PHPExcel_Worksheet
- */
- public function getActiveSheet()
- {
- return $this->_parent->getActiveSheet();
- }
+ /**
+ * Get the currently active sheet. Only used for supervisor
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getActiveSheet()
+ {
+ return $this->parent->getActiveSheet();
+ }
- /**
- * Get the currently active cell coordinate in currently active sheet.
- * Only used for supervisor
- *
- * @return string E.g. 'A1'
- */
- public function getSelectedCells()
- {
- return $this->getActiveSheet()->getSelectedCells();
- }
+ /**
+ * Get the currently active cell coordinate in currently active sheet.
+ * Only used for supervisor
+ *
+ * @return string E.g. 'A1'
+ */
+ public function getSelectedCells()
+ {
+ return $this->getActiveSheet()->getSelectedCells();
+ }
- /**
- * Get the currently active cell coordinate in currently active sheet.
- * Only used for supervisor
- *
- * @return string E.g. 'A1'
- */
- public function getActiveCell()
- {
- return $this->getActiveSheet()->getActiveCell();
- }
+ /**
+ * Get the currently active cell coordinate in currently active sheet.
+ * Only used for supervisor
+ *
+ * @return string E.g. 'A1'
+ */
+ public function getActiveCell()
+ {
+ return $this->getActiveSheet()->getActiveCell();
+ }
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if ((is_object($value)) && ($key != '_parent')) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if ((is_object($value)) && ($key != 'parent')) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php
index 2b0b57ae..483aa002 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php
@@ -1,8 +1,9 @@
_parent = $pParent;
- $this->setTitle($pTitle, FALSE);
+ $this->parent = $pParent;
+ $this->setTitle($pTitle, false);
// setTitle can change $pTitle
- $this->setCodeName($this->getTitle());
+ $this->setCodeName($this->getTitle());
$this->setSheetState(PHPExcel_Worksheet::SHEETSTATE_VISIBLE);
- $this->_cellCollection = PHPExcel_CachedObjectStorageFactory::getInstance($this);
-
+ $this->cellCollection = PHPExcel_CachedObjectStorageFactory::getInstance($this);
// Set page setup
- $this->_pageSetup = new PHPExcel_Worksheet_PageSetup();
-
+ $this->pageSetup = new PHPExcel_Worksheet_PageSetup();
// Set page margins
- $this->_pageMargins = new PHPExcel_Worksheet_PageMargins();
-
+ $this->pageMargins = new PHPExcel_Worksheet_PageMargins();
// Set page header/footer
- $this->_headerFooter = new PHPExcel_Worksheet_HeaderFooter();
-
+ $this->headerFooter = new PHPExcel_Worksheet_HeaderFooter();
// Set sheet view
- $this->_sheetView = new PHPExcel_Worksheet_SheetView();
-
+ $this->sheetView = new PHPExcel_Worksheet_SheetView();
// Drawing collection
- $this->_drawingCollection = new ArrayObject();
-
+ $this->drawingCollection = new ArrayObject();
// Chart collection
- $this->_chartCollection = new ArrayObject();
-
+ $this->chartCollection = new ArrayObject();
// Protection
- $this->_protection = new PHPExcel_Worksheet_Protection();
-
+ $this->protection = new PHPExcel_Worksheet_Protection();
// Default row dimension
- $this->_defaultRowDimension = new PHPExcel_Worksheet_RowDimension(NULL);
-
+ $this->defaultRowDimension = new PHPExcel_Worksheet_RowDimension(null);
// Default column dimension
- $this->_defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(NULL);
-
- $this->_autoFilter = new PHPExcel_Worksheet_AutoFilter(NULL, $this);
+ $this->defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(null);
+ $this->autoFilter = new PHPExcel_Worksheet_AutoFilter(null, $this);
}
@@ -385,34 +367,36 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* typically so that the worksheet object can be unset
*
*/
- public function disconnectCells() {
- if ( $this->_cellCollection !== NULL){
- $this->_cellCollection->unsetWorksheetCells();
- $this->_cellCollection = NULL;
- }
+ public function disconnectCells()
+ {
+ if ($this->cellCollection !== null) {
+ $this->cellCollection->unsetWorksheetCells();
+ $this->cellCollection = null;
+ }
// detach ourself from the workbook, so that it can then delete this worksheet successfully
- $this->_parent = null;
+ $this->parent = null;
}
/**
* Code to execute when this worksheet is unset()
*
*/
- function __destruct() {
- PHPExcel_Calculation::getInstance($this->_parent)
- ->clearCalculationCacheForWorksheet($this->_title);
+ public function __destruct()
+ {
+ PHPExcel_Calculation::getInstance($this->parent)->clearCalculationCacheForWorksheet($this->title);
- $this->disconnectCells();
- }
+ $this->disconnectCells();
+ }
/**
* Return the cache controller for the cell collection
*
* @return PHPExcel_CachedObjectStorage_xxx
*/
- public function getCellCacheController() {
- return $this->_cellCollection;
- } // function getCellCacheController()
+ public function getCellCacheController()
+ {
+ return $this->cellCollection;
+ }
/**
@@ -422,7 +406,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public static function getInvalidCharacters()
{
- return self::$_invalidCharacters;
+ return self::$invalidCharacters;
}
/**
@@ -432,24 +416,24 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @return string The valid string
* @throws Exception
*/
- private static function _checkSheetCodeName($pValue)
+ private static function checkSheetCodeName($pValue)
{
$CharCount = PHPExcel_Shared_String::CountCharacters($pValue);
if ($CharCount == 0) {
throw new PHPExcel_Exception('Sheet code name cannot be empty.');
}
// Some of the printable ASCII characters are invalid: * : / \ ? [ ] and first and last characters cannot be a "'"
- if ((str_replace(self::$_invalidCharacters, '', $pValue) !== $pValue) ||
- (PHPExcel_Shared_String::Substring($pValue,-1,1)=='\'') ||
- (PHPExcel_Shared_String::Substring($pValue,0,1)=='\'')) {
+ if ((str_replace(self::$invalidCharacters, '', $pValue) !== $pValue) ||
+ (PHPExcel_Shared_String::Substring($pValue, -1, 1)=='\'') ||
+ (PHPExcel_Shared_String::Substring($pValue, 0, 1)=='\'')) {
throw new PHPExcel_Exception('Invalid character found in sheet code name');
}
-
+
// Maximum 31 characters allowed for sheet title
if ($CharCount > 31) {
throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet code name.');
}
-
+
return $pValue;
}
@@ -460,10 +444,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @return string The valid string
* @throws PHPExcel_Exception
*/
- private static function _checkSheetTitle($pValue)
+ private static function checkSheetTitle($pValue)
{
// Some of the printable ASCII characters are invalid: * : / \ ? [ ]
- if (str_replace(self::$_invalidCharacters, '', $pValue) !== $pValue) {
+ if (str_replace(self::$invalidCharacters, '', $pValue) !== $pValue) {
throw new PHPExcel_Exception('Invalid character found in sheet title');
}
@@ -487,8 +471,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Re-order cell collection
return $this->sortCellCollection();
}
- if ($this->_cellCollection !== NULL) {
- return $this->_cellCollection->getCellList();
+ if ($this->cellCollection !== null) {
+ return $this->cellCollection->getCellList();
}
return array();
}
@@ -500,8 +484,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function sortCellCollection()
{
- if ($this->_cellCollection !== NULL) {
- return $this->_cellCollection->getSortedCellList();
+ if ($this->cellCollection !== null) {
+ return $this->cellCollection->getSortedCellList();
}
return array();
}
@@ -513,7 +497,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getRowDimensions()
{
- return $this->_rowDimensions;
+ return $this->rowDimensions;
}
/**
@@ -523,7 +507,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getDefaultRowDimension()
{
- return $this->_defaultRowDimension;
+ return $this->defaultRowDimension;
}
/**
@@ -533,7 +517,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getColumnDimensions()
{
- return $this->_columnDimensions;
+ return $this->columnDimensions;
}
/**
@@ -543,7 +527,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getDefaultColumnDimension()
{
- return $this->_defaultColumnDimension;
+ return $this->defaultColumnDimension;
}
/**
@@ -553,7 +537,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getDrawingCollection()
{
- return $this->_drawingCollection;
+ return $this->drawingCollection;
}
/**
@@ -563,7 +547,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getChartCollection()
{
- return $this->_chartCollection;
+ return $this->chartCollection;
}
/**
@@ -577,10 +561,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
{
$pChart->setWorksheet($this);
if (is_null($iChartIndex)) {
- $this->_chartCollection[] = $pChart;
+ $this->chartCollection[] = $pChart;
} else {
// Insert the chart at the requested index
- array_splice($this->_chartCollection, $iChartIndex, 0, array($pChart));
+ array_splice($this->chartCollection, $iChartIndex, 0, array($pChart));
}
return $pChart;
@@ -593,7 +577,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getChartCount()
{
- return count($this->_chartCollection);
+ return count($this->chartCollection);
}
/**
@@ -605,18 +589,18 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getChartByIndex($index = null)
{
- $chartCount = count($this->_chartCollection);
+ $chartCount = count($this->chartCollection);
if ($chartCount == 0) {
return false;
}
if (is_null($index)) {
$index = --$chartCount;
}
- if (!isset($this->_chartCollection[$index])) {
+ if (!isset($this->chartCollection[$index])) {
return false;
}
- return $this->_chartCollection[$index];
+ return $this->chartCollection[$index];
}
/**
@@ -628,7 +612,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getChartNames()
{
$chartNames = array();
- foreach($this->_chartCollection as $chart) {
+ foreach ($this->chartCollection as $chart) {
$chartNames[] = $chart->getName();
}
return $chartNames;
@@ -643,13 +627,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getChartByName($chartName = '')
{
- $chartCount = count($this->_chartCollection);
+ $chartCount = count($this->chartCollection);
if ($chartCount == 0) {
return false;
}
- foreach($this->_chartCollection as $index => $chart) {
+ foreach ($this->chartCollection as $index => $chart) {
if ($chart->getName() == $chartName) {
- return $this->_chartCollection[$index];
+ return $this->chartCollection[$index];
}
}
return false;
@@ -669,7 +653,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension;
}
- $this->_columnDimensions = $newColumnDimensions;
+ $this->columnDimensions = $newColumnDimensions;
return $this;
}
@@ -688,7 +672,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$newRowDimensions[$objRowDimension->getRowIndex()] = $objRowDimension;
}
- $this->_rowDimensions = $newRowDimensions;
+ $this->rowDimensions = $newRowDimensions;
return $this;
}
@@ -733,7 +717,6 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// There is only something to do if there are some auto-size columns
if (!empty($autoSizes)) {
-
// build list of cells references that participate in a merge
$isMergeCell = array();
foreach ($this->getMergeCells() as $cells) {
@@ -744,23 +727,23 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// loop through all cells in the worksheet
foreach ($this->getCellCollection(false) as $cellID) {
- $cell = $this->getCell($cellID);
- if (isset($autoSizes[$this->_cellCollection->getCurrentColumn()])) {
+ $cell = $this->getCell($cellID, false);
+ if ($cell !== null && isset($autoSizes[$this->cellCollection->getCurrentColumn()])) {
// Determine width if cell does not participate in a merge
- if (!isset($isMergeCell[$this->_cellCollection->getCurrentAddress()])) {
+ if (!isset($isMergeCell[$this->cellCollection->getCurrentAddress()])) {
// Calculated value
// To formatted string
- $cellValue = PHPExcel_Style_NumberFormat::toFormattedString(
- $cell->getCalculatedValue(),
- $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode()
- );
+ $cellValue = PHPExcel_Style_NumberFormat::toFormattedString(
+ $cell->getCalculatedValue(),
+ $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode()
+ );
- $autoSizes[$this->_cellCollection->getCurrentColumn()] = max(
- (float) $autoSizes[$this->_cellCollection->getCurrentColumn()],
+ $autoSizes[$this->cellCollection->getCurrentColumn()] = max(
+ (float) $autoSizes[$this->cellCollection->getCurrentColumn()],
(float)PHPExcel_Shared_Font::calculateColumnWidth(
- $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont(),
+ $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont(),
$cellValue,
- $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getAlignment()->getTextRotation(),
+ $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getAlignment()->getTextRotation(),
$this->getDefaultStyle()->getFont()
)
);
@@ -770,7 +753,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// adjust column widths
foreach ($autoSizes as $columnIndex => $width) {
- if ($width == -1) $width = $this->getDefaultColumnDimension()->getWidth();
+ if ($width == -1) {
+ $width = $this->getDefaultColumnDimension()->getWidth();
+ }
$this->getColumnDimension($columnIndex)->setWidth($width);
}
}
@@ -783,8 +768,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return PHPExcel
*/
- public function getParent() {
- return $this->_parent;
+ public function getParent()
+ {
+ return $this->parent;
}
/**
@@ -793,18 +779,19 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param PHPExcel $parent
* @return PHPExcel_Worksheet
*/
- public function rebindParent(PHPExcel $parent) {
- if ($this->_parent !== null) {
- $namedRanges = $this->_parent->getNamedRanges();
+ public function rebindParent(PHPExcel $parent)
+ {
+ if ($this->parent !== null) {
+ $namedRanges = $this->parent->getNamedRanges();
foreach ($namedRanges as $namedRange) {
$parent->addNamedRange($namedRange);
}
- $this->_parent->removeSheetByIndex(
- $this->_parent->getIndex($this)
+ $this->parent->removeSheetByIndex(
+ $this->parent->getIndex($this)
);
}
- $this->_parent = $parent;
+ $this->parent = $parent;
return $this;
}
@@ -816,7 +803,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getTitle()
{
- return $this->_title;
+ return $this->title;
}
/**
@@ -824,7 +811,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @param string $pValue String containing the dimension of this worksheet
* @param string $updateFormulaCellReferences boolean Flag indicating whether cell references in formulae should
- * be updated to reflect the new sheet name.
+ * be updated to reflect the new sheet name.
* This should be left as the default true, unless you are
* certain that no formula cells on any worksheet contain
* references to this worksheet
@@ -838,49 +825,50 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
}
// Syntax check
- self::_checkSheetTitle($pValue);
+ self::checkSheetTitle($pValue);
// Old title
$oldTitle = $this->getTitle();
- if ($this->_parent) {
+ if ($this->parent) {
// Is there already such sheet name?
- if ($this->_parent->sheetNameExists($pValue)) {
+ if ($this->parent->sheetNameExists($pValue)) {
// Use name, but append with lowest possible integer
if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,29);
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 29);
}
$i = 1;
- while ($this->_parent->sheetNameExists($pValue . ' ' . $i)) {
+ while ($this->parent->sheetNameExists($pValue . ' ' . $i)) {
++$i;
if ($i == 10) {
if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,28);
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 28);
}
} elseif ($i == 100) {
if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,27);
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 27);
}
}
}
$altTitle = $pValue . ' ' . $i;
- return $this->setTitle($altTitle,$updateFormulaCellReferences);
+ return $this->setTitle($altTitle, $updateFormulaCellReferences);
}
}
// Set title
- $this->_title = $pValue;
- $this->_dirty = true;
+ $this->title = $pValue;
+ $this->dirty = true;
- if ($this->_parent) {
+ if ($this->parent && $this->parent->getCalculationEngine()) {
// New title
$newTitle = $this->getTitle();
- PHPExcel_Calculation::getInstance($this->_parent)
- ->renameCalculationCacheForWorksheet($oldTitle, $newTitle);
- if ($updateFormulaCellReferences)
- PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->_parent, $oldTitle, $newTitle);
+ $this->parent->getCalculationEngine()
+ ->renameCalculationCacheForWorksheet($oldTitle, $newTitle);
+ if ($updateFormulaCellReferences) {
+ PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->parent, $oldTitle, $newTitle);
+ }
}
return $this;
@@ -891,8 +879,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return string Sheet state (visible, hidden, veryHidden)
*/
- public function getSheetState() {
- return $this->_sheetState;
+ public function getSheetState()
+ {
+ return $this->sheetState;
}
/**
@@ -901,8 +890,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param string $value Sheet state (visible, hidden, veryHidden)
* @return PHPExcel_Worksheet
*/
- public function setSheetState($value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE) {
- $this->_sheetState = $value;
+ public function setSheetState($value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE)
+ {
+ $this->sheetState = $value;
return $this;
}
@@ -913,7 +903,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getPageSetup()
{
- return $this->_pageSetup;
+ return $this->pageSetup;
}
/**
@@ -924,7 +914,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setPageSetup(PHPExcel_Worksheet_PageSetup $pValue)
{
- $this->_pageSetup = $pValue;
+ $this->pageSetup = $pValue;
return $this;
}
@@ -935,7 +925,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getPageMargins()
{
- return $this->_pageMargins;
+ return $this->pageMargins;
}
/**
@@ -946,7 +936,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setPageMargins(PHPExcel_Worksheet_PageMargins $pValue)
{
- $this->_pageMargins = $pValue;
+ $this->pageMargins = $pValue;
return $this;
}
@@ -957,7 +947,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getHeaderFooter()
{
- return $this->_headerFooter;
+ return $this->headerFooter;
}
/**
@@ -968,7 +958,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setHeaderFooter(PHPExcel_Worksheet_HeaderFooter $pValue)
{
- $this->_headerFooter = $pValue;
+ $this->headerFooter = $pValue;
return $this;
}
@@ -979,7 +969,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getSheetView()
{
- return $this->_sheetView;
+ return $this->sheetView;
}
/**
@@ -990,7 +980,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setSheetView(PHPExcel_Worksheet_SheetView $pValue)
{
- $this->_sheetView = $pValue;
+ $this->sheetView = $pValue;
return $this;
}
@@ -1001,7 +991,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getProtection()
{
- return $this->_protection;
+ return $this->protection;
}
/**
@@ -1012,8 +1002,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setProtection(PHPExcel_Worksheet_Protection $pValue)
{
- $this->_protection = $pValue;
- $this->_dirty = true;
+ $this->protection = $pValue;
+ $this->dirty = true;
return $this;
}
@@ -1028,7 +1018,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getHighestColumn($row = null)
{
if ($row == null) {
- return $this->_cachedHighestColumn;
+ return $this->cachedHighestColumn;
}
return $this->getHighestDataColumn($row);
}
@@ -1042,7 +1032,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getHighestDataColumn($row = null)
{
- return $this->_cellCollection->getHighestColumn($row);
+ return $this->cellCollection->getHighestColumn($row);
}
/**
@@ -1055,7 +1045,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getHighestRow($column = null)
{
if ($column == null) {
- return $this->_cachedHighestRow;
+ return $this->cachedHighestRow;
}
return $this->getHighestDataRow($column);
}
@@ -1069,7 +1059,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getHighestDataRow($column = null)
{
- return $this->_cellCollection->getHighestRow($column);
+ return $this->cellCollection->getHighestRow($column);
}
/**
@@ -1079,7 +1069,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getHighestRowAndColumn()
{
- return $this->_cellCollection->getHighestRowAndColumn();
+ return $this->cellCollection->getHighestRowAndColumn();
}
/**
@@ -1147,30 +1137,31 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* Get cell at a specific coordinate
*
* @param string $pCoordinate Coordinate of the cell
+ * @param boolean $createIfNotExists Flag indicating whether a new cell should be created if it doesn't
+ * already exist, or a null should be returned instead
* @throws PHPExcel_Exception
- * @return PHPExcel_Cell Cell that was found
+ * @return null|PHPExcel_Cell Cell that was found/created or null
*/
- public function getCell($pCoordinate = 'A1')
+ public function getCell($pCoordinate = 'A1', $createIfNotExists = true)
{
- $pCoordinate = strtoupper($pCoordinate);
// Check cell collection
- if ($this->_cellCollection->isDataSet($pCoordinate)) {
- return $this->_cellCollection->getCacheData($pCoordinate);
+ if ($this->cellCollection->isDataSet(strtoupper($pCoordinate))) {
+ return $this->cellCollection->getCacheData($pCoordinate);
}
// Worksheet reference?
if (strpos($pCoordinate, '!') !== false) {
$worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true);
- return $this->_parent->getSheetByName($worksheetReference[0])->getCell($worksheetReference[1]);
+ return $this->parent->getSheetByName($worksheetReference[0])->getCell(strtoupper($worksheetReference[1]), $createIfNotExists);
}
// Named range?
if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) &&
(preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) {
$namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this);
- if ($namedRange !== NULL) {
+ if ($namedRange !== null) {
$pCoordinate = $namedRange->getRange();
- return $namedRange->getWorksheet()->getCell($pCoordinate);
+ return $namedRange->getWorksheet()->getCell($pCoordinate, $createIfNotExists);
}
}
@@ -1183,27 +1174,30 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
throw new PHPExcel_Exception('Cell coordinate must not be absolute.');
}
- // Create new cell object
- return $this->_createNewCell($pCoordinate);
+ // Create new cell object, if required
+ return $createIfNotExists ? $this->createNewCell($pCoordinate) : null;
}
/**
* Get cell at a specific coordinate by using numeric cell coordinates
*
- * @param string $pColumn Numeric column coordinate of the cell
+ * @param string $pColumn Numeric column coordinate of the cell (starting from 0)
* @param string $pRow Numeric row coordinate of the cell
- * @return PHPExcel_Cell Cell that was found
+ * @param boolean $createIfNotExists Flag indicating whether a new cell should be created if it doesn't
+ * already exist, or a null should be returned instead
+ * @return null|PHPExcel_Cell Cell that was found/created or null
*/
- public function getCellByColumnAndRow($pColumn = 0, $pRow = 1)
+ public function getCellByColumnAndRow($pColumn = 0, $pRow = 1, $createIfNotExists = true)
{
$columnLetter = PHPExcel_Cell::stringFromColumnIndex($pColumn);
$coordinate = $columnLetter . $pRow;
- if ($this->_cellCollection->isDataSet($coordinate)) {
- return $this->_cellCollection->getCacheData($coordinate);
+ if ($this->cellCollection->isDataSet($coordinate)) {
+ return $this->cellCollection->getCacheData($coordinate);
}
- return $this->_createNewCell($coordinate);
+ // Create new cell object, if required
+ return $createIfNotExists ? $this->createNewCell($coordinate) : null;
}
/**
@@ -1212,40 +1206,37 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param string $pCoordinate Coordinate of the cell
* @return PHPExcel_Cell Cell that was created
*/
- private function _createNewCell($pCoordinate)
- {
- $cell = $this->_cellCollection->addCacheData(
- $pCoordinate,
- new PHPExcel_Cell(
- NULL,
- PHPExcel_Cell_DataType::TYPE_NULL,
- $this
- )
- );
- $this->_cellCollectionIsSorted = false;
+ private function createNewCell($pCoordinate)
+ {
+ $cell = $this->cellCollection->addCacheData(
+ $pCoordinate,
+ new PHPExcel_Cell(null, PHPExcel_Cell_DataType::TYPE_NULL, $this)
+ );
+ $this->cellCollectionIsSorted = false;
// Coordinates
$aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate);
- if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($aCoordinates[0]))
- $this->_cachedHighestColumn = $aCoordinates[0];
- $this->_cachedHighestRow = max($this->_cachedHighestRow, $aCoordinates[1]);
+ if (PHPExcel_Cell::columnIndexFromString($this->cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($aCoordinates[0])) {
+ $this->cachedHighestColumn = $aCoordinates[0];
+ }
+ $this->cachedHighestRow = max($this->cachedHighestRow, $aCoordinates[1]);
// Cell needs appropriate xfIndex from dimensions records
- // but don't create dimension records if they don't already exist
- $rowDimension = $this->getRowDimension($aCoordinates[1], FALSE);
- $columnDimension = $this->getColumnDimension($aCoordinates[0], FALSE);
+ // but don't create dimension records if they don't already exist
+ $rowDimension = $this->getRowDimension($aCoordinates[1], false);
+ $columnDimension = $this->getColumnDimension($aCoordinates[0], false);
- if ($rowDimension !== NULL && $rowDimension->getXfIndex() > 0) {
+ if ($rowDimension !== null && $rowDimension->getXfIndex() > 0) {
// then there is a row dimension with explicit style, assign it to the cell
$cell->setXfIndex($rowDimension->getXfIndex());
- } elseif ($columnDimension !== NULL && $columnDimension->getXfIndex() > 0) {
+ } elseif ($columnDimension !== null && $columnDimension->getXfIndex() > 0) {
// then there is a column dimension, assign it to the cell
$cell->setXfIndex($columnDimension->getXfIndex());
}
return $cell;
- }
-
+ }
+
/**
* Does the cell at a specific coordinate exist?
*
@@ -1258,14 +1249,14 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Worksheet reference?
if (strpos($pCoordinate, '!') !== false) {
$worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true);
- return $this->_parent->getSheetByName($worksheetReference[0])->cellExists(strtoupper($worksheetReference[1]));
+ return $this->parent->getSheetByName($worksheetReference[0])->cellExists(strtoupper($worksheetReference[1]));
}
// Named range?
if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) &&
(preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) {
$namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this);
- if ($namedRange !== NULL) {
+ if ($namedRange !== null) {
$pCoordinate = $namedRange->getRange();
if ($this->getHashCode() != $namedRange->getWorksheet()->getHashCode()) {
if (!$namedRange->getLocalOnly()) {
@@ -1274,23 +1265,24 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
throw new PHPExcel_Exception('Named range ' . $namedRange->getName() . ' is not accessible from within sheet ' . $this->getTitle());
}
}
+ } else {
+ return false;
}
- else { return false; }
}
// Uppercase coordinate
$pCoordinate = strtoupper($pCoordinate);
- if (strpos($pCoordinate,':') !== false || strpos($pCoordinate,',') !== false) {
+ if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) {
throw new PHPExcel_Exception('Cell coordinate can not be a range of cells.');
- } elseif (strpos($pCoordinate,'$') !== false) {
+ } elseif (strpos($pCoordinate, '$') !== false) {
throw new PHPExcel_Exception('Cell coordinate must not be absolute.');
} else {
// Coordinates
$aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate);
// Cell exists?
- return $this->_cellCollection->isDataSet($pCoordinate);
+ return $this->cellCollection->isDataSet($pCoordinate);
}
}
@@ -1312,20 +1304,21 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param int $pRow Numeric index of the row
* @return PHPExcel_Worksheet_RowDimension
*/
- public function getRowDimension($pRow = 1, $create = TRUE)
+ public function getRowDimension($pRow = 1, $create = true)
{
// Found
$found = null;
// Get row dimension
- if (!isset($this->_rowDimensions[$pRow])) {
- if (!$create)
- return NULL;
- $this->_rowDimensions[$pRow] = new PHPExcel_Worksheet_RowDimension($pRow);
+ if (!isset($this->rowDimensions[$pRow])) {
+ if (!$create) {
+ return null;
+ }
+ $this->rowDimensions[$pRow] = new PHPExcel_Worksheet_RowDimension($pRow);
- $this->_cachedHighestRow = max($this->_cachedHighestRow,$pRow);
+ $this->cachedHighestRow = max($this->cachedHighestRow, $pRow);
}
- return $this->_rowDimensions[$pRow];
+ return $this->rowDimensions[$pRow];
}
/**
@@ -1334,21 +1327,23 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param string $pColumn String index of the column
* @return PHPExcel_Worksheet_ColumnDimension
*/
- public function getColumnDimension($pColumn = 'A', $create = TRUE)
+ public function getColumnDimension($pColumn = 'A', $create = true)
{
// Uppercase coordinate
$pColumn = strtoupper($pColumn);
// Fetch dimensions
- if (!isset($this->_columnDimensions[$pColumn])) {
- if (!$create)
- return NULL;
- $this->_columnDimensions[$pColumn] = new PHPExcel_Worksheet_ColumnDimension($pColumn);
+ if (!isset($this->columnDimensions[$pColumn])) {
+ if (!$create) {
+ return null;
+ }
+ $this->columnDimensions[$pColumn] = new PHPExcel_Worksheet_ColumnDimension($pColumn);
- if (PHPExcel_Cell::columnIndexFromString($this->_cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($pColumn))
- $this->_cachedHighestColumn = $pColumn;
+ if (PHPExcel_Cell::columnIndexFromString($this->cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($pColumn)) {
+ $this->cachedHighestColumn = $pColumn;
+ }
}
- return $this->_columnDimensions[$pColumn];
+ return $this->columnDimensions[$pColumn];
}
/**
@@ -1369,7 +1364,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getStyles()
{
- return $this->_styles;
+ return $this->styles;
}
/**
@@ -1381,7 +1376,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getDefaultStyle()
{
- return $this->_parent->getDefaultStyle();
+ return $this->parent->getDefaultStyle();
}
/**
@@ -1394,7 +1389,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setDefaultStyle(PHPExcel_Style $pValue)
{
- $this->_parent->getDefaultStyle()->applyFromArray(array(
+ $this->parent->getDefaultStyle()->applyFromArray(array(
'font' => array(
'name' => $pValue->getFont()->getName(),
'size' => $pValue->getFont()->getSize(),
@@ -1413,12 +1408,12 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getStyle($pCellCoordinate = 'A1')
{
// set this sheet as active
- $this->_parent->setActiveSheetIndex($this->_parent->getIndex($this));
+ $this->parent->setActiveSheetIndex($this->parent->getIndex($this));
// set cell coordinate as active
$this->setSelectedCells(strtoupper($pCellCoordinate));
- return $this->_parent->getCellXfSupervisor();
+ return $this->parent->getCellXfSupervisor();
}
/**
@@ -1430,10 +1425,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getConditionalStyles($pCoordinate = 'A1')
{
$pCoordinate = strtoupper($pCoordinate);
- if (!isset($this->_conditionalStylesCollection[$pCoordinate])) {
- $this->_conditionalStylesCollection[$pCoordinate] = array();
+ if (!isset($this->conditionalStylesCollection[$pCoordinate])) {
+ $this->conditionalStylesCollection[$pCoordinate] = array();
}
- return $this->_conditionalStylesCollection[$pCoordinate];
+ return $this->conditionalStylesCollection[$pCoordinate];
}
/**
@@ -1444,7 +1439,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function conditionalStylesExists($pCoordinate = 'A1')
{
- if (isset($this->_conditionalStylesCollection[strtoupper($pCoordinate)])) {
+ if (isset($this->conditionalStylesCollection[strtoupper($pCoordinate)])) {
return true;
}
return false;
@@ -1458,7 +1453,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function removeConditionalStyles($pCoordinate = 'A1')
{
- unset($this->_conditionalStylesCollection[strtoupper($pCoordinate)]);
+ unset($this->conditionalStylesCollection[strtoupper($pCoordinate)]);
return $this;
}
@@ -1469,7 +1464,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getConditionalStylesCollection()
{
- return $this->_conditionalStylesCollection;
+ return $this->conditionalStylesCollection;
}
/**
@@ -1481,7 +1476,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setConditionalStyles($pCoordinate = 'A1', $pValue)
{
- $this->_conditionalStylesCollection[strtoupper($pCoordinate)] = $pValue;
+ $this->conditionalStylesCollection[strtoupper($pCoordinate)] = $pValue;
return $this;
}
@@ -1497,10 +1492,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getStyleByColumnAndRow($pColumn = 0, $pRow = 1, $pColumn2 = null, $pRow2 = null)
{
if (!is_null($pColumn2) && !is_null($pRow2)) {
- $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow . ':' .
- PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2;
- return $this->getStyle($cellRange);
- }
+ $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2;
+ return $this->getStyle($cellRange);
+ }
return $this->getStyle(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow);
}
@@ -1538,8 +1532,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$style = $pCellStyle->getIsSupervisor() ? $pCellStyle->getSharedComponent() : $pCellStyle;
// Add the style to the workbook if necessary
- $workbook = $this->_parent;
- if ($existingStyle = $this->_parent->getCellXfByHashCode($pCellStyle->getHashCode())) {
+ $workbook = $this->parent;
+ if ($existingStyle = $this->parent->getCellXfByHashCode($pCellStyle->getHashCode())) {
// there is already such cell Xf in our collection
$xfIndex = $existingStyle->getIndex();
} else {
@@ -1573,14 +1567,14 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* Please note that this will overwrite existing cell styles for cells in range!
*
- * @param array of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate
+ * @param array of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate
* @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
public function duplicateConditionalStyle(array $pCellStyle = null, $pRange = '')
{
- foreach($pCellStyle as $cellStyle) {
+ foreach ($pCellStyle as $cellStyle) {
if (!($cellStyle instanceof PHPExcel_Style_Conditional)) {
throw new PHPExcel_Exception('Style is not a conditional style');
}
@@ -1640,13 +1634,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$pCell = strtoupper($pCell);
if ($pCell != '') {
- if ($pBreak == PHPExcel_Worksheet::BREAK_NONE) {
- if (isset($this->_breaks[$pCell])) {
- unset($this->_breaks[$pCell]);
- }
- } else {
- $this->_breaks[$pCell] = $pBreak;
- }
+ if ($pBreak == PHPExcel_Worksheet::BREAK_NONE) {
+ if (isset($this->breaks[$pCell])) {
+ unset($this->breaks[$pCell]);
+ }
+ } else {
+ $this->breaks[$pCell] = $pBreak;
+ }
} else {
throw new PHPExcel_Exception('No cell coordinate specified.');
}
@@ -1674,7 +1668,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getBreaks()
{
- return $this->_breaks;
+ return $this->breaks;
}
/**
@@ -1689,8 +1683,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Uppercase coordinate
$pRange = strtoupper($pRange);
- if (strpos($pRange,':') !== false) {
- $this->_mergeCells[$pRange] = $pRange;
+ if (strpos($pRange, ':') !== false) {
+ $this->mergeCells[$pRange] = $pRange;
// make sure cells are created
@@ -1703,12 +1697,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$this->getCell($upperLeft)->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL);
}
- // create or blank out the rest of the cells in the range
+ // Blank out the rest of the cells in the range (if they exist)
$count = count($aReferences);
for ($i = 1; $i < $count; $i++) {
- $this->getCell($aReferences[$i])->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL);
+ if ($this->cellExists($aReferences[$i])) {
+ $this->getCell($aReferences[$i])->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL);
+ }
}
-
} else {
throw new PHPExcel_Exception('Merge must be set on a range of cells.');
}
@@ -1744,9 +1739,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Uppercase coordinate
$pRange = strtoupper($pRange);
- if (strpos($pRange,':') !== false) {
- if (isset($this->_mergeCells[$pRange])) {
- unset($this->_mergeCells[$pRange]);
+ if (strpos($pRange, ':') !== false) {
+ if (isset($this->mergeCells[$pRange])) {
+ unset($this->mergeCells[$pRange]);
} else {
throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as merged.');
}
@@ -1780,7 +1775,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getMergeCells()
{
- return $this->_mergeCells;
+ return $this->mergeCells;
}
/**
@@ -1791,8 +1786,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function setMergeCells($pValue = array())
{
- $this->_mergeCells = $pValue;
-
+ $this->mergeCells = $pValue;
return $this;
}
@@ -1813,7 +1807,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
if (!$pAlreadyHashed) {
$pPassword = PHPExcel_Shared_PasswordHasher::hashPassword($pPassword);
}
- $this->_protectedCells[$pRange] = $pPassword;
+ $this->protectedCells[$pRange] = $pPassword;
return $this;
}
@@ -1848,8 +1842,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Uppercase coordinate
$pRange = strtoupper($pRange);
- if (isset($this->_protectedCells[$pRange])) {
- unset($this->_protectedCells[$pRange]);
+ if (isset($this->protectedCells[$pRange])) {
+ unset($this->protectedCells[$pRange]);
} else {
throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as protected.');
}
@@ -1881,7 +1875,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getProtectedCells()
{
- return $this->_protectedCells;
+ return $this->protectedCells;
}
/**
@@ -1891,7 +1885,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getAutoFilter()
{
- return $this->_autoFilter;
+ return $this->autoFilter;
}
/**
@@ -1905,11 +1899,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function setAutoFilter($pValue)
{
$pRange = strtoupper($pValue);
-
if (is_string($pValue)) {
- $this->_autoFilter->setRange($pValue);
- } elseif(is_object($pValue) && ($pValue instanceof PHPExcel_Worksheet_AutoFilter)) {
- $this->_autoFilter = $pValue;
+ $this->autoFilter->setRange($pValue);
+ } elseif (is_object($pValue) && ($pValue instanceof PHPExcel_Worksheet_AutoFilter)) {
+ $this->autoFilter = $pValue;
}
return $this;
}
@@ -1940,7 +1933,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function removeAutoFilter()
{
- $this->_autoFilter->setRange(NULL);
+ $this->autoFilter->setRange(null);
return $this;
}
@@ -1951,7 +1944,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getFreezePane()
{
- return $this->_freezePane;
+ return $this->freezePane;
}
/**
@@ -1970,9 +1963,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
{
// Uppercase coordinate
$pCell = strtoupper($pCell);
-
- if (strpos($pCell,':') === false && strpos($pCell,',') === false) {
- $this->_freezePane = $pCell;
+ if (strpos($pCell, ':') === false && strpos($pCell, ',') === false) {
+ $this->freezePane = $pCell;
} else {
throw new PHPExcel_Exception('Freeze pane can not be set on a range of cells.');
}
@@ -2010,7 +2002,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function insertNewRowBefore($pBefore = 1, $pNumRows = 1) {
+ public function insertNewRowBefore($pBefore = 1, $pNumRows = 1)
+ {
if ($pBefore >= 1) {
$objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
$objReferenceHelper->insertNewBefore('A' . $pBefore, 0, $pNumRows, $this);
@@ -2028,7 +2021,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function insertNewColumnBefore($pBefore = 'A', $pNumCols = 1) {
+ public function insertNewColumnBefore($pBefore = 'A', $pNumCols = 1)
+ {
if (!is_numeric($pBefore)) {
$objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
$objReferenceHelper->insertNewBefore($pBefore . '1', $pNumCols, 0, $this);
@@ -2046,7 +2040,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function insertNewColumnBeforeByIndex($pBefore = 0, $pNumCols = 1) {
+ public function insertNewColumnBeforeByIndex($pBefore = 0, $pNumCols = 1)
+ {
if ($pBefore >= 0) {
return $this->insertNewColumnBefore(PHPExcel_Cell::stringFromColumnIndex($pBefore), $pNumCols);
} else {
@@ -2062,12 +2057,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function removeRow($pRow = 1, $pNumRows = 1) {
+ public function removeRow($pRow = 1, $pNumRows = 1)
+ {
if ($pRow >= 1) {
$highestRow = $this->getHighestDataRow();
$objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
$objReferenceHelper->insertNewBefore('A' . ($pRow + $pNumRows), 0, -$pNumRows, $this);
- for($r = 0; $r < $pNumRows; ++$r) {
+ for ($r = 0; $r < $pNumRows; ++$r) {
$this->getCellCacheController()->removeRow($highestRow);
--$highestRow;
}
@@ -2085,13 +2081,14 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function removeColumn($pColumn = 'A', $pNumCols = 1) {
+ public function removeColumn($pColumn = 'A', $pNumCols = 1)
+ {
if (!is_numeric($pColumn)) {
$highestColumn = $this->getHighestDataColumn();
$pColumn = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($pColumn) - 1 + $pNumCols);
$objReferenceHelper = PHPExcel_ReferenceHelper::getInstance();
$objReferenceHelper->insertNewBefore($pColumn . '1', -$pNumCols, 0, $this);
- for($c = 0; $c < $pNumCols; ++$c) {
+ for ($c = 0; $c < $pNumCols; ++$c) {
$this->getCellCacheController()->removeColumn($highestColumn);
$highestColumn = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($highestColumn) - 2);
}
@@ -2109,7 +2106,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function removeColumnByIndex($pColumn = 0, $pNumCols = 1) {
+ public function removeColumnByIndex($pColumn = 0, $pNumCols = 1)
+ {
if ($pColumn >= 0) {
return $this->removeColumn(PHPExcel_Cell::stringFromColumnIndex($pColumn), $pNumCols);
} else {
@@ -2122,8 +2120,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getShowGridlines() {
- return $this->_showGridlines;
+ public function getShowGridlines()
+ {
+ return $this->showGridlines;
}
/**
@@ -2132,8 +2131,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $pValue Show gridlines (true/false)
* @return PHPExcel_Worksheet
*/
- public function setShowGridlines($pValue = false) {
- $this->_showGridlines = $pValue;
+ public function setShowGridlines($pValue = false)
+ {
+ $this->showGridlines = $pValue;
return $this;
}
@@ -2142,8 +2142,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getPrintGridlines() {
- return $this->_printGridlines;
+ public function getPrintGridlines()
+ {
+ return $this->printGridlines;
}
/**
@@ -2152,8 +2153,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $pValue Print gridlines (true/false)
* @return PHPExcel_Worksheet
*/
- public function setPrintGridlines($pValue = false) {
- $this->_printGridlines = $pValue;
+ public function setPrintGridlines($pValue = false)
+ {
+ $this->printGridlines = $pValue;
return $this;
}
@@ -2162,8 +2164,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getShowRowColHeaders() {
- return $this->_showRowColHeaders;
+ public function getShowRowColHeaders()
+ {
+ return $this->showRowColHeaders;
}
/**
@@ -2172,8 +2175,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $pValue Show row and column headers (true/false)
* @return PHPExcel_Worksheet
*/
- public function setShowRowColHeaders($pValue = false) {
- $this->_showRowColHeaders = $pValue;
+ public function setShowRowColHeaders($pValue = false)
+ {
+ $this->showRowColHeaders = $pValue;
return $this;
}
@@ -2182,8 +2186,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getShowSummaryBelow() {
- return $this->_showSummaryBelow;
+ public function getShowSummaryBelow()
+ {
+ return $this->showSummaryBelow;
}
/**
@@ -2192,8 +2197,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $pValue Show summary below (true/false)
* @return PHPExcel_Worksheet
*/
- public function setShowSummaryBelow($pValue = true) {
- $this->_showSummaryBelow = $pValue;
+ public function setShowSummaryBelow($pValue = true)
+ {
+ $this->showSummaryBelow = $pValue;
return $this;
}
@@ -2202,8 +2208,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getShowSummaryRight() {
- return $this->_showSummaryRight;
+ public function getShowSummaryRight()
+ {
+ return $this->showSummaryRight;
}
/**
@@ -2212,8 +2219,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $pValue Show summary right (true/false)
* @return PHPExcel_Worksheet
*/
- public function setShowSummaryRight($pValue = true) {
- $this->_showSummaryRight = $pValue;
+ public function setShowSummaryRight($pValue = true)
+ {
+ $this->showSummaryRight = $pValue;
return $this;
}
@@ -2224,18 +2232,18 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getComments()
{
- return $this->_comments;
+ return $this->comments;
}
/**
* Set comments array for the entire sheet.
*
- * @param array of PHPExcel_Comment
+ * @param array of PHPExcel_Comment
* @return PHPExcel_Worksheet
*/
public function setComments($pValue = array())
{
- $this->_comments = $pValue;
+ $this->comments = $pValue;
return $this;
}
@@ -2252,20 +2260,20 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Uppercase coordinate
$pCellCoordinate = strtoupper($pCellCoordinate);
- if (strpos($pCellCoordinate,':') !== false || strpos($pCellCoordinate,',') !== false) {
+ if (strpos($pCellCoordinate, ':') !== false || strpos($pCellCoordinate, ',') !== false) {
throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells.');
- } else if (strpos($pCellCoordinate,'$') !== false) {
+ } elseif (strpos($pCellCoordinate, '$') !== false) {
throw new PHPExcel_Exception('Cell coordinate string must not be absolute.');
- } else if ($pCellCoordinate == '') {
+ } elseif ($pCellCoordinate == '') {
throw new PHPExcel_Exception('Cell coordinate can not be zero-length string.');
} else {
// Check if we already have a comment for this cell.
// If not, create a new comment.
- if (isset($this->_comments[$pCellCoordinate])) {
- return $this->_comments[$pCellCoordinate];
+ if (isset($this->comments[$pCellCoordinate])) {
+ return $this->comments[$pCellCoordinate];
} else {
$newComment = new PHPExcel_Comment();
- $this->_comments[$pCellCoordinate] = $newComment;
+ $this->comments[$pCellCoordinate] = $newComment;
return $newComment;
}
}
@@ -2301,7 +2309,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getActiveCell()
{
- return $this->_activeCell;
+ return $this->activeCell;
}
/**
@@ -2311,7 +2319,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getSelectedCells()
{
- return $this->_selectedCells;
+ return $this->selectedCells;
}
/**
@@ -2349,13 +2357,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Convert '1:3' to 'A1:XFD3'
$pCoordinate = preg_replace('/^([0-9]+):([0-9]+)$/', 'A${1}:XFD${2}', $pCoordinate);
- if (strpos($pCoordinate,':') !== false || strpos($pCoordinate,',') !== false) {
+ if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) {
list($first, ) = PHPExcel_Cell::splitRange($pCoordinate);
- $this->_activeCell = $first[0];
+ $this->activeCell = $first[0];
} else {
- $this->_activeCell = $pCoordinate;
+ $this->activeCell = $pCoordinate;
}
- $this->_selectedCells = $pCoordinate;
+ $this->selectedCells = $pCoordinate;
return $this;
}
@@ -2377,8 +2385,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getRightToLeft() {
- return $this->_rightToLeft;
+ public function getRightToLeft()
+ {
+ return $this->rightToLeft;
}
/**
@@ -2387,8 +2396,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param boolean $value Right-to-left true/false
* @return PHPExcel_Worksheet
*/
- public function setRightToLeft($value = false) {
- $this->_rightToLeft = $value;
+ public function setRightToLeft($value = false)
+ {
+ $this->rightToLeft = $value;
return $this;
}
@@ -2402,7 +2412,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet
*/
- public function fromArray($source = null, $nullValue = null, $startCell = 'A1', $strictNullComparison = false) {
+ public function fromArray($source = null, $nullValue = null, $startCell = 'A1', $strictNullComparison = false)
+ {
if (is_array($source)) {
// Convert a 1-D array to 2-D (for ease of looping)
if (!is_array(end($source))) {
@@ -2415,7 +2426,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// Loop through $source
foreach ($source as $rowData) {
$currentColumn = $startColumn;
- foreach($rowData as $cellValue) {
+ foreach ($rowData as $cellValue) {
if ($strictNullComparison) {
if ($cellValue !== $nullValue) {
// Set cell value
@@ -2448,7 +2459,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* True - Return rows and columns indexed by their actual row and column IDs
* @return array
*/
- public function rangeToArray($pRange = 'A1', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) {
+ public function rangeToArray($pRange = 'A1', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false)
+ {
// Returnvalue
$returnValue = array();
// Identify the range that we need to extract from the worksheet
@@ -2468,10 +2480,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
for ($col = $minCol; $col != $maxCol; ++$col) {
$cRef = ($returnCellRef) ? $col : ++$c;
// Using getCell() will create a new cell if it doesn't already exist. We don't want that to happen
- // so we test and retrieve directly against _cellCollection
- if ($this->_cellCollection->isDataSet($col.$row)) {
+ // so we test and retrieve directly against cellCollection
+ if ($this->cellCollection->isDataSet($col.$row)) {
// Cell exists
- $cell = $this->_cellCollection->getCacheData($col.$row);
+ $cell = $this->cellCollection->getCacheData($col.$row);
if ($cell->getValue() !== null) {
if ($cell->getValue() instanceof PHPExcel_RichText) {
$returnValue[$rRef][$cRef] = $cell->getValue()->getPlainText();
@@ -2484,12 +2496,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
}
if ($formatData) {
- $style = $this->_parent->getCellXfByIndex($cell->getXfIndex());
+ $style = $this->parent->getCellXfByIndex($cell->getXfIndex());
$returnValue[$rRef][$cRef] = PHPExcel_Style_NumberFormat::toFormattedString(
- $returnValue[$rRef][$cRef],
- ($style && $style->getNumberFormat()) ?
- $style->getNumberFormat()->getFormatCode() :
- PHPExcel_Style_NumberFormat::FORMAT_GENERAL
+ $returnValue[$rRef][$cRef],
+ ($style && $style->getNumberFormat()) ? $style->getNumberFormat()->getFormatCode() : PHPExcel_Style_NumberFormat::FORMAT_GENERAL
);
}
} else {
@@ -2520,14 +2530,14 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @return array
* @throws PHPExcel_Exception
*/
- public function namedRangeToArray($pNamedRange = '', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) {
+ public function namedRangeToArray($pNamedRange = '', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false)
+ {
$namedRange = PHPExcel_NamedRange::resolveRange($pNamedRange, $this);
- if ($namedRange !== NULL) {
+ if ($namedRange !== null) {
$pWorkSheet = $namedRange->getWorksheet();
$pCellRange = $namedRange->getRange();
- return $pWorkSheet->rangeToArray( $pCellRange,
- $nullValue, $calculateFormulas, $formatData, $returnCellRef);
+ return $pWorkSheet->rangeToArray($pCellRange, $nullValue, $calculateFormulas, $formatData, $returnCellRef);
}
throw new PHPExcel_Exception('Named Range '.$pNamedRange.' does not exist.');
@@ -2544,7 +2554,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* True - Return rows and columns indexed by their actual row and column IDs
* @return array
*/
- public function toArray($nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) {
+ public function toArray($nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false)
+ {
// Garbage collect...
$this->garbageCollect();
@@ -2552,8 +2563,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
$maxCol = $this->getHighestColumn();
$maxRow = $this->getHighestRow();
// Return
- return $this->rangeToArray( 'A1:'.$maxCol.$maxRow,
- $nullValue, $calculateFormulas, $formatData, $returnCellRef);
+ return $this->rangeToArray('A1:'.$maxCol.$maxRow, $nullValue, $calculateFormulas, $formatData, $returnCellRef);
}
/**
@@ -2564,7 +2574,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return PHPExcel_Worksheet_RowIterator
*/
- public function getRowIterator($startRow = 1, $endRow = null) {
+ public function getRowIterator($startRow = 1, $endRow = null)
+ {
return new PHPExcel_Worksheet_RowIterator($this, $startRow, $endRow);
}
@@ -2576,7 +2587,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return PHPExcel_Worksheet_ColumnIterator
*/
- public function getColumnIterator($startColumn = 'A', $endColumn = null) {
+ public function getColumnIterator($startColumn = 'A', $endColumn = null)
+ {
return new PHPExcel_Worksheet_ColumnIterator($this, $startColumn, $endColumn);
}
@@ -2585,9 +2597,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return PHPExcel_Worksheet
*/
- public function garbageCollect() {
+ public function garbageCollect()
+ {
// Flush cache
- $this->_cellCollection->getCacheData('A1');
+ $this->cellCollection->getCacheData('A1');
// Build a reference table from images
// $imageCoordinates = array();
// $iterator = $this->getDrawingCollection()->getIterator();
@@ -2598,27 +2611,27 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
// }
//
// Lookup highest column and highest row if cells are cleaned
- $colRow = $this->_cellCollection->getHighestRowAndColumn();
+ $colRow = $this->cellCollection->getHighestRowAndColumn();
$highestRow = $colRow['row'];
$highestColumn = PHPExcel_Cell::columnIndexFromString($colRow['column']);
// Loop through column dimensions
- foreach ($this->_columnDimensions as $dimension) {
- $highestColumn = max($highestColumn,PHPExcel_Cell::columnIndexFromString($dimension->getColumnIndex()));
+ foreach ($this->columnDimensions as $dimension) {
+ $highestColumn = max($highestColumn, PHPExcel_Cell::columnIndexFromString($dimension->getColumnIndex()));
}
// Loop through row dimensions
- foreach ($this->_rowDimensions as $dimension) {
- $highestRow = max($highestRow,$dimension->getRowIndex());
+ foreach ($this->rowDimensions as $dimension) {
+ $highestRow = max($highestRow, $dimension->getRowIndex());
}
// Cache values
if ($highestColumn < 0) {
- $this->_cachedHighestColumn = 'A';
+ $this->cachedHighestColumn = 'A';
} else {
- $this->_cachedHighestColumn = PHPExcel_Cell::stringFromColumnIndex(--$highestColumn);
+ $this->cachedHighestColumn = PHPExcel_Cell::stringFromColumnIndex(--$highestColumn);
}
- $this->_cachedHighestRow = $highestRow;
+ $this->cachedHighestRow = $highestRow;
// Return
return $this;
@@ -2629,16 +2642,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return string Hash code
*/
- public function getHashCode() {
- if ($this->_dirty) {
- $this->_hash = md5( $this->_title .
- $this->_autoFilter .
- ($this->_protection->isProtectionEnabled() ? 't' : 'f') .
- __CLASS__
- );
- $this->_dirty = false;
+ public function getHashCode()
+ {
+ if ($this->dirty) {
+ $this->hash = md5($this->title . $this->autoFilter . ($this->protection->isProtectionEnabled() ? 't' : 'f') . __CLASS__);
+ $this->dirty = false;
}
- return $this->_hash;
+ return $this->hash;
}
/**
@@ -2651,16 +2661,15 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param bool $returnRange Return range? (see example)
* @return mixed
*/
- public static function extractSheetTitle($pRange, $returnRange = false) {
+ public static function extractSheetTitle($pRange, $returnRange = false)
+ {
// Sheet title included?
if (($sep = strpos($pRange, '!')) === false) {
return '';
}
if ($returnRange) {
- return array( trim(substr($pRange, 0, $sep),"'"),
- substr($pRange, $sep + 1)
- );
+ return array(trim(substr($pRange, 0, $sep), "'"), substr($pRange, $sep + 1));
}
return substr($pRange, $sep + 1);
@@ -2674,13 +2683,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getHyperlink($pCellCoordinate = 'A1')
{
// return hyperlink if we already have one
- if (isset($this->_hyperlinkCollection[$pCellCoordinate])) {
- return $this->_hyperlinkCollection[$pCellCoordinate];
+ if (isset($this->hyperlinkCollection[$pCellCoordinate])) {
+ return $this->hyperlinkCollection[$pCellCoordinate];
}
// else create hyperlink
- $this->_hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink();
- return $this->_hyperlinkCollection[$pCellCoordinate];
+ $this->hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink();
+ return $this->hyperlinkCollection[$pCellCoordinate];
}
/**
@@ -2693,9 +2702,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function setHyperlink($pCellCoordinate = 'A1', PHPExcel_Cell_Hyperlink $pHyperlink = null)
{
if ($pHyperlink === null) {
- unset($this->_hyperlinkCollection[$pCellCoordinate]);
+ unset($this->hyperlinkCollection[$pCellCoordinate]);
} else {
- $this->_hyperlinkCollection[$pCellCoordinate] = $pHyperlink;
+ $this->hyperlinkCollection[$pCellCoordinate] = $pHyperlink;
}
return $this;
}
@@ -2708,7 +2717,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function hyperlinkExists($pCoordinate = 'A1')
{
- return isset($this->_hyperlinkCollection[$pCoordinate]);
+ return isset($this->hyperlinkCollection[$pCoordinate]);
}
/**
@@ -2718,7 +2727,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getHyperlinkCollection()
{
- return $this->_hyperlinkCollection;
+ return $this->hyperlinkCollection;
}
/**
@@ -2729,13 +2738,13 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function getDataValidation($pCellCoordinate = 'A1')
{
// return data validation if we already have one
- if (isset($this->_dataValidationCollection[$pCellCoordinate])) {
- return $this->_dataValidationCollection[$pCellCoordinate];
+ if (isset($this->dataValidationCollection[$pCellCoordinate])) {
+ return $this->dataValidationCollection[$pCellCoordinate];
}
// else create data validation
- $this->_dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation();
- return $this->_dataValidationCollection[$pCellCoordinate];
+ $this->dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation();
+ return $this->dataValidationCollection[$pCellCoordinate];
}
/**
@@ -2748,9 +2757,9 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
public function setDataValidation($pCellCoordinate = 'A1', PHPExcel_Cell_DataValidation $pDataValidation = null)
{
if ($pDataValidation === null) {
- unset($this->_dataValidationCollection[$pCellCoordinate]);
+ unset($this->dataValidationCollection[$pCellCoordinate]);
} else {
- $this->_dataValidationCollection[$pCellCoordinate] = $pDataValidation;
+ $this->dataValidationCollection[$pCellCoordinate] = $pDataValidation;
}
return $this;
}
@@ -2763,7 +2772,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function dataValidationExists($pCoordinate = 'A1')
{
- return isset($this->_dataValidationCollection[$pCoordinate]);
+ return isset($this->dataValidationCollection[$pCoordinate]);
}
/**
@@ -2773,7 +2782,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getDataValidationCollection()
{
- return $this->_dataValidationCollection;
+ return $this->dataValidationCollection;
}
/**
@@ -2782,23 +2791,32 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
* @param string $range
* @return string Adjusted range value
*/
- public function shrinkRangeToFit($range) {
+ public function shrinkRangeToFit($range)
+ {
$maxCol = $this->getHighestColumn();
$maxRow = $this->getHighestRow();
$maxCol = PHPExcel_Cell::columnIndexFromString($maxCol);
- $rangeBlocks = explode(' ',$range);
+ $rangeBlocks = explode(' ', $range);
foreach ($rangeBlocks as &$rangeSet) {
$rangeBoundaries = PHPExcel_Cell::getRangeBoundaries($rangeSet);
- if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) { $rangeBoundaries[0][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); }
- if ($rangeBoundaries[0][1] > $maxRow) { $rangeBoundaries[0][1] = $maxRow; }
- if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) { $rangeBoundaries[1][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); }
- if ($rangeBoundaries[1][1] > $maxRow) { $rangeBoundaries[1][1] = $maxRow; }
+ if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) {
+ $rangeBoundaries[0][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol);
+ }
+ if ($rangeBoundaries[0][1] > $maxRow) {
+ $rangeBoundaries[0][1] = $maxRow;
+ }
+ if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) {
+ $rangeBoundaries[1][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol);
+ }
+ if ($rangeBoundaries[1][1] > $maxRow) {
+ $rangeBoundaries[1][1] = $maxRow;
+ }
$rangeSet = $rangeBoundaries[0][0].$rangeBoundaries[0][1].':'.$rangeBoundaries[1][0].$rangeBoundaries[1][1];
}
unset($rangeSet);
- $stRange = implode(' ',$rangeBlocks);
+ $stRange = implode(' ', $rangeBlocks);
return $stRange;
}
@@ -2810,10 +2828,10 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function getTabColor()
{
- if ($this->_tabColor === NULL)
- $this->_tabColor = new PHPExcel_Style_Color();
-
- return $this->_tabColor;
+ if ($this->tabColor === null) {
+ $this->tabColor = new PHPExcel_Style_Color();
+ }
+ return $this->tabColor;
}
/**
@@ -2823,8 +2841,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function resetTabColor()
{
- $this->_tabColor = null;
- unset($this->_tabColor);
+ $this->tabColor = null;
+ unset($this->tabColor);
return $this;
}
@@ -2836,7 +2854,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*/
public function isTabColorSet()
{
- return ($this->_tabColor !== NULL);
+ return ($this->tabColor !== null);
}
/**
@@ -2844,7 +2862,8 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
*
* @return PHPExcel_Worksheet
*/
- public function copy() {
+ public function copy()
+ {
$copied = clone $this;
return $copied;
@@ -2853,24 +2872,25 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
/**
* Implement PHP __clone to create a deep clone, not just a shallow copy.
*/
- public function __clone() {
+ public function __clone()
+ {
foreach ($this as $key => $val) {
- if ($key == '_parent') {
+ if ($key == 'parent') {
continue;
}
if (is_object($val) || (is_array($val))) {
- if ($key == '_cellCollection') {
- $newCollection = clone $this->_cellCollection;
+ if ($key == 'cellCollection') {
+ $newCollection = clone $this->cellCollection;
$newCollection->copyCellCollection($this);
- $this->_cellCollection = $newCollection;
- } elseif ($key == '_drawingCollection') {
- $newCollection = clone $this->_drawingCollection;
- $this->_drawingCollection = $newCollection;
- } elseif (($key == '_autoFilter') && ($this->_autoFilter instanceof PHPExcel_Worksheet_AutoFilter)) {
- $newAutoFilter = clone $this->_autoFilter;
- $this->_autoFilter = $newAutoFilter;
- $this->_autoFilter->setParent($this);
+ $this->cellCollection = $newCollection;
+ } elseif ($key == 'drawingCollection') {
+ $newCollection = clone $this->drawingCollection;
+ $this->drawingCollection = $newCollection;
+ } elseif (($key == 'autoFilter') && ($this->autoFilter instanceof PHPExcel_Worksheet_AutoFilter)) {
+ $newAutoFilter = clone $this->autoFilter;
+ $this->autoFilter = $newAutoFilter;
+ $this->autoFilter->setParent($this);
} else {
$this->{$key} = unserialize(serialize($val));
}
@@ -2878,68 +2898,71 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
}
}
/**
- * Define the code name of the sheet
- *
- * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore)
- * @return objWorksheet
- * @throws PHPExcel_Exception
- */
- public function setCodeName($pValue=null){
- // Is this a 'rename' or not?
- if ($this->getCodeName() == $pValue) {
- return $this;
- }
- $pValue = str_replace(' ', '_', $pValue);//Excel does this automatically without flinching, we are doing the same
- // Syntax check
+ * Define the code name of the sheet
+ *
+ * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore)
+ * @return objWorksheet
+ * @throws PHPExcel_Exception
+ */
+ public function setCodeName($pValue = null)
+ {
+ // Is this a 'rename' or not?
+ if ($this->getCodeName() == $pValue) {
+ return $this;
+ }
+ $pValue = str_replace(' ', '_', $pValue);//Excel does this automatically without flinching, we are doing the same
+ // Syntax check
// throw an exception if not valid
- self::_checkSheetCodeName($pValue);
+ self::checkSheetCodeName($pValue);
+
+ // We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_'
- // We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_'
-
if ($this->getParent()) {
- // Is there already such sheet name?
- if ($this->getParent()->sheetCodeNameExists($pValue)) {
- // Use name, but append with lowest possible integer
+ // Is there already such sheet name?
+ if ($this->getParent()->sheetCodeNameExists($pValue)) {
+ // Use name, but append with lowest possible integer
- if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,29);
- }
- $i = 1;
- while ($this->getParent()->sheetCodeNameExists($pValue . '_' . $i)) {
- ++$i;
- if ($i == 10) {
- if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,28);
- }
- } elseif ($i == 100) {
- if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) {
- $pValue = PHPExcel_Shared_String::Substring($pValue,0,27);
- }
- }
- }
+ if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) {
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 29);
+ }
+ $i = 1;
+ while ($this->getParent()->sheetCodeNameExists($pValue . '_' . $i)) {
+ ++$i;
+ if ($i == 10) {
+ if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) {
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 28);
+ }
+ } elseif ($i == 100) {
+ if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) {
+ $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 27);
+ }
+ }
+ }
- $pValue = $pValue . '_' . $i;// ok, we have a valid name
- //codeName is'nt used in formula : no need to call for an update
- //return $this->setTitle($altTitle,$updateFormulaCellReferences);
- }
- }
+ $pValue = $pValue . '_' . $i;// ok, we have a valid name
+ //codeName is'nt used in formula : no need to call for an update
+ //return $this->setTitle($altTitle, $updateFormulaCellReferences);
+ }
+ }
- $this->_codeName=$pValue;
- return $this;
- }
- /**
- * Return the code name of the sheet
- *
- * @return null|string
- */
- public function getCodeName(){
- return $this->_codeName;
- }
- /**
- * Sheet has a code name ?
- * @return boolean
- */
- public function hasCodeName(){
- return !(is_null($this->_codeName));
- }
+ $this->codeName=$pValue;
+ return $this;
+ }
+ /**
+ * Return the code name of the sheet
+ *
+ * @return null|string
+ */
+ public function getCodeName()
+ {
+ return $this->codeName;
+ }
+ /**
+ * Sheet has a code name ?
+ * @return boolean
+ */
+ public function hasCodeName()
+ {
+ return !(is_null($this->codeName));
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter.php
index 22c35748..6ec8a446 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter.php
@@ -1,8 +1,9 @@
_range = $pRange;
- $this->_workSheet = $pSheet;
+ $this->range = $pRange;
+ $this->workSheet = $pSheet;
}
- /**
- * Get AutoFilter Parent Worksheet
- *
- * @return PHPExcel_Worksheet
- */
- public function getParent() {
- return $this->_workSheet;
- }
+ /**
+ * Get AutoFilter Parent Worksheet
+ *
+ * @return PHPExcel_Worksheet
+ */
+ public function getParent()
+ {
+ return $this->workSheet;
+ }
- /**
- * Set AutoFilter Parent Worksheet
- *
- * @param PHPExcel_Worksheet $pSheet
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function setParent(PHPExcel_Worksheet $pSheet = NULL) {
- $this->_workSheet = $pSheet;
+ /**
+ * Set AutoFilter Parent Worksheet
+ *
+ * @param PHPExcel_Worksheet $pSheet
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function setParent(PHPExcel_Worksheet $pSheet = null)
+ {
+ $this->workSheet = $pSheet;
- return $this;
- }
+ return $this;
+ }
- /**
- * Get AutoFilter Range
- *
- * @return string
- */
- public function getRange() {
- return $this->_range;
- }
+ /**
+ * Get AutoFilter Range
+ *
+ * @return string
+ */
+ public function getRange()
+ {
+ return $this->range;
+ }
- /**
- * Set AutoFilter Range
- *
- * @param string $pRange Cell range (i.e. A1:E10)
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function setRange($pRange = '') {
- // Uppercase coordinate
- $cellAddress = explode('!',strtoupper($pRange));
- if (count($cellAddress) > 1) {
- list($worksheet,$pRange) = $cellAddress;
- }
+ /**
+ * Set AutoFilter Range
+ *
+ * @param string $pRange Cell range (i.e. A1:E10)
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function setRange($pRange = '')
+ {
+ // Uppercase coordinate
+ $cellAddress = explode('!', strtoupper($pRange));
+ if (count($cellAddress) > 1) {
+ list($worksheet, $pRange) = $cellAddress;
+ }
- if (strpos($pRange,':') !== FALSE) {
- $this->_range = $pRange;
- } elseif(empty($pRange)) {
- $this->_range = '';
- } else {
- throw new PHPExcel_Exception('Autofilter must be set on a range of cells.');
- }
+ if (strpos($pRange, ':') !== false) {
+ $this->range = $pRange;
+ } elseif (empty($pRange)) {
+ $this->range = '';
+ } else {
+ throw new PHPExcel_Exception('Autofilter must be set on a range of cells.');
+ }
- if (empty($pRange)) {
- // Discard all column rules
- $this->_columns = array();
- } else {
- // Discard any column rules that are no longer valid within this range
- list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range);
- foreach($this->_columns as $key => $value) {
- $colIndex = PHPExcel_Cell::columnIndexFromString($key);
- if (($rangeStart[0] > $colIndex) || ($rangeEnd[0] < $colIndex)) {
- unset($this->_columns[$key]);
- }
- }
- }
+ if (empty($pRange)) {
+ // Discard all column rules
+ $this->columns = array();
+ } else {
+ // Discard any column rules that are no longer valid within this range
+ list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->range);
+ foreach ($this->columns as $key => $value) {
+ $colIndex = PHPExcel_Cell::columnIndexFromString($key);
+ if (($rangeStart[0] > $colIndex) || ($rangeEnd[0] < $colIndex)) {
+ unset($this->columns[$key]);
+ }
+ }
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Get all AutoFilter Columns
- *
- * @throws PHPExcel_Exception
- * @return array of PHPExcel_Worksheet_AutoFilter_Column
- */
- public function getColumns() {
- return $this->_columns;
- }
+ /**
+ * Get all AutoFilter Columns
+ *
+ * @throws PHPExcel_Exception
+ * @return array of PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function getColumns()
+ {
+ return $this->columns;
+ }
- /**
- * Validate that the specified column is in the AutoFilter range
- *
- * @param string $column Column name (e.g. A)
- * @throws PHPExcel_Exception
- * @return integer The column offset within the autofilter range
- */
- public function testColumnInRange($column) {
- if (empty($this->_range)) {
- throw new PHPExcel_Exception("No autofilter range is defined.");
- }
+ /**
+ * Validate that the specified column is in the AutoFilter range
+ *
+ * @param string $column Column name (e.g. A)
+ * @throws PHPExcel_Exception
+ * @return integer The column offset within the autofilter range
+ */
+ public function testColumnInRange($column)
+ {
+ if (empty($this->range)) {
+ throw new PHPExcel_Exception("No autofilter range is defined.");
+ }
- $columnIndex = PHPExcel_Cell::columnIndexFromString($column);
- list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range);
- if (($rangeStart[0] > $columnIndex) || ($rangeEnd[0] < $columnIndex)) {
- throw new PHPExcel_Exception("Column is outside of current autofilter range.");
- }
+ $columnIndex = PHPExcel_Cell::columnIndexFromString($column);
+ list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->range);
+ if (($rangeStart[0] > $columnIndex) || ($rangeEnd[0] < $columnIndex)) {
+ throw new PHPExcel_Exception("Column is outside of current autofilter range.");
+ }
- return $columnIndex - $rangeStart[0];
- }
+ return $columnIndex - $rangeStart[0];
+ }
- /**
- * Get a specified AutoFilter Column Offset within the defined AutoFilter range
- *
- * @param string $pColumn Column name (e.g. A)
- * @throws PHPExcel_Exception
- * @return integer The offset of the specified column within the autofilter range
- */
- public function getColumnOffset($pColumn) {
- return $this->testColumnInRange($pColumn);
- }
+ /**
+ * Get a specified AutoFilter Column Offset within the defined AutoFilter range
+ *
+ * @param string $pColumn Column name (e.g. A)
+ * @throws PHPExcel_Exception
+ * @return integer The offset of the specified column within the autofilter range
+ */
+ public function getColumnOffset($pColumn)
+ {
+ return $this->testColumnInRange($pColumn);
+ }
- /**
- * Get a specified AutoFilter Column
- *
- * @param string $pColumn Column name (e.g. A)
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function getColumn($pColumn) {
- $this->testColumnInRange($pColumn);
+ /**
+ * Get a specified AutoFilter Column
+ *
+ * @param string $pColumn Column name (e.g. A)
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function getColumn($pColumn)
+ {
+ $this->testColumnInRange($pColumn);
- if (!isset($this->_columns[$pColumn])) {
- $this->_columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this);
- }
+ if (!isset($this->columns[$pColumn])) {
+ $this->columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this);
+ }
- return $this->_columns[$pColumn];
- }
+ return $this->columns[$pColumn];
+ }
- /**
- * Get a specified AutoFilter Column by it's offset
- *
- * @param integer $pColumnOffset Column offset within range (starting from 0)
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function getColumnByOffset($pColumnOffset = 0) {
- list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range);
- $pColumn = PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] + $pColumnOffset - 1);
+ /**
+ * Get a specified AutoFilter Column by it's offset
+ *
+ * @param integer $pColumnOffset Column offset within range (starting from 0)
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function getColumnByOffset($pColumnOffset = 0)
+ {
+ list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->range);
+ $pColumn = PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] + $pColumnOffset - 1);
- return $this->getColumn($pColumn);
- }
+ return $this->getColumn($pColumn);
+ }
- /**
- * Set AutoFilter
- *
- * @param PHPExcel_Worksheet_AutoFilter_Column|string $pColumn
- * A simple string containing a Column ID like 'A' is permitted
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function setColumn($pColumn)
- {
- if ((is_string($pColumn)) && (!empty($pColumn))) {
- $column = $pColumn;
- } elseif(is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) {
- $column = $pColumn->getColumnIndex();
- } else {
- throw new PHPExcel_Exception("Column is not within the autofilter range.");
- }
- $this->testColumnInRange($column);
+ /**
+ * Set AutoFilter
+ *
+ * @param PHPExcel_Worksheet_AutoFilter_Column|string $pColumn
+ * A simple string containing a Column ID like 'A' is permitted
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function setColumn($pColumn)
+ {
+ if ((is_string($pColumn)) && (!empty($pColumn))) {
+ $column = $pColumn;
+ } elseif (is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) {
+ $column = $pColumn->getColumnIndex();
+ } else {
+ throw new PHPExcel_Exception("Column is not within the autofilter range.");
+ }
+ $this->testColumnInRange($column);
- if (is_string($pColumn)) {
- $this->_columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this);
- } elseif(is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) {
- $pColumn->setParent($this);
- $this->_columns[$column] = $pColumn;
- }
- ksort($this->_columns);
+ if (is_string($pColumn)) {
+ $this->columns[$pColumn] = new PHPExcel_Worksheet_AutoFilter_Column($pColumn, $this);
+ } elseif (is_object($pColumn) && ($pColumn instanceof PHPExcel_Worksheet_AutoFilter_Column)) {
+ $pColumn->setParent($this);
+ $this->columns[$column] = $pColumn;
+ }
+ ksort($this->columns);
- return $this;
- }
+ return $this;
+ }
- /**
- * Clear a specified AutoFilter Column
- *
- * @param string $pColumn Column name (e.g. A)
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function clearColumn($pColumn) {
- $this->testColumnInRange($pColumn);
+ /**
+ * Clear a specified AutoFilter Column
+ *
+ * @param string $pColumn Column name (e.g. A)
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function clearColumn($pColumn)
+ {
+ $this->testColumnInRange($pColumn);
- if (isset($this->_columns[$pColumn])) {
- unset($this->_columns[$pColumn]);
- }
+ if (isset($this->columns[$pColumn])) {
+ unset($this->columns[$pColumn]);
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Shift an AutoFilter Column Rule to a different column
- *
- * Note: This method bypasses validation of the destination column to ensure it is within this AutoFilter range.
- * Nor does it verify whether any column rule already exists at $toColumn, but will simply overrideany existing value.
- * Use with caution.
- *
- * @param string $fromColumn Column name (e.g. A)
- * @param string $toColumn Column name (e.g. B)
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function shiftColumn($fromColumn=NULL,$toColumn=NULL) {
- $fromColumn = strtoupper($fromColumn);
- $toColumn = strtoupper($toColumn);
+ /**
+ * Shift an AutoFilter Column Rule to a different column
+ *
+ * Note: This method bypasses validation of the destination column to ensure it is within this AutoFilter range.
+ * Nor does it verify whether any column rule already exists at $toColumn, but will simply overrideany existing value.
+ * Use with caution.
+ *
+ * @param string $fromColumn Column name (e.g. A)
+ * @param string $toColumn Column name (e.g. B)
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function shiftColumn($fromColumn = null, $toColumn = null)
+ {
+ $fromColumn = strtoupper($fromColumn);
+ $toColumn = strtoupper($toColumn);
- if (($fromColumn !== NULL) && (isset($this->_columns[$fromColumn])) && ($toColumn !== NULL)) {
- $this->_columns[$fromColumn]->setParent();
- $this->_columns[$fromColumn]->setColumnIndex($toColumn);
- $this->_columns[$toColumn] = $this->_columns[$fromColumn];
- $this->_columns[$toColumn]->setParent($this);
- unset($this->_columns[$fromColumn]);
+ if (($fromColumn !== null) && (isset($this->columns[$fromColumn])) && ($toColumn !== null)) {
+ $this->columns[$fromColumn]->setParent();
+ $this->columns[$fromColumn]->setColumnIndex($toColumn);
+ $this->columns[$toColumn] = $this->columns[$fromColumn];
+ $this->columns[$toColumn]->setParent($this);
+ unset($this->columns[$fromColumn]);
- ksort($this->_columns);
- }
+ ksort($this->columns);
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Test if cell value is in the defined set of values
- *
- * @param mixed $cellValue
- * @param mixed[] $dataSet
- * @return boolean
- */
- private static function _filterTestInSimpleDataSet($cellValue,$dataSet)
- {
- $dataSetValues = $dataSet['filterValues'];
- $blanks = $dataSet['blanks'];
- if (($cellValue == '') || ($cellValue === NULL)) {
- return $blanks;
- }
- return in_array($cellValue,$dataSetValues);
- }
+ /**
+ * Test if cell value is in the defined set of values
+ *
+ * @param mixed $cellValue
+ * @param mixed[] $dataSet
+ * @return boolean
+ */
+ private static function filterTestInSimpleDataSet($cellValue, $dataSet)
+ {
+ $dataSetValues = $dataSet['filterValues'];
+ $blanks = $dataSet['blanks'];
+ if (($cellValue == '') || ($cellValue === null)) {
+ return $blanks;
+ }
+ return in_array($cellValue, $dataSetValues);
+ }
- /**
- * Test if cell value is in the defined set of Excel date values
- *
- * @param mixed $cellValue
- * @param mixed[] $dataSet
- * @return boolean
- */
- private static function _filterTestInDateGroupSet($cellValue,$dataSet)
- {
- $dateSet = $dataSet['filterValues'];
- $blanks = $dataSet['blanks'];
- if (($cellValue == '') || ($cellValue === NULL)) {
- return $blanks;
- }
+ /**
+ * Test if cell value is in the defined set of Excel date values
+ *
+ * @param mixed $cellValue
+ * @param mixed[] $dataSet
+ * @return boolean
+ */
+ private static function filterTestInDateGroupSet($cellValue, $dataSet)
+ {
+ $dateSet = $dataSet['filterValues'];
+ $blanks = $dataSet['blanks'];
+ if (($cellValue == '') || ($cellValue === null)) {
+ return $blanks;
+ }
- if (is_numeric($cellValue)) {
- $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue);
- if ($cellValue < 1) {
- // Just the time part
- $dtVal = date('His',$dateValue);
- $dateSet = $dateSet['time'];
- } elseif($cellValue == floor($cellValue)) {
- // Just the date part
- $dtVal = date('Ymd',$dateValue);
- $dateSet = $dateSet['date'];
- } else {
- // date and time parts
- $dtVal = date('YmdHis',$dateValue);
- $dateSet = $dateSet['dateTime'];
- }
- foreach($dateSet as $dateValue) {
- // Use of substr to extract value at the appropriate group level
- if (substr($dtVal,0,strlen($dateValue)) == $dateValue)
- return TRUE;
- }
- }
+ if (is_numeric($cellValue)) {
+ $dateValue = PHPExcel_Shared_Date::ExcelToPHP($cellValue);
+ if ($cellValue < 1) {
+ // Just the time part
+ $dtVal = date('His', $dateValue);
+ $dateSet = $dateSet['time'];
+ } elseif ($cellValue == floor($cellValue)) {
+ // Just the date part
+ $dtVal = date('Ymd', $dateValue);
+ $dateSet = $dateSet['date'];
+ } else {
+ // date and time parts
+ $dtVal = date('YmdHis', $dateValue);
+ $dateSet = $dateSet['dateTime'];
+ }
+ foreach ($dateSet as $dateValue) {
+ // Use of substr to extract value at the appropriate group level
+ if (substr($dtVal, 0, strlen($dateValue)) == $dateValue) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
- return FALSE;
- }
+ /**
+ * Test if cell value is within a set of values defined by a ruleset
+ *
+ * @param mixed $cellValue
+ * @param mixed[] $ruleSet
+ * @return boolean
+ */
+ private static function filterTestInCustomDataSet($cellValue, $ruleSet)
+ {
+ $dataSet = $ruleSet['filterRules'];
+ $join = $ruleSet['join'];
+ $customRuleForBlanks = isset($ruleSet['customRuleForBlanks']) ? $ruleSet['customRuleForBlanks'] : false;
- /**
- * Test if cell value is within a set of values defined by a ruleset
- *
- * @param mixed $cellValue
- * @param mixed[] $ruleSet
- * @return boolean
- */
- private static function _filterTestInCustomDataSet($cellValue, $ruleSet)
- {
- $dataSet = $ruleSet['filterRules'];
- $join = $ruleSet['join'];
- $customRuleForBlanks = isset($ruleSet['customRuleForBlanks']) ? $ruleSet['customRuleForBlanks'] : FALSE;
+ if (!$customRuleForBlanks) {
+ // Blank cells are always ignored, so return a FALSE
+ if (($cellValue == '') || ($cellValue === null)) {
+ return false;
+ }
+ }
+ $returnVal = ($join == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND);
+ foreach ($dataSet as $rule) {
+ if (is_numeric($rule['value'])) {
+ // Numeric values are tested using the appropriate operator
+ switch ($rule['operator']) {
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL:
+ $retVal = ($cellValue == $rule['value']);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL:
+ $retVal = ($cellValue != $rule['value']);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN:
+ $retVal = ($cellValue > $rule['value']);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL:
+ $retVal = ($cellValue >= $rule['value']);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN:
+ $retVal = ($cellValue < $rule['value']);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL:
+ $retVal = ($cellValue <= $rule['value']);
+ break;
+ }
+ } elseif ($rule['value'] == '') {
+ switch ($rule['operator']) {
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL:
+ $retVal = (($cellValue == '') || ($cellValue === null));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL:
+ $retVal = (($cellValue != '') && ($cellValue !== null));
+ break;
+ default:
+ $retVal = true;
+ break;
+ }
+ } else {
+ // String values are always tested for equality, factoring in for wildcards (hence a regexp test)
+ $retVal = preg_match('/^'.$rule['value'].'$/i', $cellValue);
+ }
+ // If there are multiple conditions, then we need to test both using the appropriate join operator
+ switch ($join) {
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR:
+ $returnVal = $returnVal || $retVal;
+ // Break as soon as we have a TRUE match for OR joins,
+ // to avoid unnecessary additional code execution
+ if ($returnVal) {
+ return $returnVal;
+ }
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND:
+ $returnVal = $returnVal && $retVal;
+ break;
+ }
+ }
- if (!$customRuleForBlanks) {
- // Blank cells are always ignored, so return a FALSE
- if (($cellValue == '') || ($cellValue === NULL)) {
- return FALSE;
- }
- }
- $returnVal = ($join == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND);
- foreach($dataSet as $rule) {
- if (is_numeric($rule['value'])) {
- // Numeric values are tested using the appropriate operator
- switch ($rule['operator']) {
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL :
- $retVal = ($cellValue == $rule['value']);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL :
- $retVal = ($cellValue != $rule['value']);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN :
- $retVal = ($cellValue > $rule['value']);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL :
- $retVal = ($cellValue >= $rule['value']);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN :
- $retVal = ($cellValue < $rule['value']);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL :
- $retVal = ($cellValue <= $rule['value']);
- break;
- }
- } elseif($rule['value'] == '') {
- switch ($rule['operator']) {
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL :
- $retVal = (($cellValue == '') || ($cellValue === NULL));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL :
- $retVal = (($cellValue != '') && ($cellValue !== NULL));
- break;
- default :
- $retVal = TRUE;
- break;
- }
- } else {
- // String values are always tested for equality, factoring in for wildcards (hence a regexp test)
- $retVal = preg_match('/^'.$rule['value'].'$/i',$cellValue);
- }
- // If there are multiple conditions, then we need to test both using the appropriate join operator
- switch ($join) {
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR :
- $returnVal = $returnVal || $retVal;
- // Break as soon as we have a TRUE match for OR joins,
- // to avoid unnecessary additional code execution
- if ($returnVal)
- return $returnVal;
- break;
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND :
- $returnVal = $returnVal && $retVal;
- break;
- }
- }
+ return $returnVal;
+ }
- return $returnVal;
- }
+ /**
+ * Test if cell date value is matches a set of values defined by a set of months
+ *
+ * @param mixed $cellValue
+ * @param mixed[] $monthSet
+ * @return boolean
+ */
+ private static function filterTestInPeriodDateSet($cellValue, $monthSet)
+ {
+ // Blank cells are always ignored, so return a FALSE
+ if (($cellValue == '') || ($cellValue === null)) {
+ return false;
+ }
- /**
- * Test if cell date value is matches a set of values defined by a set of months
- *
- * @param mixed $cellValue
- * @param mixed[] $monthSet
- * @return boolean
- */
- private static function _filterTestInPeriodDateSet($cellValue, $monthSet)
- {
- // Blank cells are always ignored, so return a FALSE
- if (($cellValue == '') || ($cellValue === NULL)) {
- return FALSE;
- }
+ if (is_numeric($cellValue)) {
+ $dateValue = date('m', PHPExcel_Shared_Date::ExcelToPHP($cellValue));
+ if (in_array($dateValue, $monthSet)) {
+ return true;
+ }
+ }
- if (is_numeric($cellValue)) {
- $dateValue = date('m',PHPExcel_Shared_Date::ExcelToPHP($cellValue));
- if (in_array($dateValue,$monthSet)) {
- return TRUE;
- }
- }
+ return false;
+ }
- return FALSE;
- }
-
- /**
- * Search/Replace arrays to convert Excel wildcard syntax to a regexp syntax for preg_matching
- *
- * @var array
- */
- private static $_fromReplace = array('\*', '\?', '~~', '~.*', '~.?');
- private static $_toReplace = array('.*', '.', '~', '\*', '\?');
+ /**
+ * Search/Replace arrays to convert Excel wildcard syntax to a regexp syntax for preg_matching
+ *
+ * @var array
+ */
+ private static $fromReplace = array('\*', '\?', '~~', '~.*', '~.?');
+ private static $toReplace = array('.*', '.', '~', '\*', '\?');
- /**
- * Convert a dynamic rule daterange to a custom filter range expression for ease of calculation
- *
- * @param string $dynamicRuleType
- * @param PHPExcel_Worksheet_AutoFilter_Column &$filterColumn
- * @return mixed[]
- */
- private function _dynamicFilterDateRange($dynamicRuleType, &$filterColumn)
- {
- $rDateType = PHPExcel_Calculation_Functions::getReturnDateType();
- PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
- $val = $maxVal = NULL;
+ /**
+ * Convert a dynamic rule daterange to a custom filter range expression for ease of calculation
+ *
+ * @param string $dynamicRuleType
+ * @param PHPExcel_Worksheet_AutoFilter_Column &$filterColumn
+ * @return mixed[]
+ */
+ private function dynamicFilterDateRange($dynamicRuleType, &$filterColumn)
+ {
+ $rDateType = PHPExcel_Calculation_Functions::getReturnDateType();
+ PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
+ $val = $maxVal = null;
- $ruleValues = array();
- $baseDate = PHPExcel_Calculation_DateTime::DATENOW();
- // Calculate start/end dates for the required date range based on current date
- switch ($dynamicRuleType) {
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK :
- $baseDate = strtotime('-7 days',$baseDate);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK :
- $baseDate = strtotime('-7 days',$baseDate);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH :
- $baseDate = strtotime('-1 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH :
- $baseDate = strtotime('+1 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER :
- $baseDate = strtotime('-3 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER :
- $baseDate = strtotime('+3 month',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR :
- $baseDate = strtotime('-1 year',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR :
- $baseDate = strtotime('+1 year',gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- }
+ $ruleValues = array();
+ $baseDate = PHPExcel_Calculation_DateTime::DATENOW();
+ // Calculate start/end dates for the required date range based on current date
+ switch ($dynamicRuleType) {
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK:
+ $baseDate = strtotime('-7 days', $baseDate);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK:
+ $baseDate = strtotime('-7 days', $baseDate);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH:
+ $baseDate = strtotime('-1 month', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH:
+ $baseDate = strtotime('+1 month', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER:
+ $baseDate = strtotime('-3 month', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER:
+ $baseDate = strtotime('+3 month', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR:
+ $baseDate = strtotime('-1 year', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR:
+ $baseDate = strtotime('+1 year', gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ }
- switch ($dynamicRuleType) {
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TODAY :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW :
- $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day',$baseDate));
- $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate);
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YEARTODATE :
- $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day',$baseDate));
- $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1,date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISYEAR :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR :
- $maxVal = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,31,12,date('Y',$baseDate)));
- ++$maxVal;
- $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1,date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISQUARTER :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER :
- $thisMonth = date('m',$baseDate);
- $thisQuarter = floor(--$thisMonth / 3);
- $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0,0,0,date('t',$baseDate),(1+$thisQuarter)*3,date('Y',$baseDate)));
- ++$maxVal;
- $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,1+$thisQuarter*3,date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISMONTH :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH :
- $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0,0,0,date('t',$baseDate),date('m',$baseDate),date('Y',$baseDate)));
- ++$maxVal;
- $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0,0,0,1,date('m',$baseDate),date('Y',$baseDate)));
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISWEEK :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK :
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK :
- $dayOfWeek = date('w',$baseDate);
- $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate) - $dayOfWeek;
- $maxVal = $val + 7;
- break;
- }
+ switch ($dynamicRuleType) {
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TODAY:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW:
+ $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day', $baseDate));
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate);
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YEARTODATE:
+ $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(strtotime('+1 day', $baseDate));
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0, 0, 0, 1, 1, date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISYEAR:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTYEAR:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTYEAR:
+ $maxVal = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0, 0, 0, 31, 12, date('Y', $baseDate)));
+ ++$maxVal;
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0, 0, 0, 1, 1, date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISQUARTER:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTQUARTER:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTQUARTER:
+ $thisMonth = date('m', $baseDate);
+ $thisQuarter = floor(--$thisMonth / 3);
+ $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0, 0, 0, date('t', $baseDate), (1+$thisQuarter)*3, date('Y', $baseDate)));
+ ++$maxVal;
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0, 0, 0, 1, 1+$thisQuarter*3, date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISMONTH:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTMONTH:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTMONTH:
+ $maxVal = (int) PHPExcel_Shared_Date::PHPtoExcel(gmmktime(0, 0, 0, date('t', $baseDate), date('m', $baseDate), date('Y', $baseDate)));
+ ++$maxVal;
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel(gmmktime(0, 0, 0, 1, date('m', $baseDate), date('Y', $baseDate)));
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_THISWEEK:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_LASTWEEK:
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_NEXTWEEK:
+ $dayOfWeek = date('w', $baseDate);
+ $val = (int) PHPExcel_Shared_Date::PHPToExcel($baseDate) - $dayOfWeek;
+ $maxVal = $val + 7;
+ break;
+ }
- switch ($dynamicRuleType) {
- // Adjust Today dates for Yesterday and Tomorrow
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY :
- --$maxVal;
- --$val;
- break;
- case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW :
- ++$maxVal;
- ++$val;
- break;
- }
+ switch ($dynamicRuleType) {
+ // Adjust Today dates for Yesterday and Tomorrow
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_YESTERDAY:
+ --$maxVal;
+ --$val;
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_TOMORROW:
+ ++$maxVal;
+ ++$val;
+ break;
+ }
- // Set the filter column rule attributes ready for writing
- $filterColumn->setAttributes(array( 'val' => $val,
- 'maxVal' => $maxVal
- )
- );
+ // Set the filter column rule attributes ready for writing
+ $filterColumn->setAttributes(array('val' => $val, 'maxVal' => $maxVal));
- // Set the rules for identifying rows for hide/show
- $ruleValues[] = array( 'operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL,
- 'value' => $val
- );
- $ruleValues[] = array( 'operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN,
- 'value' => $maxVal
- );
- PHPExcel_Calculation_Functions::setReturnDateType($rDateType);
+ // Set the rules for identifying rows for hide/show
+ $ruleValues[] = array('operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL, 'value' => $val);
+ $ruleValues[] = array('operator' => PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN, 'value' => $maxVal);
+ PHPExcel_Calculation_Functions::setReturnDateType($rDateType);
- return array(
- 'method' => '_filterTestInCustomDataSet',
- 'arguments' => array( 'filterRules' => $ruleValues,
- 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND
- )
- );
- }
+ return array('method' => 'filterTestInCustomDataSet', 'arguments' => array('filterRules' => $ruleValues, 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND));
+ }
- private function _calculateTopTenValue($columnID,$startRow,$endRow,$ruleType,$ruleValue) {
- $range = $columnID.$startRow.':'.$columnID.$endRow;
- $dataValues = PHPExcel_Calculation_Functions::flattenArray(
- $this->_workSheet->rangeToArray($range,NULL,TRUE,FALSE)
- );
+ private function calculateTopTenValue($columnID, $startRow, $endRow, $ruleType, $ruleValue)
+ {
+ $range = $columnID.$startRow.':'.$columnID.$endRow;
+ $dataValues = PHPExcel_Calculation_Functions::flattenArray($this->workSheet->rangeToArray($range, null, true, false));
- $dataValues = array_filter($dataValues);
- if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) {
- rsort($dataValues);
- } else {
- sort($dataValues);
- }
+ $dataValues = array_filter($dataValues);
+ if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) {
+ rsort($dataValues);
+ } else {
+ sort($dataValues);
+ }
- return array_pop(array_slice($dataValues,0,$ruleValue));
- }
+ return array_pop(array_slice($dataValues, 0, $ruleValue));
+ }
- /**
- * Apply the AutoFilter rules to the AutoFilter Range
- *
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function showHideRows()
- {
- list($rangeStart,$rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->_range);
+ /**
+ * Apply the AutoFilter rules to the AutoFilter Range
+ *
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function showHideRows()
+ {
+ list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($this->range);
- // The heading row should always be visible
-// echo 'AutoFilter Heading Row ',$rangeStart[1],' is always SHOWN',PHP_EOL;
- $this->_workSheet->getRowDimension($rangeStart[1])->setVisible(TRUE);
+ // The heading row should always be visible
+// echo 'AutoFilter Heading Row ', $rangeStart[1],' is always SHOWN',PHP_EOL;
+ $this->workSheet->getRowDimension($rangeStart[1])->setVisible(true);
- $columnFilterTests = array();
- foreach($this->_columns as $columnID => $filterColumn) {
- $rules = $filterColumn->getRules();
- switch ($filterColumn->getFilterType()) {
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER :
- $ruleValues = array();
- // Build a list of the filter value selections
- foreach($rules as $rule) {
- $ruleType = $rule->getRuleType();
- $ruleValues[] = $rule->getValue();
- }
- // Test if we want to include blanks in our filter criteria
- $blanks = FALSE;
- $ruleDataSet = array_filter($ruleValues);
- if (count($ruleValues) != count($ruleDataSet))
- $blanks = TRUE;
- if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER) {
- // Filter on absolute values
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInSimpleDataSet',
- 'arguments' => array( 'filterValues' => $ruleDataSet,
- 'blanks' => $blanks
- )
- );
- } else {
- // Filter on date group values
- $arguments = array(
+ $columnFilterTests = array();
+ foreach ($this->columns as $columnID => $filterColumn) {
+ $rules = $filterColumn->getRules();
+ switch ($filterColumn->getFilterType()) {
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER:
+ $ruleValues = array();
+ // Build a list of the filter value selections
+ foreach ($rules as $rule) {
+ $ruleType = $rule->getRuleType();
+ $ruleValues[] = $rule->getValue();
+ }
+ // Test if we want to include blanks in our filter criteria
+ $blanks = false;
+ $ruleDataSet = array_filter($ruleValues);
+ if (count($ruleValues) != count($ruleDataSet)) {
+ $blanks = true;
+ }
+ if ($ruleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER) {
+ // Filter on absolute values
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInSimpleDataSet',
+ 'arguments' => array('filterValues' => $ruleDataSet, 'blanks' => $blanks)
+ );
+ } else {
+ // Filter on date group values
+ $arguments = array(
'date' => array(),
'time' => array(),
'dateTime' => array(),
);
- foreach($ruleDataSet as $ruleValue) {
- $date = $time = '';
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR] !== ''))
- $date .= sprintf('%04d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR]);
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH] != ''))
- $date .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH]);
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY] !== ''))
- $date .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY]);
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR] !== ''))
- $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR]);
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE] !== ''))
- $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE]);
- if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND])) &&
- ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND] !== ''))
- $time .= sprintf('%02d',$ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND]);
- $dateTime = $date . $time;
- $arguments['date'][] = $date;
- $arguments['time'][] = $time;
- $arguments['dateTime'][] = $dateTime;
- }
- // Remove empty elements
- $arguments['date'] = array_filter($arguments['date']);
- $arguments['time'] = array_filter($arguments['time']);
- $arguments['dateTime'] = array_filter($arguments['dateTime']);
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInDateGroupSet',
- 'arguments' => array( 'filterValues' => $arguments,
- 'blanks' => $blanks
- )
- );
- }
- break;
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_CUSTOMFILTER :
- $customRuleForBlanks = FALSE;
- $ruleValues = array();
- // Build a list of the filter value selections
- foreach($rules as $rule) {
- $ruleType = $rule->getRuleType();
- $ruleValue = $rule->getValue();
- if (!is_numeric($ruleValue)) {
- // Convert to a regexp allowing for regexp reserved characters, wildcards and escaped wildcards
- $ruleValue = preg_quote($ruleValue);
- $ruleValue = str_replace(self::$_fromReplace,self::$_toReplace,$ruleValue);
- if (trim($ruleValue) == '') {
- $customRuleForBlanks = TRUE;
- $ruleValue = trim($ruleValue);
- }
- }
- $ruleValues[] = array( 'operator' => $rule->getOperator(),
- 'value' => $ruleValue
- );
- }
- $join = $filterColumn->getJoin();
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInCustomDataSet',
- 'arguments' => array( 'filterRules' => $ruleValues,
- 'join' => $join,
- 'customRuleForBlanks' => $customRuleForBlanks
- )
- );
- break;
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER :
- $ruleValues = array();
- foreach($rules as $rule) {
- // We should only ever have one Dynamic Filter Rule anyway
- $dynamicRuleType = $rule->getGrouping();
- if (($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE) ||
- ($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_BELOWAVERAGE)) {
- // Number (Average) based
- // Calculate the average
- $averageFormula = '=AVERAGE('.$columnID.($rangeStart[1]+1).':'.$columnID.$rangeEnd[1].')';
- $average = PHPExcel_Calculation::getInstance()->calculateFormula($averageFormula,NULL,$this->_workSheet->getCell('A1'));
- // Set above/below rule based on greaterThan or LessTan
- $operator = ($dynamicRuleType === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE)
- ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN
- : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN;
- $ruleValues[] = array( 'operator' => $operator,
- 'value' => $average
- );
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInCustomDataSet',
- 'arguments' => array( 'filterRules' => $ruleValues,
- 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR
- )
- );
- } else {
- // Date based
- if ($dynamicRuleType{0} == 'M' || $dynamicRuleType{0} == 'Q') {
- // Month or Quarter
- sscanf($dynamicRuleType,'%[A-Z]%d', $periodType, $period);
- if ($periodType == 'M') {
- $ruleValues = array($period);
- } else {
- --$period;
- $periodEnd = (1+$period)*3;
- $periodStart = 1+$period*3;
- $ruleValues = range($periodStart,periodEnd);
- }
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInPeriodDateSet',
- 'arguments' => $ruleValues
- );
- $filterColumn->setAttributes(array());
- } else {
- // Date Range
- $columnFilterTests[$columnID] = $this->_dynamicFilterDateRange($dynamicRuleType, $filterColumn);
- break;
- }
- }
- }
- break;
- case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_TOPTENFILTER :
- $ruleValues = array();
- $dataRowCount = $rangeEnd[1] - $rangeStart[1];
- foreach($rules as $rule) {
- // We should only ever have one Dynamic Filter Rule anyway
- $toptenRuleType = $rule->getGrouping();
- $ruleValue = $rule->getValue();
- $ruleOperator = $rule->getOperator();
- }
- if ($ruleOperator === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) {
- $ruleValue = floor($ruleValue * ($dataRowCount / 100));
- }
- if ($ruleValue < 1) $ruleValue = 1;
- if ($ruleValue > 500) $ruleValue = 500;
+ foreach ($ruleDataSet as $ruleValue) {
+ $date = $time = '';
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR] !== '')) {
+ $date .= sprintf('%04d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_YEAR]);
+ }
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH] != '')) {
+ $date .= sprintf('%02d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH]);
+ }
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY] !== '')) {
+ $date .= sprintf('%02d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_DAY]);
+ }
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR] !== '')) {
+ $time .= sprintf('%02d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_HOUR]);
+ }
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE] !== '')) {
+ $time .= sprintf('%02d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MINUTE]);
+ }
+ if ((isset($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND])) &&
+ ($ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND] !== '')) {
+ $time .= sprintf('%02d', $ruleValue[PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_SECOND]);
+ }
+ $dateTime = $date . $time;
+ $arguments['date'][] = $date;
+ $arguments['time'][] = $time;
+ $arguments['dateTime'][] = $dateTime;
+ }
+ // Remove empty elements
+ $arguments['date'] = array_filter($arguments['date']);
+ $arguments['time'] = array_filter($arguments['time']);
+ $arguments['dateTime'] = array_filter($arguments['dateTime']);
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInDateGroupSet',
+ 'arguments' => array('filterValues' => $arguments, 'blanks' => $blanks)
+ );
+ }
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_CUSTOMFILTER:
+ $customRuleForBlanks = false;
+ $ruleValues = array();
+ // Build a list of the filter value selections
+ foreach ($rules as $rule) {
+ $ruleType = $rule->getRuleType();
+ $ruleValue = $rule->getValue();
+ if (!is_numeric($ruleValue)) {
+ // Convert to a regexp allowing for regexp reserved characters, wildcards and escaped wildcards
+ $ruleValue = preg_quote($ruleValue);
+ $ruleValue = str_replace(self::$fromReplace, self::$toReplace, $ruleValue);
+ if (trim($ruleValue) == '') {
+ $customRuleForBlanks = true;
+ $ruleValue = trim($ruleValue);
+ }
+ }
+ $ruleValues[] = array('operator' => $rule->getOperator(), 'value' => $ruleValue);
+ }
+ $join = $filterColumn->getJoin();
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInCustomDataSet',
+ 'arguments' => array('filterRules' => $ruleValues, 'join' => $join, 'customRuleForBlanks' => $customRuleForBlanks)
+ );
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER:
+ $ruleValues = array();
+ foreach ($rules as $rule) {
+ // We should only ever have one Dynamic Filter Rule anyway
+ $dynamicRuleType = $rule->getGrouping();
+ if (($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE) ||
+ ($dynamicRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_BELOWAVERAGE)) {
+ // Number (Average) based
+ // Calculate the average
+ $averageFormula = '=AVERAGE('.$columnID.($rangeStart[1]+1).':'.$columnID.$rangeEnd[1].')';
+ $average = PHPExcel_Calculation::getInstance()->calculateFormula($averageFormula, null, $this->workSheet->getCell('A1'));
+ // Set above/below rule based on greaterThan or LessTan
+ $operator = ($dynamicRuleType === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMIC_ABOVEAVERAGE)
+ ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHAN
+ : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHAN;
+ $ruleValues[] = array('operator' => $operator,
+ 'value' => $average
+ );
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInCustomDataSet',
+ 'arguments' => array('filterRules' => $ruleValues, 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR)
+ );
+ } else {
+ // Date based
+ if ($dynamicRuleType{0} == 'M' || $dynamicRuleType{0} == 'Q') {
+ // Month or Quarter
+ sscanf($dynamicRuleType, '%[A-Z]%d', $periodType, $period);
+ if ($periodType == 'M') {
+ $ruleValues = array($period);
+ } else {
+ --$period;
+ $periodEnd = (1+$period)*3;
+ $periodStart = 1+$period*3;
+ $ruleValues = range($periodStart, $periodEnd);
+ }
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInPeriodDateSet',
+ 'arguments' => $ruleValues
+ );
+ $filterColumn->setAttributes(array());
+ } else {
+ // Date Range
+ $columnFilterTests[$columnID] = $this->dynamicFilterDateRange($dynamicRuleType, $filterColumn);
+ break;
+ }
+ }
+ }
+ break;
+ case PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_TOPTENFILTER:
+ $ruleValues = array();
+ $dataRowCount = $rangeEnd[1] - $rangeStart[1];
+ foreach ($rules as $rule) {
+ // We should only ever have one Dynamic Filter Rule anyway
+ $toptenRuleType = $rule->getGrouping();
+ $ruleValue = $rule->getValue();
+ $ruleOperator = $rule->getOperator();
+ }
+ if ($ruleOperator === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) {
+ $ruleValue = floor($ruleValue * ($dataRowCount / 100));
+ }
+ if ($ruleValue < 1) {
+ $ruleValue = 1;
+ }
+ if ($ruleValue > 500) {
+ $ruleValue = 500;
+ }
- $maxVal = $this->_calculateTopTenValue($columnID,$rangeStart[1]+1,$rangeEnd[1],$toptenRuleType,$ruleValue);
+ $maxVal = $this->calculateTopTenValue($columnID, $rangeStart[1]+1, $rangeEnd[1], $toptenRuleType, $ruleValue);
- $operator = ($toptenRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP)
- ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL
- : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL;
- $ruleValues[] = array( 'operator' => $operator,
- 'value' => $maxVal
- );
- $columnFilterTests[$columnID] = array(
- 'method' => '_filterTestInCustomDataSet',
- 'arguments' => array( 'filterRules' => $ruleValues,
- 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR
- )
- );
- $filterColumn->setAttributes(
- array('maxVal' => $maxVal)
- );
- break;
- }
- }
+ $operator = ($toptenRuleType == PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP)
+ ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_GREATERTHANOREQUAL
+ : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_LESSTHANOREQUAL;
+ $ruleValues[] = array('operator' => $operator, 'value' => $maxVal);
+ $columnFilterTests[$columnID] = array(
+ 'method' => 'filterTestInCustomDataSet',
+ 'arguments' => array('filterRules' => $ruleValues, 'join' => PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_OR)
+ );
+ $filterColumn->setAttributes(array('maxVal' => $maxVal));
+ break;
+ }
+ }
-// echo 'Column Filter Test CRITERIA',PHP_EOL;
-// var_dump($columnFilterTests);
+// echo 'Column Filter Test CRITERIA',PHP_EOL;
+// var_dump($columnFilterTests);
//
- // Execute the column tests for each row in the autoFilter range to determine show/hide,
- for ($row = $rangeStart[1]+1; $row <= $rangeEnd[1]; ++$row) {
-// echo 'Testing Row = ',$row,PHP_EOL;
- $result = TRUE;
- foreach($columnFilterTests as $columnID => $columnFilterTest) {
-// echo 'Testing cell ',$columnID.$row,PHP_EOL;
- $cellValue = $this->_workSheet->getCell($columnID.$row)->getCalculatedValue();
-// echo 'Value is ',$cellValue,PHP_EOL;
- // Execute the filter test
- $result = $result &&
- call_user_func_array(
- array('PHPExcel_Worksheet_AutoFilter',$columnFilterTest['method']),
- array(
- $cellValue,
- $columnFilterTest['arguments']
- )
- );
-// echo (($result) ? 'VALID' : 'INVALID'),PHP_EOL;
- // If filter test has resulted in FALSE, exit the loop straightaway rather than running any more tests
- if (!$result)
- break;
- }
- // Set show/hide for the row based on the result of the autoFilter result
-// echo (($result) ? 'SHOW' : 'HIDE'),PHP_EOL;
- $this->_workSheet->getRowDimension($row)->setVisible($result);
- }
+ // Execute the column tests for each row in the autoFilter range to determine show/hide,
+ for ($row = $rangeStart[1]+1; $row <= $rangeEnd[1]; ++$row) {
+// echo 'Testing Row = ', $row,PHP_EOL;
+ $result = true;
+ foreach ($columnFilterTests as $columnID => $columnFilterTest) {
+// echo 'Testing cell ', $columnID.$row,PHP_EOL;
+ $cellValue = $this->workSheet->getCell($columnID.$row)->getCalculatedValue();
+// echo 'Value is ', $cellValue,PHP_EOL;
+ // Execute the filter test
+ $result = $result &&
+ call_user_func_array(
+ array('PHPExcel_Worksheet_AutoFilter', $columnFilterTest['method']),
+ array($cellValue, $columnFilterTest['arguments'])
+ );
+// echo (($result) ? 'VALID' : 'INVALID'),PHP_EOL;
+ // If filter test has resulted in FALSE, exit the loop straightaway rather than running any more tests
+ if (!$result) {
+ break;
+ }
+ }
+ // Set show/hide for the row based on the result of the autoFilter result
+// echo (($result) ? 'SHOW' : 'HIDE'),PHP_EOL;
+ $this->workSheet->getRowDimension($row)->setVisible($result);
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- if ($key == '_workSheet') {
- // Detach from worksheet
- $this->{$key} = NULL;
- } else {
- $this->{$key} = clone $value;
- }
- } elseif ((is_array($value)) && ($key == '_columns')) {
- // The columns array of PHPExcel_Worksheet_AutoFilter objects
- $this->{$key} = array();
- foreach ($value as $k => $v) {
- $this->{$key}[$k] = clone $v;
- // attach the new cloned Column to this new cloned Autofilter object
- $this->{$key}[$k]->setParent($this);
- }
- } else {
- $this->{$key} = $value;
- }
- }
- }
-
- /**
- * toString method replicates previous behavior by returning the range if object is
- * referenced as a property of its parent.
- */
- public function __toString() {
- return (string) $this->_range;
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ if ($key == 'workSheet') {
+ // Detach from worksheet
+ $this->{$key} = null;
+ } else {
+ $this->{$key} = clone $value;
+ }
+ } elseif ((is_array($value)) && ($key == 'columns')) {
+ // The columns array of PHPExcel_Worksheet_AutoFilter objects
+ $this->{$key} = array();
+ foreach ($value as $k => $v) {
+ $this->{$key}[$k] = clone $v;
+ // attach the new cloned Column to this new cloned Autofilter object
+ $this->{$key}[$k]->setParent($this);
+ }
+ } else {
+ $this->{$key} = $value;
+ }
+ }
+ }
+ /**
+ * toString method replicates previous behavior by returning the range if object is
+ * referenced as a property of its parent.
+ */
+ public function __toString()
+ {
+ return (string) $this->range;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column.php
index 1a6fb4eb..d64fd816 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column.php
@@ -1,8 +1,9 @@
_columnIndex = $pColumn;
- $this->_parent = $pParent;
- }
+ /**
+ * Create a new PHPExcel_Worksheet_AutoFilter_Column
+ *
+ * @param string $pColumn Column (e.g. A)
+ * @param PHPExcel_Worksheet_AutoFilter $pParent Autofilter for this column
+ */
+ public function __construct($pColumn, PHPExcel_Worksheet_AutoFilter $pParent = null)
+ {
+ $this->columnIndex = $pColumn;
+ $this->parent = $pParent;
+ }
- /**
- * Get AutoFilter Column Index
- *
- * @return string
- */
- public function getColumnIndex() {
- return $this->_columnIndex;
- }
+ /**
+ * Get AutoFilter Column Index
+ *
+ * @return string
+ */
+ public function getColumnIndex()
+ {
+ return $this->columnIndex;
+ }
- /**
- * Set AutoFilter Column Index
- *
- * @param string $pColumn Column (e.g. A)
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setColumnIndex($pColumn) {
- // Uppercase coordinate
- $pColumn = strtoupper($pColumn);
- if ($this->_parent !== NULL) {
- $this->_parent->testColumnInRange($pColumn);
- }
+ /**
+ * Set AutoFilter Column Index
+ *
+ * @param string $pColumn Column (e.g. A)
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setColumnIndex($pColumn)
+ {
+ // Uppercase coordinate
+ $pColumn = strtoupper($pColumn);
+ if ($this->parent !== null) {
+ $this->parent->testColumnInRange($pColumn);
+ }
- $this->_columnIndex = $pColumn;
+ $this->columnIndex = $pColumn;
- return $this;
- }
+ return $this;
+ }
- /**
- * Get this Column's AutoFilter Parent
- *
- * @return PHPExcel_Worksheet_AutoFilter
- */
- public function getParent() {
- return $this->_parent;
- }
+ /**
+ * Get this Column's AutoFilter Parent
+ *
+ * @return PHPExcel_Worksheet_AutoFilter
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
- /**
- * Set this Column's AutoFilter Parent
- *
- * @param PHPExcel_Worksheet_AutoFilter
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = NULL) {
- $this->_parent = $pParent;
+ /**
+ * Set this Column's AutoFilter Parent
+ *
+ * @param PHPExcel_Worksheet_AutoFilter
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = null)
+ {
+ $this->parent = $pParent;
- return $this;
- }
+ return $this;
+ }
- /**
- * Get AutoFilter Type
- *
- * @return string
- */
- public function getFilterType() {
- return $this->_filterType;
- }
+ /**
+ * Get AutoFilter Type
+ *
+ * @return string
+ */
+ public function getFilterType()
+ {
+ return $this->filterType;
+ }
- /**
- * Set AutoFilter Type
- *
- * @param string $pFilterType
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setFilterType($pFilterType = self::AUTOFILTER_FILTERTYPE_FILTER) {
- if (!in_array($pFilterType,self::$_filterTypes)) {
- throw new PHPExcel_Exception('Invalid filter type for column AutoFilter.');
- }
+ /**
+ * Set AutoFilter Type
+ *
+ * @param string $pFilterType
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setFilterType($pFilterType = self::AUTOFILTER_FILTERTYPE_FILTER)
+ {
+ if (!in_array($pFilterType, self::$filterTypes)) {
+ throw new PHPExcel_Exception('Invalid filter type for column AutoFilter.');
+ }
- $this->_filterType = $pFilterType;
+ $this->filterType = $pFilterType;
- return $this;
- }
+ return $this;
+ }
- /**
- * Get AutoFilter Multiple Rules And/Or Join
- *
- * @return string
- */
- public function getJoin() {
- return $this->_join;
- }
+ /**
+ * Get AutoFilter Multiple Rules And/Or Join
+ *
+ * @return string
+ */
+ public function getJoin()
+ {
+ return $this->join;
+ }
- /**
- * Set AutoFilter Multiple Rules And/Or
- *
- * @param string $pJoin And/Or
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setJoin($pJoin = self::AUTOFILTER_COLUMN_JOIN_OR) {
- // Lowercase And/Or
- $pJoin = strtolower($pJoin);
- if (!in_array($pJoin,self::$_ruleJoins)) {
- throw new PHPExcel_Exception('Invalid rule connection for column AutoFilter.');
- }
+ /**
+ * Set AutoFilter Multiple Rules And/Or
+ *
+ * @param string $pJoin And/Or
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setJoin($pJoin = self::AUTOFILTER_COLUMN_JOIN_OR)
+ {
+ // Lowercase And/Or
+ $pJoin = strtolower($pJoin);
+ if (!in_array($pJoin, self::$ruleJoins)) {
+ throw new PHPExcel_Exception('Invalid rule connection for column AutoFilter.');
+ }
- $this->_join = $pJoin;
+ $this->join = $pJoin;
- return $this;
- }
+ return $this;
+ }
- /**
- * Set AutoFilter Attributes
- *
- * @param string[] $pAttributes
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setAttributes($pAttributes = array()) {
- $this->_attributes = $pAttributes;
+ /**
+ * Set AutoFilter Attributes
+ *
+ * @param string[] $pAttributes
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setAttributes($pAttributes = array())
+ {
+ $this->attributes = $pAttributes;
- return $this;
- }
+ return $this;
+ }
- /**
- * Set An AutoFilter Attribute
- *
- * @param string $pName Attribute Name
- * @param string $pValue Attribute Value
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function setAttribute($pName, $pValue) {
- $this->_attributes[$pName] = $pValue;
+ /**
+ * Set An AutoFilter Attribute
+ *
+ * @param string $pName Attribute Name
+ * @param string $pValue Attribute Value
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function setAttribute($pName, $pValue)
+ {
+ $this->attributes[$pName] = $pValue;
- return $this;
- }
+ return $this;
+ }
- /**
- * Get AutoFilter Column Attributes
- *
- * @return string
- */
- public function getAttributes() {
- return $this->_attributes;
- }
+ /**
+ * Get AutoFilter Column Attributes
+ *
+ * @return string
+ */
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
- /**
- * Get specific AutoFilter Column Attribute
- *
- * @param string $pName Attribute Name
- * @return string
- */
- public function getAttribute($pName) {
- if (isset($this->_attributes[$pName]))
- return $this->_attributes[$pName];
- return NULL;
- }
+ /**
+ * Get specific AutoFilter Column Attribute
+ *
+ * @param string $pName Attribute Name
+ * @return string
+ */
+ public function getAttribute($pName)
+ {
+ if (isset($this->attributes[$pName])) {
+ return $this->attributes[$pName];
+ }
+ return null;
+ }
- /**
- * Get all AutoFilter Column Rules
- *
- * @throws PHPExcel_Exception
- * @return array of PHPExcel_Worksheet_AutoFilter_Column_Rule
- */
- public function getRules() {
- return $this->_ruleset;
- }
+ /**
+ * Get all AutoFilter Column Rules
+ *
+ * @throws PHPExcel_Exception
+ * @return array of PHPExcel_Worksheet_AutoFilter_Column_Rule
+ */
+ public function getRules()
+ {
+ return $this->ruleset;
+ }
- /**
- * Get a specified AutoFilter Column Rule
- *
- * @param integer $pIndex Rule index in the ruleset array
- * @return PHPExcel_Worksheet_AutoFilter_Column_Rule
- */
- public function getRule($pIndex) {
- if (!isset($this->_ruleset[$pIndex])) {
- $this->_ruleset[$pIndex] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this);
- }
- return $this->_ruleset[$pIndex];
- }
+ /**
+ * Get a specified AutoFilter Column Rule
+ *
+ * @param integer $pIndex Rule index in the ruleset array
+ * @return PHPExcel_Worksheet_AutoFilter_Column_Rule
+ */
+ public function getRule($pIndex)
+ {
+ if (!isset($this->ruleset[$pIndex])) {
+ $this->ruleset[$pIndex] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this);
+ }
+ return $this->ruleset[$pIndex];
+ }
- /**
- * Create a new AutoFilter Column Rule in the ruleset
- *
- * @return PHPExcel_Worksheet_AutoFilter_Column_Rule
- */
- public function createRule() {
- $this->_ruleset[] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this);
+ /**
+ * Create a new AutoFilter Column Rule in the ruleset
+ *
+ * @return PHPExcel_Worksheet_AutoFilter_Column_Rule
+ */
+ public function createRule()
+ {
+ $this->ruleset[] = new PHPExcel_Worksheet_AutoFilter_Column_Rule($this);
- return end($this->_ruleset);
- }
+ return end($this->ruleset);
+ }
- /**
- * Add a new AutoFilter Column Rule to the ruleset
- *
- * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
- * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
- * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
- */
- public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
- $pRule->setParent($this);
- $this->_ruleset[] = $pRule;
+ /**
+ * Add a new AutoFilter Column Rule to the ruleset
+ *
+ * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
+ * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
+ * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
+ */
+ public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule = true)
+ {
+ $pRule->setParent($this);
+ $this->ruleset[] = $pRule;
- return ($returnRule) ? $pRule : $this;
- }
+ return ($returnRule) ? $pRule : $this;
+ }
- /**
- * Delete a specified AutoFilter Column Rule
- * If the number of rules is reduced to 1, then we reset And/Or logic to Or
- *
- * @param integer $pIndex Rule index in the ruleset array
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function deleteRule($pIndex) {
- if (isset($this->_ruleset[$pIndex])) {
- unset($this->_ruleset[$pIndex]);
- // If we've just deleted down to a single rule, then reset And/Or joining to Or
- if (count($this->_ruleset) <= 1) {
- $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR);
- }
- }
+ /**
+ * Delete a specified AutoFilter Column Rule
+ * If the number of rules is reduced to 1, then we reset And/Or logic to Or
+ *
+ * @param integer $pIndex Rule index in the ruleset array
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function deleteRule($pIndex)
+ {
+ if (isset($this->ruleset[$pIndex])) {
+ unset($this->ruleset[$pIndex]);
+ // If we've just deleted down to a single rule, then reset And/Or joining to Or
+ if (count($this->ruleset) <= 1) {
+ $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR);
+ }
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Delete all AutoFilter Column Rules
- *
- * @return PHPExcel_Worksheet_AutoFilter_Column
- */
- public function clearRules() {
- $this->_ruleset = array();
- $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR);
+ /**
+ * Delete all AutoFilter Column Rules
+ *
+ * @return PHPExcel_Worksheet_AutoFilter_Column
+ */
+ public function clearRules()
+ {
+ $this->ruleset = array();
+ $this->setJoin(self::AUTOFILTER_COLUMN_JOIN_OR);
- return $this;
- }
-
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- if ($key == '_parent') {
- // Detach from autofilter parent
- $this->$key = NULL;
- } else {
- $this->$key = clone $value;
- }
- } elseif ((is_array($value)) && ($key == '_ruleset')) {
- // The columns array of PHPExcel_Worksheet_AutoFilter objects
- $this->$key = array();
- foreach ($value as $k => $v) {
- $this->$key[$k] = clone $v;
- // attach the new cloned Rule to this new cloned Autofilter Cloned object
- $this->$key[$k]->setParent($this);
- }
- } else {
- $this->$key = $value;
- }
- }
- }
+ return $this;
+ }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ if ($key == 'parent') {
+ // Detach from autofilter parent
+ $this->$key = null;
+ } else {
+ $this->$key = clone $value;
+ }
+ } elseif ((is_array($value)) && ($key == 'ruleset')) {
+ // The columns array of PHPExcel_Worksheet_AutoFilter objects
+ $this->$key = array();
+ foreach ($value as $k => $v) {
+ $this->$key[$k] = clone $v;
+ // attach the new cloned Rule to this new cloned Autofilter Cloned object
+ $this->$key[$k]->setParent($this);
+ }
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column/Rule.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column/Rule.php
index e6026464..39ad18bf 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column/Rule.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/AutoFilter/Column/Rule.php
@@ -1,8 +1,9 @@
- *
- * $objDrawing->setResizeProportional(true);
- * $objDrawing->setWidthAndHeight(160,120);
- *
- *
+ * Example:
+ *
+ * $objDrawing->setResizeProportional(true);
+ * $objDrawing->setWidthAndHeight(160,120);
+ *
+ *
* @author Vincent@luo MSN:kele_100@hotmail.com
* @param int $width
* @param int $height
* @return PHPExcel_Worksheet_BaseDrawing
*/
- public function setWidthAndHeight($width = 0, $height = 0) {
- $xratio = $width / ($this->_width != 0 ? $this->_width : 1);
- $yratio = $height / ($this->_height != 0 ? $this->_height : 1);
- if ($this->_resizeProportional && !($width == 0 || $height == 0)) {
- if (($xratio * $this->_height) < $height) {
- $this->_height = ceil($xratio * $this->_height);
- $this->_width = $width;
- } else {
- $this->_width = ceil($yratio * $this->_width);
- $this->_height = $height;
- }
- } else {
- $this->_width = $width;
- $this->_height = $height;
+ public function setWidthAndHeight($width = 0, $height = 0)
+ {
+ $xratio = $width / ($this->width != 0 ? $this->width : 1);
+ $yratio = $height / ($this->height != 0 ? $this->height : 1);
+ if ($this->resizeProportional && !($width == 0 || $height == 0)) {
+ if (($xratio * $this->height) < $height) {
+ $this->height = ceil($xratio * $this->height);
+ $this->width = $width;
+ } else {
+ $this->width = ceil($yratio * $this->width);
+ $this->height = $height;
+ }
+ } else {
+ $this->width = $width;
+ $this->height = $height;
}
- return $this;
- }
+ return $this;
+ }
/**
* Get ResizeProportional
*
* @return boolean
*/
- public function getResizeProportional() {
- return $this->_resizeProportional;
+ public function getResizeProportional()
+ {
+ return $this->resizeProportional;
}
/**
@@ -406,9 +417,10 @@ class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
* @param boolean $pValue
* @return PHPExcel_Worksheet_BaseDrawing
*/
- public function setResizeProportional($pValue = true) {
- $this->_resizeProportional = $pValue;
- return $this;
+ public function setResizeProportional($pValue = true)
+ {
+ $this->resizeProportional = $pValue;
+ return $this;
}
/**
@@ -416,8 +428,9 @@ class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
*
* @return int
*/
- public function getRotation() {
- return $this->_rotation;
+ public function getRotation()
+ {
+ return $this->rotation;
}
/**
@@ -426,9 +439,10 @@ class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_BaseDrawing
*/
- public function setRotation($pValue = 0) {
- $this->_rotation = $pValue;
- return $this;
+ public function setRotation($pValue = 0)
+ {
+ $this->rotation = $pValue;
+ return $this;
}
/**
@@ -436,54 +450,58 @@ class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
*
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function getShadow() {
- return $this->_shadow;
+ public function getShadow()
+ {
+ return $this->shadow;
}
/**
* Set Shadow
*
- * @param PHPExcel_Worksheet_Drawing_Shadow $pValue
- * @throws PHPExcel_Exception
+ * @param PHPExcel_Worksheet_Drawing_Shadow $pValue
+ * @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_BaseDrawing
*/
- public function setShadow(PHPExcel_Worksheet_Drawing_Shadow $pValue = null) {
- $this->_shadow = $pValue;
- return $this;
+ public function setShadow(PHPExcel_Worksheet_Drawing_Shadow $pValue = null)
+ {
+ $this->shadow = $pValue;
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- $this->_name
- . $this->_description
- . $this->_worksheet->getHashCode()
- . $this->_coordinates
- . $this->_offsetX
- . $this->_offsetY
- . $this->_width
- . $this->_height
- . $this->_rotation
- . $this->_shadow->getHashCode()
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ $this->name .
+ $this->description .
+ $this->worksheet->getHashCode() .
+ $this->coordinates .
+ $this->offsetX .
+ $this->offsetY .
+ $this->width .
+ $this->height .
+ $this->rotation .
+ $this->shadow->getHashCode() .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/CellIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/CellIterator.php
index 239cb4ff..53cf7bf3 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/CellIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/CellIterator.php
@@ -1,8 +1,9 @@
_subject);
- }
-
- /**
- * Get loop only existing cells
- *
- * @return boolean
- */
- public function getIterateOnlyExistingCells() {
- return $this->_onlyExistingCells;
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->subject);
}
- /**
- * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
- *
+ /**
+ * Get loop only existing cells
+ *
+ * @return boolean
+ */
+ public function getIterateOnlyExistingCells()
+ {
+ return $this->onlyExistingCells;
+ }
+
+ /**
+ * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
+ *
* @throws PHPExcel_Exception
*/
abstract protected function adjustForExistingOnlyRange();
- /**
- * Set the iterator to loop only existing cells
- *
- * @param boolean $value
+ /**
+ * Set the iterator to loop only existing cells
+ *
+ * @param boolean $value
* @throws PHPExcel_Exception
- */
- public function setIterateOnlyExistingCells($value = true) {
- $this->_onlyExistingCells = (boolean) $value;
+ */
+ public function setIterateOnlyExistingCells($value = true)
+ {
+ $this->onlyExistingCells = (boolean) $value;
$this->adjustForExistingOnlyRange();
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php
index 94af2135..6d3f36d1 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php
@@ -1,8 +1,9 @@
_parent = $parent;
- $this->_columnIndex = $columnIndex;
- }
+ /**
+ * Create a new column
+ *
+ * @param PHPExcel_Worksheet $parent
+ * @param string $columnIndex
+ */
+ public function __construct(PHPExcel_Worksheet $parent = null, $columnIndex = 'A')
+ {
+ // Set parent and column index
+ $this->parent = $parent;
+ $this->columnIndex = $columnIndex;
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_parent);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->parent);
+ }
- /**
- * Get column index
- *
- * @return int
- */
- public function getColumnIndex() {
- return $this->_columnIndex;
- }
+ /**
+ * Get column index
+ *
+ * @return string
+ */
+ public function getColumnIndex()
+ {
+ return $this->columnIndex;
+ }
- /**
- * Get cell iterator
- *
- * @param integer $startRow The row number at which to start iterating
- * @param integer $endRow Optionally, the row number at which to stop iterating
- * @return PHPExcel_Worksheet_CellIterator
- */
- public function getCellIterator($startRow = 1, $endRow = null) {
- return new PHPExcel_Worksheet_ColumnCellIterator($this->_parent, $this->_columnIndex, $startRow, $endRow);
- }
+ /**
+ * Get cell iterator
+ *
+ * @param integer $startRow The row number at which to start iterating
+ * @param integer $endRow Optionally, the row number at which to stop iterating
+ * @return PHPExcel_Worksheet_CellIterator
+ */
+ public function getCellIterator($startRow = 1, $endRow = null)
+ {
+ return new PHPExcel_Worksheet_ColumnCellIterator($this->parent, $this->columnIndex, $startRow, $endRow);
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php
index a9ef49f0..7b8c2190 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnCellIterator.php
@@ -1,8 +1,9 @@
_subject = $subject;
- $this->_columnIndex = PHPExcel_Cell::columnIndexFromString($columnIndex) - 1;
- $this->resetEnd($endRow);
- $this->resetStart($startRow);
- }
+ * @param integer $startRow The row number at which to start iterating
+ * @param integer $endRow Optionally, the row number at which to stop iterating
+ */
+ public function __construct(PHPExcel_Worksheet $subject = null, $columnIndex = 'A', $startRow = 1, $endRow = null)
+ {
+ // Set subject
+ $this->subject = $subject;
+ $this->columnIndex = PHPExcel_Cell::columnIndexFromString($columnIndex) - 1;
+ $this->resetEnd($endRow);
+ $this->resetStart($startRow);
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_subject);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->subject);
+ }
- /**
- * (Re)Set the start row and the current row pointer
- *
- * @param integer $startRow The row number at which to start iterating
+ /**
+ * (Re)Set the start row and the current row pointer
+ *
+ * @param integer $startRow The row number at which to start iterating
* @return PHPExcel_Worksheet_ColumnCellIterator
* @throws PHPExcel_Exception
- */
- public function resetStart($startRow = 1) {
- $this->_startRow = $startRow;
+ */
+ public function resetStart($startRow = 1)
+ {
+ $this->startRow = $startRow;
$this->adjustForExistingOnlyRange();
- $this->seek($startRow);
+ $this->seek($startRow);
return $this;
- }
+ }
- /**
- * (Re)Set the end row
- *
- * @param integer $endRow The row number at which to stop iterating
+ /**
+ * (Re)Set the end row
+ *
+ * @param integer $endRow The row number at which to stop iterating
* @return PHPExcel_Worksheet_ColumnCellIterator
* @throws PHPExcel_Exception
- */
- public function resetEnd($endRow = null) {
- $this->_endRow = ($endRow) ? $endRow : $this->_subject->getHighestRow();
+ */
+ public function resetEnd($endRow = null)
+ {
+ $this->endRow = ($endRow) ? $endRow : $this->subject->getHighestRow();
$this->adjustForExistingOnlyRange();
return $this;
- }
+ }
- /**
- * Set the row pointer to the selected row
- *
- * @param integer $row The row number to set the current pointer at
+ /**
+ * Set the row pointer to the selected row
+ *
+ * @param integer $row The row number to set the current pointer at
* @return PHPExcel_Worksheet_ColumnCellIterator
* @throws PHPExcel_Exception
- */
- public function seek($row = 1) {
- if (($row < $this->_startRow) || ($row > $this->_endRow)) {
- throw new PHPExcel_Exception("Row $row is out of range ({$this->_startRow} - {$this->_endRow})");
- } elseif ($this->_onlyExistingCells && !($this->_subject->cellExistsByColumnAndRow($this->_columnIndex, $row))) {
+ */
+ public function seek($row = 1)
+ {
+ if (($row < $this->startRow) || ($row > $this->endRow)) {
+ throw new PHPExcel_Exception("Row $row is out of range ({$this->startRow} - {$this->endRow})");
+ } elseif ($this->onlyExistingCells && !($this->subject->cellExistsByColumnAndRow($this->columnIndex, $row))) {
throw new PHPExcel_Exception('In "IterateOnlyExistingCells" mode and Cell does not exist');
}
- $this->_position = $row;
+ $this->position = $row;
return $this;
- }
+ }
- /**
- * Rewind the iterator to the starting row
- */
- public function rewind() {
- $this->_position = $this->_startRow;
- }
+ /**
+ * Rewind the iterator to the starting row
+ */
+ public function rewind()
+ {
+ $this->position = $this->startRow;
+ }
- /**
- * Return the current cell in this worksheet column
- *
- * @return PHPExcel_Worksheet_Row
- */
- public function current() {
- return $this->_subject->getCellByColumnAndRow($this->_columnIndex, $this->_position);
- }
+ /**
+ * Return the current cell in this worksheet column
+ *
+ * @return PHPExcel_Worksheet_Row
+ */
+ public function current()
+ {
+ return $this->subject->getCellByColumnAndRow($this->columnIndex, $this->position);
+ }
- /**
- * Return the current iterator key
- *
- * @return int
- */
- public function key() {
- return $this->_position;
- }
+ /**
+ * Return the current iterator key
+ *
+ * @return int
+ */
+ public function key()
+ {
+ return $this->position;
+ }
- /**
- * Set the iterator to its next value
- */
- public function next() {
+ /**
+ * Set the iterator to its next value
+ */
+ public function next()
+ {
do {
- ++$this->_position;
- } while (($this->_onlyExistingCells) &&
- (!$this->_subject->cellExistsByColumnAndRow($this->_columnIndex, $this->_position)) &&
- ($this->_position <= $this->_endRow));
- }
+ ++$this->position;
+ } while (($this->onlyExistingCells) &&
+ (!$this->subject->cellExistsByColumnAndRow($this->columnIndex, $this->position)) &&
+ ($this->position <= $this->endRow));
+ }
- /**
- * Set the iterator to its previous value
- */
- public function prev() {
- if ($this->_position <= $this->_startRow) {
- throw new PHPExcel_Exception("Row is already at the beginning of range ({$this->_startRow} - {$this->_endRow})");
+ /**
+ * Set the iterator to its previous value
+ */
+ public function prev()
+ {
+ if ($this->position <= $this->startRow) {
+ throw new PHPExcel_Exception("Row is already at the beginning of range ({$this->startRow} - {$this->endRow})");
}
do {
- --$this->_position;
- } while (($this->_onlyExistingCells) &&
- (!$this->_subject->cellExistsByColumnAndRow($this->_columnIndex, $this->_position)) &&
- ($this->_position >= $this->_startRow));
- }
+ --$this->position;
+ } while (($this->onlyExistingCells) &&
+ (!$this->subject->cellExistsByColumnAndRow($this->columnIndex, $this->position)) &&
+ ($this->position >= $this->startRow));
+ }
- /**
- * Indicate if more rows exist in the worksheet range of rows that we're iterating
- *
- * @return boolean
- */
- public function valid() {
- return $this->_position <= $this->_endRow;
- }
+ /**
+ * Indicate if more rows exist in the worksheet range of rows that we're iterating
+ *
+ * @return boolean
+ */
+ public function valid()
+ {
+ return $this->position <= $this->endRow;
+ }
- /**
- * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
- *
+ /**
+ * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
+ *
* @throws PHPExcel_Exception
- */
- protected function adjustForExistingOnlyRange() {
- if ($this->_onlyExistingCells) {
- while ((!$this->_subject->cellExistsByColumnAndRow($this->_columnIndex, $this->_startRow)) &&
- ($this->_startRow <= $this->_endRow)) {
- ++$this->_startRow;
+ */
+ protected function adjustForExistingOnlyRange()
+ {
+ if ($this->onlyExistingCells) {
+ while ((!$this->subject->cellExistsByColumnAndRow($this->columnIndex, $this->startRow)) &&
+ ($this->startRow <= $this->endRow)) {
+ ++$this->startRow;
}
- if ($this->_startRow > $this->_endRow) {
+ if ($this->startRow > $this->endRow) {
throw new PHPExcel_Exception('No cells exist within the specified range');
}
- while ((!$this->_subject->cellExistsByColumnAndRow($this->_columnIndex, $this->_endRow)) &&
- ($this->_endRow >= $this->_startRow)) {
- --$this->_endRow;
+ while ((!$this->subject->cellExistsByColumnAndRow($this->columnIndex, $this->endRow)) &&
+ ($this->endRow >= $this->startRow)) {
+ --$this->endRow;
}
- if ($this->_endRow < $this->_startRow) {
+ if ($this->endRow < $this->startRow) {
throw new PHPExcel_Exception('No cells exist within the specified range');
}
}
}
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnDimension.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnDimension.php
index bc6a042e..405b8258 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnDimension.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnDimension.php
@@ -1,8 +1,9 @@
_columnIndex = $pIndex;
+ // Initialise values
+ $this->columnIndex = $pIndex;
- // set default index to cellXf
- $this->_xfIndex = 0;
+ // set dimension as unformatted by default
+ parent::__construct(0);
}
/**
@@ -105,8 +69,9 @@ class PHPExcel_Worksheet_ColumnDimension
*
* @return string
*/
- public function getColumnIndex() {
- return $this->_columnIndex;
+ public function getColumnIndex()
+ {
+ return $this->columnIndex;
}
/**
@@ -115,9 +80,10 @@ class PHPExcel_Worksheet_ColumnDimension
* @param string $pValue
* @return PHPExcel_Worksheet_ColumnDimension
*/
- public function setColumnIndex($pValue) {
- $this->_columnIndex = $pValue;
- return $this;
+ public function setColumnIndex($pValue)
+ {
+ $this->columnIndex = $pValue;
+ return $this;
}
/**
@@ -125,8 +91,9 @@ class PHPExcel_Worksheet_ColumnDimension
*
* @return double
*/
- public function getWidth() {
- return $this->_width;
+ public function getWidth()
+ {
+ return $this->width;
}
/**
@@ -135,9 +102,10 @@ class PHPExcel_Worksheet_ColumnDimension
* @param double $pValue
* @return PHPExcel_Worksheet_ColumnDimension
*/
- public function setWidth($pValue = -1) {
- $this->_width = $pValue;
- return $this;
+ public function setWidth($pValue = -1)
+ {
+ $this->width = $pValue;
+ return $this;
}
/**
@@ -145,8 +113,9 @@ class PHPExcel_Worksheet_ColumnDimension
*
* @return bool
*/
- public function getAutoSize() {
- return $this->_autoSize;
+ public function getAutoSize()
+ {
+ return $this->autoSize;
}
/**
@@ -155,112 +124,9 @@ class PHPExcel_Worksheet_ColumnDimension
* @param bool $pValue
* @return PHPExcel_Worksheet_ColumnDimension
*/
- public function setAutoSize($pValue = false) {
- $this->_autoSize = $pValue;
- return $this;
+ public function setAutoSize($pValue = false)
+ {
+ $this->autoSize = $pValue;
+ return $this;
}
-
- /**
- * Get Visible
- *
- * @return bool
- */
- public function getVisible() {
- return $this->_visible;
- }
-
- /**
- * Set Visible
- *
- * @param bool $pValue
- * @return PHPExcel_Worksheet_ColumnDimension
- */
- public function setVisible($pValue = true) {
- $this->_visible = $pValue;
- return $this;
- }
-
- /**
- * Get Outline Level
- *
- * @return int
- */
- public function getOutlineLevel() {
- return $this->_outlineLevel;
- }
-
- /**
- * Set Outline Level
- *
- * Value must be between 0 and 7
- *
- * @param int $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_ColumnDimension
- */
- public function setOutlineLevel($pValue) {
- if ($pValue < 0 || $pValue > 7) {
- throw new PHPExcel_Exception("Outline level must range between 0 and 7.");
- }
-
- $this->_outlineLevel = $pValue;
- return $this;
- }
-
- /**
- * Get Collapsed
- *
- * @return bool
- */
- public function getCollapsed() {
- return $this->_collapsed;
- }
-
- /**
- * Set Collapsed
- *
- * @param bool $pValue
- * @return PHPExcel_Worksheet_ColumnDimension
- */
- public function setCollapsed($pValue = true) {
- $this->_collapsed = $pValue;
- return $this;
- }
-
- /**
- * Get index to cellXf
- *
- * @return int
- */
- public function getXfIndex()
- {
- return $this->_xfIndex;
- }
-
- /**
- * Set index to cellXf
- *
- * @param int $pValue
- * @return PHPExcel_Worksheet_ColumnDimension
- */
- public function setXfIndex($pValue = 0)
- {
- $this->_xfIndex = $pValue;
- return $this;
- }
-
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php
index 3030b3f4..0db3e534 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php
@@ -1,8 +1,9 @@
_subject = $subject;
- $this->resetEnd($endColumn);
- $this->resetStart($startColumn);
- }
+ /**
+ * Create a new column iterator
+ *
+ * @param PHPExcel_Worksheet $subject The worksheet to iterate over
+ * @param string $startColumn The column address at which to start iterating
+ * @param string $endColumn Optionally, the column address at which to stop iterating
+ */
+ public function __construct(PHPExcel_Worksheet $subject = null, $startColumn = 'A', $endColumn = null)
+ {
+ // Set subject
+ $this->subject = $subject;
+ $this->resetEnd($endColumn);
+ $this->resetStart($startColumn);
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_subject);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->subject);
+ }
- /**
- * (Re)Set the start column and the current column pointer
- *
- * @param integer $startColumn The column address at which to start iterating
- * @return PHPExcel_Worksheet_ColumnIterator
- */
- public function resetStart($startColumn = 'A') {
- $startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumn) - 1;
- $this->_startColumn = $startColumnIndex;
- $this->seek($startColumn);
-
- return $this;
- }
-
- /**
- * (Re)Set the end column
- *
- * @param string $endColumn The column address at which to stop iterating
- * @return PHPExcel_Worksheet_ColumnIterator
- */
- public function resetEnd($endColumn = null) {
- $endColumn = ($endColumn) ? $endColumn : $this->_subject->getHighestColumn();
- $this->_endColumn = PHPExcel_Cell::columnIndexFromString($endColumn) - 1;
-
- return $this;
- }
-
- /**
- * Set the column pointer to the selected column
- *
- * @param string $column The column address to set the current pointer at
+ /**
+ * (Re)Set the start column and the current column pointer
+ *
+ * @param integer $startColumn The column address at which to start iterating
* @return PHPExcel_Worksheet_ColumnIterator
* @throws PHPExcel_Exception
- */
- public function seek($column = 'A') {
- $column = PHPExcel_Cell::columnIndexFromString($column) - 1;
- if (($column < $this->_startColumn) || ($column > $this->_endColumn)) {
- throw new PHPExcel_Exception("Column $column is out of range ({$this->_startColumn} - {$this->_endColumn})");
+ */
+ public function resetStart($startColumn = 'A')
+ {
+ $startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumn) - 1;
+ if ($startColumnIndex > PHPExcel_Cell::columnIndexFromString($this->subject->getHighestColumn()) - 1) {
+ throw new PHPExcel_Exception("Start column ({$startColumn}) is beyond highest column ({$this->subject->getHighestColumn()})");
}
- $this->_position = $column;
+
+ $this->startColumn = $startColumnIndex;
+ if ($this->endColumn < $this->startColumn) {
+ $this->endColumn = $this->startColumn;
+ }
+ $this->seek($startColumn);
return $this;
}
- /**
- * Rewind the iterator to the starting column
- */
- public function rewind() {
- $this->_position = $this->_startColumn;
- }
+ /**
+ * (Re)Set the end column
+ *
+ * @param string $endColumn The column address at which to stop iterating
+ * @return PHPExcel_Worksheet_ColumnIterator
+ */
+ public function resetEnd($endColumn = null)
+ {
+ $endColumn = ($endColumn) ? $endColumn : $this->subject->getHighestColumn();
+ $this->endColumn = PHPExcel_Cell::columnIndexFromString($endColumn) - 1;
- /**
- * Return the current column in this worksheet
- *
- * @return PHPExcel_Worksheet_Column
- */
- public function current() {
- return new PHPExcel_Worksheet_Column($this->_subject, PHPExcel_Cell::stringFromColumnIndex($this->_position));
- }
+ return $this;
+ }
- /**
- * Return the current iterator key
- *
- * @return string
- */
- public function key() {
- return PHPExcel_Cell::stringFromColumnIndex($this->_position);
- }
+ /**
+ * Set the column pointer to the selected column
+ *
+ * @param string $column The column address to set the current pointer at
+ * @return PHPExcel_Worksheet_ColumnIterator
+ * @throws PHPExcel_Exception
+ */
+ public function seek($column = 'A')
+ {
+ $column = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ if (($column < $this->startColumn) || ($column > $this->endColumn)) {
+ throw new PHPExcel_Exception("Column $column is out of range ({$this->startColumn} - {$this->endColumn})");
+ }
+ $this->position = $column;
- /**
- * Set the iterator to its next value
- */
- public function next() {
- ++$this->_position;
- }
+ return $this;
+ }
- /**
- * Set the iterator to its previous value
+ /**
+ * Rewind the iterator to the starting column
+ */
+ public function rewind()
+ {
+ $this->position = $this->startColumn;
+ }
+
+ /**
+ * Return the current column in this worksheet
+ *
+ * @return PHPExcel_Worksheet_Column
+ */
+ public function current()
+ {
+ return new PHPExcel_Worksheet_Column($this->subject, PHPExcel_Cell::stringFromColumnIndex($this->position));
+ }
+
+ /**
+ * Return the current iterator key
+ *
+ * @return string
+ */
+ public function key()
+ {
+ return PHPExcel_Cell::stringFromColumnIndex($this->position);
+ }
+
+ /**
+ * Set the iterator to its next value
+ */
+ public function next()
+ {
+ ++$this->position;
+ }
+
+ /**
+ * Set the iterator to its previous value
*
* @throws PHPExcel_Exception
- */
- public function prev() {
- if ($this->_position <= $this->_startColumn) {
+ */
+ public function prev()
+ {
+ if ($this->position <= $this->startColumn) {
throw new PHPExcel_Exception(
- "Column is already at the beginning of range (" .
- PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . " - " .
- PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . ")"
+ "Column is already at the beginning of range (" .
+ PHPExcel_Cell::stringFromColumnIndex($this->endColumn) . " - " .
+ PHPExcel_Cell::stringFromColumnIndex($this->endColumn) . ")"
);
}
- --$this->_position;
- }
+ --$this->position;
+ }
- /**
- * Indicate if more columns exist in the worksheet range of columns that we're iterating
- *
- * @return boolean
- */
- public function valid() {
- return $this->_position <= $this->_endColumn;
- }
+ /**
+ * Indicate if more columns exist in the worksheet range of columns that we're iterating
+ *
+ * @return boolean
+ */
+ public function valid()
+ {
+ return $this->position <= $this->endColumn;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Dimension.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Dimension.php
new file mode 100644
index 00000000..84f692cb
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Dimension.php
@@ -0,0 +1,178 @@
+xfIndex = $initialValue;
+ }
+
+ /**
+ * Get Visible
+ *
+ * @return bool
+ */
+ public function getVisible()
+ {
+ return $this->visible;
+ }
+
+ /**
+ * Set Visible
+ *
+ * @param bool $pValue
+ * @return PHPExcel_Worksheet_Dimension
+ */
+ public function setVisible($pValue = true)
+ {
+ $this->visible = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Outline Level
+ *
+ * @return int
+ */
+ public function getOutlineLevel()
+ {
+ return $this->outlineLevel;
+ }
+
+ /**
+ * Set Outline Level
+ *
+ * Value must be between 0 and 7
+ *
+ * @param int $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_Dimension
+ */
+ public function setOutlineLevel($pValue)
+ {
+ if ($pValue < 0 || $pValue > 7) {
+ throw new PHPExcel_Exception("Outline level must range between 0 and 7.");
+ }
+
+ $this->outlineLevel = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get Collapsed
+ *
+ * @return bool
+ */
+ public function getCollapsed()
+ {
+ return $this->collapsed;
+ }
+
+ /**
+ * Set Collapsed
+ *
+ * @param bool $pValue
+ * @return PHPExcel_Worksheet_Dimension
+ */
+ public function setCollapsed($pValue = true)
+ {
+ $this->collapsed = $pValue;
+ return $this;
+ }
+
+ /**
+ * Get index to cellXf
+ *
+ * @return int
+ */
+ public function getXfIndex()
+ {
+ return $this->xfIndex;
+ }
+
+ /**
+ * Set index to cellXf
+ *
+ * @param int $pValue
+ * @return PHPExcel_Worksheet_Dimension
+ */
+ public function setXfIndex($pValue = 0)
+ {
+ $this->xfIndex = $pValue;
+ return $this;
+ }
+
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php
index e8d87f1d..e39d3eb9 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing.php
@@ -1,8 +1,9 @@
_path = '';
+ // Initialise values
+ $this->path = '';
- // Initialize parent
- parent::__construct();
+ // Initialize parent
+ parent::__construct();
}
/**
@@ -59,8 +51,9 @@ class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implemen
*
* @return string
*/
- public function getFilename() {
- return basename($this->_path);
+ public function getFilename()
+ {
+ return basename($this->path);
}
/**
@@ -68,10 +61,11 @@ class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implemen
*
* @return string
*/
- public function getIndexedFilename() {
- $fileName = $this->getFilename();
- $fileName = str_replace(' ', '_', $fileName);
- return str_replace('.' . $this->getExtension(), '', $fileName) . $this->getImageIndex() . '.' . $this->getExtension();
+ public function getIndexedFilename()
+ {
+ $fileName = $this->getFilename();
+ $fileName = str_replace(' ', '_', $fileName);
+ return str_replace('.' . $this->getExtension(), '', $fileName) . $this->getImageIndex() . '.' . $this->getExtension();
}
/**
@@ -79,9 +73,10 @@ class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implemen
*
* @return string
*/
- public function getExtension() {
- $exploded = explode(".", basename($this->_path));
- return $exploded[count($exploded) - 1];
+ public function getExtension()
+ {
+ $exploded = explode(".", basename($this->path));
+ return $exploded[count($exploded) - 1];
}
/**
@@ -89,60 +84,64 @@ class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implemen
*
* @return string
*/
- public function getPath() {
- return $this->_path;
+ public function getPath()
+ {
+ return $this->path;
}
/**
* Set Path
*
- * @param string $pValue File path
- * @param boolean $pVerifyFile Verify file
- * @throws PHPExcel_Exception
+ * @param string $pValue File path
+ * @param boolean $pVerifyFile Verify file
+ * @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_Drawing
*/
- public function setPath($pValue = '', $pVerifyFile = true) {
- if ($pVerifyFile) {
- if (file_exists($pValue)) {
- $this->_path = $pValue;
+ public function setPath($pValue = '', $pVerifyFile = true)
+ {
+ if ($pVerifyFile) {
+ if (file_exists($pValue)) {
+ $this->path = $pValue;
- if ($this->_width == 0 && $this->_height == 0) {
- // Get width/height
- list($this->_width, $this->_height) = getimagesize($pValue);
- }
- } else {
- throw new PHPExcel_Exception("File $pValue not found!");
- }
- } else {
- $this->_path = $pValue;
- }
- return $this;
+ if ($this->width == 0 && $this->height == 0) {
+ // Get width/height
+ list($this->width, $this->height) = getimagesize($pValue);
+ }
+ } else {
+ throw new PHPExcel_Exception("File $pValue not found!");
+ }
+ } else {
+ $this->path = $pValue;
+ }
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- $this->_path
- . parent::getHashCode()
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ $this->path .
+ parent::getHashCode() .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing/Shadow.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing/Shadow.php
index 98b95b1a..84db91d5 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing/Shadow.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing/Shadow.php
@@ -1,8 +1,9 @@
_visible = false;
- $this->_blurRadius = 6;
- $this->_distance = 2;
- $this->_direction = 0;
- $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
- $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
- $this->_alpha = 50;
+ // Initialise values
+ $this->visible = false;
+ $this->blurRadius = 6;
+ $this->distance = 2;
+ $this->direction = 0;
+ $this->alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
+ $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
+ $this->alpha = 50;
}
/**
@@ -118,8 +110,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return boolean
*/
- public function getVisible() {
- return $this->_visible;
+ public function getVisible()
+ {
+ return $this->visible;
}
/**
@@ -128,9 +121,10 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param boolean $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setVisible($pValue = false) {
- $this->_visible = $pValue;
- return $this;
+ public function setVisible($pValue = false)
+ {
+ $this->visible = $pValue;
+ return $this;
}
/**
@@ -138,8 +132,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return int
*/
- public function getBlurRadius() {
- return $this->_blurRadius;
+ public function getBlurRadius()
+ {
+ return $this->blurRadius;
}
/**
@@ -148,9 +143,10 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setBlurRadius($pValue = 6) {
- $this->_blurRadius = $pValue;
- return $this;
+ public function setBlurRadius($pValue = 6)
+ {
+ $this->blurRadius = $pValue;
+ return $this;
}
/**
@@ -158,8 +154,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return int
*/
- public function getDistance() {
- return $this->_distance;
+ public function getDistance()
+ {
+ return $this->distance;
}
/**
@@ -168,9 +165,10 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setDistance($pValue = 2) {
- $this->_distance = $pValue;
- return $this;
+ public function setDistance($pValue = 2)
+ {
+ $this->distance = $pValue;
+ return $this;
}
/**
@@ -178,8 +176,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return int
*/
- public function getDirection() {
- return $this->_direction;
+ public function getDirection()
+ {
+ return $this->direction;
}
/**
@@ -188,9 +187,10 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setDirection($pValue = 0) {
- $this->_direction = $pValue;
- return $this;
+ public function setDirection($pValue = 0)
+ {
+ $this->direction = $pValue;
+ return $this;
}
/**
@@ -198,8 +198,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return int
*/
- public function getAlignment() {
- return $this->_alignment;
+ public function getAlignment()
+ {
+ return $this->alignment;
}
/**
@@ -208,9 +209,10 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setAlignment($pValue = 0) {
- $this->_alignment = $pValue;
- return $this;
+ public function setAlignment($pValue = 0)
+ {
+ $this->alignment = $pValue;
+ return $this;
}
/**
@@ -218,20 +220,22 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return PHPExcel_Style_Color
*/
- public function getColor() {
- return $this->_color;
+ public function getColor()
+ {
+ return $this->color;
}
/**
* Set Color
*
- * @param PHPExcel_Style_Color $pValue
- * @throws PHPExcel_Exception
+ * @param PHPExcel_Style_Color $pValue
+ * @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setColor(PHPExcel_Style_Color $pValue = null) {
- $this->_color = $pValue;
- return $this;
+ public function setColor(PHPExcel_Style_Color $pValue = null)
+ {
+ $this->color = $pValue;
+ return $this;
}
/**
@@ -239,8 +243,9 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
*
* @return int
*/
- public function getAlpha() {
- return $this->_alpha;
+ public function getAlpha()
+ {
+ return $this->alpha;
}
/**
@@ -249,40 +254,43 @@ class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
* @param int $pValue
* @return PHPExcel_Worksheet_Drawing_Shadow
*/
- public function setAlpha($pValue = 0) {
- $this->_alpha = $pValue;
- return $this;
+ public function setAlpha($pValue = 0)
+ {
+ $this->alpha = $pValue;
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- ($this->_visible ? 't' : 'f')
- . $this->_blurRadius
- . $this->_distance
- . $this->_direction
- . $this->_alignment
- . $this->_color->getHashCode()
- . $this->_alpha
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ ($this->visible ? 't' : 'f') .
+ $this->blurRadius .
+ $this->distance .
+ $this->direction .
+ $this->alignment .
+ $this->color->getHashCode() .
+ $this->alpha .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php
index 80374163..3a88923f 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooter.php
@@ -1,8 +1,8 @@
* Header/Footer Formatting Syntax taken from Office Open XML Part 4 - Markup Language Reference, page 1970:
@@ -37,7 +32,7 @@
*
* Example: This example shows the text "Center Bold Header" on the first line (center section), and the date on
* the second line (center section).
- * &CCenter &"-,Bold"Bold&"-,Regular"Header_x000A_&D
+ * &CCenter &"-,Bold"Bold&"-,Regular"Header_x000A_&D
*
* General Rules:
* There is no required order in which these codes must appear.
@@ -89,96 +84,93 @@
* &H - code for "shadow style"
*
*
- * @category PHPExcel
- * @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Worksheet_HeaderFooter
{
- /* Header/footer image location */
- const IMAGE_HEADER_LEFT = 'LH';
- const IMAGE_HEADER_CENTER = 'CH';
- const IMAGE_HEADER_RIGHT = 'RH';
- const IMAGE_FOOTER_LEFT = 'LF';
- const IMAGE_FOOTER_CENTER = 'CF';
- const IMAGE_FOOTER_RIGHT = 'RF';
+ /* Header/footer image location */
+ const IMAGE_HEADER_LEFT = 'LH';
+ const IMAGE_HEADER_CENTER = 'CH';
+ const IMAGE_HEADER_RIGHT = 'RH';
+ const IMAGE_FOOTER_LEFT = 'LF';
+ const IMAGE_FOOTER_CENTER = 'CF';
+ const IMAGE_FOOTER_RIGHT = 'RF';
- /**
- * OddHeader
- *
- * @var string
- */
- private $_oddHeader = '';
+ /**
+ * OddHeader
+ *
+ * @var string
+ */
+ private $oddHeader = '';
- /**
- * OddFooter
- *
- * @var string
- */
- private $_oddFooter = '';
+ /**
+ * OddFooter
+ *
+ * @var string
+ */
+ private $oddFooter = '';
- /**
- * EvenHeader
- *
- * @var string
- */
- private $_evenHeader = '';
+ /**
+ * EvenHeader
+ *
+ * @var string
+ */
+ private $evenHeader = '';
- /**
- * EvenFooter
- *
- * @var string
- */
- private $_evenFooter = '';
+ /**
+ * EvenFooter
+ *
+ * @var string
+ */
+ private $evenFooter = '';
- /**
- * FirstHeader
- *
- * @var string
- */
- private $_firstHeader = '';
+ /**
+ * FirstHeader
+ *
+ * @var string
+ */
+ private $firstHeader = '';
- /**
- * FirstFooter
- *
- * @var string
- */
- private $_firstFooter = '';
+ /**
+ * FirstFooter
+ *
+ * @var string
+ */
+ private $firstFooter = '';
- /**
- * Different header for Odd/Even, defaults to false
- *
- * @var boolean
- */
- private $_differentOddEven = false;
+ /**
+ * Different header for Odd/Even, defaults to false
+ *
+ * @var boolean
+ */
+ private $differentOddEven = false;
- /**
- * Different header for first page, defaults to false
- *
- * @var boolean
- */
- private $_differentFirst = false;
+ /**
+ * Different header for first page, defaults to false
+ *
+ * @var boolean
+ */
+ private $differentFirst = false;
- /**
- * Scale with document, defaults to true
- *
- * @var boolean
- */
- private $_scaleWithDocument = true;
+ /**
+ * Scale with document, defaults to true
+ *
+ * @var boolean
+ */
+ private $scaleWithDocument = true;
- /**
- * Align with margins, defaults to true
- *
- * @var boolean
- */
- private $_alignWithMargins = true;
+ /**
+ * Align with margins, defaults to true
+ *
+ * @var boolean
+ */
+ private $alignWithMargins = true;
- /**
- * Header/footer images
- *
- * @var PHPExcel_Worksheet_HeaderFooterDrawing[]
- */
- private $_headerFooterImages = array();
+ /**
+ * Header/footer images
+ *
+ * @var PHPExcel_Worksheet_HeaderFooterDrawing[]
+ */
+ private $headerFooterImages = array();
/**
* Create a new PHPExcel_Worksheet_HeaderFooter
@@ -192,8 +184,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getOddHeader() {
- return $this->_oddHeader;
+ public function getOddHeader()
+ {
+ return $this->oddHeader;
}
/**
@@ -202,9 +195,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setOddHeader($pValue) {
- $this->_oddHeader = $pValue;
- return $this;
+ public function setOddHeader($pValue)
+ {
+ $this->oddHeader = $pValue;
+ return $this;
}
/**
@@ -212,8 +206,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getOddFooter() {
- return $this->_oddFooter;
+ public function getOddFooter()
+ {
+ return $this->oddFooter;
}
/**
@@ -222,9 +217,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setOddFooter($pValue) {
- $this->_oddFooter = $pValue;
- return $this;
+ public function setOddFooter($pValue)
+ {
+ $this->oddFooter = $pValue;
+ return $this;
}
/**
@@ -232,8 +228,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getEvenHeader() {
- return $this->_evenHeader;
+ public function getEvenHeader()
+ {
+ return $this->evenHeader;
}
/**
@@ -242,9 +239,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setEvenHeader($pValue) {
- $this->_evenHeader = $pValue;
- return $this;
+ public function setEvenHeader($pValue)
+ {
+ $this->evenHeader = $pValue;
+ return $this;
}
/**
@@ -252,8 +250,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getEvenFooter() {
- return $this->_evenFooter;
+ public function getEvenFooter()
+ {
+ return $this->evenFooter;
}
/**
@@ -262,9 +261,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setEvenFooter($pValue) {
- $this->_evenFooter = $pValue;
- return $this;
+ public function setEvenFooter($pValue)
+ {
+ $this->evenFooter = $pValue;
+ return $this;
}
/**
@@ -272,8 +272,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getFirstHeader() {
- return $this->_firstHeader;
+ public function getFirstHeader()
+ {
+ return $this->firstHeader;
}
/**
@@ -282,9 +283,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setFirstHeader($pValue) {
- $this->_firstHeader = $pValue;
- return $this;
+ public function setFirstHeader($pValue)
+ {
+ $this->firstHeader = $pValue;
+ return $this;
}
/**
@@ -292,8 +294,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return string
*/
- public function getFirstFooter() {
- return $this->_firstFooter;
+ public function getFirstFooter()
+ {
+ return $this->firstFooter;
}
/**
@@ -302,9 +305,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setFirstFooter($pValue) {
- $this->_firstFooter = $pValue;
- return $this;
+ public function setFirstFooter($pValue)
+ {
+ $this->firstFooter = $pValue;
+ return $this;
}
/**
@@ -312,8 +316,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return boolean
*/
- public function getDifferentOddEven() {
- return $this->_differentOddEven;
+ public function getDifferentOddEven()
+ {
+ return $this->differentOddEven;
}
/**
@@ -322,9 +327,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param boolean $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setDifferentOddEven($pValue = false) {
- $this->_differentOddEven = $pValue;
- return $this;
+ public function setDifferentOddEven($pValue = false)
+ {
+ $this->differentOddEven = $pValue;
+ return $this;
}
/**
@@ -332,8 +338,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return boolean
*/
- public function getDifferentFirst() {
- return $this->_differentFirst;
+ public function getDifferentFirst()
+ {
+ return $this->differentFirst;
}
/**
@@ -342,9 +349,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param boolean $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setDifferentFirst($pValue = false) {
- $this->_differentFirst = $pValue;
- return $this;
+ public function setDifferentFirst($pValue = false)
+ {
+ $this->differentFirst = $pValue;
+ return $this;
}
/**
@@ -352,8 +360,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return boolean
*/
- public function getScaleWithDocument() {
- return $this->_scaleWithDocument;
+ public function getScaleWithDocument()
+ {
+ return $this->scaleWithDocument;
}
/**
@@ -362,9 +371,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param boolean $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setScaleWithDocument($pValue = true) {
- $this->_scaleWithDocument = $pValue;
- return $this;
+ public function setScaleWithDocument($pValue = true)
+ {
+ $this->scaleWithDocument = $pValue;
+ return $this;
}
/**
@@ -372,8 +382,9 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return boolean
*/
- public function getAlignWithMargins() {
- return $this->_alignWithMargins;
+ public function getAlignWithMargins()
+ {
+ return $this->alignWithMargins;
}
/**
@@ -382,9 +393,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @param boolean $pValue
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setAlignWithMargins($pValue = true) {
- $this->_alignWithMargins = $pValue;
- return $this;
+ public function setAlignWithMargins($pValue = true)
+ {
+ $this->alignWithMargins = $pValue;
+ return $this;
}
/**
@@ -395,9 +407,10 @@ class PHPExcel_Worksheet_HeaderFooter
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function addImage(PHPExcel_Worksheet_HeaderFooterDrawing $image = null, $location = self::IMAGE_HEADER_LEFT) {
- $this->_headerFooterImages[$location] = $image;
- return $this;
+ public function addImage(PHPExcel_Worksheet_HeaderFooterDrawing $image = null, $location = self::IMAGE_HEADER_LEFT)
+ {
+ $this->headerFooterImages[$location] = $image;
+ return $this;
}
/**
@@ -407,11 +420,12 @@ class PHPExcel_Worksheet_HeaderFooter
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function removeImage($location = self::IMAGE_HEADER_LEFT) {
- if (isset($this->_headerFooterImages[$location])) {
- unset($this->_headerFooterImages[$location]);
- }
- return $this;
+ public function removeImage($location = self::IMAGE_HEADER_LEFT)
+ {
+ if (isset($this->headerFooterImages[$location])) {
+ unset($this->headerFooterImages[$location]);
+ }
+ return $this;
}
/**
@@ -421,13 +435,14 @@ class PHPExcel_Worksheet_HeaderFooter
* @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setImages($images) {
- if (!is_array($images)) {
- throw new PHPExcel_Exception('Invalid parameter!');
- }
+ public function setImages($images)
+ {
+ if (!is_array($images)) {
+ throw new PHPExcel_Exception('Invalid parameter!');
+ }
- $this->_headerFooterImages = $images;
- return $this;
+ $this->headerFooterImages = $images;
+ return $this;
}
/**
@@ -435,31 +450,45 @@ class PHPExcel_Worksheet_HeaderFooter
*
* @return PHPExcel_Worksheet_HeaderFooterDrawing[]
*/
- public function getImages() {
- // Sort array
- $images = array();
- if (isset($this->_headerFooterImages[self::IMAGE_HEADER_LEFT])) $images[self::IMAGE_HEADER_LEFT] = $this->_headerFooterImages[self::IMAGE_HEADER_LEFT];
- if (isset($this->_headerFooterImages[self::IMAGE_HEADER_CENTER])) $images[self::IMAGE_HEADER_CENTER] = $this->_headerFooterImages[self::IMAGE_HEADER_CENTER];
- if (isset($this->_headerFooterImages[self::IMAGE_HEADER_RIGHT])) $images[self::IMAGE_HEADER_RIGHT] = $this->_headerFooterImages[self::IMAGE_HEADER_RIGHT];
- if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_LEFT])) $images[self::IMAGE_FOOTER_LEFT] = $this->_headerFooterImages[self::IMAGE_FOOTER_LEFT];
- if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_CENTER])) $images[self::IMAGE_FOOTER_CENTER] = $this->_headerFooterImages[self::IMAGE_FOOTER_CENTER];
- if (isset($this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT])) $images[self::IMAGE_FOOTER_RIGHT] = $this->_headerFooterImages[self::IMAGE_FOOTER_RIGHT];
- $this->_headerFooterImages = $images;
+ public function getImages()
+ {
+ // Sort array
+ $images = array();
+ if (isset($this->headerFooterImages[self::IMAGE_HEADER_LEFT])) {
+ $images[self::IMAGE_HEADER_LEFT] = $this->headerFooterImages[self::IMAGE_HEADER_LEFT];
+ }
+ if (isset($this->headerFooterImages[self::IMAGE_HEADER_CENTER])) {
+ $images[self::IMAGE_HEADER_CENTER] = $this->headerFooterImages[self::IMAGE_HEADER_CENTER];
+ }
+ if (isset($this->headerFooterImages[self::IMAGE_HEADER_RIGHT])) {
+ $images[self::IMAGE_HEADER_RIGHT] = $this->headerFooterImages[self::IMAGE_HEADER_RIGHT];
+ }
+ if (isset($this->headerFooterImages[self::IMAGE_FOOTER_LEFT])) {
+ $images[self::IMAGE_FOOTER_LEFT] = $this->headerFooterImages[self::IMAGE_FOOTER_LEFT];
+ }
+ if (isset($this->headerFooterImages[self::IMAGE_FOOTER_CENTER])) {
+ $images[self::IMAGE_FOOTER_CENTER] = $this->headerFooterImages[self::IMAGE_FOOTER_CENTER];
+ }
+ if (isset($this->headerFooterImages[self::IMAGE_FOOTER_RIGHT])) {
+ $images[self::IMAGE_FOOTER_RIGHT] = $this->headerFooterImages[self::IMAGE_FOOTER_RIGHT];
+ }
+ $this->headerFooterImages = $images;
- return $this->_headerFooterImages;
+ return $this->headerFooterImages;
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php
index 966664f9..a491f4ba 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php
@@ -1,8 +1,9 @@
_path = '';
- $this->_name = '';
- $this->_offsetX = 0;
- $this->_offsetY = 0;
- $this->_width = 0;
- $this->_height = 0;
- $this->_resizeProportional = true;
+ // Initialise values
+ $this->path = '';
+ $this->name = '';
+ $this->offsetX = 0;
+ $this->offsetY = 0;
+ $this->width = 0;
+ $this->height = 0;
+ $this->resizeProportional = true;
}
/**
@@ -104,8 +96,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return string
*/
- public function getName() {
- return $this->_name;
+ public function getName()
+ {
+ return $this->name;
}
/**
@@ -114,9 +107,10 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param string $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setName($pValue = '') {
- $this->_name = $pValue;
- return $this;
+ public function setName($pValue = '')
+ {
+ $this->name = $pValue;
+ return $this;
}
/**
@@ -124,8 +118,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return int
*/
- public function getOffsetX() {
- return $this->_offsetX;
+ public function getOffsetX()
+ {
+ return $this->offsetX;
}
/**
@@ -134,9 +129,10 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param int $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setOffsetX($pValue = 0) {
- $this->_offsetX = $pValue;
- return $this;
+ public function setOffsetX($pValue = 0)
+ {
+ $this->offsetX = $pValue;
+ return $this;
}
/**
@@ -144,8 +140,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return int
*/
- public function getOffsetY() {
- return $this->_offsetY;
+ public function getOffsetY()
+ {
+ return $this->offsetY;
}
/**
@@ -154,9 +151,10 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param int $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setOffsetY($pValue = 0) {
- $this->_offsetY = $pValue;
- return $this;
+ public function setOffsetY($pValue = 0)
+ {
+ $this->offsetY = $pValue;
+ return $this;
}
/**
@@ -164,8 +162,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return int
*/
- public function getWidth() {
- return $this->_width;
+ public function getWidth()
+ {
+ return $this->width;
}
/**
@@ -174,17 +173,18 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param int $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setWidth($pValue = 0) {
- // Resize proportional?
- if ($this->_resizeProportional && $pValue != 0) {
- $ratio = $this->_width / $this->_height;
- $this->_height = round($ratio * $pValue);
- }
+ public function setWidth($pValue = 0)
+ {
+ // Resize proportional?
+ if ($this->resizeProportional && $pValue != 0) {
+ $ratio = $this->width / $this->height;
+ $this->height = round($ratio * $pValue);
+ }
- // Set width
- $this->_width = $pValue;
+ // Set width
+ $this->width = $pValue;
- return $this;
+ return $this;
}
/**
@@ -192,8 +192,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return int
*/
- public function getHeight() {
- return $this->_height;
+ public function getHeight()
+ {
+ return $this->height;
}
/**
@@ -202,54 +203,57 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param int $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setHeight($pValue = 0) {
- // Resize proportional?
- if ($this->_resizeProportional && $pValue != 0) {
- $ratio = $this->_width / $this->_height;
- $this->_width = round($ratio * $pValue);
- }
+ public function setHeight($pValue = 0)
+ {
+ // Resize proportional?
+ if ($this->resizeProportional && $pValue != 0) {
+ $ratio = $this->width / $this->height;
+ $this->width = round($ratio * $pValue);
+ }
- // Set height
- $this->_height = $pValue;
+ // Set height
+ $this->height = $pValue;
- return $this;
+ return $this;
}
/**
* Set width and height with proportional resize
- * Example:
- *
+ * Example:
+ *
+ *
* @author Vincent@luo MSN:kele_100@hotmail.com
* @param int $width
* @param int $height
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setWidthAndHeight($width = 0, $height = 0) {
- $xratio = $width / $this->_width;
- $yratio = $height / $this->_height;
- if ($this->_resizeProportional && !($width == 0 || $height == 0)) {
- if (($xratio * $this->_height) < $height) {
- $this->_height = ceil($xratio * $this->_height);
- $this->_width = $width;
- } else {
- $this->_width = ceil($yratio * $this->_width);
- $this->_height = $height;
- }
- }
- return $this;
- }
+ public function setWidthAndHeight($width = 0, $height = 0)
+ {
+ $xratio = $width / $this->width;
+ $yratio = $height / $this->height;
+ if ($this->resizeProportional && !($width == 0 || $height == 0)) {
+ if (($xratio * $this->height) < $height) {
+ $this->height = ceil($xratio * $this->height);
+ $this->width = $width;
+ } else {
+ $this->width = ceil($yratio * $this->width);
+ $this->height = $height;
+ }
+ }
+ return $this;
+ }
/**
* Get ResizeProportional
*
* @return boolean
*/
- public function getResizeProportional() {
- return $this->_resizeProportional;
+ public function getResizeProportional()
+ {
+ return $this->resizeProportional;
}
/**
@@ -258,9 +262,10 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
* @param boolean $pValue
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setResizeProportional($pValue = true) {
- $this->_resizeProportional = $pValue;
- return $this;
+ public function setResizeProportional($pValue = true)
+ {
+ $this->resizeProportional = $pValue;
+ return $this;
}
/**
@@ -268,8 +273,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return string
*/
- public function getFilename() {
- return basename($this->_path);
+ public function getFilename()
+ {
+ return basename($this->path);
}
/**
@@ -277,8 +283,9 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return string
*/
- public function getExtension() {
- $parts = explode(".", basename($this->_path));
+ public function getExtension()
+ {
+ $parts = explode(".", basename($this->path));
return end($parts);
}
@@ -287,64 +294,68 @@ class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing
*
* @return string
*/
- public function getPath() {
- return $this->_path;
+ public function getPath()
+ {
+ return $this->path;
}
/**
* Set Path
*
- * @param string $pValue File path
- * @param boolean $pVerifyFile Verify file
- * @throws PHPExcel_Exception
+ * @param string $pValue File path
+ * @param boolean $pVerifyFile Verify file
+ * @throws PHPExcel_Exception
* @return PHPExcel_Worksheet_HeaderFooterDrawing
*/
- public function setPath($pValue = '', $pVerifyFile = true) {
- if ($pVerifyFile) {
- if (file_exists($pValue)) {
- $this->_path = $pValue;
+ public function setPath($pValue = '', $pVerifyFile = true)
+ {
+ if ($pVerifyFile) {
+ if (file_exists($pValue)) {
+ $this->path = $pValue;
- if ($this->_width == 0 && $this->_height == 0) {
- // Get width/height
- list($this->_width, $this->_height) = getimagesize($pValue);
- }
- } else {
- throw new PHPExcel_Exception("File $pValue not found!");
- }
- } else {
- $this->_path = $pValue;
- }
- return $this;
+ if ($this->width == 0 && $this->height == 0) {
+ // Get width/height
+ list($this->width, $this->height) = getimagesize($pValue);
+ }
+ } else {
+ throw new PHPExcel_Exception("File $pValue not found!");
+ }
+ } else {
+ $this->path = $pValue;
+ }
+ return $this;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- $this->_path
- . $this->_name
- . $this->_offsetX
- . $this->_offsetY
- . $this->_width
- . $this->_height
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ $this->path .
+ $this->name .
+ $this->offsetX .
+ $this->offsetY .
+ $this->width .
+ $this->height .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/MemoryDrawing.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/MemoryDrawing.php
index 80fc6d1f..438ed2c5 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/MemoryDrawing.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/MemoryDrawing.php
@@ -1,8 +1,9 @@
_imageResource = null;
- $this->_renderingFunction = self::RENDERING_DEFAULT;
- $this->_mimeType = self::MIMETYPE_DEFAULT;
- $this->_uniqueName = md5(rand(0, 9999). time() . rand(0, 9999));
+ // Initialise values
+ $this->imageResource = null;
+ $this->renderingFunction = self::RENDERING_DEFAULT;
+ $this->mimeType = self::MIMETYPE_DEFAULT;
+ $this->uniqueName = md5(rand(0, 9999). time() . rand(0, 9999));
- // Initialize parent
- parent::__construct();
+ // Initialize parent
+ parent::__construct();
}
/**
@@ -95,25 +87,27 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
*
* @return resource
*/
- public function getImageResource() {
- return $this->_imageResource;
+ public function getImageResource()
+ {
+ return $this->imageResource;
}
/**
* Set image resource
*
- * @param $value resource
+ * @param $value resource
* @return PHPExcel_Worksheet_MemoryDrawing
*/
- public function setImageResource($value = null) {
- $this->_imageResource = $value;
+ public function setImageResource($value = null)
+ {
+ $this->imageResource = $value;
- if (!is_null($this->_imageResource)) {
- // Get width/height
- $this->_width = imagesx($this->_imageResource);
- $this->_height = imagesy($this->_imageResource);
- }
- return $this;
+ if (!is_null($this->imageResource)) {
+ // Get width/height
+ $this->width = imagesx($this->imageResource);
+ $this->height = imagesy($this->imageResource);
+ }
+ return $this;
}
/**
@@ -121,8 +115,9 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
*
* @return string
*/
- public function getRenderingFunction() {
- return $this->_renderingFunction;
+ public function getRenderingFunction()
+ {
+ return $this->renderingFunction;
}
/**
@@ -131,9 +126,10 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
* @param string $value
* @return PHPExcel_Worksheet_MemoryDrawing
*/
- public function setRenderingFunction($value = PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT) {
- $this->_renderingFunction = $value;
- return $this;
+ public function setRenderingFunction($value = PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT)
+ {
+ $this->renderingFunction = $value;
+ return $this;
}
/**
@@ -141,8 +137,9 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
*
* @return string
*/
- public function getMimeType() {
- return $this->_mimeType;
+ public function getMimeType()
+ {
+ return $this->mimeType;
}
/**
@@ -151,9 +148,10 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
* @param string $value
* @return PHPExcel_Worksheet_MemoryDrawing
*/
- public function setMimeType($value = PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT) {
- $this->_mimeType = $value;
- return $this;
+ public function setMimeType($value = PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT)
+ {
+ $this->mimeType = $value;
+ return $this;
}
/**
@@ -161,40 +159,43 @@ class PHPExcel_Worksheet_MemoryDrawing extends PHPExcel_Worksheet_BaseDrawing im
*
* @return string
*/
- public function getIndexedFilename() {
- $extension = strtolower($this->getMimeType());
- $extension = explode('/', $extension);
- $extension = $extension[1];
+ public function getIndexedFilename()
+ {
+ $extension = strtolower($this->getMimeType());
+ $extension = explode('/', $extension);
+ $extension = $extension[1];
- return $this->_uniqueName . $this->getImageIndex() . '.' . $extension;
+ return $this->uniqueName . $this->getImageIndex() . '.' . $extension;
}
- /**
- * Get hash code
- *
- * @return string Hash code
- */
- public function getHashCode() {
- return md5(
- $this->_renderingFunction
- . $this->_mimeType
- . $this->_uniqueName
- . parent::getHashCode()
- . __CLASS__
- );
+ /**
+ * Get hash code
+ *
+ * @return string Hash code
+ */
+ public function getHashCode()
+ {
+ return md5(
+ $this->renderingFunction .
+ $this->mimeType .
+ $this->uniqueName .
+ parent::getHashCode() .
+ __CLASS__
+ );
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageMargins.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageMargins.php
index b05a291f..70f5ee0f 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageMargins.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageMargins.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,51 +31,51 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Worksheet_PageMargins
{
- /**
- * Left
- *
- * @var double
- */
- private $_left = 0.7;
+ /**
+ * Left
+ *
+ * @var double
+ */
+ private $left = 0.7;
- /**
- * Right
- *
- * @var double
- */
- private $_right = 0.7;
+ /**
+ * Right
+ *
+ * @var double
+ */
+ private $right = 0.7;
- /**
- * Top
- *
- * @var double
- */
- private $_top = 0.75;
+ /**
+ * Top
+ *
+ * @var double
+ */
+ private $top = 0.75;
- /**
- * Bottom
- *
- * @var double
- */
- private $_bottom = 0.75;
+ /**
+ * Bottom
+ *
+ * @var double
+ */
+ private $bottom = 0.75;
- /**
- * Header
- *
- * @var double
- */
- private $_header = 0.3;
+ /**
+ * Header
+ *
+ * @var double
+ */
+ private $header = 0.3;
- /**
- * Footer
- *
- * @var double
- */
- private $_footer = 0.3;
+ /**
+ * Footer
+ *
+ * @var double
+ */
+ private $footer = 0.3;
/**
* Create a new PHPExcel_Worksheet_PageMargins
@@ -89,8 +89,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getLeft() {
- return $this->_left;
+ public function getLeft()
+ {
+ return $this->left;
}
/**
@@ -99,9 +100,10 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setLeft($pValue) {
- $this->_left = $pValue;
- return $this;
+ public function setLeft($pValue)
+ {
+ $this->left = $pValue;
+ return $this;
}
/**
@@ -109,8 +111,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getRight() {
- return $this->_right;
+ public function getRight()
+ {
+ return $this->right;
}
/**
@@ -119,9 +122,10 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setRight($pValue) {
- $this->_right = $pValue;
- return $this;
+ public function setRight($pValue)
+ {
+ $this->right = $pValue;
+ return $this;
}
/**
@@ -129,8 +133,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getTop() {
- return $this->_top;
+ public function getTop()
+ {
+ return $this->top;
}
/**
@@ -139,9 +144,10 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setTop($pValue) {
- $this->_top = $pValue;
- return $this;
+ public function setTop($pValue)
+ {
+ $this->top = $pValue;
+ return $this;
}
/**
@@ -149,8 +155,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getBottom() {
- return $this->_bottom;
+ public function getBottom()
+ {
+ return $this->bottom;
}
/**
@@ -159,9 +166,10 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setBottom($pValue) {
- $this->_bottom = $pValue;
- return $this;
+ public function setBottom($pValue)
+ {
+ $this->bottom = $pValue;
+ return $this;
}
/**
@@ -169,8 +177,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getHeader() {
- return $this->_header;
+ public function getHeader()
+ {
+ return $this->header;
}
/**
@@ -179,9 +188,10 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setHeader($pValue) {
- $this->_header = $pValue;
- return $this;
+ public function setHeader($pValue)
+ {
+ $this->header = $pValue;
+ return $this;
}
/**
@@ -189,8 +199,9 @@ class PHPExcel_Worksheet_PageMargins
*
* @return double
*/
- public function getFooter() {
- return $this->_footer;
+ public function getFooter()
+ {
+ return $this->footer;
}
/**
@@ -199,22 +210,24 @@ class PHPExcel_Worksheet_PageMargins
* @param double $pValue
* @return PHPExcel_Worksheet_PageMargins
*/
- public function setFooter($pValue) {
- $this->_footer = $pValue;
- return $this;
+ public function setFooter($pValue)
+ {
+ $this->footer = $pValue;
+ return $this;
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php
index ba2792fa..c67053e6 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -102,177 +102,177 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Worksheet_PageSetup
{
- /* Paper size */
- const PAPERSIZE_LETTER = 1;
- const PAPERSIZE_LETTER_SMALL = 2;
- const PAPERSIZE_TABLOID = 3;
- const PAPERSIZE_LEDGER = 4;
- const PAPERSIZE_LEGAL = 5;
- const PAPERSIZE_STATEMENT = 6;
- const PAPERSIZE_EXECUTIVE = 7;
- const PAPERSIZE_A3 = 8;
- const PAPERSIZE_A4 = 9;
- const PAPERSIZE_A4_SMALL = 10;
- const PAPERSIZE_A5 = 11;
- const PAPERSIZE_B4 = 12;
- const PAPERSIZE_B5 = 13;
- const PAPERSIZE_FOLIO = 14;
- const PAPERSIZE_QUARTO = 15;
- const PAPERSIZE_STANDARD_1 = 16;
- const PAPERSIZE_STANDARD_2 = 17;
- const PAPERSIZE_NOTE = 18;
- const PAPERSIZE_NO9_ENVELOPE = 19;
- const PAPERSIZE_NO10_ENVELOPE = 20;
- const PAPERSIZE_NO11_ENVELOPE = 21;
- const PAPERSIZE_NO12_ENVELOPE = 22;
- const PAPERSIZE_NO14_ENVELOPE = 23;
- const PAPERSIZE_C = 24;
- const PAPERSIZE_D = 25;
- const PAPERSIZE_E = 26;
- const PAPERSIZE_DL_ENVELOPE = 27;
- const PAPERSIZE_C5_ENVELOPE = 28;
- const PAPERSIZE_C3_ENVELOPE = 29;
- const PAPERSIZE_C4_ENVELOPE = 30;
- const PAPERSIZE_C6_ENVELOPE = 31;
- const PAPERSIZE_C65_ENVELOPE = 32;
- const PAPERSIZE_B4_ENVELOPE = 33;
- const PAPERSIZE_B5_ENVELOPE = 34;
- const PAPERSIZE_B6_ENVELOPE = 35;
- const PAPERSIZE_ITALY_ENVELOPE = 36;
- const PAPERSIZE_MONARCH_ENVELOPE = 37;
- const PAPERSIZE_6_3_4_ENVELOPE = 38;
- const PAPERSIZE_US_STANDARD_FANFOLD = 39;
- const PAPERSIZE_GERMAN_STANDARD_FANFOLD = 40;
- const PAPERSIZE_GERMAN_LEGAL_FANFOLD = 41;
- const PAPERSIZE_ISO_B4 = 42;
- const PAPERSIZE_JAPANESE_DOUBLE_POSTCARD = 43;
- const PAPERSIZE_STANDARD_PAPER_1 = 44;
- const PAPERSIZE_STANDARD_PAPER_2 = 45;
- const PAPERSIZE_STANDARD_PAPER_3 = 46;
- const PAPERSIZE_INVITE_ENVELOPE = 47;
- const PAPERSIZE_LETTER_EXTRA_PAPER = 48;
- const PAPERSIZE_LEGAL_EXTRA_PAPER = 49;
- const PAPERSIZE_TABLOID_EXTRA_PAPER = 50;
- const PAPERSIZE_A4_EXTRA_PAPER = 51;
- const PAPERSIZE_LETTER_TRANSVERSE_PAPER = 52;
- const PAPERSIZE_A4_TRANSVERSE_PAPER = 53;
- const PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER = 54;
- const PAPERSIZE_SUPERA_SUPERA_A4_PAPER = 55;
- const PAPERSIZE_SUPERB_SUPERB_A3_PAPER = 56;
- const PAPERSIZE_LETTER_PLUS_PAPER = 57;
- const PAPERSIZE_A4_PLUS_PAPER = 58;
- const PAPERSIZE_A5_TRANSVERSE_PAPER = 59;
- const PAPERSIZE_JIS_B5_TRANSVERSE_PAPER = 60;
- const PAPERSIZE_A3_EXTRA_PAPER = 61;
- const PAPERSIZE_A5_EXTRA_PAPER = 62;
- const PAPERSIZE_ISO_B5_EXTRA_PAPER = 63;
- const PAPERSIZE_A2_PAPER = 64;
- const PAPERSIZE_A3_TRANSVERSE_PAPER = 65;
- const PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER = 66;
+ /* Paper size */
+ const PAPERSIZE_LETTER = 1;
+ const PAPERSIZE_LETTER_SMALL = 2;
+ const PAPERSIZE_TABLOID = 3;
+ const PAPERSIZE_LEDGER = 4;
+ const PAPERSIZE_LEGAL = 5;
+ const PAPERSIZE_STATEMENT = 6;
+ const PAPERSIZE_EXECUTIVE = 7;
+ const PAPERSIZE_A3 = 8;
+ const PAPERSIZE_A4 = 9;
+ const PAPERSIZE_A4_SMALL = 10;
+ const PAPERSIZE_A5 = 11;
+ const PAPERSIZE_B4 = 12;
+ const PAPERSIZE_B5 = 13;
+ const PAPERSIZE_FOLIO = 14;
+ const PAPERSIZE_QUARTO = 15;
+ const PAPERSIZE_STANDARD_1 = 16;
+ const PAPERSIZE_STANDARD_2 = 17;
+ const PAPERSIZE_NOTE = 18;
+ const PAPERSIZE_NO9_ENVELOPE = 19;
+ const PAPERSIZE_NO10_ENVELOPE = 20;
+ const PAPERSIZE_NO11_ENVELOPE = 21;
+ const PAPERSIZE_NO12_ENVELOPE = 22;
+ const PAPERSIZE_NO14_ENVELOPE = 23;
+ const PAPERSIZE_C = 24;
+ const PAPERSIZE_D = 25;
+ const PAPERSIZE_E = 26;
+ const PAPERSIZE_DL_ENVELOPE = 27;
+ const PAPERSIZE_C5_ENVELOPE = 28;
+ const PAPERSIZE_C3_ENVELOPE = 29;
+ const PAPERSIZE_C4_ENVELOPE = 30;
+ const PAPERSIZE_C6_ENVELOPE = 31;
+ const PAPERSIZE_C65_ENVELOPE = 32;
+ const PAPERSIZE_B4_ENVELOPE = 33;
+ const PAPERSIZE_B5_ENVELOPE = 34;
+ const PAPERSIZE_B6_ENVELOPE = 35;
+ const PAPERSIZE_ITALY_ENVELOPE = 36;
+ const PAPERSIZE_MONARCH_ENVELOPE = 37;
+ const PAPERSIZE_6_3_4_ENVELOPE = 38;
+ const PAPERSIZE_US_STANDARD_FANFOLD = 39;
+ const PAPERSIZE_GERMAN_STANDARD_FANFOLD = 40;
+ const PAPERSIZE_GERMAN_LEGAL_FANFOLD = 41;
+ const PAPERSIZE_ISO_B4 = 42;
+ const PAPERSIZE_JAPANESE_DOUBLE_POSTCARD = 43;
+ const PAPERSIZE_STANDARD_PAPER_1 = 44;
+ const PAPERSIZE_STANDARD_PAPER_2 = 45;
+ const PAPERSIZE_STANDARD_PAPER_3 = 46;
+ const PAPERSIZE_INVITE_ENVELOPE = 47;
+ const PAPERSIZE_LETTER_EXTRA_PAPER = 48;
+ const PAPERSIZE_LEGAL_EXTRA_PAPER = 49;
+ const PAPERSIZE_TABLOID_EXTRA_PAPER = 50;
+ const PAPERSIZE_A4_EXTRA_PAPER = 51;
+ const PAPERSIZE_LETTER_TRANSVERSE_PAPER = 52;
+ const PAPERSIZE_A4_TRANSVERSE_PAPER = 53;
+ const PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER = 54;
+ const PAPERSIZE_SUPERA_SUPERA_A4_PAPER = 55;
+ const PAPERSIZE_SUPERB_SUPERB_A3_PAPER = 56;
+ const PAPERSIZE_LETTER_PLUS_PAPER = 57;
+ const PAPERSIZE_A4_PLUS_PAPER = 58;
+ const PAPERSIZE_A5_TRANSVERSE_PAPER = 59;
+ const PAPERSIZE_JIS_B5_TRANSVERSE_PAPER = 60;
+ const PAPERSIZE_A3_EXTRA_PAPER = 61;
+ const PAPERSIZE_A5_EXTRA_PAPER = 62;
+ const PAPERSIZE_ISO_B5_EXTRA_PAPER = 63;
+ const PAPERSIZE_A2_PAPER = 64;
+ const PAPERSIZE_A3_TRANSVERSE_PAPER = 65;
+ const PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER = 66;
- /* Page orientation */
- const ORIENTATION_DEFAULT = 'default';
- const ORIENTATION_LANDSCAPE = 'landscape';
- const ORIENTATION_PORTRAIT = 'portrait';
+ /* Page orientation */
+ const ORIENTATION_DEFAULT = 'default';
+ const ORIENTATION_LANDSCAPE = 'landscape';
+ const ORIENTATION_PORTRAIT = 'portrait';
- /* Print Range Set Method */
- const SETPRINTRANGE_OVERWRITE = 'O';
- const SETPRINTRANGE_INSERT = 'I';
+ /* Print Range Set Method */
+ const SETPRINTRANGE_OVERWRITE = 'O';
+ const SETPRINTRANGE_INSERT = 'I';
- /**
- * Paper size
- *
- * @var int
- */
- private $_paperSize = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER;
+ /**
+ * Paper size
+ *
+ * @var int
+ */
+ private $paperSize = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER;
- /**
- * Orientation
- *
- * @var string
- */
- private $_orientation = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT;
+ /**
+ * Orientation
+ *
+ * @var string
+ */
+ private $orientation = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT;
- /**
- * Scale (Print Scale)
- *
- * Print scaling. Valid values range from 10 to 400
- * This setting is overridden when fitToWidth and/or fitToHeight are in use
- *
- * @var int?
- */
- private $_scale = 100;
+ /**
+ * Scale (Print Scale)
+ *
+ * Print scaling. Valid values range from 10 to 400
+ * This setting is overridden when fitToWidth and/or fitToHeight are in use
+ *
+ * @var int?
+ */
+ private $scale = 100;
- /**
- * Fit To Page
- * Whether scale or fitToWith / fitToHeight applies
- *
- * @var boolean
- */
- private $_fitToPage = FALSE;
+ /**
+ * Fit To Page
+ * Whether scale or fitToWith / fitToHeight applies
+ *
+ * @var boolean
+ */
+ private $fitToPage = false;
- /**
- * Fit To Height
- * Number of vertical pages to fit on
- *
- * @var int?
- */
- private $_fitToHeight = 1;
+ /**
+ * Fit To Height
+ * Number of vertical pages to fit on
+ *
+ * @var int?
+ */
+ private $fitToHeight = 1;
- /**
- * Fit To Width
- * Number of horizontal pages to fit on
- *
- * @var int?
- */
- private $_fitToWidth = 1;
+ /**
+ * Fit To Width
+ * Number of horizontal pages to fit on
+ *
+ * @var int?
+ */
+ private $fitToWidth = 1;
- /**
- * Columns to repeat at left
- *
- * @var array Containing start column and end column, empty array if option unset
- */
- private $_columnsToRepeatAtLeft = array('', '');
+ /**
+ * Columns to repeat at left
+ *
+ * @var array Containing start column and end column, empty array if option unset
+ */
+ private $columnsToRepeatAtLeft = array('', '');
- /**
- * Rows to repeat at top
- *
- * @var array Containing start row number and end row number, empty array if option unset
- */
- private $_rowsToRepeatAtTop = array(0, 0);
+ /**
+ * Rows to repeat at top
+ *
+ * @var array Containing start row number and end row number, empty array if option unset
+ */
+ private $rowsToRepeatAtTop = array(0, 0);
- /**
- * Center page horizontally
- *
- * @var boolean
- */
- private $_horizontalCentered = FALSE;
+ /**
+ * Center page horizontally
+ *
+ * @var boolean
+ */
+ private $horizontalCentered = false;
- /**
- * Center page vertically
- *
- * @var boolean
- */
- private $_verticalCentered = FALSE;
+ /**
+ * Center page vertically
+ *
+ * @var boolean
+ */
+ private $verticalCentered = false;
- /**
- * Print area
- *
- * @var string
- */
- private $_printArea = NULL;
+ /**
+ * Print area
+ *
+ * @var string
+ */
+ private $printArea = null;
- /**
- * First page number
- *
- * @var int
- */
- private $_firstPageNumber = NULL;
+ /**
+ * First page number
+ *
+ * @var int
+ */
+ private $firstPageNumber = null;
/**
* Create a new PHPExcel_Worksheet_PageSetup
@@ -286,8 +286,9 @@ class PHPExcel_Worksheet_PageSetup
*
* @return int
*/
- public function getPaperSize() {
- return $this->_paperSize;
+ public function getPaperSize()
+ {
+ return $this->paperSize;
}
/**
@@ -296,9 +297,10 @@ class PHPExcel_Worksheet_PageSetup
* @param int $pValue
* @return PHPExcel_Worksheet_PageSetup
*/
- public function setPaperSize($pValue = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER) {
- $this->_paperSize = $pValue;
- return $this;
+ public function setPaperSize($pValue = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER)
+ {
+ $this->paperSize = $pValue;
+ return $this;
}
/**
@@ -306,8 +308,9 @@ class PHPExcel_Worksheet_PageSetup
*
* @return string
*/
- public function getOrientation() {
- return $this->_orientation;
+ public function getOrientation()
+ {
+ return $this->orientation;
}
/**
@@ -316,450 +319,485 @@ class PHPExcel_Worksheet_PageSetup
* @param string $pValue
* @return PHPExcel_Worksheet_PageSetup
*/
- public function setOrientation($pValue = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) {
- $this->_orientation = $pValue;
- return $this;
+ public function setOrientation($pValue = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT)
+ {
+ $this->orientation = $pValue;
+ return $this;
}
- /**
- * Get Scale
- *
- * @return int?
- */
- public function getScale() {
- return $this->_scale;
- }
+ /**
+ * Get Scale
+ *
+ * @return int?
+ */
+ public function getScale()
+ {
+ return $this->scale;
+ }
- /**
- * Set Scale
- *
- * Print scaling. Valid values range from 10 to 400
- * This setting is overridden when fitToWidth and/or fitToHeight are in use
- *
- * @param int? $pValue
- * @param boolean $pUpdate Update fitToPage so scaling applies rather than fitToHeight / fitToWidth
- * @return PHPExcel_Worksheet_PageSetup
- * @throws PHPExcel_Exception
- */
- public function setScale($pValue = 100, $pUpdate = true) {
- // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
- // but it is apparently still able to handle any scale >= 0, where 0 results in 100
- if (($pValue >= 0) || is_null($pValue)) {
- $this->_scale = $pValue;
- if ($pUpdate) {
- $this->_fitToPage = false;
- }
- } else {
- throw new PHPExcel_Exception("Scale must not be negative");
- }
- return $this;
- }
+ /**
+ * Set Scale
+ *
+ * Print scaling. Valid values range from 10 to 400
+ * This setting is overridden when fitToWidth and/or fitToHeight are in use
+ *
+ * @param int? $pValue
+ * @param boolean $pUpdate Update fitToPage so scaling applies rather than fitToHeight / fitToWidth
+ * @return PHPExcel_Worksheet_PageSetup
+ * @throws PHPExcel_Exception
+ */
+ public function setScale($pValue = 100, $pUpdate = true)
+ {
+ // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
+ // but it is apparently still able to handle any scale >= 0, where 0 results in 100
+ if (($pValue >= 0) || is_null($pValue)) {
+ $this->scale = $pValue;
+ if ($pUpdate) {
+ $this->fitToPage = false;
+ }
+ } else {
+ throw new PHPExcel_Exception("Scale must not be negative");
+ }
+ return $this;
+ }
- /**
- * Get Fit To Page
- *
- * @return boolean
- */
- public function getFitToPage() {
- return $this->_fitToPage;
- }
+ /**
+ * Get Fit To Page
+ *
+ * @return boolean
+ */
+ public function getFitToPage()
+ {
+ return $this->fitToPage;
+ }
- /**
- * Set Fit To Page
- *
- * @param boolean $pValue
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setFitToPage($pValue = TRUE) {
- $this->_fitToPage = $pValue;
- return $this;
- }
+ /**
+ * Set Fit To Page
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setFitToPage($pValue = true)
+ {
+ $this->fitToPage = $pValue;
+ return $this;
+ }
- /**
- * Get Fit To Height
- *
- * @return int?
- */
- public function getFitToHeight() {
- return $this->_fitToHeight;
- }
+ /**
+ * Get Fit To Height
+ *
+ * @return int?
+ */
+ public function getFitToHeight()
+ {
+ return $this->fitToHeight;
+ }
- /**
- * Set Fit To Height
- *
- * @param int? $pValue
- * @param boolean $pUpdate Update fitToPage so it applies rather than scaling
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setFitToHeight($pValue = 1, $pUpdate = TRUE) {
- $this->_fitToHeight = $pValue;
- if ($pUpdate) {
- $this->_fitToPage = TRUE;
- }
- return $this;
- }
+ /**
+ * Set Fit To Height
+ *
+ * @param int? $pValue
+ * @param boolean $pUpdate Update fitToPage so it applies rather than scaling
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setFitToHeight($pValue = 1, $pUpdate = true)
+ {
+ $this->fitToHeight = $pValue;
+ if ($pUpdate) {
+ $this->fitToPage = true;
+ }
+ return $this;
+ }
- /**
- * Get Fit To Width
- *
- * @return int?
- */
- public function getFitToWidth() {
- return $this->_fitToWidth;
- }
+ /**
+ * Get Fit To Width
+ *
+ * @return int?
+ */
+ public function getFitToWidth()
+ {
+ return $this->fitToWidth;
+ }
- /**
- * Set Fit To Width
- *
- * @param int? $pValue
- * @param boolean $pUpdate Update fitToPage so it applies rather than scaling
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setFitToWidth($pValue = 1, $pUpdate = TRUE) {
- $this->_fitToWidth = $pValue;
- if ($pUpdate) {
- $this->_fitToPage = TRUE;
- }
- return $this;
- }
+ /**
+ * Set Fit To Width
+ *
+ * @param int? $pValue
+ * @param boolean $pUpdate Update fitToPage so it applies rather than scaling
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setFitToWidth($pValue = 1, $pUpdate = true)
+ {
+ $this->fitToWidth = $pValue;
+ if ($pUpdate) {
+ $this->fitToPage = true;
+ }
+ return $this;
+ }
- /**
- * Is Columns to repeat at left set?
- *
- * @return boolean
- */
- public function isColumnsToRepeatAtLeftSet() {
- if (is_array($this->_columnsToRepeatAtLeft)) {
- if ($this->_columnsToRepeatAtLeft[0] != '' && $this->_columnsToRepeatAtLeft[1] != '') {
- return true;
- }
- }
+ /**
+ * Is Columns to repeat at left set?
+ *
+ * @return boolean
+ */
+ public function isColumnsToRepeatAtLeftSet()
+ {
+ if (is_array($this->columnsToRepeatAtLeft)) {
+ if ($this->columnsToRepeatAtLeft[0] != '' && $this->columnsToRepeatAtLeft[1] != '') {
+ return true;
+ }
+ }
- return false;
- }
+ return false;
+ }
- /**
- * Get Columns to repeat at left
- *
- * @return array Containing start column and end column, empty array if option unset
- */
- public function getColumnsToRepeatAtLeft() {
- return $this->_columnsToRepeatAtLeft;
- }
+ /**
+ * Get Columns to repeat at left
+ *
+ * @return array Containing start column and end column, empty array if option unset
+ */
+ public function getColumnsToRepeatAtLeft()
+ {
+ return $this->columnsToRepeatAtLeft;
+ }
- /**
- * Set Columns to repeat at left
- *
- * @param array $pValue Containing start column and end column, empty array if option unset
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setColumnsToRepeatAtLeft($pValue = null) {
- if (is_array($pValue)) {
- $this->_columnsToRepeatAtLeft = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Columns to repeat at left
+ *
+ * @param array $pValue Containing start column and end column, empty array if option unset
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setColumnsToRepeatAtLeft($pValue = null)
+ {
+ if (is_array($pValue)) {
+ $this->columnsToRepeatAtLeft = $pValue;
+ }
+ return $this;
+ }
- /**
- * Set Columns to repeat at left by start and end
- *
- * @param string $pStart
- * @param string $pEnd
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setColumnsToRepeatAtLeftByStartAndEnd($pStart = 'A', $pEnd = 'A') {
- $this->_columnsToRepeatAtLeft = array($pStart, $pEnd);
- return $this;
- }
+ /**
+ * Set Columns to repeat at left by start and end
+ *
+ * @param string $pStart
+ * @param string $pEnd
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setColumnsToRepeatAtLeftByStartAndEnd($pStart = 'A', $pEnd = 'A')
+ {
+ $this->columnsToRepeatAtLeft = array($pStart, $pEnd);
+ return $this;
+ }
- /**
- * Is Rows to repeat at top set?
- *
- * @return boolean
- */
- public function isRowsToRepeatAtTopSet() {
- if (is_array($this->_rowsToRepeatAtTop)) {
- if ($this->_rowsToRepeatAtTop[0] != 0 && $this->_rowsToRepeatAtTop[1] != 0) {
- return true;
- }
- }
+ /**
+ * Is Rows to repeat at top set?
+ *
+ * @return boolean
+ */
+ public function isRowsToRepeatAtTopSet()
+ {
+ if (is_array($this->rowsToRepeatAtTop)) {
+ if ($this->rowsToRepeatAtTop[0] != 0 && $this->rowsToRepeatAtTop[1] != 0) {
+ return true;
+ }
+ }
- return false;
- }
+ return false;
+ }
- /**
- * Get Rows to repeat at top
- *
- * @return array Containing start column and end column, empty array if option unset
- */
- public function getRowsToRepeatAtTop() {
- return $this->_rowsToRepeatAtTop;
- }
+ /**
+ * Get Rows to repeat at top
+ *
+ * @return array Containing start column and end column, empty array if option unset
+ */
+ public function getRowsToRepeatAtTop()
+ {
+ return $this->rowsToRepeatAtTop;
+ }
- /**
- * Set Rows to repeat at top
- *
- * @param array $pValue Containing start column and end column, empty array if option unset
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setRowsToRepeatAtTop($pValue = null) {
- if (is_array($pValue)) {
- $this->_rowsToRepeatAtTop = $pValue;
- }
- return $this;
- }
+ /**
+ * Set Rows to repeat at top
+ *
+ * @param array $pValue Containing start column and end column, empty array if option unset
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setRowsToRepeatAtTop($pValue = null)
+ {
+ if (is_array($pValue)) {
+ $this->rowsToRepeatAtTop = $pValue;
+ }
+ return $this;
+ }
- /**
- * Set Rows to repeat at top by start and end
- *
- * @param int $pStart
- * @param int $pEnd
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setRowsToRepeatAtTopByStartAndEnd($pStart = 1, $pEnd = 1) {
- $this->_rowsToRepeatAtTop = array($pStart, $pEnd);
- return $this;
- }
+ /**
+ * Set Rows to repeat at top by start and end
+ *
+ * @param int $pStart
+ * @param int $pEnd
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setRowsToRepeatAtTopByStartAndEnd($pStart = 1, $pEnd = 1)
+ {
+ $this->rowsToRepeatAtTop = array($pStart, $pEnd);
+ return $this;
+ }
- /**
- * Get center page horizontally
- *
- * @return bool
- */
- public function getHorizontalCentered() {
- return $this->_horizontalCentered;
- }
+ /**
+ * Get center page horizontally
+ *
+ * @return bool
+ */
+ public function getHorizontalCentered()
+ {
+ return $this->horizontalCentered;
+ }
- /**
- * Set center page horizontally
- *
- * @param bool $value
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setHorizontalCentered($value = false) {
- $this->_horizontalCentered = $value;
- return $this;
- }
+ /**
+ * Set center page horizontally
+ *
+ * @param bool $value
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setHorizontalCentered($value = false)
+ {
+ $this->horizontalCentered = $value;
+ return $this;
+ }
- /**
- * Get center page vertically
- *
- * @return bool
- */
- public function getVerticalCentered() {
- return $this->_verticalCentered;
- }
+ /**
+ * Get center page vertically
+ *
+ * @return bool
+ */
+ public function getVerticalCentered()
+ {
+ return $this->verticalCentered;
+ }
- /**
- * Set center page vertically
- *
- * @param bool $value
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function setVerticalCentered($value = false) {
- $this->_verticalCentered = $value;
- return $this;
- }
+ /**
+ * Set center page vertically
+ *
+ * @param bool $value
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function setVerticalCentered($value = false)
+ {
+ $this->verticalCentered = $value;
+ return $this;
+ }
- /**
- * Get print area
- *
- * @param int $index Identifier for a specific print area range if several ranges have been set
- * Default behaviour, or a index value of 0, will return all ranges as a comma-separated string
- * Otherwise, the specific range identified by the value of $index will be returned
- * Print areas are numbered from 1
- * @throws PHPExcel_Exception
- * @return string
- */
- public function getPrintArea($index = 0) {
- if ($index == 0) {
- return $this->_printArea;
- }
- $printAreas = explode(',',$this->_printArea);
- if (isset($printAreas[$index-1])) {
- return $printAreas[$index-1];
- }
- throw new PHPExcel_Exception("Requested Print Area does not exist");
- }
+ /**
+ * Get print area
+ *
+ * @param int $index Identifier for a specific print area range if several ranges have been set
+ * Default behaviour, or a index value of 0, will return all ranges as a comma-separated string
+ * Otherwise, the specific range identified by the value of $index will be returned
+ * Print areas are numbered from 1
+ * @throws PHPExcel_Exception
+ * @return string
+ */
+ public function getPrintArea($index = 0)
+ {
+ if ($index == 0) {
+ return $this->printArea;
+ }
+ $printAreas = explode(',', $this->printArea);
+ if (isset($printAreas[$index-1])) {
+ return $printAreas[$index-1];
+ }
+ throw new PHPExcel_Exception("Requested Print Area does not exist");
+ }
- /**
- * Is print area set?
- *
- * @param int $index Identifier for a specific print area range if several ranges have been set
- * Default behaviour, or an index value of 0, will identify whether any print range is set
- * Otherwise, existence of the range identified by the value of $index will be returned
- * Print areas are numbered from 1
- * @return boolean
- */
- public function isPrintAreaSet($index = 0) {
- if ($index == 0) {
- return !is_null($this->_printArea);
- }
- $printAreas = explode(',',$this->_printArea);
- return isset($printAreas[$index-1]);
- }
+ /**
+ * Is print area set?
+ *
+ * @param int $index Identifier for a specific print area range if several ranges have been set
+ * Default behaviour, or an index value of 0, will identify whether any print range is set
+ * Otherwise, existence of the range identified by the value of $index will be returned
+ * Print areas are numbered from 1
+ * @return boolean
+ */
+ public function isPrintAreaSet($index = 0)
+ {
+ if ($index == 0) {
+ return !is_null($this->printArea);
+ }
+ $printAreas = explode(',', $this->printArea);
+ return isset($printAreas[$index-1]);
+ }
- /**
- * Clear a print area
- *
- * @param int $index Identifier for a specific print area range if several ranges have been set
- * Default behaviour, or an index value of 0, will clear all print ranges that are set
- * Otherwise, the range identified by the value of $index will be removed from the series
- * Print areas are numbered from 1
- * @return PHPExcel_Worksheet_PageSetup
- */
- public function clearPrintArea($index = 0) {
- if ($index == 0) {
- $this->_printArea = NULL;
- } else {
- $printAreas = explode(',',$this->_printArea);
- if (isset($printAreas[$index-1])) {
- unset($printAreas[$index-1]);
- $this->_printArea = implode(',',$printAreas);
- }
- }
+ /**
+ * Clear a print area
+ *
+ * @param int $index Identifier for a specific print area range if several ranges have been set
+ * Default behaviour, or an index value of 0, will clear all print ranges that are set
+ * Otherwise, the range identified by the value of $index will be removed from the series
+ * Print areas are numbered from 1
+ * @return PHPExcel_Worksheet_PageSetup
+ */
+ public function clearPrintArea($index = 0)
+ {
+ if ($index == 0) {
+ $this->printArea = null;
+ } else {
+ $printAreas = explode(',', $this->printArea);
+ if (isset($printAreas[$index-1])) {
+ unset($printAreas[$index-1]);
+ $this->printArea = implode(',', $printAreas);
+ }
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Set print area. e.g. 'A1:D10' or 'A1:D10,G5:M20'
- *
- * @param string $value
- * @param int $index Identifier for a specific print area range allowing several ranges to be set
- * When the method is "O"verwrite, then a positive integer index will overwrite that indexed
- * entry in the print areas list; a negative index value will identify which entry to
- * overwrite working bacward through the print area to the list, with the last entry as -1.
- * Specifying an index value of 0, will overwrite all existing print ranges.
- * When the method is "I"nsert, then a positive index will insert after that indexed entry in
- * the print areas list, while a negative index will insert before the indexed entry.
- * Specifying an index value of 0, will always append the new print range at the end of the
- * list.
- * Print areas are numbered from 1
- * @param string $method Determines the method used when setting multiple print areas
- * Default behaviour, or the "O" method, overwrites existing print area
- * The "I" method, inserts the new print area before any specified index, or at the end of the list
- * @return PHPExcel_Worksheet_PageSetup
- * @throws PHPExcel_Exception
- */
- public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) {
- if (strpos($value,'!') !== false) {
- throw new PHPExcel_Exception('Cell coordinate must not specify a worksheet.');
- } elseif (strpos($value,':') === false) {
- throw new PHPExcel_Exception('Cell coordinate must be a range of cells.');
- } elseif (strpos($value,'$') !== false) {
- throw new PHPExcel_Exception('Cell coordinate must not be absolute.');
- }
- $value = strtoupper($value);
+ /**
+ * Set print area. e.g. 'A1:D10' or 'A1:D10,G5:M20'
+ *
+ * @param string $value
+ * @param int $index Identifier for a specific print area range allowing several ranges to be set
+ * When the method is "O"verwrite, then a positive integer index will overwrite that indexed
+ * entry in the print areas list; a negative index value will identify which entry to
+ * overwrite working bacward through the print area to the list, with the last entry as -1.
+ * Specifying an index value of 0, will overwrite all existing print ranges.
+ * When the method is "I"nsert, then a positive index will insert after that indexed entry in
+ * the print areas list, while a negative index will insert before the indexed entry.
+ * Specifying an index value of 0, will always append the new print range at the end of the
+ * list.
+ * Print areas are numbered from 1
+ * @param string $method Determines the method used when setting multiple print areas
+ * Default behaviour, or the "O" method, overwrites existing print area
+ * The "I" method, inserts the new print area before any specified index, or at the end of the list
+ * @return PHPExcel_Worksheet_PageSetup
+ * @throws PHPExcel_Exception
+ */
+ public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE)
+ {
+ if (strpos($value, '!') !== false) {
+ throw new PHPExcel_Exception('Cell coordinate must not specify a worksheet.');
+ } elseif (strpos($value, ':') === false) {
+ throw new PHPExcel_Exception('Cell coordinate must be a range of cells.');
+ } elseif (strpos($value, '$') !== false) {
+ throw new PHPExcel_Exception('Cell coordinate must not be absolute.');
+ }
+ $value = strtoupper($value);
- if ($method == self::SETPRINTRANGE_OVERWRITE) {
- if ($index == 0) {
- $this->_printArea = $value;
- } else {
- $printAreas = explode(',',$this->_printArea);
- if($index < 0) {
- $index = count($printAreas) - abs($index) + 1;
- }
- if (($index <= 0) || ($index > count($printAreas))) {
- throw new PHPExcel_Exception('Invalid index for setting print range.');
- }
- $printAreas[$index-1] = $value;
- $this->_printArea = implode(',',$printAreas);
- }
- } elseif($method == self::SETPRINTRANGE_INSERT) {
- if ($index == 0) {
- $this->_printArea .= ($this->_printArea == '') ? $value : ','.$value;
- } else {
- $printAreas = explode(',',$this->_printArea);
- if($index < 0) {
- $index = abs($index) - 1;
- }
- if ($index > count($printAreas)) {
- throw new PHPExcel_Exception('Invalid index for setting print range.');
- }
- $printAreas = array_merge(array_slice($printAreas,0,$index),array($value),array_slice($printAreas,$index));
- $this->_printArea = implode(',',$printAreas);
- }
- } else {
- throw new PHPExcel_Exception('Invalid method for setting print range.');
- }
+ if ($method == self::SETPRINTRANGE_OVERWRITE) {
+ if ($index == 0) {
+ $this->printArea = $value;
+ } else {
+ $printAreas = explode(',', $this->printArea);
+ if ($index < 0) {
+ $index = count($printAreas) - abs($index) + 1;
+ }
+ if (($index <= 0) || ($index > count($printAreas))) {
+ throw new PHPExcel_Exception('Invalid index for setting print range.');
+ }
+ $printAreas[$index-1] = $value;
+ $this->printArea = implode(',', $printAreas);
+ }
+ } elseif ($method == self::SETPRINTRANGE_INSERT) {
+ if ($index == 0) {
+ $this->printArea .= ($this->printArea == '') ? $value : ','.$value;
+ } else {
+ $printAreas = explode(',', $this->printArea);
+ if ($index < 0) {
+ $index = abs($index) - 1;
+ }
+ if ($index > count($printAreas)) {
+ throw new PHPExcel_Exception('Invalid index for setting print range.');
+ }
+ $printAreas = array_merge(array_slice($printAreas, 0, $index), array($value), array_slice($printAreas, $index));
+ $this->printArea = implode(',', $printAreas);
+ }
+ } else {
+ throw new PHPExcel_Exception('Invalid method for setting print range.');
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Add a new print area (e.g. 'A1:D10' or 'A1:D10,G5:M20') to the list of print areas
- *
- * @param string $value
- * @param int $index Identifier for a specific print area range allowing several ranges to be set
- * A positive index will insert after that indexed entry in the print areas list, while a
- * negative index will insert before the indexed entry.
- * Specifying an index value of 0, will always append the new print range at the end of the
- * list.
- * Print areas are numbered from 1
- * @return PHPExcel_Worksheet_PageSetup
- * @throws PHPExcel_Exception
- */
- public function addPrintArea($value, $index = -1) {
- return $this->setPrintArea($value, $index, self::SETPRINTRANGE_INSERT);
- }
+ /**
+ * Add a new print area (e.g. 'A1:D10' or 'A1:D10,G5:M20') to the list of print areas
+ *
+ * @param string $value
+ * @param int $index Identifier for a specific print area range allowing several ranges to be set
+ * A positive index will insert after that indexed entry in the print areas list, while a
+ * negative index will insert before the indexed entry.
+ * Specifying an index value of 0, will always append the new print range at the end of the
+ * list.
+ * Print areas are numbered from 1
+ * @return PHPExcel_Worksheet_PageSetup
+ * @throws PHPExcel_Exception
+ */
+ public function addPrintArea($value, $index = -1)
+ {
+ return $this->setPrintArea($value, $index, self::SETPRINTRANGE_INSERT);
+ }
- /**
- * Set print area
- *
- * @param int $column1 Column 1
- * @param int $row1 Row 1
- * @param int $column2 Column 2
- * @param int $row2 Row 2
- * @param int $index Identifier for a specific print area range allowing several ranges to be set
- * When the method is "O"verwrite, then a positive integer index will overwrite that indexed
- * entry in the print areas list; a negative index value will identify which entry to
- * overwrite working bacward through the print area to the list, with the last entry as -1.
- * Specifying an index value of 0, will overwrite all existing print ranges.
- * When the method is "I"nsert, then a positive index will insert after that indexed entry in
- * the print areas list, while a negative index will insert before the indexed entry.
- * Specifying an index value of 0, will always append the new print range at the end of the
- * list.
- * Print areas are numbered from 1
- * @param string $method Determines the method used when setting multiple print areas
- * Default behaviour, or the "O" method, overwrites existing print area
- * The "I" method, inserts the new print area before any specified index, or at the end of the list
- * @return PHPExcel_Worksheet_PageSetup
- * @throws PHPExcel_Exception
- */
+ /**
+ * Set print area
+ *
+ * @param int $column1 Column 1
+ * @param int $row1 Row 1
+ * @param int $column2 Column 2
+ * @param int $row2 Row 2
+ * @param int $index Identifier for a specific print area range allowing several ranges to be set
+ * When the method is "O"verwrite, then a positive integer index will overwrite that indexed
+ * entry in the print areas list; a negative index value will identify which entry to
+ * overwrite working bacward through the print area to the list, with the last entry as -1.
+ * Specifying an index value of 0, will overwrite all existing print ranges.
+ * When the method is "I"nsert, then a positive index will insert after that indexed entry in
+ * the print areas list, while a negative index will insert before the indexed entry.
+ * Specifying an index value of 0, will always append the new print range at the end of the
+ * list.
+ * Print areas are numbered from 1
+ * @param string $method Determines the method used when setting multiple print areas
+ * Default behaviour, or the "O" method, overwrites existing print area
+ * The "I" method, inserts the new print area before any specified index, or at the end of the list
+ * @return PHPExcel_Worksheet_PageSetup
+ * @throws PHPExcel_Exception
+ */
public function setPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE)
{
- return $this->setPrintArea(PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2, $index, $method);
+ return $this->setPrintArea(
+ PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2,
+ $index,
+ $method
+ );
}
- /**
- * Add a new print area to the list of print areas
- *
- * @param int $column1 Start Column for the print area
- * @param int $row1 Start Row for the print area
- * @param int $column2 End Column for the print area
- * @param int $row2 End Row for the print area
- * @param int $index Identifier for a specific print area range allowing several ranges to be set
- * A positive index will insert after that indexed entry in the print areas list, while a
- * negative index will insert before the indexed entry.
- * Specifying an index value of 0, will always append the new print range at the end of the
- * list.
- * Print areas are numbered from 1
- * @return PHPExcel_Worksheet_PageSetup
- * @throws PHPExcel_Exception
- */
+ /**
+ * Add a new print area to the list of print areas
+ *
+ * @param int $column1 Start Column for the print area
+ * @param int $row1 Start Row for the print area
+ * @param int $column2 End Column for the print area
+ * @param int $row2 End Row for the print area
+ * @param int $index Identifier for a specific print area range allowing several ranges to be set
+ * A positive index will insert after that indexed entry in the print areas list, while a
+ * negative index will insert before the indexed entry.
+ * Specifying an index value of 0, will always append the new print range at the end of the
+ * list.
+ * Print areas are numbered from 1
+ * @return PHPExcel_Worksheet_PageSetup
+ * @throws PHPExcel_Exception
+ */
public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1)
{
- return $this->setPrintArea(PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2, $index, self::SETPRINTRANGE_INSERT);
- }
+ return $this->setPrintArea(
+ PHPExcel_Cell::stringFromColumnIndex($column1) . $row1 . ':' . PHPExcel_Cell::stringFromColumnIndex($column2) . $row2,
+ $index,
+ self::SETPRINTRANGE_INSERT
+ );
+ }
- /**
- * Get first page number
- *
- * @return int
- */
- public function getFirstPageNumber() {
- return $this->_firstPageNumber;
+ /**
+ * Get first page number
+ *
+ * @return int
+ */
+ public function getFirstPageNumber()
+ {
+ return $this->firstPageNumber;
}
/**
@@ -768,9 +806,10 @@ class PHPExcel_Worksheet_PageSetup
* @param int $value
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function setFirstPageNumber($value = null) {
- $this->_firstPageNumber = $value;
- return $this;
+ public function setFirstPageNumber($value = null)
+ {
+ $this->firstPageNumber = $value;
+ return $this;
}
/**
@@ -778,21 +817,23 @@ class PHPExcel_Worksheet_PageSetup
*
* @return PHPExcel_Worksheet_HeaderFooter
*/
- public function resetFirstPageNumber() {
- return $this->setFirstPageNumber(null);
+ public function resetFirstPageNumber()
+ {
+ return $this->setFirstPageNumber(null);
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Protection.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Protection.php
index da66bf76..00633eeb 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Protection.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Protection.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,128 +31,128 @@
*
* @category PHPExcel
* @package PHPExcel_Worksheet
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Worksheet_Protection
{
- /**
- * Sheet
- *
- * @var boolean
- */
- private $_sheet = false;
+ /**
+ * Sheet
+ *
+ * @var boolean
+ */
+ private $sheet = false;
- /**
- * Objects
- *
- * @var boolean
- */
- private $_objects = false;
+ /**
+ * Objects
+ *
+ * @var boolean
+ */
+ private $objects = false;
- /**
- * Scenarios
- *
- * @var boolean
- */
- private $_scenarios = false;
+ /**
+ * Scenarios
+ *
+ * @var boolean
+ */
+ private $scenarios = false;
- /**
- * Format cells
- *
- * @var boolean
- */
- private $_formatCells = false;
+ /**
+ * Format cells
+ *
+ * @var boolean
+ */
+ private $formatCells = false;
- /**
- * Format columns
- *
- * @var boolean
- */
- private $_formatColumns = false;
+ /**
+ * Format columns
+ *
+ * @var boolean
+ */
+ private $formatColumns = false;
- /**
- * Format rows
- *
- * @var boolean
- */
- private $_formatRows = false;
+ /**
+ * Format rows
+ *
+ * @var boolean
+ */
+ private $formatRows = false;
- /**
- * Insert columns
- *
- * @var boolean
- */
- private $_insertColumns = false;
+ /**
+ * Insert columns
+ *
+ * @var boolean
+ */
+ private $insertColumns = false;
- /**
- * Insert rows
- *
- * @var boolean
- */
- private $_insertRows = false;
+ /**
+ * Insert rows
+ *
+ * @var boolean
+ */
+ private $insertRows = false;
- /**
- * Insert hyperlinks
- *
- * @var boolean
- */
- private $_insertHyperlinks = false;
+ /**
+ * Insert hyperlinks
+ *
+ * @var boolean
+ */
+ private $insertHyperlinks = false;
- /**
- * Delete columns
- *
- * @var boolean
- */
- private $_deleteColumns = false;
+ /**
+ * Delete columns
+ *
+ * @var boolean
+ */
+ private $deleteColumns = false;
- /**
- * Delete rows
- *
- * @var boolean
- */
- private $_deleteRows = false;
+ /**
+ * Delete rows
+ *
+ * @var boolean
+ */
+ private $deleteRows = false;
- /**
- * Select locked cells
- *
- * @var boolean
- */
- private $_selectLockedCells = false;
+ /**
+ * Select locked cells
+ *
+ * @var boolean
+ */
+ private $selectLockedCells = false;
- /**
- * Sort
- *
- * @var boolean
- */
- private $_sort = false;
+ /**
+ * Sort
+ *
+ * @var boolean
+ */
+ private $sort = false;
- /**
- * AutoFilter
- *
- * @var boolean
- */
- private $_autoFilter = false;
+ /**
+ * AutoFilter
+ *
+ * @var boolean
+ */
+ private $autoFilter = false;
- /**
- * Pivot tables
- *
- * @var boolean
- */
- private $_pivotTables = false;
+ /**
+ * Pivot tables
+ *
+ * @var boolean
+ */
+ private $pivotTables = false;
- /**
- * Select unlocked cells
- *
- * @var boolean
- */
- private $_selectUnlockedCells = false;
+ /**
+ * Select unlocked cells
+ *
+ * @var boolean
+ */
+ private $selectUnlockedCells = false;
- /**
- * Password
- *
- * @var string
- */
- private $_password = '';
+ /**
+ * Password
+ *
+ * @var string
+ */
+ private $password = '';
/**
* Create a new PHPExcel_Worksheet_Protection
@@ -166,23 +166,24 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function isProtectionEnabled() {
- return $this->_sheet ||
- $this->_objects ||
- $this->_scenarios ||
- $this->_formatCells ||
- $this->_formatColumns ||
- $this->_formatRows ||
- $this->_insertColumns ||
- $this->_insertRows ||
- $this->_insertHyperlinks ||
- $this->_deleteColumns ||
- $this->_deleteRows ||
- $this->_selectLockedCells ||
- $this->_sort ||
- $this->_autoFilter ||
- $this->_pivotTables ||
- $this->_selectUnlockedCells;
+ public function isProtectionEnabled()
+ {
+ return $this->sheet ||
+ $this->objects ||
+ $this->scenarios ||
+ $this->formatCells ||
+ $this->formatColumns ||
+ $this->formatRows ||
+ $this->insertColumns ||
+ $this->insertRows ||
+ $this->insertHyperlinks ||
+ $this->deleteColumns ||
+ $this->deleteRows ||
+ $this->selectLockedCells ||
+ $this->sort ||
+ $this->autoFilter ||
+ $this->pivotTables ||
+ $this->selectUnlockedCells;
}
/**
@@ -190,8 +191,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getSheet() {
- return $this->_sheet;
+ public function getSheet()
+ {
+ return $this->sheet;
}
/**
@@ -200,9 +202,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setSheet($pValue = false) {
- $this->_sheet = $pValue;
- return $this;
+ public function setSheet($pValue = false)
+ {
+ $this->sheet = $pValue;
+ return $this;
}
/**
@@ -210,8 +213,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getObjects() {
- return $this->_objects;
+ public function getObjects()
+ {
+ return $this->objects;
}
/**
@@ -220,9 +224,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setObjects($pValue = false) {
- $this->_objects = $pValue;
- return $this;
+ public function setObjects($pValue = false)
+ {
+ $this->objects = $pValue;
+ return $this;
}
/**
@@ -230,8 +235,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getScenarios() {
- return $this->_scenarios;
+ public function getScenarios()
+ {
+ return $this->scenarios;
}
/**
@@ -240,9 +246,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setScenarios($pValue = false) {
- $this->_scenarios = $pValue;
- return $this;
+ public function setScenarios($pValue = false)
+ {
+ $this->scenarios = $pValue;
+ return $this;
}
/**
@@ -250,8 +257,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getFormatCells() {
- return $this->_formatCells;
+ public function getFormatCells()
+ {
+ return $this->formatCells;
}
/**
@@ -260,9 +268,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setFormatCells($pValue = false) {
- $this->_formatCells = $pValue;
- return $this;
+ public function setFormatCells($pValue = false)
+ {
+ $this->formatCells = $pValue;
+ return $this;
}
/**
@@ -270,8 +279,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getFormatColumns() {
- return $this->_formatColumns;
+ public function getFormatColumns()
+ {
+ return $this->formatColumns;
}
/**
@@ -280,9 +290,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setFormatColumns($pValue = false) {
- $this->_formatColumns = $pValue;
- return $this;
+ public function setFormatColumns($pValue = false)
+ {
+ $this->formatColumns = $pValue;
+ return $this;
}
/**
@@ -290,8 +301,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getFormatRows() {
- return $this->_formatRows;
+ public function getFormatRows()
+ {
+ return $this->formatRows;
}
/**
@@ -300,9 +312,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setFormatRows($pValue = false) {
- $this->_formatRows = $pValue;
- return $this;
+ public function setFormatRows($pValue = false)
+ {
+ $this->formatRows = $pValue;
+ return $this;
}
/**
@@ -310,8 +323,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getInsertColumns() {
- return $this->_insertColumns;
+ public function getInsertColumns()
+ {
+ return $this->insertColumns;
}
/**
@@ -320,9 +334,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setInsertColumns($pValue = false) {
- $this->_insertColumns = $pValue;
- return $this;
+ public function setInsertColumns($pValue = false)
+ {
+ $this->insertColumns = $pValue;
+ return $this;
}
/**
@@ -330,8 +345,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getInsertRows() {
- return $this->_insertRows;
+ public function getInsertRows()
+ {
+ return $this->insertRows;
}
/**
@@ -340,9 +356,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setInsertRows($pValue = false) {
- $this->_insertRows = $pValue;
- return $this;
+ public function setInsertRows($pValue = false)
+ {
+ $this->insertRows = $pValue;
+ return $this;
}
/**
@@ -350,8 +367,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getInsertHyperlinks() {
- return $this->_insertHyperlinks;
+ public function getInsertHyperlinks()
+ {
+ return $this->insertHyperlinks;
}
/**
@@ -360,9 +378,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setInsertHyperlinks($pValue = false) {
- $this->_insertHyperlinks = $pValue;
- return $this;
+ public function setInsertHyperlinks($pValue = false)
+ {
+ $this->insertHyperlinks = $pValue;
+ return $this;
}
/**
@@ -370,8 +389,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getDeleteColumns() {
- return $this->_deleteColumns;
+ public function getDeleteColumns()
+ {
+ return $this->deleteColumns;
}
/**
@@ -380,9 +400,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setDeleteColumns($pValue = false) {
- $this->_deleteColumns = $pValue;
- return $this;
+ public function setDeleteColumns($pValue = false)
+ {
+ $this->deleteColumns = $pValue;
+ return $this;
}
/**
@@ -390,8 +411,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getDeleteRows() {
- return $this->_deleteRows;
+ public function getDeleteRows()
+ {
+ return $this->deleteRows;
}
/**
@@ -400,9 +422,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setDeleteRows($pValue = false) {
- $this->_deleteRows = $pValue;
- return $this;
+ public function setDeleteRows($pValue = false)
+ {
+ $this->deleteRows = $pValue;
+ return $this;
}
/**
@@ -410,8 +433,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getSelectLockedCells() {
- return $this->_selectLockedCells;
+ public function getSelectLockedCells()
+ {
+ return $this->selectLockedCells;
}
/**
@@ -420,9 +444,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setSelectLockedCells($pValue = false) {
- $this->_selectLockedCells = $pValue;
- return $this;
+ public function setSelectLockedCells($pValue = false)
+ {
+ $this->selectLockedCells = $pValue;
+ return $this;
}
/**
@@ -430,8 +455,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getSort() {
- return $this->_sort;
+ public function getSort()
+ {
+ return $this->sort;
}
/**
@@ -440,9 +466,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setSort($pValue = false) {
- $this->_sort = $pValue;
- return $this;
+ public function setSort($pValue = false)
+ {
+ $this->sort = $pValue;
+ return $this;
}
/**
@@ -450,8 +477,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getAutoFilter() {
- return $this->_autoFilter;
+ public function getAutoFilter()
+ {
+ return $this->autoFilter;
}
/**
@@ -460,9 +488,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setAutoFilter($pValue = false) {
- $this->_autoFilter = $pValue;
- return $this;
+ public function setAutoFilter($pValue = false)
+ {
+ $this->autoFilter = $pValue;
+ return $this;
}
/**
@@ -470,8 +499,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getPivotTables() {
- return $this->_pivotTables;
+ public function getPivotTables()
+ {
+ return $this->pivotTables;
}
/**
@@ -480,9 +510,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setPivotTables($pValue = false) {
- $this->_pivotTables = $pValue;
- return $this;
+ public function setPivotTables($pValue = false)
+ {
+ $this->pivotTables = $pValue;
+ return $this;
}
/**
@@ -490,8 +521,9 @@ class PHPExcel_Worksheet_Protection
*
* @return boolean
*/
- function getSelectUnlockedCells() {
- return $this->_selectUnlockedCells;
+ public function getSelectUnlockedCells()
+ {
+ return $this->selectUnlockedCells;
}
/**
@@ -500,9 +532,10 @@ class PHPExcel_Worksheet_Protection
* @param boolean $pValue
* @return PHPExcel_Worksheet_Protection
*/
- function setSelectUnlockedCells($pValue = false) {
- $this->_selectUnlockedCells = $pValue;
- return $this;
+ public function setSelectUnlockedCells($pValue = false)
+ {
+ $this->selectUnlockedCells = $pValue;
+ return $this;
}
/**
@@ -510,36 +543,39 @@ class PHPExcel_Worksheet_Protection
*
* @return string
*/
- function getPassword() {
- return $this->_password;
+ public function getPassword()
+ {
+ return $this->password;
}
/**
* Set Password
*
- * @param string $pValue
- * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true
+ * @param string $pValue
+ * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true
* @return PHPExcel_Worksheet_Protection
*/
- function setPassword($pValue = '', $pAlreadyHashed = false) {
- if (!$pAlreadyHashed) {
- $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
- }
- $this->_password = $pValue;
- return $this;
+ public function setPassword($pValue = '', $pAlreadyHashed = false)
+ {
+ if (!$pAlreadyHashed) {
+ $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
+ }
+ $this->password = $pValue;
+ return $this;
}
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Row.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Row.php
index 33043279..4f6034f5 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Row.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Row.php
@@ -1,8 +1,9 @@
_parent = $parent;
- $this->_rowIndex = $rowIndex;
- }
+ /**
+ * Create a new row
+ *
+ * @param PHPExcel_Worksheet $parent
+ * @param int $rowIndex
+ */
+ public function __construct(PHPExcel_Worksheet $parent = null, $rowIndex = 1)
+ {
+ // Set parent and row index
+ $this->parent = $parent;
+ $this->rowIndex = $rowIndex;
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_parent);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->parent);
+ }
- /**
- * Get row index
- *
- * @return int
- */
- public function getRowIndex() {
- return $this->_rowIndex;
- }
+ /**
+ * Get row index
+ *
+ * @return int
+ */
+ public function getRowIndex()
+ {
+ return $this->rowIndex;
+ }
- /**
- * Get cell iterator
- *
- * @param string $startColumn The column address at which to start iterating
- * @param string $endColumn Optionally, the column address at which to stop iterating
- * @return PHPExcel_Worksheet_CellIterator
- */
- public function getCellIterator($startColumn = 'A', $endColumn = null) {
- return new PHPExcel_Worksheet_RowCellIterator($this->_parent, $this->_rowIndex, $startColumn, $endColumn);
- }
+ /**
+ * Get cell iterator
+ *
+ * @param string $startColumn The column address at which to start iterating
+ * @param string $endColumn Optionally, the column address at which to stop iterating
+ * @return PHPExcel_Worksheet_CellIterator
+ */
+ public function getCellIterator($startColumn = 'A', $endColumn = null)
+ {
+ return new PHPExcel_Worksheet_RowCellIterator($this->parent, $this->rowIndex, $startColumn, $endColumn);
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowCellIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowCellIterator.php
index 96c6b419..90eb9c9f 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowCellIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowCellIterator.php
@@ -1,8 +1,9 @@
_subject = $subject;
- $this->_rowIndex = $rowIndex;
- $this->resetEnd($endColumn);
- $this->resetStart($startColumn);
- }
+ * @param string $startColumn The column address at which to start iterating
+ * @param string $endColumn Optionally, the column address at which to stop iterating
+ */
+ public function __construct(PHPExcel_Worksheet $subject = null, $rowIndex = 1, $startColumn = 'A', $endColumn = null)
+ {
+ // Set subject and row index
+ $this->subject = $subject;
+ $this->rowIndex = $rowIndex;
+ $this->resetEnd($endColumn);
+ $this->resetStart($startColumn);
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_subject);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->subject);
+ }
- /**
- * (Re)Set the start column and the current column pointer
- *
- * @param integer $startColumn The column address at which to start iterating
+ /**
+ * (Re)Set the start column and the current column pointer
+ *
+ * @param integer $startColumn The column address at which to start iterating
* @return PHPExcel_Worksheet_RowCellIterator
* @throws PHPExcel_Exception
- */
- public function resetStart($startColumn = 'A') {
+ */
+ public function resetStart($startColumn = 'A')
+ {
$startColumnIndex = PHPExcel_Cell::columnIndexFromString($startColumn) - 1;
- $this->_startColumn = $startColumnIndex;
+ $this->startColumn = $startColumnIndex;
$this->adjustForExistingOnlyRange();
- $this->seek(PHPExcel_Cell::stringFromColumnIndex($this->_startColumn));
-
- return $this;
- }
-
- /**
- * (Re)Set the end column
- *
- * @param string $endColumn The column address at which to stop iterating
- * @return PHPExcel_Worksheet_RowCellIterator
- * @throws PHPExcel_Exception
- */
- public function resetEnd($endColumn = null) {
- $endColumn = ($endColumn) ? $endColumn : $this->_subject->getHighestColumn();
- $this->_endColumn = PHPExcel_Cell::columnIndexFromString($endColumn) - 1;
- $this->adjustForExistingOnlyRange();
-
- return $this;
- }
-
- /**
- * Set the column pointer to the selected column
- *
- * @param string $column The column address to set the current pointer at
- * @return PHPExcel_Worksheet_RowCellIterator
- * @throws PHPExcel_Exception
- */
- public function seek($column = 'A') {
- $column = PHPExcel_Cell::columnIndexFromString($column) - 1;
- if (($column < $this->_startColumn) || ($column > $this->_endColumn)) {
- throw new PHPExcel_Exception("Column $column is out of range ({$this->_startColumn} - {$this->_endColumn})");
- } elseif ($this->_onlyExistingCells && !($this->_subject->cellExistsByColumnAndRow($column, $this->_rowIndex))) {
- throw new PHPExcel_Exception('In "IterateOnlyExistingCells" mode and Cell does not exist');
- }
- $this->_position = $column;
+ $this->seek(PHPExcel_Cell::stringFromColumnIndex($this->startColumn));
return $this;
}
- /**
- * Rewind the iterator to the starting column
- */
- public function rewind() {
- $this->_position = $this->_startColumn;
- }
+ /**
+ * (Re)Set the end column
+ *
+ * @param string $endColumn The column address at which to stop iterating
+ * @return PHPExcel_Worksheet_RowCellIterator
+ * @throws PHPExcel_Exception
+ */
+ public function resetEnd($endColumn = null)
+ {
+ $endColumn = ($endColumn) ? $endColumn : $this->subject->getHighestColumn();
+ $this->endColumn = PHPExcel_Cell::columnIndexFromString($endColumn) - 1;
+ $this->adjustForExistingOnlyRange();
- /**
- * Return the current cell in this worksheet row
- *
- * @return PHPExcel_Cell
- */
- public function current() {
- return $this->_subject->getCellByColumnAndRow($this->_position, $this->_rowIndex);
- }
+ return $this;
+ }
- /**
- * Return the current iterator key
- *
- * @return string
- */
- public function key() {
- return PHPExcel_Cell::stringFromColumnIndex($this->_position);
- }
+ /**
+ * Set the column pointer to the selected column
+ *
+ * @param string $column The column address to set the current pointer at
+ * @return PHPExcel_Worksheet_RowCellIterator
+ * @throws PHPExcel_Exception
+ */
+ public function seek($column = 'A')
+ {
+ $column = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ if (($column < $this->startColumn) || ($column > $this->endColumn)) {
+ throw new PHPExcel_Exception("Column $column is out of range ({$this->startColumn} - {$this->endColumn})");
+ } elseif ($this->onlyExistingCells && !($this->subject->cellExistsByColumnAndRow($column, $this->rowIndex))) {
+ throw new PHPExcel_Exception('In "IterateOnlyExistingCells" mode and Cell does not exist');
+ }
+ $this->position = $column;
- /**
- * Set the iterator to its next value
- */
- public function next() {
+ return $this;
+ }
+
+ /**
+ * Rewind the iterator to the starting column
+ */
+ public function rewind()
+ {
+ $this->position = $this->startColumn;
+ }
+
+ /**
+ * Return the current cell in this worksheet row
+ *
+ * @return PHPExcel_Cell
+ */
+ public function current()
+ {
+ return $this->subject->getCellByColumnAndRow($this->position, $this->rowIndex);
+ }
+
+ /**
+ * Return the current iterator key
+ *
+ * @return string
+ */
+ public function key()
+ {
+ return PHPExcel_Cell::stringFromColumnIndex($this->position);
+ }
+
+ /**
+ * Set the iterator to its next value
+ */
+ public function next()
+ {
do {
- ++$this->_position;
- } while (($this->_onlyExistingCells) &&
- (!$this->_subject->cellExistsByColumnAndRow($this->_position, $this->_rowIndex)) &&
- ($this->_position <= $this->_endColumn));
- }
+ ++$this->position;
+ } while (($this->onlyExistingCells) &&
+ (!$this->subject->cellExistsByColumnAndRow($this->position, $this->rowIndex)) &&
+ ($this->position <= $this->endColumn));
+ }
- /**
- * Set the iterator to its previous value
+ /**
+ * Set the iterator to its previous value
*
* @throws PHPExcel_Exception
- */
- public function prev() {
- if ($this->_position <= $this->_startColumn) {
+ */
+ public function prev()
+ {
+ if ($this->position <= $this->startColumn) {
throw new PHPExcel_Exception(
- "Column is already at the beginning of range (" .
- PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . " - " .
- PHPExcel_Cell::stringFromColumnIndex($this->_endColumn) . ")"
+ "Column is already at the beginning of range (" .
+ PHPExcel_Cell::stringFromColumnIndex($this->endColumn) . " - " .
+ PHPExcel_Cell::stringFromColumnIndex($this->endColumn) . ")"
);
}
do {
- --$this->_position;
- } while (($this->_onlyExistingCells) &&
- (!$this->_subject->cellExistsByColumnAndRow($this->_position, $this->_rowIndex)) &&
- ($this->_position >= $this->_startColumn));
- }
+ --$this->position;
+ } while (($this->onlyExistingCells) &&
+ (!$this->subject->cellExistsByColumnAndRow($this->position, $this->rowIndex)) &&
+ ($this->position >= $this->startColumn));
+ }
- /**
- * Indicate if more columns exist in the worksheet range of columns that we're iterating
- *
- * @return boolean
- */
- public function valid() {
- return $this->_position <= $this->_endColumn;
- }
+ /**
+ * Indicate if more columns exist in the worksheet range of columns that we're iterating
+ *
+ * @return boolean
+ */
+ public function valid()
+ {
+ return $this->position <= $this->endColumn;
+ }
- /**
- * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
- *
+ /**
+ * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
+ *
* @throws PHPExcel_Exception
- */
- protected function adjustForExistingOnlyRange() {
- if ($this->_onlyExistingCells) {
- while ((!$this->_subject->cellExistsByColumnAndRow($this->_startColumn, $this->_rowIndex)) &&
- ($this->_startColumn <= $this->_endColumn)) {
- ++$this->_startColumn;
+ */
+ protected function adjustForExistingOnlyRange()
+ {
+ if ($this->onlyExistingCells) {
+ while ((!$this->subject->cellExistsByColumnAndRow($this->startColumn, $this->rowIndex)) &&
+ ($this->startColumn <= $this->endColumn)) {
+ ++$this->startColumn;
}
- if ($this->_startColumn > $this->_endColumn) {
+ if ($this->startColumn > $this->endColumn) {
throw new PHPExcel_Exception('No cells exist within the specified range');
}
- while ((!$this->_subject->cellExistsByColumnAndRow($this->_endColumn, $this->_rowIndex)) &&
- ($this->_endColumn >= $this->_startColumn)) {
- --$this->_endColumn;
+ while ((!$this->subject->cellExistsByColumnAndRow($this->endColumn, $this->rowIndex)) &&
+ ($this->endColumn >= $this->startColumn)) {
+ --$this->endColumn;
}
- if ($this->_endColumn < $this->_startColumn) {
+ if ($this->endColumn < $this->startColumn) {
throw new PHPExcel_Exception('No cells exist within the specified range');
}
}
}
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowDimension.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowDimension.php
index bff89a08..c1474862 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowDimension.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowDimension.php
@@ -1,8 +1,9 @@
_rowIndex = $pIndex;
+ // Initialise values
+ $this->rowIndex = $pIndex;
- // set row dimension as unformatted by default
- $this->_xfIndex = null;
+ // set dimension as unformatted by default
+ parent::__construct(null);
}
/**
@@ -105,8 +69,9 @@ class PHPExcel_Worksheet_RowDimension
*
* @return int
*/
- public function getRowIndex() {
- return $this->_rowIndex;
+ public function getRowIndex()
+ {
+ return $this->rowIndex;
}
/**
@@ -115,9 +80,10 @@ class PHPExcel_Worksheet_RowDimension
* @param int $pValue
* @return PHPExcel_Worksheet_RowDimension
*/
- public function setRowIndex($pValue) {
- $this->_rowIndex = $pValue;
- return $this;
+ public function setRowIndex($pValue)
+ {
+ $this->rowIndex = $pValue;
+ return $this;
}
/**
@@ -125,8 +91,9 @@ class PHPExcel_Worksheet_RowDimension
*
* @return double
*/
- public function getRowHeight() {
- return $this->_rowHeight;
+ public function getRowHeight()
+ {
+ return $this->height;
}
/**
@@ -135,131 +102,31 @@ class PHPExcel_Worksheet_RowDimension
* @param double $pValue
* @return PHPExcel_Worksheet_RowDimension
*/
- public function setRowHeight($pValue = -1) {
- $this->_rowHeight = $pValue;
- return $this;
+ public function setRowHeight($pValue = -1)
+ {
+ $this->height = $pValue;
+ return $this;
}
- /**
- * Get ZeroHeight
- *
- * @return bool
- */
- public function getZeroHeight() {
- return $this->_zeroHeight;
- }
-
- /**
- * Set ZeroHeight
- *
- * @param bool $pValue
- * @return PHPExcel_Worksheet_RowDimension
- */
- public function setZeroHeight($pValue = false) {
- $this->_zeroHeight = $pValue;
- return $this;
- }
-
/**
- * Get Visible
+ * Get ZeroHeight
*
* @return bool
*/
- public function getVisible() {
- return $this->_visible;
+ public function getZeroHeight()
+ {
+ return $this->zeroHeight;
}
/**
- * Set Visible
+ * Set ZeroHeight
*
* @param bool $pValue
* @return PHPExcel_Worksheet_RowDimension
*/
- public function setVisible($pValue = true) {
- $this->_visible = $pValue;
- return $this;
+ public function setZeroHeight($pValue = false)
+ {
+ $this->zeroHeight = $pValue;
+ return $this;
}
-
- /**
- * Get Outline Level
- *
- * @return int
- */
- public function getOutlineLevel() {
- return $this->_outlineLevel;
- }
-
- /**
- * Set Outline Level
- *
- * Value must be between 0 and 7
- *
- * @param int $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_RowDimension
- */
- public function setOutlineLevel($pValue) {
- if ($pValue < 0 || $pValue > 7) {
- throw new PHPExcel_Exception("Outline level must range between 0 and 7.");
- }
-
- $this->_outlineLevel = $pValue;
- return $this;
- }
-
- /**
- * Get Collapsed
- *
- * @return bool
- */
- public function getCollapsed() {
- return $this->_collapsed;
- }
-
- /**
- * Set Collapsed
- *
- * @param bool $pValue
- * @return PHPExcel_Worksheet_RowDimension
- */
- public function setCollapsed($pValue = true) {
- $this->_collapsed = $pValue;
- return $this;
- }
-
- /**
- * Get index to cellXf
- *
- * @return int
- */
- public function getXfIndex()
- {
- return $this->_xfIndex;
- }
-
- /**
- * Set index to cellXf
- *
- * @param int $pValue
- * @return PHPExcel_Worksheet_RowDimension
- */
- public function setXfIndex($pValue = 0)
- {
- $this->_xfIndex = $pValue;
- return $this;
- }
-
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowIterator.php
index 110d8621..9ddb3e03 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/RowIterator.php
@@ -1,8 +1,9 @@
_subject = $subject;
- $this->resetEnd($endRow);
- $this->resetStart($startRow);
- }
+ /**
+ * Create a new row iterator
+ *
+ * @param PHPExcel_Worksheet $subject The worksheet to iterate over
+ * @param integer $startRow The row number at which to start iterating
+ * @param integer $endRow Optionally, the row number at which to stop iterating
+ */
+ public function __construct(PHPExcel_Worksheet $subject, $startRow = 1, $endRow = null)
+ {
+ // Set subject
+ $this->subject = $subject;
+ $this->resetEnd($endRow);
+ $this->resetStart($startRow);
+ }
- /**
- * Destructor
- */
- public function __destruct() {
- unset($this->_subject);
- }
+ /**
+ * Destructor
+ */
+ public function __destruct()
+ {
+ unset($this->subject);
+ }
- /**
- * (Re)Set the start row and the current row pointer
- *
- * @param integer $startRow The row number at which to start iterating
- * @return PHPExcel_Worksheet_RowIterator
- */
- public function resetStart($startRow = 1) {
- $this->_startRow = $startRow;
- $this->seek($startRow);
-
- return $this;
- }
-
- /**
- * (Re)Set the end row
- *
- * @param integer $endRow The row number at which to stop iterating
- * @return PHPExcel_Worksheet_RowIterator
- */
- public function resetEnd($endRow = null) {
- $this->_endRow = ($endRow) ? $endRow : $this->_subject->getHighestRow();
-
- return $this;
- }
-
- /**
- * Set the row pointer to the selected row
- *
- * @param integer $row The row number to set the current pointer at
+ /**
+ * (Re)Set the start row and the current row pointer
+ *
+ * @param integer $startRow The row number at which to start iterating
* @return PHPExcel_Worksheet_RowIterator
* @throws PHPExcel_Exception
- */
- public function seek($row = 1) {
- if (($row < $this->_startRow) || ($row > $this->_endRow)) {
- throw new PHPExcel_Exception("Row $row is out of range ({$this->_startRow} - {$this->_endRow})");
+ */
+ public function resetStart($startRow = 1)
+ {
+ if ($startRow > $this->subject->getHighestRow()) {
+ throw new PHPExcel_Exception("Start row ({$startRow}) is beyond highest row ({$this->subject->getHighestRow()})");
}
- $this->_position = $row;
+
+ $this->startRow = $startRow;
+ if ($this->endRow < $this->startRow) {
+ $this->endRow = $this->startRow;
+ }
+ $this->seek($startRow);
return $this;
- }
+ }
- /**
- * Rewind the iterator to the starting row
- */
- public function rewind() {
- $this->_position = $this->_startRow;
- }
+ /**
+ * (Re)Set the end row
+ *
+ * @param integer $endRow The row number at which to stop iterating
+ * @return PHPExcel_Worksheet_RowIterator
+ */
+ public function resetEnd($endRow = null)
+ {
+ $this->endRow = ($endRow) ? $endRow : $this->subject->getHighestRow();
- /**
- * Return the current row in this worksheet
- *
- * @return PHPExcel_Worksheet_Row
- */
- public function current() {
- return new PHPExcel_Worksheet_Row($this->_subject, $this->_position);
- }
+ return $this;
+ }
- /**
- * Return the current iterator key
- *
- * @return int
- */
- public function key() {
- return $this->_position;
- }
+ /**
+ * Set the row pointer to the selected row
+ *
+ * @param integer $row The row number to set the current pointer at
+ * @return PHPExcel_Worksheet_RowIterator
+ * @throws PHPExcel_Exception
+ */
+ public function seek($row = 1)
+ {
+ if (($row < $this->startRow) || ($row > $this->endRow)) {
+ throw new PHPExcel_Exception("Row $row is out of range ({$this->startRow} - {$this->endRow})");
+ }
+ $this->position = $row;
- /**
- * Set the iterator to its next value
- */
- public function next() {
- ++$this->_position;
- }
+ return $this;
+ }
- /**
- * Set the iterator to its previous value
- */
- public function prev() {
- if ($this->_position <= $this->_startRow) {
- throw new PHPExcel_Exception("Row is already at the beginning of range ({$this->_startRow} - {$this->_endRow})");
+ /**
+ * Rewind the iterator to the starting row
+ */
+ public function rewind()
+ {
+ $this->position = $this->startRow;
+ }
+
+ /**
+ * Return the current row in this worksheet
+ *
+ * @return PHPExcel_Worksheet_Row
+ */
+ public function current()
+ {
+ return new PHPExcel_Worksheet_Row($this->subject, $this->position);
+ }
+
+ /**
+ * Return the current iterator key
+ *
+ * @return int
+ */
+ public function key()
+ {
+ return $this->position;
+ }
+
+ /**
+ * Set the iterator to its next value
+ */
+ public function next()
+ {
+ ++$this->position;
+ }
+
+ /**
+ * Set the iterator to its previous value
+ */
+ public function prev()
+ {
+ if ($this->position <= $this->startRow) {
+ throw new PHPExcel_Exception("Row is already at the beginning of range ({$this->startRow} - {$this->endRow})");
}
- --$this->_position;
- }
+ --$this->position;
+ }
- /**
- * Indicate if more rows exist in the worksheet range of rows that we're iterating
- *
- * @return boolean
- */
- public function valid() {
- return $this->_position <= $this->_endRow;
- }
+ /**
+ * Indicate if more rows exist in the worksheet range of rows that we're iterating
+ *
+ * @return boolean
+ */
+ public function valid()
+ {
+ return $this->position <= $this->endRow;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/SheetView.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/SheetView.php
index 8ced835d..5aaef3ba 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/SheetView.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/SheetView.php
@@ -1,8 +1,9 @@
_zoomScale;
- }
+ /**
+ * Get ZoomScale
+ *
+ * @return int
+ */
+ public function getZoomScale()
+ {
+ return $this->zoomScale;
+ }
- /**
- * Set ZoomScale
- *
- * Valid values range from 10 to 400.
- *
- * @param int $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_SheetView
- */
- public function setZoomScale($pValue = 100) {
- // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
- // but it is apparently still able to handle any scale >= 1
- if (($pValue >= 1) || is_null($pValue)) {
- $this->_zoomScale = $pValue;
- } else {
- throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
- }
- return $this;
- }
+ /**
+ * Set ZoomScale
+ *
+ * Valid values range from 10 to 400.
+ *
+ * @param int $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_SheetView
+ */
+ public function setZoomScale($pValue = 100)
+ {
+ // Microsoft Office Excel 2007 only allows setting a scale between 10 and 400 via the user interface,
+ // but it is apparently still able to handle any scale >= 1
+ if (($pValue >= 1) || is_null($pValue)) {
+ $this->zoomScale = $pValue;
+ } else {
+ throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
+ }
+ return $this;
+ }
- /**
- * Get ZoomScaleNormal
- *
- * @return int
- */
- public function getZoomScaleNormal() {
- return $this->_zoomScaleNormal;
- }
+ /**
+ * Get ZoomScaleNormal
+ *
+ * @return int
+ */
+ public function getZoomScaleNormal()
+ {
+ return $this->zoomScaleNormal;
+ }
- /**
- * Set ZoomScale
- *
- * Valid values range from 10 to 400.
- *
- * @param int $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_SheetView
- */
- public function setZoomScaleNormal($pValue = 100) {
- if (($pValue >= 1) || is_null($pValue)) {
- $this->_zoomScaleNormal = $pValue;
- } else {
- throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
- }
- return $this;
- }
+ /**
+ * Set ZoomScale
+ *
+ * Valid values range from 10 to 400.
+ *
+ * @param int $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_SheetView
+ */
+ public function setZoomScaleNormal($pValue = 100)
+ {
+ if (($pValue >= 1) || is_null($pValue)) {
+ $this->zoomScaleNormal = $pValue;
+ } else {
+ throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
+ }
+ return $this;
+ }
- /**
- * Get View
- *
- * @return string
- */
- public function getView() {
- return $this->_sheetviewType;
- }
+ /**
+ * Get View
+ *
+ * @return string
+ */
+ public function getView()
+ {
+ return $this->sheetviewType;
+ }
- /**
- * Set View
- *
- * Valid values are
- * 'normal' self::SHEETVIEW_NORMAL
- * 'pageLayout' self::SHEETVIEW_PAGE_LAYOUT
- * 'pageBreakPreview' self::SHEETVIEW_PAGE_BREAK_PREVIEW
- *
- * @param string $pValue
- * @throws PHPExcel_Exception
- * @return PHPExcel_Worksheet_SheetView
- */
- public function setView($pValue = NULL) {
- // MS Excel 2007 allows setting the view to 'normal', 'pageLayout' or 'pageBreakPreview'
- // via the user interface
- if ($pValue === NULL)
- $pValue = self::SHEETVIEW_NORMAL;
- if (in_array($pValue, self::$_sheetViewTypes)) {
- $this->_sheetviewType = $pValue;
- } else {
- throw new PHPExcel_Exception("Invalid sheetview layout type.");
- }
+ /**
+ * Set View
+ *
+ * Valid values are
+ * 'normal' self::SHEETVIEW_NORMAL
+ * 'pageLayout' self::SHEETVIEW_PAGE_LAYOUT
+ * 'pageBreakPreview' self::SHEETVIEW_PAGE_BREAK_PREVIEW
+ *
+ * @param string $pValue
+ * @throws PHPExcel_Exception
+ * @return PHPExcel_Worksheet_SheetView
+ */
+ public function setView($pValue = null)
+ {
+ // MS Excel 2007 allows setting the view to 'normal', 'pageLayout' or 'pageBreakPreview' via the user interface
+ if ($pValue === null) {
+ $pValue = self::SHEETVIEW_NORMAL;
+ }
+ if (in_array($pValue, self::$sheetViewTypes)) {
+ $this->sheetviewType = $pValue;
+ } else {
+ throw new PHPExcel_Exception("Invalid sheetview layout type.");
+ }
- return $this;
- }
+ return $this;
+ }
- /**
- * Implement PHP __clone to create a deep clone, not just a shallow copy.
- */
- public function __clone() {
- $vars = get_object_vars($this);
- foreach ($vars as $key => $value) {
- if (is_object($value)) {
- $this->$key = clone $value;
- } else {
- $this->$key = $value;
- }
- }
- }
+ /**
+ * Implement PHP __clone to create a deep clone, not just a shallow copy.
+ */
+ public function __clone()
+ {
+ $vars = get_object_vars($this);
+ foreach ($vars as $key => $value) {
+ if (is_object($value)) {
+ $this->$key = clone $value;
+ } else {
+ $this->$key = $value;
+ }
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/WorksheetIterator.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/WorksheetIterator.php
index ad17fd90..cb1b2811 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/WorksheetIterator.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/WorksheetIterator.php
@@ -1,8 +1,9 @@
_subject = $subject;
+ $this->subject = $subject;
}
/**
@@ -67,7 +57,7 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function __destruct()
{
- unset($this->_subject);
+ unset($this->subject);
}
/**
@@ -75,7 +65,7 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function rewind()
{
- $this->_position = 0;
+ $this->position = 0;
}
/**
@@ -85,7 +75,7 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function current()
{
- return $this->_subject->getSheet($this->_position);
+ return $this->subject->getSheet($this->position);
}
/**
@@ -95,7 +85,7 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function key()
{
- return $this->_position;
+ return $this->position;
}
/**
@@ -103,7 +93,7 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function next()
{
- ++$this->_position;
+ ++$this->position;
}
/**
@@ -113,6 +103,6 @@ class PHPExcel_WorksheetIterator implements Iterator
*/
public function valid()
{
- return $this->_position < $this->_subject->getSheetCount();
+ return $this->position < $this->subject->getSheetCount();
}
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Abstract.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Abstract.php
index fca6a60c..2a797a94 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Abstract.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Abstract.php
@@ -1,8 +1,9 @@
_includeCharts;
- }
+ /**
+ * Write charts in workbook?
+ * If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.
+ * If false (the default) it will ignore any charts defined in the PHPExcel object.
+ *
+ * @return boolean
+ */
+ public function getIncludeCharts()
+ {
+ return $this->includeCharts;
+ }
- /**
- * Set write charts in workbook
- * Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.
- * Set to false (the default) to ignore charts.
- *
- * @param boolean $pValue
- * @return PHPExcel_Writer_IWriter
- */
- public function setIncludeCharts($pValue = FALSE) {
- $this->_includeCharts = (boolean) $pValue;
- return $this;
- }
+ /**
+ * Set write charts in workbook
+ * Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.
+ * Set to false (the default) to ignore charts.
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Writer_IWriter
+ */
+ public function setIncludeCharts($pValue = false)
+ {
+ $this->includeCharts = (boolean) $pValue;
+ return $this;
+ }
/**
* Get Pre-Calculate Formulas flag
- * If this is true (the default), then the writer will recalculate all formulae in a workbook when saving,
- * so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet
- * viewer when opening the file
- * If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower
- * when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself
+ * If this is true (the default), then the writer will recalculate all formulae in a workbook when saving,
+ * so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet
+ * viewer when opening the file
+ * If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower
+ * when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself
*
* @return boolean
*/
- public function getPreCalculateFormulas() {
- return $this->_preCalculateFormulas;
+ public function getPreCalculateFormulas()
+ {
+ return $this->preCalculateFormulas;
}
/**
* Set Pre-Calculate Formulas
- * Set to true (the default) to advise the Writer to calculate all formulae on save
- * Set to false to prevent precalculation of formulae on save.
+ * Set to true (the default) to advise the Writer to calculate all formulae on save
+ * Set to false to prevent precalculation of formulae on save.
*
- * @param boolean $pValue Pre-Calculate Formulas?
- * @return PHPExcel_Writer_IWriter
+ * @param boolean $pValue Pre-Calculate Formulas?
+ * @return PHPExcel_Writer_IWriter
*/
- public function setPreCalculateFormulas($pValue = TRUE) {
- $this->_preCalculateFormulas = (boolean) $pValue;
- return $this;
+ public function setPreCalculateFormulas($pValue = true)
+ {
+ $this->preCalculateFormulas = (boolean) $pValue;
+ return $this;
}
- /**
- * Get use disk caching where possible?
- *
- * @return boolean
- */
- public function getUseDiskCaching() {
- return $this->_useDiskCaching;
- }
+ /**
+ * Get use disk caching where possible?
+ *
+ * @return boolean
+ */
+ public function getUseDiskCaching()
+ {
+ return $this->_useDiskCaching;
+ }
- /**
- * Set use disk caching where possible?
- *
- * @param boolean $pValue
- * @param string $pDirectory Disk caching directory
- * @throws PHPExcel_Writer_Exception when directory does not exist
- * @return PHPExcel_Writer_Excel2007
- */
- public function setUseDiskCaching($pValue = FALSE, $pDirectory = NULL) {
- $this->_useDiskCaching = $pValue;
+ /**
+ * Set use disk caching where possible?
+ *
+ * @param boolean $pValue
+ * @param string $pDirectory Disk caching directory
+ * @throws PHPExcel_Writer_Exception when directory does not exist
+ * @return PHPExcel_Writer_Excel2007
+ */
+ public function setUseDiskCaching($pValue = false, $pDirectory = null)
+ {
+ $this->_useDiskCaching = $pValue;
- if ($pDirectory !== NULL) {
- if (is_dir($pDirectory)) {
- $this->_diskCachingDirectory = $pDirectory;
- } else {
- throw new PHPExcel_Writer_Exception("Directory does not exist: $pDirectory");
- }
- }
- return $this;
- }
+ if ($pDirectory !== null) {
+ if (is_dir($pDirectory)) {
+ $this->_diskCachingDirectory = $pDirectory;
+ } else {
+ throw new PHPExcel_Writer_Exception("Directory does not exist: $pDirectory");
+ }
+ }
+ return $this;
+ }
- /**
- * Get disk caching directory
- *
- * @return string
- */
- public function getDiskCachingDirectory() {
- return $this->_diskCachingDirectory;
- }
+ /**
+ * Get disk caching directory
+ *
+ * @return string
+ */
+ public function getDiskCachingDirectory()
+ {
+ return $this->_diskCachingDirectory;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php
index 97961ccc..e59c3013 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php
@@ -1,8 +1,9 @@
phpExcel = $phpExcel;
+ }
- /**
- * Create a new PHPExcel_Writer_CSV
- *
- * @param PHPExcel $phpExcel PHPExcel object
- */
- public function __construct(PHPExcel $phpExcel) {
- $this->_phpExcel = $phpExcel;
- }
+ /**
+ * Save PHPExcel to file
+ *
+ * @param string $pFilename
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function save($pFilename = null)
+ {
+ // Fetch sheet
+ $sheet = $this->phpExcel->getSheet($this->sheetIndex);
- /**
- * Save PHPExcel to file
- *
- * @param string $pFilename
- * @throws PHPExcel_Writer_Exception
- */
- public function save($pFilename = null) {
- // Fetch sheet
- $sheet = $this->_phpExcel->getSheet($this->_sheetIndex);
+ $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog();
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false);
+ $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
+ PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
- $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog();
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE);
- $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
- PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
+ // Open file
+ $fileHandle = fopen($pFilename, 'wb+');
+ if ($fileHandle === false) {
+ throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing.");
+ }
- // Open file
- $fileHandle = fopen($pFilename, 'wb+');
- if ($fileHandle === false) {
- throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing.");
- }
-
- if ($this->_excelCompatibility) {
- fwrite($fileHandle, "\xEF\xBB\xBF"); // Enforce UTF-8 BOM Header
- $this->setEnclosure('"'); // Set enclosure to "
- $this->setDelimiter(";"); // Set delimiter to a semi-colon
+ if ($this->excelCompatibility) {
+ $this->setUseBOM(true); // Enforce UTF-8 BOM Header
+ $this->setIncludeSeparatorLine(true); // Set separator line
+ $this->setEnclosure('"'); // Set enclosure to "
+ $this->setDelimiter(";"); // Set delimiter to a semi-colon
$this->setLineEnding("\r\n");
- fwrite($fileHandle, 'sep=' . $this->getDelimiter() . $this->_lineEnding);
- } elseif ($this->_useBOM) {
- // Write the UTF-8 BOM code if required
- fwrite($fileHandle, "\xEF\xBB\xBF");
- }
+ }
+ if ($this->useBOM) {
+ // Write the UTF-8 BOM code if required
+ fwrite($fileHandle, "\xEF\xBB\xBF");
+ }
+ if ($this->includeSeparatorLine) {
+ // Write the separator line if required
+ fwrite($fileHandle, 'sep=' . $this->getDelimiter() . $this->lineEnding);
+ }
- // Identify the range that we need to extract from the worksheet
- $maxCol = $sheet->getHighestDataColumn();
- $maxRow = $sheet->getHighestDataRow();
+ // Identify the range that we need to extract from the worksheet
+ $maxCol = $sheet->getHighestDataColumn();
+ $maxRow = $sheet->getHighestDataRow();
- // Write rows to file
- for($row = 1; $row <= $maxRow; ++$row) {
- // Convert the row to an array...
- $cellsArray = $sheet->rangeToArray('A'.$row.':'.$maxCol.$row,'', $this->_preCalculateFormulas);
- // ... and write to the file
- $this->_writeLine($fileHandle, $cellsArray[0]);
- }
+ // Write rows to file
+ for ($row = 1; $row <= $maxRow; ++$row) {
+ // Convert the row to an array...
+ $cellsArray = $sheet->rangeToArray('A'.$row.':'.$maxCol.$row, '', $this->preCalculateFormulas);
+ // ... and write to the file
+ $this->writeLine($fileHandle, $cellsArray[0]);
+ }
- // Close file
- fclose($fileHandle);
+ // Close file
+ fclose($fileHandle);
- PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
- }
+ PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
+ }
- /**
- * Get delimiter
- *
- * @return string
- */
- public function getDelimiter() {
- return $this->_delimiter;
- }
+ /**
+ * Get delimiter
+ *
+ * @return string
+ */
+ public function getDelimiter()
+ {
+ return $this->delimiter;
+ }
- /**
- * Set delimiter
- *
- * @param string $pValue Delimiter, defaults to ,
- * @return PHPExcel_Writer_CSV
- */
- public function setDelimiter($pValue = ',') {
- $this->_delimiter = $pValue;
- return $this;
- }
+ /**
+ * Set delimiter
+ *
+ * @param string $pValue Delimiter, defaults to ,
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setDelimiter($pValue = ',')
+ {
+ $this->delimiter = $pValue;
+ return $this;
+ }
- /**
- * Get enclosure
- *
- * @return string
- */
- public function getEnclosure() {
- return $this->_enclosure;
- }
+ /**
+ * Get enclosure
+ *
+ * @return string
+ */
+ public function getEnclosure()
+ {
+ return $this->enclosure;
+ }
- /**
- * Set enclosure
- *
- * @param string $pValue Enclosure, defaults to "
- * @return PHPExcel_Writer_CSV
- */
- public function setEnclosure($pValue = '"') {
- if ($pValue == '') {
- $pValue = null;
- }
- $this->_enclosure = $pValue;
- return $this;
- }
+ /**
+ * Set enclosure
+ *
+ * @param string $pValue Enclosure, defaults to "
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setEnclosure($pValue = '"')
+ {
+ if ($pValue == '') {
+ $pValue = null;
+ }
+ $this->enclosure = $pValue;
+ return $this;
+ }
- /**
- * Get line ending
- *
- * @return string
- */
- public function getLineEnding() {
- return $this->_lineEnding;
- }
+ /**
+ * Get line ending
+ *
+ * @return string
+ */
+ public function getLineEnding()
+ {
+ return $this->lineEnding;
+ }
- /**
- * Set line ending
- *
- * @param string $pValue Line ending, defaults to OS line ending (PHP_EOL)
- * @return PHPExcel_Writer_CSV
- */
- public function setLineEnding($pValue = PHP_EOL) {
- $this->_lineEnding = $pValue;
- return $this;
- }
+ /**
+ * Set line ending
+ *
+ * @param string $pValue Line ending, defaults to OS line ending (PHP_EOL)
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setLineEnding($pValue = PHP_EOL)
+ {
+ $this->lineEnding = $pValue;
+ return $this;
+ }
- /**
- * Get whether BOM should be used
- *
- * @return boolean
- */
- public function getUseBOM() {
- return $this->_useBOM;
- }
+ /**
+ * Get whether BOM should be used
+ *
+ * @return boolean
+ */
+ public function getUseBOM()
+ {
+ return $this->useBOM;
+ }
- /**
- * Set whether BOM should be used
- *
- * @param boolean $pValue Use UTF-8 byte-order mark? Defaults to false
- * @return PHPExcel_Writer_CSV
- */
- public function setUseBOM($pValue = false) {
- $this->_useBOM = $pValue;
- return $this;
- }
+ /**
+ * Set whether BOM should be used
+ *
+ * @param boolean $pValue Use UTF-8 byte-order mark? Defaults to false
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setUseBOM($pValue = false)
+ {
+ $this->useBOM = $pValue;
+ return $this;
+ }
- /**
- * Get whether the file should be saved with full Excel Compatibility
- *
- * @return boolean
- */
- public function getExcelCompatibility() {
- return $this->_excelCompatibility;
- }
+ /**
+ * Get whether a separator line should be included
+ *
+ * @return boolean
+ */
+ public function getIncludeSeparatorLine()
+ {
+ return $this->includeSeparatorLine;
+ }
- /**
- * Set whether the file should be saved with full Excel Compatibility
- *
- * @param boolean $pValue Set the file to be written as a fully Excel compatible csv file
- * Note that this overrides other settings such as useBOM, enclosure and delimiter
- * @return PHPExcel_Writer_CSV
- */
- public function setExcelCompatibility($pValue = false) {
- $this->_excelCompatibility = $pValue;
- return $this;
- }
+ /**
+ * Set whether a separator line should be included as the first line of the file
+ *
+ * @param boolean $pValue Use separator line? Defaults to false
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setIncludeSeparatorLine($pValue = false)
+ {
+ $this->includeSeparatorLine = $pValue;
+ return $this;
+ }
- /**
- * Get sheet index
- *
- * @return int
- */
- public function getSheetIndex() {
- return $this->_sheetIndex;
- }
+ /**
+ * Get whether the file should be saved with full Excel Compatibility
+ *
+ * @return boolean
+ */
+ public function getExcelCompatibility()
+ {
+ return $this->excelCompatibility;
+ }
- /**
- * Set sheet index
- *
- * @param int $pValue Sheet index
- * @return PHPExcel_Writer_CSV
- */
- public function setSheetIndex($pValue = 0) {
- $this->_sheetIndex = $pValue;
- return $this;
- }
+ /**
+ * Set whether the file should be saved with full Excel Compatibility
+ *
+ * @param boolean $pValue Set the file to be written as a fully Excel compatible csv file
+ * Note that this overrides other settings such as useBOM, enclosure and delimiter
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setExcelCompatibility($pValue = false)
+ {
+ $this->excelCompatibility = $pValue;
+ return $this;
+ }
- /**
- * Write line to CSV file
- *
- * @param mixed $pFileHandle PHP filehandle
- * @param array $pValues Array containing values in a row
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeLine($pFileHandle = null, $pValues = null) {
- if (is_array($pValues)) {
- // No leading delimiter
- $writeDelimiter = false;
+ /**
+ * Get sheet index
+ *
+ * @return int
+ */
+ public function getSheetIndex()
+ {
+ return $this->sheetIndex;
+ }
- // Build the line
- $line = '';
+ /**
+ * Set sheet index
+ *
+ * @param int $pValue Sheet index
+ * @return PHPExcel_Writer_CSV
+ */
+ public function setSheetIndex($pValue = 0)
+ {
+ $this->sheetIndex = $pValue;
+ return $this;
+ }
- foreach ($pValues as $element) {
- // Escape enclosures
- $element = str_replace($this->_enclosure, $this->_enclosure . $this->_enclosure, $element);
+ /**
+ * Write line to CSV file
+ *
+ * @param mixed $pFileHandle PHP filehandle
+ * @param array $pValues Array containing values in a row
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeLine($pFileHandle = null, $pValues = null)
+ {
+ if (is_array($pValues)) {
+ // No leading delimiter
+ $writeDelimiter = false;
- // Add delimiter
- if ($writeDelimiter) {
- $line .= $this->_delimiter;
- } else {
- $writeDelimiter = true;
- }
+ // Build the line
+ $line = '';
- // Add enclosed string
- $line .= $this->_enclosure . $element . $this->_enclosure;
- }
+ foreach ($pValues as $element) {
+ // Escape enclosures
+ $element = str_replace($this->enclosure, $this->enclosure . $this->enclosure, $element);
- // Add line ending
- $line .= $this->_lineEnding;
+ // Add delimiter
+ if ($writeDelimiter) {
+ $line .= $this->delimiter;
+ } else {
+ $writeDelimiter = true;
+ }
- // Write to file
+ // Add enclosed string
+ $line .= $this->enclosure . $element . $this->enclosure;
+ }
+
+ // Add line ending
+ $line .= $this->lineEnding;
+
+ // Write to file
fwrite($pFileHandle, $line);
- } else {
- throw new PHPExcel_Writer_Exception("Invalid data row passed to CSV writer.");
- }
- }
-
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid data row passed to CSV writer.");
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php
index 4cf14ac1..11d354b4 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php
@@ -1,8 +1,9 @@
setPHPExcel($pPHPExcel);
+ // Assign PHPExcel
+ $this->setPHPExcel($pPHPExcel);
- $writerPartsArray = array( 'stringtable' => 'PHPExcel_Writer_Excel2007_StringTable',
- 'contenttypes' => 'PHPExcel_Writer_Excel2007_ContentTypes',
- 'docprops' => 'PHPExcel_Writer_Excel2007_DocProps',
- 'rels' => 'PHPExcel_Writer_Excel2007_Rels',
- 'theme' => 'PHPExcel_Writer_Excel2007_Theme',
- 'style' => 'PHPExcel_Writer_Excel2007_Style',
- 'workbook' => 'PHPExcel_Writer_Excel2007_Workbook',
- 'worksheet' => 'PHPExcel_Writer_Excel2007_Worksheet',
- 'drawing' => 'PHPExcel_Writer_Excel2007_Drawing',
- 'comments' => 'PHPExcel_Writer_Excel2007_Comments',
- 'chart' => 'PHPExcel_Writer_Excel2007_Chart',
- 'relsvba' => 'PHPExcel_Writer_Excel2007_RelsVBA',
- 'relsribbonobjects' => 'PHPExcel_Writer_Excel2007_RelsRibbon'
- );
+ $writerPartsArray = array( 'stringtable' => 'PHPExcel_Writer_Excel2007_StringTable',
+ 'contenttypes' => 'PHPExcel_Writer_Excel2007_ContentTypes',
+ 'docprops' => 'PHPExcel_Writer_Excel2007_DocProps',
+ 'rels' => 'PHPExcel_Writer_Excel2007_Rels',
+ 'theme' => 'PHPExcel_Writer_Excel2007_Theme',
+ 'style' => 'PHPExcel_Writer_Excel2007_Style',
+ 'workbook' => 'PHPExcel_Writer_Excel2007_Workbook',
+ 'worksheet' => 'PHPExcel_Writer_Excel2007_Worksheet',
+ 'drawing' => 'PHPExcel_Writer_Excel2007_Drawing',
+ 'comments' => 'PHPExcel_Writer_Excel2007_Comments',
+ 'chart' => 'PHPExcel_Writer_Excel2007_Chart',
+ 'relsvba' => 'PHPExcel_Writer_Excel2007_RelsVBA',
+ 'relsribbonobjects' => 'PHPExcel_Writer_Excel2007_RelsRibbon'
+ );
- // Initialise writer parts
- // and Assign their parent IWriters
- foreach ($writerPartsArray as $writer => $class) {
- $this->_writerParts[$writer] = new $class($this);
- }
+ // Initialise writer parts
+ // and Assign their parent IWriters
+ foreach ($writerPartsArray as $writer => $class) {
+ $this->writerParts[$writer] = new $class($this);
+ }
- $hashTablesArray = array( '_stylesConditionalHashTable', '_fillHashTable', '_fontHashTable',
- '_bordersHashTable', '_numFmtHashTable', '_drawingHashTable',
- '_styleHashTable'
- );
+ $hashTablesArray = array( 'stylesConditionalHashTable', 'fillHashTable', 'fontHashTable',
+ 'bordersHashTable', 'numFmtHashTable', 'drawingHashTable',
+ 'styleHashTable'
+ );
- // Set HashTable variables
- foreach ($hashTablesArray as $tableName) {
- $this->$tableName = new PHPExcel_HashTable();
- }
+ // Set HashTable variables
+ foreach ($hashTablesArray as $tableName) {
+ $this->$tableName = new PHPExcel_HashTable();
+ }
}
- /**
- * Get writer part
- *
- * @param string $pPartName Writer part name
- * @return PHPExcel_Writer_Excel2007_WriterPart
- */
- public function getWriterPart($pPartName = '') {
- if ($pPartName != '' && isset($this->_writerParts[strtolower($pPartName)])) {
- return $this->_writerParts[strtolower($pPartName)];
- } else {
- return null;
- }
- }
+ /**
+ * Get writer part
+ *
+ * @param string $pPartName Writer part name
+ * @return PHPExcel_Writer_Excel2007_WriterPart
+ */
+ public function getWriterPart($pPartName = '')
+ {
+ if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) {
+ return $this->writerParts[strtolower($pPartName)];
+ } else {
+ return null;
+ }
+ }
- /**
- * Save PHPExcel to file
- *
- * @param string $pFilename
- * @throws PHPExcel_Writer_Exception
- */
- public function save($pFilename = null)
- {
- if ($this->_spreadSheet !== NULL) {
- // garbage collect
- $this->_spreadSheet->garbageCollect();
+ /**
+ * Save PHPExcel to file
+ *
+ * @param string $pFilename
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function save($pFilename = null)
+ {
+ if ($this->spreadSheet !== null) {
+ // garbage collect
+ $this->spreadSheet->garbageCollect();
- // If $pFilename is php://output or php://stdout, make it a temporary file...
- $originalFilename = $pFilename;
- if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') {
- $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp');
- if ($pFilename == '') {
- $pFilename = $originalFilename;
- }
- }
+ // If $pFilename is php://output or php://stdout, make it a temporary file...
+ $originalFilename = $pFilename;
+ if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') {
+ $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp');
+ if ($pFilename == '') {
+ $pFilename = $originalFilename;
+ }
+ }
- $saveDebugLog = PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->getWriteDebugLog();
- PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->setWriteDebugLog(FALSE);
- $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType();
- PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
+ $saveDebugLog = PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->getWriteDebugLog();
+ PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog(false);
+ $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType();
+ PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
- // Create string lookup table
- $this->_stringTable = array();
- for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) {
- $this->_stringTable = $this->getWriterPart('StringTable')->createStringTable($this->_spreadSheet->getSheet($i), $this->_stringTable);
- }
+ // Create string lookup table
+ $this->stringTable = array();
+ for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) {
+ $this->stringTable = $this->getWriterPart('StringTable')->createStringTable($this->spreadSheet->getSheet($i), $this->stringTable);
+ }
- // Create styles dictionaries
- $this->_styleHashTable->addFromSource( $this->getWriterPart('Style')->allStyles($this->_spreadSheet) );
- $this->_stylesConditionalHashTable->addFromSource( $this->getWriterPart('Style')->allConditionalStyles($this->_spreadSheet) );
- $this->_fillHashTable->addFromSource( $this->getWriterPart('Style')->allFills($this->_spreadSheet) );
- $this->_fontHashTable->addFromSource( $this->getWriterPart('Style')->allFonts($this->_spreadSheet) );
- $this->_bordersHashTable->addFromSource( $this->getWriterPart('Style')->allBorders($this->_spreadSheet) );
- $this->_numFmtHashTable->addFromSource( $this->getWriterPart('Style')->allNumberFormats($this->_spreadSheet) );
+ // Create styles dictionaries
+ $this->styleHashTable->addFromSource($this->getWriterPart('Style')->allStyles($this->spreadSheet));
+ $this->stylesConditionalHashTable->addFromSource($this->getWriterPart('Style')->allConditionalStyles($this->spreadSheet));
+ $this->fillHashTable->addFromSource($this->getWriterPart('Style')->allFills($this->spreadSheet));
+ $this->fontHashTable->addFromSource($this->getWriterPart('Style')->allFonts($this->spreadSheet));
+ $this->bordersHashTable->addFromSource($this->getWriterPart('Style')->allBorders($this->spreadSheet));
+ $this->numFmtHashTable->addFromSource($this->getWriterPart('Style')->allNumberFormats($this->spreadSheet));
- // Create drawing dictionary
- $this->_drawingHashTable->addFromSource( $this->getWriterPart('Drawing')->allDrawings($this->_spreadSheet) );
+ // Create drawing dictionary
+ $this->drawingHashTable->addFromSource($this->getWriterPart('Drawing')->allDrawings($this->spreadSheet));
- // Create new ZIP file and open it for writing
- $zipClass = PHPExcel_Settings::getZipClass();
- $objZip = new $zipClass();
+ // Create new ZIP file and open it for writing
+ $zipClass = PHPExcel_Settings::getZipClass();
+ $objZip = new $zipClass();
- // Retrieve OVERWRITE and CREATE constants from the instantiated zip class
- // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP
- $ro = new ReflectionObject($objZip);
- $zipOverWrite = $ro->getConstant('OVERWRITE');
- $zipCreate = $ro->getConstant('CREATE');
+ // Retrieve OVERWRITE and CREATE constants from the instantiated zip class
+ // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP
+ $ro = new ReflectionObject($objZip);
+ $zipOverWrite = $ro->getConstant('OVERWRITE');
+ $zipCreate = $ro->getConstant('CREATE');
- if (file_exists($pFilename)) {
- unlink($pFilename);
- }
- // Try opening the ZIP file
- if ($objZip->open($pFilename, $zipOverWrite) !== true) {
- if ($objZip->open($pFilename, $zipCreate) !== true) {
- throw new PHPExcel_Writer_Exception("Could not open " . $pFilename . " for writing.");
- }
- }
+ if (file_exists($pFilename)) {
+ unlink($pFilename);
+ }
+ // Try opening the ZIP file
+ if ($objZip->open($pFilename, $zipOverWrite) !== true) {
+ if ($objZip->open($pFilename, $zipCreate) !== true) {
+ throw new PHPExcel_Writer_Exception("Could not open " . $pFilename . " for writing.");
+ }
+ }
- // Add [Content_Types].xml to ZIP file
- $objZip->addFromString('[Content_Types].xml', $this->getWriterPart('ContentTypes')->writeContentTypes($this->_spreadSheet, $this->_includeCharts));
+ // Add [Content_Types].xml to ZIP file
+ $objZip->addFromString('[Content_Types].xml', $this->getWriterPart('ContentTypes')->writeContentTypes($this->spreadSheet, $this->includeCharts));
- //if hasMacros, add the vbaProject.bin file, Certificate file(if exists)
- if($this->_spreadSheet->hasMacros()){
- $macrosCode=$this->_spreadSheet->getMacrosCode();
- if(!is_null($macrosCode)){// we have the code ?
- $objZip->addFromString('xl/vbaProject.bin', $macrosCode);//allways in 'xl', allways named vbaProject.bin
- if($this->_spreadSheet->hasMacrosCertificate()){//signed macros ?
- // Yes : add the certificate file and the related rels file
- $objZip->addFromString('xl/vbaProjectSignature.bin', $this->_spreadSheet->getMacrosCertificate());
- $objZip->addFromString('xl/_rels/vbaProject.bin.rels',
- $this->getWriterPart('RelsVBA')->writeVBARelationships($this->_spreadSheet));
- }
- }
- }
- //a custom UI in this workbook ? add it ("base" xml and additional objects (pictures) and rels)
- if($this->_spreadSheet->hasRibbon()){
- $tmpRibbonTarget=$this->_spreadSheet->getRibbonXMLData('target');
- $objZip->addFromString($tmpRibbonTarget, $this->_spreadSheet->getRibbonXMLData('data'));
- if($this->_spreadSheet->hasRibbonBinObjects()){
- $tmpRootPath=dirname($tmpRibbonTarget).'/';
- $ribbonBinObjects=$this->_spreadSheet->getRibbonBinObjects('data');//the files to write
- foreach($ribbonBinObjects as $aPath=>$aContent){
- $objZip->addFromString($tmpRootPath.$aPath, $aContent);
- }
- //the rels for files
- $objZip->addFromString($tmpRootPath.'_rels/'.basename($tmpRibbonTarget).'.rels',
- $this->getWriterPart('RelsRibbonObjects')->writeRibbonRelationships($this->_spreadSheet));
- }
- }
-
- // Add relationships to ZIP file
- $objZip->addFromString('_rels/.rels', $this->getWriterPart('Rels')->writeRelationships($this->_spreadSheet));
- $objZip->addFromString('xl/_rels/workbook.xml.rels', $this->getWriterPart('Rels')->writeWorkbookRelationships($this->_spreadSheet));
+ //if hasMacros, add the vbaProject.bin file, Certificate file(if exists)
+ if ($this->spreadSheet->hasMacros()) {
+ $macrosCode=$this->spreadSheet->getMacrosCode();
+ if (!is_null($macrosCode)) {// we have the code ?
+ $objZip->addFromString('xl/vbaProject.bin', $macrosCode);//allways in 'xl', allways named vbaProject.bin
+ if ($this->spreadSheet->hasMacrosCertificate()) {//signed macros ?
+ // Yes : add the certificate file and the related rels file
+ $objZip->addFromString('xl/vbaProjectSignature.bin', $this->spreadSheet->getMacrosCertificate());
+ $objZip->addFromString('xl/_rels/vbaProject.bin.rels', $this->getWriterPart('RelsVBA')->writeVBARelationships($this->spreadSheet));
+ }
+ }
+ }
+ //a custom UI in this workbook ? add it ("base" xml and additional objects (pictures) and rels)
+ if ($this->spreadSheet->hasRibbon()) {
+ $tmpRibbonTarget=$this->spreadSheet->getRibbonXMLData('target');
+ $objZip->addFromString($tmpRibbonTarget, $this->spreadSheet->getRibbonXMLData('data'));
+ if ($this->spreadSheet->hasRibbonBinObjects()) {
+ $tmpRootPath=dirname($tmpRibbonTarget).'/';
+ $ribbonBinObjects=$this->spreadSheet->getRibbonBinObjects('data');//the files to write
+ foreach ($ribbonBinObjects as $aPath => $aContent) {
+ $objZip->addFromString($tmpRootPath.$aPath, $aContent);
+ }
+ //the rels for files
+ $objZip->addFromString($tmpRootPath.'_rels/'.basename($tmpRibbonTarget).'.rels', $this->getWriterPart('RelsRibbonObjects')->writeRibbonRelationships($this->spreadSheet));
+ }
+ }
+
+ // Add relationships to ZIP file
+ $objZip->addFromString('_rels/.rels', $this->getWriterPart('Rels')->writeRelationships($this->spreadSheet));
+ $objZip->addFromString('xl/_rels/workbook.xml.rels', $this->getWriterPart('Rels')->writeWorkbookRelationships($this->spreadSheet));
- // Add document properties to ZIP file
- $objZip->addFromString('docProps/app.xml', $this->getWriterPart('DocProps')->writeDocPropsApp($this->_spreadSheet));
- $objZip->addFromString('docProps/core.xml', $this->getWriterPart('DocProps')->writeDocPropsCore($this->_spreadSheet));
- $customPropertiesPart = $this->getWriterPart('DocProps')->writeDocPropsCustom($this->_spreadSheet);
- if ($customPropertiesPart !== NULL) {
- $objZip->addFromString('docProps/custom.xml', $customPropertiesPart);
- }
+ // Add document properties to ZIP file
+ $objZip->addFromString('docProps/app.xml', $this->getWriterPart('DocProps')->writeDocPropsApp($this->spreadSheet));
+ $objZip->addFromString('docProps/core.xml', $this->getWriterPart('DocProps')->writeDocPropsCore($this->spreadSheet));
+ $customPropertiesPart = $this->getWriterPart('DocProps')->writeDocPropsCustom($this->spreadSheet);
+ if ($customPropertiesPart !== null) {
+ $objZip->addFromString('docProps/custom.xml', $customPropertiesPart);
+ }
- // Add theme to ZIP file
- $objZip->addFromString('xl/theme/theme1.xml', $this->getWriterPart('Theme')->writeTheme($this->_spreadSheet));
+ // Add theme to ZIP file
+ $objZip->addFromString('xl/theme/theme1.xml', $this->getWriterPart('Theme')->writeTheme($this->spreadSheet));
- // Add string table to ZIP file
- $objZip->addFromString('xl/sharedStrings.xml', $this->getWriterPart('StringTable')->writeStringTable($this->_stringTable));
+ // Add string table to ZIP file
+ $objZip->addFromString('xl/sharedStrings.xml', $this->getWriterPart('StringTable')->writeStringTable($this->stringTable));
- // Add styles to ZIP file
- $objZip->addFromString('xl/styles.xml', $this->getWriterPart('Style')->writeStyles($this->_spreadSheet));
+ // Add styles to ZIP file
+ $objZip->addFromString('xl/styles.xml', $this->getWriterPart('Style')->writeStyles($this->spreadSheet));
- // Add workbook to ZIP file
- $objZip->addFromString('xl/workbook.xml', $this->getWriterPart('Workbook')->writeWorkbook($this->_spreadSheet, $this->_preCalculateFormulas));
+ // Add workbook to ZIP file
+ $objZip->addFromString('xl/workbook.xml', $this->getWriterPart('Workbook')->writeWorkbook($this->spreadSheet, $this->preCalculateFormulas));
- $chartCount = 0;
- // Add worksheets
- for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) {
- $objZip->addFromString('xl/worksheets/sheet' . ($i + 1) . '.xml', $this->getWriterPart('Worksheet')->writeWorksheet($this->_spreadSheet->getSheet($i), $this->_stringTable, $this->_includeCharts));
- if ($this->_includeCharts) {
- $charts = $this->_spreadSheet->getSheet($i)->getChartCollection();
- if (count($charts) > 0) {
- foreach($charts as $chart) {
- $objZip->addFromString('xl/charts/chart' . ($chartCount + 1) . '.xml', $this->getWriterPart('Chart')->writeChart($chart));
- $chartCount++;
- }
- }
- }
- }
+ $chartCount = 0;
+ // Add worksheets
+ for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) {
+ $objZip->addFromString('xl/worksheets/sheet' . ($i + 1) . '.xml', $this->getWriterPart('Worksheet')->writeWorksheet($this->spreadSheet->getSheet($i), $this->stringTable, $this->includeCharts));
+ if ($this->includeCharts) {
+ $charts = $this->spreadSheet->getSheet($i)->getChartCollection();
+ if (count($charts) > 0) {
+ foreach ($charts as $chart) {
+ $objZip->addFromString('xl/charts/chart' . ($chartCount + 1) . '.xml', $this->getWriterPart('Chart')->writeChart($chart, $this->preCalculateFormulas));
+ $chartCount++;
+ }
+ }
+ }
+ }
- $chartRef1 = $chartRef2 = 0;
- // Add worksheet relationships (drawings, ...)
- for ($i = 0; $i < $this->_spreadSheet->getSheetCount(); ++$i) {
+ $chartRef1 = $chartRef2 = 0;
+ // Add worksheet relationships (drawings, ...)
+ for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) {
+ // Add relationships
+ $objZip->addFromString('xl/worksheets/_rels/sheet' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeWorksheetRelationships($this->spreadSheet->getSheet($i), ($i + 1), $this->includeCharts));
- // Add relationships
- $objZip->addFromString('xl/worksheets/_rels/sheet' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeWorksheetRelationships($this->_spreadSheet->getSheet($i), ($i + 1), $this->_includeCharts));
+ $drawings = $this->spreadSheet->getSheet($i)->getDrawingCollection();
+ $drawingCount = count($drawings);
+ if ($this->includeCharts) {
+ $chartCount = $this->spreadSheet->getSheet($i)->getChartCount();
+ }
- $drawings = $this->_spreadSheet->getSheet($i)->getDrawingCollection();
- $drawingCount = count($drawings);
- if ($this->_includeCharts) {
- $chartCount = $this->_spreadSheet->getSheet($i)->getChartCount();
- }
+ // Add drawing and image relationship parts
+ if (($drawingCount > 0) || ($chartCount > 0)) {
+ // Drawing relationships
+ $objZip->addFromString('xl/drawings/_rels/drawing' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeDrawingRelationships($this->spreadSheet->getSheet($i), $chartRef1, $this->includeCharts));
- // Add drawing and image relationship parts
- if (($drawingCount > 0) || ($chartCount > 0)) {
- // Drawing relationships
- $objZip->addFromString('xl/drawings/_rels/drawing' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeDrawingRelationships($this->_spreadSheet->getSheet($i),$chartRef1, $this->_includeCharts));
+ // Drawings
+ $objZip->addFromString('xl/drawings/drawing' . ($i + 1) . '.xml', $this->getWriterPart('Drawing')->writeDrawings($this->spreadSheet->getSheet($i), $chartRef2, $this->includeCharts));
+ }
- // Drawings
- $objZip->addFromString('xl/drawings/drawing' . ($i + 1) . '.xml', $this->getWriterPart('Drawing')->writeDrawings($this->_spreadSheet->getSheet($i),$chartRef2,$this->_includeCharts));
- }
+ // Add comment relationship parts
+ if (count($this->spreadSheet->getSheet($i)->getComments()) > 0) {
+ // VML Comments
+ $objZip->addFromString('xl/drawings/vmlDrawing' . ($i + 1) . '.vml', $this->getWriterPart('Comments')->writeVMLComments($this->spreadSheet->getSheet($i)));
- // Add comment relationship parts
- if (count($this->_spreadSheet->getSheet($i)->getComments()) > 0) {
- // VML Comments
- $objZip->addFromString('xl/drawings/vmlDrawing' . ($i + 1) . '.vml', $this->getWriterPart('Comments')->writeVMLComments($this->_spreadSheet->getSheet($i)));
+ // Comments
+ $objZip->addFromString('xl/comments' . ($i + 1) . '.xml', $this->getWriterPart('Comments')->writeComments($this->spreadSheet->getSheet($i)));
+ }
- // Comments
- $objZip->addFromString('xl/comments' . ($i + 1) . '.xml', $this->getWriterPart('Comments')->writeComments($this->_spreadSheet->getSheet($i)));
- }
+ // Add header/footer relationship parts
+ if (count($this->spreadSheet->getSheet($i)->getHeaderFooter()->getImages()) > 0) {
+ // VML Drawings
+ $objZip->addFromString('xl/drawings/vmlDrawingHF' . ($i + 1) . '.vml', $this->getWriterPart('Drawing')->writeVMLHeaderFooterImages($this->spreadSheet->getSheet($i)));
- // Add header/footer relationship parts
- if (count($this->_spreadSheet->getSheet($i)->getHeaderFooter()->getImages()) > 0) {
- // VML Drawings
- $objZip->addFromString('xl/drawings/vmlDrawingHF' . ($i + 1) . '.vml', $this->getWriterPart('Drawing')->writeVMLHeaderFooterImages($this->_spreadSheet->getSheet($i)));
+ // VML Drawing relationships
+ $objZip->addFromString('xl/drawings/_rels/vmlDrawingHF' . ($i + 1) . '.vml.rels', $this->getWriterPart('Rels')->writeHeaderFooterDrawingRelationships($this->spreadSheet->getSheet($i)));
- // VML Drawing relationships
- $objZip->addFromString('xl/drawings/_rels/vmlDrawingHF' . ($i + 1) . '.vml.rels', $this->getWriterPart('Rels')->writeHeaderFooterDrawingRelationships($this->_spreadSheet->getSheet($i)));
+ // Media
+ foreach ($this->spreadSheet->getSheet($i)->getHeaderFooter()->getImages() as $image) {
+ $objZip->addFromString('xl/media/' . $image->getIndexedFilename(), file_get_contents($image->getPath()));
+ }
+ }
+ }
- // Media
- foreach ($this->_spreadSheet->getSheet($i)->getHeaderFooter()->getImages() as $image) {
- $objZip->addFromString('xl/media/' . $image->getIndexedFilename(), file_get_contents($image->getPath()));
- }
- }
- }
+ // Add media
+ for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) {
+ if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) {
+ $imageContents = null;
+ $imagePath = $this->getDrawingHashTable()->getByIndex($i)->getPath();
+ if (strpos($imagePath, 'zip://') !== false) {
+ $imagePath = substr($imagePath, 6);
+ $imagePathSplitted = explode('#', $imagePath);
- // Add media
- for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) {
- if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) {
- $imageContents = null;
- $imagePath = $this->getDrawingHashTable()->getByIndex($i)->getPath();
- if (strpos($imagePath, 'zip://') !== false) {
- $imagePath = substr($imagePath, 6);
- $imagePathSplitted = explode('#', $imagePath);
+ $imageZip = new ZipArchive();
+ $imageZip->open($imagePathSplitted[0]);
+ $imageContents = $imageZip->getFromName($imagePathSplitted[1]);
+ $imageZip->close();
+ unset($imageZip);
+ } else {
+ $imageContents = file_get_contents($imagePath);
+ }
- $imageZip = new ZipArchive();
- $imageZip->open($imagePathSplitted[0]);
- $imageContents = $imageZip->getFromName($imagePathSplitted[1]);
- $imageZip->close();
- unset($imageZip);
- } else {
- $imageContents = file_get_contents($imagePath);
- }
+ $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents);
+ } elseif ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) {
+ ob_start();
+ call_user_func(
+ $this->getDrawingHashTable()->getByIndex($i)->getRenderingFunction(),
+ $this->getDrawingHashTable()->getByIndex($i)->getImageResource()
+ );
+ $imageContents = ob_get_contents();
+ ob_end_clean();
- $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents);
- } else if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) {
- ob_start();
- call_user_func(
- $this->getDrawingHashTable()->getByIndex($i)->getRenderingFunction(),
- $this->getDrawingHashTable()->getByIndex($i)->getImageResource()
- );
- $imageContents = ob_get_contents();
- ob_end_clean();
+ $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents);
+ }
+ }
- $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents);
- }
- }
+ PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType);
+ PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog);
- PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType);
- PHPExcel_Calculation::getInstance($this->_spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog);
+ // Close file
+ if ($objZip->close() === false) {
+ throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename.");
+ }
- // Close file
- if ($objZip->close() === false) {
- throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename.");
- }
+ // If a temporary file was used, copy it to the correct file stream
+ if ($originalFilename != $pFilename) {
+ if (copy($pFilename, $originalFilename) === false) {
+ throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename.");
+ }
+ @unlink($pFilename);
+ }
+ } else {
+ throw new PHPExcel_Writer_Exception("PHPExcel object unassigned.");
+ }
+ }
- // If a temporary file was used, copy it to the correct file stream
- if ($originalFilename != $pFilename) {
- if (copy($pFilename, $originalFilename) === false) {
- throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename.");
- }
- @unlink($pFilename);
- }
- } else {
- throw new PHPExcel_Writer_Exception("PHPExcel object unassigned.");
- }
- }
+ /**
+ * Get PHPExcel object
+ *
+ * @return PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function getPHPExcel()
+ {
+ if ($this->spreadSheet !== null) {
+ return $this->spreadSheet;
+ } else {
+ throw new PHPExcel_Writer_Exception("No PHPExcel object assigned.");
+ }
+ }
- /**
- * Get PHPExcel object
- *
- * @return PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function getPHPExcel() {
- if ($this->_spreadSheet !== null) {
- return $this->_spreadSheet;
- } else {
- throw new PHPExcel_Writer_Exception("No PHPExcel assigned.");
- }
- }
-
- /**
- * Set PHPExcel object
- *
- * @param PHPExcel $pPHPExcel PHPExcel object
- * @throws PHPExcel_Writer_Exception
- * @return PHPExcel_Writer_Excel2007
- */
- public function setPHPExcel(PHPExcel $pPHPExcel = null) {
- $this->_spreadSheet = $pPHPExcel;
- return $this;
- }
+ /**
+ * Set PHPExcel object
+ *
+ * @param PHPExcel $pPHPExcel PHPExcel object
+ * @throws PHPExcel_Writer_Exception
+ * @return PHPExcel_Writer_Excel2007
+ */
+ public function setPHPExcel(PHPExcel $pPHPExcel = null)
+ {
+ $this->spreadSheet = $pPHPExcel;
+ return $this;
+ }
/**
* Get string table
*
* @return string[]
*/
- public function getStringTable() {
- return $this->_stringTable;
+ public function getStringTable()
+ {
+ return $this->stringTable;
}
/**
@@ -451,8 +444,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getStyleHashTable() {
- return $this->_styleHashTable;
+ public function getStyleHashTable()
+ {
+ return $this->styleHashTable;
}
/**
@@ -460,8 +454,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getStylesConditionalHashTable() {
- return $this->_stylesConditionalHashTable;
+ public function getStylesConditionalHashTable()
+ {
+ return $this->stylesConditionalHashTable;
}
/**
@@ -469,8 +464,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getFillHashTable() {
- return $this->_fillHashTable;
+ public function getFillHashTable()
+ {
+ return $this->fillHashTable;
}
/**
@@ -478,8 +474,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getFontHashTable() {
- return $this->_fontHashTable;
+ public function getFontHashTable()
+ {
+ return $this->fontHashTable;
}
/**
@@ -487,8 +484,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getBordersHashTable() {
- return $this->_bordersHashTable;
+ public function getBordersHashTable()
+ {
+ return $this->bordersHashTable;
}
/**
@@ -496,8 +494,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getNumFmtHashTable() {
- return $this->_numFmtHashTable;
+ public function getNumFmtHashTable()
+ {
+ return $this->numFmtHashTable;
}
/**
@@ -505,8 +504,9 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return PHPExcel_HashTable
*/
- public function getDrawingHashTable() {
- return $this->_drawingHashTable;
+ public function getDrawingHashTable()
+ {
+ return $this->drawingHashTable;
}
/**
@@ -514,19 +514,20 @@ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPE
*
* @return boolean
*/
- public function getOffice2003Compatibility() {
- return $this->_office2003compatibility;
+ public function getOffice2003Compatibility()
+ {
+ return $this->office2003compatibility;
}
/**
* Set Office2003 compatibility
*
- * @param boolean $pValue Office2003 compatibility?
+ * @param boolean $pValue Office2003 compatibility?
* @return PHPExcel_Writer_Excel2007
*/
- public function setOffice2003Compatibility($pValue = false) {
- $this->_office2003compatibility = $pValue;
- return $this;
+ public function setOffice2003Compatibility($pValue = false)
+ {
+ $this->office2003compatibility = $pValue;
+ return $this;
}
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php
index 4846910f..92fa2150 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php
@@ -1,8 +1,9 @@
calculateCellValues = $calculateCellValues;
- /**
- * Write charts to XML format
- *
- * @param PHPExcel_Chart $pChart
- *
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeChart(PHPExcel_Chart $pChart = NULL) {
- // Create XML writer
- $objWriter = NULL;
- if ($this->getParentWriter()
- ->getUseDiskCaching()
- ) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()
- ->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
- // Ensure that data series values are up-to-date before we save
- $pChart->refresh();
-
- // XML header
- $objWriter->startDocument('1.0', 'UTF-8', 'yes');
-
- // c:chartSpace
- $objWriter->startElement('c:chartSpace');
- $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
- $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
- $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
-
- $objWriter->startElement('c:date1904');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
- $objWriter->startElement('c:lang');
- $objWriter->writeAttribute('val', "en-GB");
- $objWriter->endElement();
- $objWriter->startElement('c:roundedCorners');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $this->_writeAlternateContent($objWriter);
-
- $objWriter->startElement('c:chart');
-
- $this->_writeTitle($pChart->getTitle(), $objWriter);
-
- $objWriter->startElement('c:autoTitleDeleted');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $this->_writePlotArea(
- $pChart->getPlotArea(),
- $pChart->getXAxisLabel(),
- $pChart->getYAxisLabel(),
- $objWriter,
- $pChart->getWorksheet(),
- $pChart->getChartAxisX(),
- $pChart->getChartAxisY(),
- $pChart->getMajorGridlines(),
- $pChart->getMinorGridlines()
- );
-
- $this->_writeLegend($pChart->getLegend(), $objWriter);
-
- $objWriter->startElement('c:plotVisOnly');
- $objWriter->writeAttribute('val', 1);
- $objWriter->endElement();
-
- $objWriter->startElement('c:dispBlanksAs');
- $objWriter->writeAttribute('val', "gap");
- $objWriter->endElement();
-
- $objWriter->startElement('c:showDLblsOverMax');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- $this->_writePrintSettings($objWriter);
-
- $objWriter->endElement();
-
- // Return
- return $objWriter->getData();
- }
-
- /**
- * Write Chart Title
- *
- * @param PHPExcel_Chart_Title $title
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeTitle(PHPExcel_Chart_Title $title = NULL, $objWriter) {
- if (is_null($title)) {
- return;
- }
-
- $objWriter->startElement('c:title');
- $objWriter->startElement('c:tx');
- $objWriter->startElement('c:rich');
-
- $objWriter->startElement('a:bodyPr');
- $objWriter->endElement();
-
- $objWriter->startElement('a:lstStyle');
- $objWriter->endElement();
-
- $objWriter->startElement('a:p');
-
- $caption = $title->getCaption();
- if ((is_array($caption)) && (count($caption) > 0)) {
- $caption = $caption[0];
- }
- $this->getParentWriter()
- ->getWriterPart('stringtable')
- ->writeRichTextForCharts($objWriter, $caption, 'a');
-
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
-
- $layout = $title->getLayout();
- $this->_writeLayout($layout, $objWriter);
-
- $objWriter->startElement('c:overlay');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write Chart Legend
- *
- * @param PHPExcel_Chart_Legend $legend
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeLegend(PHPExcel_Chart_Legend $legend = NULL, $objWriter) {
- if (is_null($legend)) {
- return;
- }
-
- $objWriter->startElement('c:legend');
-
- $objWriter->startElement('c:legendPos');
- $objWriter->writeAttribute('val', $legend->getPosition());
- $objWriter->endElement();
-
- $layout = $legend->getLayout();
- $this->_writeLayout($layout, $objWriter);
-
- $objWriter->startElement('c:overlay');
- $objWriter->writeAttribute('val', ($legend->getOverlay()) ? '1' : '0');
- $objWriter->endElement();
-
- $objWriter->startElement('c:txPr');
- $objWriter->startElement('a:bodyPr');
- $objWriter->endElement();
-
- $objWriter->startElement('a:lstStyle');
- $objWriter->endElement();
-
- $objWriter->startElement('a:p');
- $objWriter->startElement('a:pPr');
- $objWriter->writeAttribute('rtl', 0);
-
- $objWriter->startElement('a:defRPr');
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->startElement('a:endParaRPr');
- $objWriter->writeAttribute('lang', "en-US");
- $objWriter->endElement();
-
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write Chart Plot Area
- *
- * @param PHPExcel_Chart_PlotArea $plotArea
- * @param PHPExcel_Chart_Title $xAxisLabel
- * @param PHPExcel_Chart_Title $yAxisLabel
- * @param PHPExcel_Chart_Axis $xAxis
- * @param PHPExcel_Chart_Axis $yAxis
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePlotArea(PHPExcel_Chart_PlotArea $plotArea,
- PHPExcel_Chart_Title $xAxisLabel = NULL,
- PHPExcel_Chart_Title $yAxisLabel = NULL,
- $objWriter,
- PHPExcel_Worksheet $pSheet,
- PHPExcel_Chart_Axis $xAxis,
- PHPExcel_Chart_Axis $yAxis,
- PHPExcel_Chart_GridLines $majorGridlines,
- PHPExcel_Chart_GridLines $minorGridlines
- ) {
- if (is_null($plotArea)) {
- return;
- }
-
- $id1 = $id2 = 0;
- $this->_seriesIndex = 0;
- $objWriter->startElement('c:plotArea');
-
- $layout = $plotArea->getLayout();
-
- $this->_writeLayout($layout, $objWriter);
-
- $chartTypes = self::_getChartType($plotArea);
- $catIsMultiLevelSeries = $valIsMultiLevelSeries = FALSE;
- $plotGroupingType = '';
- foreach ($chartTypes as $chartType) {
- $objWriter->startElement('c:' . $chartType);
-
- $groupCount = $plotArea->getPlotGroupCount();
- for ($i = 0; $i < $groupCount; ++$i) {
- $plotGroup = $plotArea->getPlotGroupByIndex($i);
- $groupType = $plotGroup->getPlotType();
- if ($groupType == $chartType) {
-
- $plotStyle = $plotGroup->getPlotStyle();
- if ($groupType === PHPExcel_Chart_DataSeries::TYPE_RADARCHART) {
- $objWriter->startElement('c:radarStyle');
- $objWriter->writeAttribute('val', $plotStyle);
- $objWriter->endElement();
- } elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) {
- $objWriter->startElement('c:scatterStyle');
- $objWriter->writeAttribute('val', $plotStyle);
- $objWriter->endElement();
- }
-
- $this->_writePlotGroup($plotGroup, $chartType, $objWriter, $catIsMultiLevelSeries, $valIsMultiLevelSeries, $plotGroupingType, $pSheet);
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
}
- }
-
- $this->_writeDataLbls($objWriter, $layout);
-
- if ($chartType === PHPExcel_Chart_DataSeries::TYPE_LINECHART) {
- // Line only, Line3D can't be smoothed
-
- $objWriter->startElement('c:smooth');
- $objWriter->writeAttribute('val', (integer) $plotGroup->getSmoothLine());
- $objWriter->endElement();
- } elseif (($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) ||
- ($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)
- ) {
-
- $objWriter->startElement('c:gapWidth');
- $objWriter->writeAttribute('val', 150);
- $objWriter->endElement();
-
- if ($plotGroupingType == 'percentStacked' ||
- $plotGroupingType == 'stacked'
- ) {
-
- $objWriter->startElement('c:overlap');
- $objWriter->writeAttribute('val', 100);
- $objWriter->endElement();
+ // Ensure that data series values are up-to-date before we save
+ if ($this->calculateCellValues) {
+ $pChart->refresh();
}
- } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
- $objWriter->startElement('c:bubbleScale');
- $objWriter->writeAttribute('val', 25);
- $objWriter->endElement();
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- $objWriter->startElement('c:showNegBubbles');
+ // c:chartSpace
+ $objWriter->startElement('c:chartSpace');
+ $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
+ $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
+ $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+
+ $objWriter->startElement('c:date1904');
$objWriter->writeAttribute('val', 0);
$objWriter->endElement();
- } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) {
-
- $objWriter->startElement('c:hiLowLines');
+ $objWriter->startElement('c:lang');
+ $objWriter->writeAttribute('val', "en-GB");
$objWriter->endElement();
-
- $objWriter->startElement('c:upDownBars');
-
- $objWriter->startElement('c:gapWidth');
- $objWriter->writeAttribute('val', 300);
- $objWriter->endElement();
-
- $objWriter->startElement('c:upBars');
- $objWriter->endElement();
-
- $objWriter->startElement('c:downBars');
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- // Generate 2 unique numbers to use for axId values
- // $id1 = $id2 = rand(10000000,99999999);
- // do {
- // $id2 = rand(10000000,99999999);
- // } while ($id1 == $id2);
- $id1 = '75091328';
- $id2 = '75089408';
-
- if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) &&
- ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) &&
- ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)
- ) {
-
- $objWriter->startElement('c:axId');
- $objWriter->writeAttribute('val', $id1);
- $objWriter->endElement();
- $objWriter->startElement('c:axId');
- $objWriter->writeAttribute('val', $id2);
- $objWriter->endElement();
- } else {
- $objWriter->startElement('c:firstSliceAng');
+ $objWriter->startElement('c:roundedCorners');
$objWriter->writeAttribute('val', 0);
$objWriter->endElement();
- if ($chartType === PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) {
+ $this->writeAlternateContent($objWriter);
- $objWriter->startElement('c:holeSize');
- $objWriter->writeAttribute('val', 50);
- $objWriter->endElement();
+ $objWriter->startElement('c:chart');
+
+ $this->writeTitle($pChart->getTitle(), $objWriter);
+
+ $objWriter->startElement('c:autoTitleDeleted');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $this->writePlotArea($pChart->getPlotArea(), $pChart->getXAxisLabel(), $pChart->getYAxisLabel(), $objWriter, $pChart->getWorksheet(), $pChart->getChartAxisX(), $pChart->getChartAxisY(), $pChart->getMajorGridlines(), $pChart->getMinorGridlines());
+
+ $this->writeLegend($pChart->getLegend(), $objWriter);
+
+ $objWriter->startElement('c:plotVisOnly');
+ $objWriter->writeAttribute('val', 1);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:dispBlanksAs');
+ $objWriter->writeAttribute('val', "gap");
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showDLblsOverMax');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $this->writePrintSettings($objWriter);
+
+ $objWriter->endElement();
+
+ // Return
+ return $objWriter->getData();
+ }
+
+ /**
+ * Write Chart Title
+ *
+ * @param PHPExcel_Chart_Title $title
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeTitle(PHPExcel_Chart_Title $title = null, $objWriter)
+ {
+ if (is_null($title)) {
+ return;
}
- }
- $objWriter->endElement();
- }
+ $objWriter->startElement('c:title');
+ $objWriter->startElement('c:tx');
+ $objWriter->startElement('c:rich');
- if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) &&
- ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) &&
- ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)
- ) {
-
- if ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
- $this->_writeValAx($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
- } else {
- $this->_writeCatAx($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis);
- }
-
- $this->_writeValAx($objWriter, $plotArea, $yAxisLabel, $chartType, $id1, $id2, $valIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
- }
-
- $objWriter->endElement();
- }
-
- /**
- * Write Data Labels
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Chart_Layout $chartLayout Chart layout
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDataLbls($objWriter, $chartLayout) {
- $objWriter->startElement('c:dLbls');
-
- $objWriter->startElement('c:showLegendKey');
- $showLegendKey = (empty($chartLayout)) ? 0 : $chartLayout->getShowLegendKey();
- $objWriter->writeAttribute('val', ((empty($showLegendKey)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showVal');
- $showVal = (empty($chartLayout)) ? 0 : $chartLayout->getShowVal();
- $objWriter->writeAttribute('val', ((empty($showVal)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showCatName');
- $showCatName = (empty($chartLayout)) ? 0 : $chartLayout->getShowCatName();
- $objWriter->writeAttribute('val', ((empty($showCatName)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showSerName');
- $showSerName = (empty($chartLayout)) ? 0 : $chartLayout->getShowSerName();
- $objWriter->writeAttribute('val', ((empty($showSerName)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showPercent');
- $showPercent = (empty($chartLayout)) ? 0 : $chartLayout->getShowPercent();
- $objWriter->writeAttribute('val', ((empty($showPercent)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showBubbleSize');
- $showBubbleSize = (empty($chartLayout)) ? 0 : $chartLayout->getShowBubbleSize();
- $objWriter->writeAttribute('val', ((empty($showBubbleSize)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->startElement('c:showLeaderLines');
- $showLeaderLines = (empty($chartLayout)) ? 1 : $chartLayout->getShowLeaderLines();
- $objWriter->writeAttribute('val', ((empty($showLeaderLines)) ? 0 : 1));
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write Category Axis
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Chart_PlotArea $plotArea
- * @param PHPExcel_Chart_Title $xAxisLabel
- * @param string $groupType Chart type
- * @param string $id1
- * @param string $id2
- * @param boolean $isMultiLevelSeries
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCatAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $xAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis) {
- $objWriter->startElement('c:catAx');
-
- if ($id1 > 0) {
- $objWriter->startElement('c:axId');
- $objWriter->writeAttribute('val', $id1);
- $objWriter->endElement();
- }
-
- $objWriter->startElement('c:scaling');
- $objWriter->startElement('c:orientation');
- $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('orientation'));
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->startElement('c:delete');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->startElement('c:axPos');
- $objWriter->writeAttribute('val', "b");
- $objWriter->endElement();
-
- if (!is_null($xAxisLabel)) {
- $objWriter->startElement('c:title');
- $objWriter->startElement('c:tx');
- $objWriter->startElement('c:rich');
-
- $objWriter->startElement('a:bodyPr');
- $objWriter->endElement();
-
- $objWriter->startElement('a:lstStyle');
- $objWriter->endElement();
-
- $objWriter->startElement('a:p');
- $objWriter->startElement('a:r');
-
- $caption = $xAxisLabel->getCaption();
- if (is_array($caption)) {
- $caption = $caption[0];
- }
- $objWriter->startElement('a:t');
- // $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption));
- $objWriter->endElement();
-
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
-
- $layout = $xAxisLabel->getLayout();
- $this->_writeLayout($layout, $objWriter);
-
- $objWriter->startElement('c:overlay');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- }
-
- $objWriter->startElement('c:numFmt');
- $objWriter->writeAttribute('formatCode', $yAxis->getAxisNumberFormat());
- $objWriter->writeAttribute('sourceLinked', $yAxis->getAxisNumberSourceLinked());
- $objWriter->endElement();
-
- $objWriter->startElement('c:majorTickMark');
- $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('major_tick_mark'));
- $objWriter->endElement();
-
- $objWriter->startElement('c:minorTickMark');
- $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('minor_tick_mark'));
- $objWriter->endElement();
-
- $objWriter->startElement('c:tickLblPos');
- $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('axis_labels'));
- $objWriter->endElement();
-
- if ($id2 > 0) {
- $objWriter->startElement('c:crossAx');
- $objWriter->writeAttribute('val', $id2);
- $objWriter->endElement();
-
- $objWriter->startElement('c:crosses');
- $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('horizontal_crosses'));
- $objWriter->endElement();
- }
-
- $objWriter->startElement('c:auto');
- $objWriter->writeAttribute('val', 1);
- $objWriter->endElement();
-
- $objWriter->startElement('c:lblAlgn');
- $objWriter->writeAttribute('val', "ctr");
- $objWriter->endElement();
-
- $objWriter->startElement('c:lblOffset');
- $objWriter->writeAttribute('val', 100);
- $objWriter->endElement();
-
- if ($isMultiLevelSeries) {
- $objWriter->startElement('c:noMultiLvlLbl');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
- }
- $objWriter->endElement();
- }
-
- /**
- * Write Value Axis
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Chart_PlotArea $plotArea
- * @param PHPExcel_Chart_Title $yAxisLabel
- * @param string $groupType Chart type
- * @param string $id1
- * @param string $id2
- * @param boolean $isMultiLevelSeries
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeValAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines) {
- $objWriter->startElement('c:valAx');
-
- if ($id2 > 0) {
- $objWriter->startElement('c:axId');
- $objWriter->writeAttribute('val', $id2);
- $objWriter->endElement();
- }
-
- $objWriter->startElement('c:scaling');
- $objWriter->startElement('c:orientation');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
-
- if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
- $objWriter->startElement('c:max');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('maximum'));
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getAxisOptionsProperty('minimum'))) {
- $objWriter->startElement('c:min');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minimum'));
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->startElement('c:delete');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->startElement('c:axPos');
- $objWriter->writeAttribute('val', "l");
- $objWriter->endElement();
-
- $objWriter->startElement('c:majorGridlines');
- $objWriter->startElement('c:spPr');
-
- if (!is_null($majorGridlines->getLineColorProperty('value'))) {
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', $majorGridlines->getLineStyleProperty('width'));
- $objWriter->startElement('a:solidFill');
- $objWriter->startElement("a:{$majorGridlines->getLineColorProperty('type')}");
- $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('alpha'));
- $objWriter->endElement(); //end alpha
- $objWriter->endElement(); //end srgbClr
- $objWriter->endElement(); //end solidFill
-
- $objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', $majorGridlines->getLineStyleProperty('dash'));
- $objWriter->endElement();
-
- if ($majorGridlines->getLineStyleProperty('join') == 'miter') {
- $objWriter->startElement('a:miter');
- $objWriter->writeAttribute('lim', '800000');
+ $objWriter->startElement('a:bodyPr');
$objWriter->endElement();
- } else {
- $objWriter->startElement('a:bevel');
+
+ $objWriter->startElement('a:lstStyle');
$objWriter->endElement();
- }
- if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) {
- $objWriter->startElement('a:headEnd');
- $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')));
- $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('head', 'w'));
- $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('head', 'len'));
+ $objWriter->startElement('a:p');
+
+ $caption = $title->getCaption();
+ if ((is_array($caption)) && (count($caption) > 0)) {
+ $caption = $caption[0];
+ }
+ $this->getParentWriter()->getWriterPart('stringtable')->writeRichTextForCharts($objWriter, $caption, 'a');
+
+ $objWriter->endElement();
$objWriter->endElement();
- }
-
- if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) {
- $objWriter->startElement('a:tailEnd');
- $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')));
- $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('end', 'w'));
- $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('end', 'len'));
$objWriter->endElement();
- }
- $objWriter->endElement(); //end ln
- }
- $objWriter->startElement('a:effectLst');
- if (!is_null($majorGridlines->getGlowSize())) {
- $objWriter->startElement('a:glow');
- $objWriter->writeAttribute('rad', $majorGridlines->getGlowSize());
- $objWriter->startElement("a:{$majorGridlines->getGlowColor('type')}");
- $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('alpha'));
- $objWriter->endElement(); //end alpha
- $objWriter->endElement(); //end schemeClr
- $objWriter->endElement(); //end glow
+ $this->writeLayout($title->getLayout(), $objWriter);
+
+ $objWriter->startElement('c:overlay');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
}
- if (!is_null($majorGridlines->getShadowProperty('presets'))) {
- $objWriter->startElement("a:{$majorGridlines->getShadowProperty('effect')}");
- if (!is_null($majorGridlines->getShadowProperty('blur'))) {
- $objWriter->writeAttribute('blurRad', $majorGridlines->getShadowProperty('blur'));
- }
- if (!is_null($majorGridlines->getShadowProperty('distance'))) {
- $objWriter->writeAttribute('dist', $majorGridlines->getShadowProperty('distance'));
- }
- if (!is_null($majorGridlines->getShadowProperty('direction'))) {
- $objWriter->writeAttribute('dir', $majorGridlines->getShadowProperty('direction'));
- }
- if (!is_null($majorGridlines->getShadowProperty('algn'))) {
- $objWriter->writeAttribute('algn', $majorGridlines->getShadowProperty('algn'));
- }
- if (!is_null($majorGridlines->getShadowProperty(array('size', 'sx')))) {
- $objWriter->writeAttribute('sx', $majorGridlines->getShadowProperty(array('size', 'sx')));
- }
- if (!is_null($majorGridlines->getShadowProperty(array('size', 'sy')))) {
- $objWriter->writeAttribute('sy', $majorGridlines->getShadowProperty(array('size', 'sy')));
- }
- if (!is_null($majorGridlines->getShadowProperty(array('size', 'kx')))) {
- $objWriter->writeAttribute('kx', $majorGridlines->getShadowProperty(array('size', 'kx')));
- }
- if (!is_null($majorGridlines->getShadowProperty('rotWithShape'))) {
- $objWriter->writeAttribute('rotWithShape', $majorGridlines->getShadowProperty('rotWithShape'));
- }
- $objWriter->startElement("a:{$majorGridlines->getShadowProperty(array('color', 'type'))}");
- $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'value')));
+ /**
+ * Write Chart Legend
+ *
+ * @param PHPExcel_Chart_Legend $legend
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeLegend(PHPExcel_Chart_Legend $legend = null, $objWriter)
+ {
+ if (is_null($legend)) {
+ return;
+ }
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'alpha')));
- $objWriter->endElement(); //end alpha
+ $objWriter->startElement('c:legend');
- $objWriter->endElement(); //end color:type
- $objWriter->endElement(); //end shadow
+ $objWriter->startElement('c:legendPos');
+ $objWriter->writeAttribute('val', $legend->getPosition());
+ $objWriter->endElement();
+
+ $this->writeLayout($legend->getLayout(), $objWriter);
+
+ $objWriter->startElement('c:overlay');
+ $objWriter->writeAttribute('val', ($legend->getOverlay()) ? '1' : '0');
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:txPr');
+ $objWriter->startElement('a:bodyPr');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:lstStyle');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:p');
+ $objWriter->startElement('a:pPr');
+ $objWriter->writeAttribute('rtl', 0);
+
+ $objWriter->startElement('a:defRPr');
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:endParaRPr');
+ $objWriter->writeAttribute('lang', "en-US");
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->endElement();
}
- if (!is_null($majorGridlines->getSoftEdgesSize())) {
- $objWriter->startElement('a:softEdge');
- $objWriter->writeAttribute('rad', $majorGridlines->getSoftEdgesSize());
- $objWriter->endElement(); //end softEdge
+ /**
+ * Write Chart Plot Area
+ *
+ * @param PHPExcel_Chart_PlotArea $plotArea
+ * @param PHPExcel_Chart_Title $xAxisLabel
+ * @param PHPExcel_Chart_Title $yAxisLabel
+ * @param PHPExcel_Chart_Axis $xAxis
+ * @param PHPExcel_Chart_Axis $yAxis
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePlotArea(PHPExcel_Chart_PlotArea $plotArea, PHPExcel_Chart_Title $xAxisLabel = null, PHPExcel_Chart_Title $yAxisLabel = null, $objWriter, PHPExcel_Worksheet $pSheet, PHPExcel_Chart_Axis $xAxis, PHPExcel_Chart_Axis $yAxis, PHPExcel_Chart_GridLines $majorGridlines, PHPExcel_Chart_GridLines $minorGridlines)
+ {
+ if (is_null($plotArea)) {
+ return;
+ }
+
+ $id1 = $id2 = 0;
+ $this->_seriesIndex = 0;
+ $objWriter->startElement('c:plotArea');
+
+ $layout = $plotArea->getLayout();
+
+ $this->writeLayout($layout, $objWriter);
+
+ $chartTypes = self::getChartType($plotArea);
+ $catIsMultiLevelSeries = $valIsMultiLevelSeries = false;
+ $plotGroupingType = '';
+ foreach ($chartTypes as $chartType) {
+ $objWriter->startElement('c:' . $chartType);
+
+ $groupCount = $plotArea->getPlotGroupCount();
+ for ($i = 0; $i < $groupCount; ++$i) {
+ $plotGroup = $plotArea->getPlotGroupByIndex($i);
+ $groupType = $plotGroup->getPlotType();
+ if ($groupType == $chartType) {
+ $plotStyle = $plotGroup->getPlotStyle();
+ if ($groupType === PHPExcel_Chart_DataSeries::TYPE_RADARCHART) {
+ $objWriter->startElement('c:radarStyle');
+ $objWriter->writeAttribute('val', $plotStyle);
+ $objWriter->endElement();
+ } elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) {
+ $objWriter->startElement('c:scatterStyle');
+ $objWriter->writeAttribute('val', $plotStyle);
+ $objWriter->endElement();
+ }
+
+ $this->writePlotGroup($plotGroup, $chartType, $objWriter, $catIsMultiLevelSeries, $valIsMultiLevelSeries, $plotGroupingType, $pSheet);
+ }
+ }
+
+ $this->writeDataLabels($objWriter, $layout);
+
+ if ($chartType === PHPExcel_Chart_DataSeries::TYPE_LINECHART) {
+ // Line only, Line3D can't be smoothed
+
+ $objWriter->startElement('c:smooth');
+ $objWriter->writeAttribute('val', (integer) $plotGroup->getSmoothLine());
+ $objWriter->endElement();
+ } elseif (($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) ||($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)) {
+ $objWriter->startElement('c:gapWidth');
+ $objWriter->writeAttribute('val', 150);
+ $objWriter->endElement();
+
+ if ($plotGroupingType == 'percentStacked' || $plotGroupingType == 'stacked') {
+ $objWriter->startElement('c:overlap');
+ $objWriter->writeAttribute('val', 100);
+ $objWriter->endElement();
+ }
+ } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
+ $objWriter->startElement('c:bubbleScale');
+ $objWriter->writeAttribute('val', 25);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showNegBubbles');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+ } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) {
+ $objWriter->startElement('c:hiLowLines');
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:upDownBars');
+
+ $objWriter->startElement('c:gapWidth');
+ $objWriter->writeAttribute('val', 300);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:upBars');
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:downBars');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ // Generate 2 unique numbers to use for axId values
+ // $id1 = $id2 = rand(10000000,99999999);
+ // do {
+ // $id2 = rand(10000000,99999999);
+ // } while ($id1 == $id2);
+ $id1 = '75091328';
+ $id2 = '75089408';
+
+ if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
+ $objWriter->startElement('c:axId');
+ $objWriter->writeAttribute('val', $id1);
+ $objWriter->endElement();
+ $objWriter->startElement('c:axId');
+ $objWriter->writeAttribute('val', $id2);
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('c:firstSliceAng');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ if ($chartType === PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) {
+ $objWriter->startElement('c:holeSize');
+ $objWriter->writeAttribute('val', 50);
+ $objWriter->endElement();
+ }
+ }
+
+ $objWriter->endElement();
+ }
+
+ if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
+ if ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
+ $this->writeValueAxis($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
+ } else {
+ $this->writeCategoryAxis($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis);
+ }
+
+ $this->writeValueAxis($objWriter, $plotArea, $yAxisLabel, $chartType, $id1, $id2, $valIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
+ }
+
+ $objWriter->endElement();
}
- $objWriter->endElement(); //end effectLst
- $objWriter->endElement(); //end spPr
- $objWriter->endElement(); //end majorGridLines
+ /**
+ * Write Data Labels
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Chart_Layout $chartLayout Chart layout
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDataLabels($objWriter, $chartLayout)
+ {
+ $objWriter->startElement('c:dLbls');
- if ($minorGridlines->getObjectState()) {
- $objWriter->startElement('c:minorGridlines');
- $objWriter->startElement('c:spPr');
+ $objWriter->startElement('c:showLegendKey');
+ $showLegendKey = (empty($chartLayout)) ? 0 : $chartLayout->getShowLegendKey();
+ $objWriter->writeAttribute('val', ((empty($showLegendKey)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showVal');
+ $showVal = (empty($chartLayout)) ? 0 : $chartLayout->getShowVal();
+ $objWriter->writeAttribute('val', ((empty($showVal)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showCatName');
+ $showCatName = (empty($chartLayout)) ? 0 : $chartLayout->getShowCatName();
+ $objWriter->writeAttribute('val', ((empty($showCatName)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showSerName');
+ $showSerName = (empty($chartLayout)) ? 0 : $chartLayout->getShowSerName();
+ $objWriter->writeAttribute('val', ((empty($showSerName)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showPercent');
+ $showPercent = (empty($chartLayout)) ? 0 : $chartLayout->getShowPercent();
+ $objWriter->writeAttribute('val', ((empty($showPercent)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showBubbleSize');
+ $showBubbleSize = (empty($chartLayout)) ? 0 : $chartLayout->getShowBubbleSize();
+ $objWriter->writeAttribute('val', ((empty($showBubbleSize)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:showLeaderLines');
+ $showLeaderLines = (empty($chartLayout)) ? 1 : $chartLayout->getShowLeaderLines();
+ $objWriter->writeAttribute('val', ((empty($showLeaderLines)) ? 0 : 1));
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Category Axis
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Chart_PlotArea $plotArea
+ * @param PHPExcel_Chart_Title $xAxisLabel
+ * @param string $groupType Chart type
+ * @param string $id1
+ * @param string $id2
+ * @param boolean $isMultiLevelSeries
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCategoryAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $xAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis)
+ {
+ $objWriter->startElement('c:catAx');
+
+ if ($id1 > 0) {
+ $objWriter->startElement('c:axId');
+ $objWriter->writeAttribute('val', $id1);
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:scaling');
+ $objWriter->startElement('c:orientation');
+ $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('orientation'));
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:delete');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:axPos');
+ $objWriter->writeAttribute('val', "b");
+ $objWriter->endElement();
+
+ if (!is_null($xAxisLabel)) {
+ $objWriter->startElement('c:title');
+ $objWriter->startElement('c:tx');
+ $objWriter->startElement('c:rich');
+
+ $objWriter->startElement('a:bodyPr');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:lstStyle');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:p');
+ $objWriter->startElement('a:r');
+
+ $caption = $xAxisLabel->getCaption();
+ if (is_array($caption)) {
+ $caption = $caption[0];
+ }
+ $objWriter->startElement('a:t');
+ // $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption));
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $layout = $xAxisLabel->getLayout();
+ $this->writeLayout($layout, $objWriter);
+
+ $objWriter->startElement('c:overlay');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:numFmt');
+ $objWriter->writeAttribute('formatCode', $yAxis->getAxisNumberFormat());
+ $objWriter->writeAttribute('sourceLinked', $yAxis->getAxisNumberSourceLinked());
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:majorTickMark');
+ $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('major_tick_mark'));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:minorTickMark');
+ $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('minor_tick_mark'));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:tickLblPos');
+ $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('axis_labels'));
+ $objWriter->endElement();
+
+ if ($id2 > 0) {
+ $objWriter->startElement('c:crossAx');
+ $objWriter->writeAttribute('val', $id2);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:crosses');
+ $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('horizontal_crosses'));
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:auto');
+ $objWriter->writeAttribute('val', 1);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:lblAlgn');
+ $objWriter->writeAttribute('val', "ctr");
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:lblOffset');
+ $objWriter->writeAttribute('val', 100);
+ $objWriter->endElement();
+
+ if ($isMultiLevelSeries) {
+ $objWriter->startElement('c:noMultiLvlLbl');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+ }
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Value Axis
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Chart_PlotArea $plotArea
+ * @param PHPExcel_Chart_Title $yAxisLabel
+ * @param string $groupType Chart type
+ * @param string $id1
+ * @param string $id2
+ * @param boolean $isMultiLevelSeries
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeValueAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines)
+ {
+ $objWriter->startElement('c:valAx');
+
+ if ($id2 > 0) {
+ $objWriter->startElement('c:axId');
+ $objWriter->writeAttribute('val', $id2);
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:scaling');
+
+ if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) {
+ $objWriter->startElement('c:max');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('maximum'));
+ $objWriter->endElement();
+ }
+
+ if (!is_null($xAxis->getAxisOptionsProperty('minimum'))) {
+ $objWriter->startElement('c:min');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minimum'));
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:orientation');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation'));
+
+
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:delete');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:axPos');
+ $objWriter->writeAttribute('val', "l");
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:majorGridlines');
+ $objWriter->startElement('c:spPr');
+
+ if (!is_null($majorGridlines->getLineColorProperty('value'))) {
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', $majorGridlines->getLineStyleProperty('width'));
+ $objWriter->startElement('a:solidFill');
+ $objWriter->startElement("a:{$majorGridlines->getLineColorProperty('type')}");
+ $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('alpha'));
+ $objWriter->endElement(); //end alpha
+ $objWriter->endElement(); //end srgbClr
+ $objWriter->endElement(); //end solidFill
+
+ $objWriter->startElement('a:prstDash');
+ $objWriter->writeAttribute('val', $majorGridlines->getLineStyleProperty('dash'));
+ $objWriter->endElement();
+
+ if ($majorGridlines->getLineStyleProperty('join') == 'miter') {
+ $objWriter->startElement('a:miter');
+ $objWriter->writeAttribute('lim', '800000');
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('a:bevel');
+ $objWriter->endElement();
+ }
+
+ if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) {
+ $objWriter->startElement('a:headEnd');
+ $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')));
+ $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('head', 'w'));
+ $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('head', 'len'));
+ $objWriter->endElement();
+ }
+
+ if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) {
+ $objWriter->startElement('a:tailEnd');
+ $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')));
+ $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('end', 'w'));
+ $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('end', 'len'));
+ $objWriter->endElement();
+ }
+ $objWriter->endElement(); //end ln
+ }
+ $objWriter->startElement('a:effectLst');
+
+ if (!is_null($majorGridlines->getGlowSize())) {
+ $objWriter->startElement('a:glow');
+ $objWriter->writeAttribute('rad', $majorGridlines->getGlowSize());
+ $objWriter->startElement("a:{$majorGridlines->getGlowColor('type')}");
+ $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('alpha'));
+ $objWriter->endElement(); //end alpha
+ $objWriter->endElement(); //end schemeClr
+ $objWriter->endElement(); //end glow
+ }
+
+ if (!is_null($majorGridlines->getShadowProperty('presets'))) {
+ $objWriter->startElement("a:{$majorGridlines->getShadowProperty('effect')}");
+ if (!is_null($majorGridlines->getShadowProperty('blur'))) {
+ $objWriter->writeAttribute('blurRad', $majorGridlines->getShadowProperty('blur'));
+ }
+ if (!is_null($majorGridlines->getShadowProperty('distance'))) {
+ $objWriter->writeAttribute('dist', $majorGridlines->getShadowProperty('distance'));
+ }
+ if (!is_null($majorGridlines->getShadowProperty('direction'))) {
+ $objWriter->writeAttribute('dir', $majorGridlines->getShadowProperty('direction'));
+ }
+ if (!is_null($majorGridlines->getShadowProperty('algn'))) {
+ $objWriter->writeAttribute('algn', $majorGridlines->getShadowProperty('algn'));
+ }
+ if (!is_null($majorGridlines->getShadowProperty(array('size', 'sx')))) {
+ $objWriter->writeAttribute('sx', $majorGridlines->getShadowProperty(array('size', 'sx')));
+ }
+ if (!is_null($majorGridlines->getShadowProperty(array('size', 'sy')))) {
+ $objWriter->writeAttribute('sy', $majorGridlines->getShadowProperty(array('size', 'sy')));
+ }
+ if (!is_null($majorGridlines->getShadowProperty(array('size', 'kx')))) {
+ $objWriter->writeAttribute('kx', $majorGridlines->getShadowProperty(array('size', 'kx')));
+ }
+ if (!is_null($majorGridlines->getShadowProperty('rotWithShape'))) {
+ $objWriter->writeAttribute('rotWithShape', $majorGridlines->getShadowProperty('rotWithShape'));
+ }
+ $objWriter->startElement("a:{$majorGridlines->getShadowProperty(array('color', 'type'))}");
+ $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'value')));
+
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'alpha')));
+ $objWriter->endElement(); //end alpha
+
+ $objWriter->endElement(); //end color:type
+ $objWriter->endElement(); //end shadow
+ }
+
+ if (!is_null($majorGridlines->getSoftEdgesSize())) {
+ $objWriter->startElement('a:softEdge');
+ $objWriter->writeAttribute('rad', $majorGridlines->getSoftEdgesSize());
+ $objWriter->endElement(); //end softEdge
+ }
+
+ $objWriter->endElement(); //end effectLst
+ $objWriter->endElement(); //end spPr
+ $objWriter->endElement(); //end majorGridLines
+
+ if ($minorGridlines->getObjectState()) {
+ $objWriter->startElement('c:minorGridlines');
+ $objWriter->startElement('c:spPr');
+
+ if (!is_null($minorGridlines->getLineColorProperty('value'))) {
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', $minorGridlines->getLineStyleProperty('width'));
+ $objWriter->startElement('a:solidFill');
+ $objWriter->startElement("a:{$minorGridlines->getLineColorProperty('type')}");
+ $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('alpha'));
+ $objWriter->endElement(); //end alpha
+ $objWriter->endElement(); //end srgbClr
+ $objWriter->endElement(); //end solidFill
+
+ $objWriter->startElement('a:prstDash');
+ $objWriter->writeAttribute('val', $minorGridlines->getLineStyleProperty('dash'));
+ $objWriter->endElement();
+
+ if ($minorGridlines->getLineStyleProperty('join') == 'miter') {
+ $objWriter->startElement('a:miter');
+ $objWriter->writeAttribute('lim', '800000');
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('a:bevel');
+ $objWriter->endElement();
+ }
+
+ if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) {
+ $objWriter->startElement('a:headEnd');
+ $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')));
+ $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('head', 'w'));
+ $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('head', 'len'));
+ $objWriter->endElement();
+ }
+
+ if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) {
+ $objWriter->startElement('a:tailEnd');
+ $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')));
+ $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('end', 'w'));
+ $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('end', 'len'));
+ $objWriter->endElement();
+ }
+ $objWriter->endElement(); //end ln
+ }
+
+ $objWriter->startElement('a:effectLst');
+
+ if (!is_null($minorGridlines->getGlowSize())) {
+ $objWriter->startElement('a:glow');
+ $objWriter->writeAttribute('rad', $minorGridlines->getGlowSize());
+ $objWriter->startElement("a:{$minorGridlines->getGlowColor('type')}");
+ $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('alpha'));
+ $objWriter->endElement(); //end alpha
+ $objWriter->endElement(); //end schemeClr
+ $objWriter->endElement(); //end glow
+ }
+
+ if (!is_null($minorGridlines->getShadowProperty('presets'))) {
+ $objWriter->startElement("a:{$minorGridlines->getShadowProperty('effect')}");
+ if (!is_null($minorGridlines->getShadowProperty('blur'))) {
+ $objWriter->writeAttribute('blurRad', $minorGridlines->getShadowProperty('blur'));
+ }
+ if (!is_null($minorGridlines->getShadowProperty('distance'))) {
+ $objWriter->writeAttribute('dist', $minorGridlines->getShadowProperty('distance'));
+ }
+ if (!is_null($minorGridlines->getShadowProperty('direction'))) {
+ $objWriter->writeAttribute('dir', $minorGridlines->getShadowProperty('direction'));
+ }
+ if (!is_null($minorGridlines->getShadowProperty('algn'))) {
+ $objWriter->writeAttribute('algn', $minorGridlines->getShadowProperty('algn'));
+ }
+ if (!is_null($minorGridlines->getShadowProperty(array('size', 'sx')))) {
+ $objWriter->writeAttribute('sx', $minorGridlines->getShadowProperty(array('size', 'sx')));
+ }
+ if (!is_null($minorGridlines->getShadowProperty(array('size', 'sy')))) {
+ $objWriter->writeAttribute('sy', $minorGridlines->getShadowProperty(array('size', 'sy')));
+ }
+ if (!is_null($minorGridlines->getShadowProperty(array('size', 'kx')))) {
+ $objWriter->writeAttribute('kx', $minorGridlines->getShadowProperty(array('size', 'kx')));
+ }
+ if (!is_null($minorGridlines->getShadowProperty('rotWithShape'))) {
+ $objWriter->writeAttribute('rotWithShape', $minorGridlines->getShadowProperty('rotWithShape'));
+ }
+ $objWriter->startElement("a:{$minorGridlines->getShadowProperty(array('color', 'type'))}");
+ $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'value')));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'alpha')));
+ $objWriter->endElement(); //end alpha
+ $objWriter->endElement(); //end color:type
+ $objWriter->endElement(); //end shadow
+ }
+
+ if (!is_null($minorGridlines->getSoftEdgesSize())) {
+ $objWriter->startElement('a:softEdge');
+ $objWriter->writeAttribute('rad', $minorGridlines->getSoftEdgesSize());
+ $objWriter->endElement(); //end softEdge
+ }
+
+ $objWriter->endElement(); //end effectLst
+ $objWriter->endElement(); //end spPr
+ $objWriter->endElement(); //end minorGridLines
+ }
+
+ if (!is_null($yAxisLabel)) {
+ $objWriter->startElement('c:title');
+ $objWriter->startElement('c:tx');
+ $objWriter->startElement('c:rich');
+
+ $objWriter->startElement('a:bodyPr');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:lstStyle');
+ $objWriter->endElement();
+
+ $objWriter->startElement('a:p');
+ $objWriter->startElement('a:r');
+
+ $caption = $yAxisLabel->getCaption();
+ if (is_array($caption)) {
+ $caption = $caption[0];
+ }
+
+ $objWriter->startElement('a:t');
+ // $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption));
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
+ $layout = $yAxisLabel->getLayout();
+ $this->writeLayout($layout, $objWriter);
+ }
+
+ $objWriter->startElement('c:overlay');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:numFmt');
+ $objWriter->writeAttribute('formatCode', $xAxis->getAxisNumberFormat());
+ $objWriter->writeAttribute('sourceLinked', $xAxis->getAxisNumberSourceLinked());
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:majorTickMark');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_tick_mark'));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:minorTickMark');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_tick_mark'));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:tickLblPos');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('axis_labels'));
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:spPr');
+
+ if (!is_null($xAxis->getFillProperty('value'))) {
+ $objWriter->startElement('a:solidFill');
+ $objWriter->startElement("a:" . $xAxis->getFillProperty('type'));
+ $objWriter->writeAttribute('val', $xAxis->getFillProperty('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $xAxis->getFillProperty('alpha'));
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
- if (!is_null($minorGridlines->getLineColorProperty('value'))) {
$objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', $minorGridlines->getLineStyleProperty('width'));
- $objWriter->startElement('a:solidFill');
- $objWriter->startElement("a:{$minorGridlines->getLineColorProperty('type')}");
- $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('alpha'));
- $objWriter->endElement(); //end alpha
- $objWriter->endElement(); //end srgbClr
- $objWriter->endElement(); //end solidFill
+
+ $objWriter->writeAttribute('w', $xAxis->getLineStyleProperty('width'));
+ $objWriter->writeAttribute('cap', $xAxis->getLineStyleProperty('cap'));
+ $objWriter->writeAttribute('cmpd', $xAxis->getLineStyleProperty('compound'));
+
+ if (!is_null($xAxis->getLineProperty('value'))) {
+ $objWriter->startElement('a:solidFill');
+ $objWriter->startElement("a:" . $xAxis->getLineProperty('type'));
+ $objWriter->writeAttribute('val', $xAxis->getLineProperty('value'));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $xAxis->getLineProperty('alpha'));
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
$objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', $minorGridlines->getLineStyleProperty('dash'));
+ $objWriter->writeAttribute('val', $xAxis->getLineStyleProperty('dash'));
$objWriter->endElement();
- if ($minorGridlines->getLineStyleProperty('join') == 'miter') {
- $objWriter->startElement('a:miter');
- $objWriter->writeAttribute('lim', '800000');
- $objWriter->endElement();
+ if ($xAxis->getLineStyleProperty('join') == 'miter') {
+ $objWriter->startElement('a:miter');
+ $objWriter->writeAttribute('lim', '800000');
+ $objWriter->endElement();
} else {
- $objWriter->startElement('a:bevel');
- $objWriter->endElement();
+ $objWriter->startElement('a:bevel');
+ $objWriter->endElement();
}
- if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) {
- $objWriter->startElement('a:headEnd');
- $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')));
- $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('head', 'w'));
- $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('head', 'len'));
- $objWriter->endElement();
+ if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'head', 'type')))) {
+ $objWriter->startElement('a:headEnd');
+ $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'head', 'type')));
+ $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('head'));
+ $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('head'));
+ $objWriter->endElement();
}
- if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) {
- $objWriter->startElement('a:tailEnd');
- $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')));
- $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('end', 'w'));
- $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('end', 'len'));
- $objWriter->endElement();
+ if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'end', 'type')))) {
+ $objWriter->startElement('a:tailEnd');
+ $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'end', 'type')));
+ $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('end'));
+ $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('end'));
+ $objWriter->endElement();
}
- $objWriter->endElement(); //end ln
- }
- $objWriter->startElement('a:effectLst');
-
- if (!is_null($minorGridlines->getGlowSize())) {
- $objWriter->startElement('a:glow');
- $objWriter->writeAttribute('rad', $minorGridlines->getGlowSize());
- $objWriter->startElement("a:{$minorGridlines->getGlowColor('type')}");
- $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('alpha'));
- $objWriter->endElement(); //end alpha
- $objWriter->endElement(); //end schemeClr
- $objWriter->endElement(); //end glow
- }
-
- if (!is_null($minorGridlines->getShadowProperty('presets'))) {
- $objWriter->startElement("a:{$minorGridlines->getShadowProperty('effect')}");
- if (!is_null($minorGridlines->getShadowProperty('blur'))) {
- $objWriter->writeAttribute('blurRad', $minorGridlines->getShadowProperty('blur'));
- }
- if (!is_null($minorGridlines->getShadowProperty('distance'))) {
- $objWriter->writeAttribute('dist', $minorGridlines->getShadowProperty('distance'));
- }
- if (!is_null($minorGridlines->getShadowProperty('direction'))) {
- $objWriter->writeAttribute('dir', $minorGridlines->getShadowProperty('direction'));
- }
- if (!is_null($minorGridlines->getShadowProperty('algn'))) {
- $objWriter->writeAttribute('algn', $minorGridlines->getShadowProperty('algn'));
- }
- if (!is_null($minorGridlines->getShadowProperty(array('size', 'sx')))) {
- $objWriter->writeAttribute('sx', $minorGridlines->getShadowProperty(array('size', 'sx')));
- }
- if (!is_null($minorGridlines->getShadowProperty(array('size', 'sy')))) {
- $objWriter->writeAttribute('sy', $minorGridlines->getShadowProperty(array('size', 'sy')));
- }
- if (!is_null($minorGridlines->getShadowProperty(array('size', 'kx')))) {
- $objWriter->writeAttribute('kx', $minorGridlines->getShadowProperty(array('size', 'kx')));
- }
- if (!is_null($minorGridlines->getShadowProperty('rotWithShape'))) {
- $objWriter->writeAttribute('rotWithShape', $minorGridlines->getShadowProperty('rotWithShape'));
- }
- $objWriter->startElement("a:{$minorGridlines->getShadowProperty(array('color', 'type'))}");
- $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'value')));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'alpha')));
- $objWriter->endElement(); //end alpha
- $objWriter->endElement(); //end color:type
- $objWriter->endElement(); //end shadow
- }
-
- if (!is_null($minorGridlines->getSoftEdgesSize())) {
- $objWriter->startElement('a:softEdge');
- $objWriter->writeAttribute('rad', $minorGridlines->getSoftEdgesSize());
- $objWriter->endElement(); //end softEdge
- }
-
- $objWriter->endElement(); //end effectLst
- $objWriter->endElement(); //end spPr
- $objWriter->endElement(); //end minorGridLines
- }
-
- if (!is_null($yAxisLabel)) {
-
- $objWriter->startElement('c:title');
- $objWriter->startElement('c:tx');
- $objWriter->startElement('c:rich');
-
- $objWriter->startElement('a:bodyPr');
- $objWriter->endElement();
-
- $objWriter->startElement('a:lstStyle');
- $objWriter->endElement();
-
- $objWriter->startElement('a:p');
- $objWriter->startElement('a:r');
-
- $caption = $yAxisLabel->getCaption();
- if (is_array($caption)) {
- $caption = $caption[0];
- }
-
- $objWriter->startElement('a:t');
- // $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption));
- $objWriter->endElement();
-
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
-
- if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
- $layout = $yAxisLabel->getLayout();
- $this->_writeLayout($layout, $objWriter);
- }
-
- $objWriter->startElement('c:overlay');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- $objWriter->startElement('c:numFmt');
- $objWriter->writeAttribute('formatCode', $xAxis->getAxisNumberFormat());
- $objWriter->writeAttribute('sourceLinked', $xAxis->getAxisNumberSourceLinked());
- $objWriter->endElement();
-
- $objWriter->startElement('c:majorTickMark');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_tick_mark'));
- $objWriter->endElement();
-
- $objWriter->startElement('c:minorTickMark');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_tick_mark'));
- $objWriter->endElement();
-
- $objWriter->startElement('c:tickLblPos');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('axis_labels'));
- $objWriter->endElement();
-
- $objWriter->startElement('c:spPr');
-
- if (!is_null($xAxis->getFillProperty('value'))) {
- $objWriter->startElement('a:solidFill');
- $objWriter->startElement("a:" . $xAxis->getFillProperty('type'));
- $objWriter->writeAttribute('val', $xAxis->getFillProperty('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $xAxis->getFillProperty('alpha'));
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- }
-
- $objWriter->startElement('a:ln');
-
- $objWriter->writeAttribute('w', $xAxis->getLineStyleProperty('width'));
- $objWriter->writeAttribute('cap', $xAxis->getLineStyleProperty('cap'));
- $objWriter->writeAttribute('cmpd', $xAxis->getLineStyleProperty('compound'));
-
- if (!is_null($xAxis->getLineProperty('value'))) {
- $objWriter->startElement('a:solidFill');
- $objWriter->startElement("a:" . $xAxis->getLineProperty('type'));
- $objWriter->writeAttribute('val', $xAxis->getLineProperty('value'));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $xAxis->getLineProperty('alpha'));
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- }
-
- $objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', $xAxis->getLineStyleProperty('dash'));
- $objWriter->endElement();
-
- if ($xAxis->getLineStyleProperty('join') == 'miter') {
- $objWriter->startElement('a:miter');
- $objWriter->writeAttribute('lim', '800000');
- $objWriter->endElement();
- } else {
- $objWriter->startElement('a:bevel');
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'head', 'type')))) {
- $objWriter->startElement('a:headEnd');
- $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'head', 'type')));
- $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('head'));
- $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('head'));
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'end', 'type')))) {
- $objWriter->startElement('a:tailEnd');
- $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'end', 'type')));
- $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('end'));
- $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('end'));
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
-
- $objWriter->startElement('a:effectLst');
-
- if (!is_null($xAxis->getGlowProperty('size'))) {
- $objWriter->startElement('a:glow');
- $objWriter->writeAttribute('rad', $xAxis->getGlowProperty('size'));
- $objWriter->startElement("a:{$xAxis->getGlowProperty(array('color','type'))}");
- $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','value')));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','alpha')));
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getShadowProperty('presets'))) {
- $objWriter->startElement("a:{$xAxis->getShadowProperty('effect')}");
-
- if (!is_null($xAxis->getShadowProperty('blur'))) {
- $objWriter->writeAttribute('blurRad', $xAxis->getShadowProperty('blur'));
- }
- if (!is_null($xAxis->getShadowProperty('distance'))) {
- $objWriter->writeAttribute('dist', $xAxis->getShadowProperty('distance'));
- }
- if (!is_null($xAxis->getShadowProperty('direction'))) {
- $objWriter->writeAttribute('dir', $xAxis->getShadowProperty('direction'));
- }
- if (!is_null($xAxis->getShadowProperty('algn'))) {
- $objWriter->writeAttribute('algn', $xAxis->getShadowProperty('algn'));
- }
- if (!is_null($xAxis->getShadowProperty(array('size','sx')))) {
- $objWriter->writeAttribute('sx', $xAxis->getShadowProperty(array('size','sx')));
- }
- if (!is_null($xAxis->getShadowProperty(array('size','sy')))) {
- $objWriter->writeAttribute('sy', $xAxis->getShadowProperty(array('size','sy')));
- }
- if (!is_null($xAxis->getShadowProperty(array('size','kx')))) {
- $objWriter->writeAttribute('kx', $xAxis->getShadowProperty(array('size','kx')));
- }
- if (!is_null($xAxis->getShadowProperty('rotWithShape'))) {
- $objWriter->writeAttribute('rotWithShape', $xAxis->getShadowProperty('rotWithShape'));
- }
-
- $objWriter->startElement("a:{$xAxis->getShadowProperty(array('color','type'))}");
- $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','value')));
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','alpha')));
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getSoftEdgesSize())) {
- $objWriter->startElement('a:softEdge');
- $objWriter->writeAttribute('rad', $xAxis->getSoftEdgesSize());
- $objWriter->endElement();
- }
-
- $objWriter->endElement(); //effectList
- $objWriter->endElement(); //end spPr
-
- if ($id1 > 0) {
- $objWriter->startElement('c:crossAx');
- $objWriter->writeAttribute('val', $id2);
- $objWriter->endElement();
-
- if (!is_null($xAxis->getAxisOptionsProperty('horizontal_crosses_value'))) {
- $objWriter->startElement('c:crossesAt');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses_value'));
$objWriter->endElement();
- } else {
- $objWriter->startElement('c:crosses');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses'));
+
+ $objWriter->startElement('a:effectLst');
+
+ if (!is_null($xAxis->getGlowProperty('size'))) {
+ $objWriter->startElement('a:glow');
+ $objWriter->writeAttribute('rad', $xAxis->getGlowProperty('size'));
+ $objWriter->startElement("a:{$xAxis->getGlowProperty(array('color','type'))}");
+ $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','value')));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','alpha')));
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+
+ if (!is_null($xAxis->getShadowProperty('presets'))) {
+ $objWriter->startElement("a:{$xAxis->getShadowProperty('effect')}");
+
+ if (!is_null($xAxis->getShadowProperty('blur'))) {
+ $objWriter->writeAttribute('blurRad', $xAxis->getShadowProperty('blur'));
+ }
+ if (!is_null($xAxis->getShadowProperty('distance'))) {
+ $objWriter->writeAttribute('dist', $xAxis->getShadowProperty('distance'));
+ }
+ if (!is_null($xAxis->getShadowProperty('direction'))) {
+ $objWriter->writeAttribute('dir', $xAxis->getShadowProperty('direction'));
+ }
+ if (!is_null($xAxis->getShadowProperty('algn'))) {
+ $objWriter->writeAttribute('algn', $xAxis->getShadowProperty('algn'));
+ }
+ if (!is_null($xAxis->getShadowProperty(array('size','sx')))) {
+ $objWriter->writeAttribute('sx', $xAxis->getShadowProperty(array('size','sx')));
+ }
+ if (!is_null($xAxis->getShadowProperty(array('size','sy')))) {
+ $objWriter->writeAttribute('sy', $xAxis->getShadowProperty(array('size','sy')));
+ }
+ if (!is_null($xAxis->getShadowProperty(array('size','kx')))) {
+ $objWriter->writeAttribute('kx', $xAxis->getShadowProperty(array('size','kx')));
+ }
+ if (!is_null($xAxis->getShadowProperty('rotWithShape'))) {
+ $objWriter->writeAttribute('rotWithShape', $xAxis->getShadowProperty('rotWithShape'));
+ }
+
+ $objWriter->startElement("a:{$xAxis->getShadowProperty(array('color','type'))}");
+ $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','value')));
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','alpha')));
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ if (!is_null($xAxis->getSoftEdgesSize())) {
+ $objWriter->startElement('a:softEdge');
+ $objWriter->writeAttribute('rad', $xAxis->getSoftEdgesSize());
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement(); //effectList
+ $objWriter->endElement(); //end spPr
+
+ if ($id1 > 0) {
+ $objWriter->startElement('c:crossAx');
+ $objWriter->writeAttribute('val', $id2);
+ $objWriter->endElement();
+
+ if (!is_null($xAxis->getAxisOptionsProperty('horizontal_crosses_value'))) {
+ $objWriter->startElement('c:crossesAt');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses_value'));
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('c:crosses');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses'));
+ $objWriter->endElement();
+ }
+
+ $objWriter->startElement('c:crossBetween');
+ $objWriter->writeAttribute('val', "midCat");
+ $objWriter->endElement();
+
+ if (!is_null($xAxis->getAxisOptionsProperty('major_unit'))) {
+ $objWriter->startElement('c:majorUnit');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_unit'));
+ $objWriter->endElement();
+ }
+
+ if (!is_null($xAxis->getAxisOptionsProperty('minor_unit'))) {
+ $objWriter->startElement('c:minorUnit');
+ $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_unit'));
+ $objWriter->endElement();
+ }
+ }
+
+ if ($isMultiLevelSeries) {
+ if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
+ $objWriter->startElement('c:noMultiLvlLbl');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+ }
+ }
+
$objWriter->endElement();
- }
-
- $objWriter->startElement('c:crossBetween');
- $objWriter->writeAttribute('val', "midCat");
- $objWriter->endElement();
-
- if (!is_null($xAxis->getAxisOptionsProperty('major_unit'))) {
- $objWriter->startElement('c:majorUnit');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_unit'));
- $objWriter->endElement();
- }
-
- if (!is_null($xAxis->getAxisOptionsProperty('minor_unit'))) {
- $objWriter->startElement('c:minorUnit');
- $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_unit'));
- $objWriter->endElement();
- }
-
}
- if ($isMultiLevelSeries) {
- if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
- $objWriter->startElement('c:noMultiLvlLbl');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
- }
- }
+ /**
+ * Get the data series type(s) for a chart plot series
+ *
+ * @param PHPExcel_Chart_PlotArea $plotArea
+ *
+ * @return string|array
+ * @throws PHPExcel_Writer_Exception
+ */
+ private static function getChartType($plotArea)
+ {
+ $groupCount = $plotArea->getPlotGroupCount();
- $objWriter->endElement();
-
- }
-
- /**
- * Get the data series type(s) for a chart plot series
- *
- * @param PHPExcel_Chart_PlotArea $plotArea
- *
- * @return string|array
- * @throws PHPExcel_Writer_Exception
- */
- private
- static function _getChartType($plotArea) {
- $groupCount = $plotArea->getPlotGroupCount();
-
- if ($groupCount == 1) {
- $chartType = array(
- $plotArea->getPlotGroupByIndex(0)
- ->getPlotType()
- );
- } else {
- $chartTypes = array();
- for ($i = 0; $i < $groupCount; ++$i) {
- $chartTypes[] = $plotArea->getPlotGroupByIndex($i)
- ->getPlotType();
- }
- $chartType = array_unique($chartTypes);
- if (count($chartTypes) == 0) {
- throw new PHPExcel_Writer_Exception('Chart is not yet implemented');
- }
- }
-
- return $chartType;
- }
-
- /**
- * Write Plot Group (series of related plots)
- *
- * @param PHPExcel_Chart_DataSeries $plotGroup
- * @param string $groupType Type of plot for dataseries
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param boolean &$catIsMultiLevelSeries Is category a multi-series category
- * @param boolean &$valIsMultiLevelSeries Is value set a multi-series set
- * @param string &$plotGroupingType Type of grouping for multi-series values
- * @param PHPExcel_Worksheet $pSheet
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePlotGroup($plotGroup,
- $groupType,
- $objWriter,
- &$catIsMultiLevelSeries,
- &$valIsMultiLevelSeries,
- &$plotGroupingType,
- PHPExcel_Worksheet $pSheet
- ) {
- if (is_null($plotGroup)) {
- return;
- }
-
- if (($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)
- ) {
- $objWriter->startElement('c:barDir');
- $objWriter->writeAttribute('val', $plotGroup->getPlotDirection());
- $objWriter->endElement();
- }
-
- if (!is_null($plotGroup->getPlotGrouping())) {
- $plotGroupingType = $plotGroup->getPlotGrouping();
- $objWriter->startElement('c:grouping');
- $objWriter->writeAttribute('val', $plotGroupingType);
- $objWriter->endElement();
- }
-
- // Get these details before the loop, because we can use the count to check for varyColors
- $plotSeriesOrder = $plotGroup->getPlotOrder();
- $plotSeriesCount = count($plotSeriesOrder);
-
- if (($groupType !== PHPExcel_Chart_DataSeries::TYPE_RADARCHART) &&
- ($groupType !== PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)
- ) {
-
- if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_LINECHART) {
- if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) ||
- ($plotSeriesCount > 1)
- ) {
- $objWriter->startElement('c:varyColors');
- $objWriter->writeAttribute('val', 1);
- $objWriter->endElement();
+ if ($groupCount == 1) {
+ $chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType());
} else {
- $objWriter->startElement('c:varyColors');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
+ $chartTypes = array();
+ for ($i = 0; $i < $groupCount; ++$i) {
+ $chartTypes[] = $plotArea->getPlotGroupByIndex($i)->getPlotType();
+ }
+ $chartType = array_unique($chartTypes);
+ if (count($chartTypes) == 0) {
+ throw new PHPExcel_Writer_Exception('Chart is not yet implemented');
+ }
}
- }
+
+ return $chartType;
}
- foreach ($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) {
- $objWriter->startElement('c:ser');
+ /**
+ * Write Plot Group (series of related plots)
+ *
+ * @param PHPExcel_Chart_DataSeries $plotGroup
+ * @param string $groupType Type of plot for dataseries
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param boolean &$catIsMultiLevelSeries Is category a multi-series category
+ * @param boolean &$valIsMultiLevelSeries Is value set a multi-series set
+ * @param string &$plotGroupingType Type of grouping for multi-series values
+ * @param PHPExcel_Worksheet $pSheet
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePlotGroup($plotGroup, $groupType, $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType, PHPExcel_Worksheet $pSheet)
+ {
+ if (is_null($plotGroup)) {
+ return;
+ }
- $objWriter->startElement('c:idx');
- $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesIdx);
- $objWriter->endElement();
+ if (($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)) {
+ $objWriter->startElement('c:barDir');
+ $objWriter->writeAttribute('val', $plotGroup->getPlotDirection());
+ $objWriter->endElement();
+ }
- $objWriter->startElement('c:order');
- $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesRef);
- $objWriter->endElement();
+ if (!is_null($plotGroup->getPlotGrouping())) {
+ $plotGroupingType = $plotGroup->getPlotGrouping();
+ $objWriter->startElement('c:grouping');
+ $objWriter->writeAttribute('val', $plotGroupingType);
+ $objWriter->endElement();
+ }
- if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)
- ) {
+ // Get these details before the loop, because we can use the count to check for varyColors
+ $plotSeriesOrder = $plotGroup->getPlotOrder();
+ $plotSeriesCount = count($plotSeriesOrder);
- $objWriter->startElement('c:dPt');
- $objWriter->startElement('c:idx');
- $objWriter->writeAttribute('val', 3);
+ if (($groupType !== PHPExcel_Chart_DataSeries::TYPE_RADARCHART) && ($groupType !== PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)) {
+ if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_LINECHART) {
+ if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) || ($plotSeriesCount > 1)) {
+ $objWriter->startElement('c:varyColors');
+ $objWriter->writeAttribute('val', 1);
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('c:varyColors');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+ }
+ }
+ }
+
+ foreach ($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) {
+ $objWriter->startElement('c:ser');
+
+ $objWriter->startElement('c:idx');
+ $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesIdx);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:order');
+ $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesRef);
+ $objWriter->endElement();
+
+ if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
+ $objWriter->startElement('c:dPt');
+ $objWriter->startElement('c:idx');
+ $objWriter->writeAttribute('val', 3);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:bubble3D');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:spPr');
+ $objWriter->startElement('a:solidFill');
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', 'FF9900');
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+
+ // Labels
+ $plotSeriesLabel = $plotGroup->getPlotLabelByIndex($plotSeriesRef);
+ if ($plotSeriesLabel && ($plotSeriesLabel->getPointCount() > 0)) {
+ $objWriter->startElement('c:tx');
+ $objWriter->startElement('c:strRef');
+ $this->writePlotSeriesLabel($plotSeriesLabel, $objWriter);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+
+ // Formatting for the points
+ if (($groupType == PHPExcel_Chart_DataSeries::TYPE_LINECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)) {
+ $objWriter->startElement('c:spPr');
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', 12700);
+ if ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) {
+ $objWriter->startElement('a:noFill');
+ $objWriter->endElement();
+ }
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+
+ $plotSeriesValues = $plotGroup->getPlotValuesByIndex($plotSeriesRef);
+ if ($plotSeriesValues) {
+ $plotSeriesMarker = $plotSeriesValues->getPointMarker();
+ if ($plotSeriesMarker) {
+ $objWriter->startElement('c:marker');
+ $objWriter->startElement('c:symbol');
+ $objWriter->writeAttribute('val', $plotSeriesMarker);
+ $objWriter->endElement();
+
+ if ($plotSeriesMarker !== 'none') {
+ $objWriter->startElement('c:size');
+ $objWriter->writeAttribute('val', 3);
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART)) {
+ $objWriter->startElement('c:invertIfNegative');
+ $objWriter->writeAttribute('val', 0);
+ $objWriter->endElement();
+ }
+
+ // Category Labels
+ $plotSeriesCategory = $plotGroup->getPlotCategoryByIndex($plotSeriesRef);
+ if ($plotSeriesCategory && ($plotSeriesCategory->getPointCount() > 0)) {
+ $catIsMultiLevelSeries = $catIsMultiLevelSeries || $plotSeriesCategory->isMultiLevelSeries();
+
+ if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
+ if (!is_null($plotGroup->getPlotStyle())) {
+ $plotStyle = $plotGroup->getPlotStyle();
+ if ($plotStyle) {
+ $objWriter->startElement('c:explosion');
+ $objWriter->writeAttribute('val', 25);
+ $objWriter->endElement();
+ }
+ }
+ }
+
+ if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)) {
+ $objWriter->startElement('c:xVal');
+ } else {
+ $objWriter->startElement('c:cat');
+ }
+
+ $this->writePlotSeriesValues($plotSeriesCategory, $objWriter, $groupType, 'str', $pSheet);
+ $objWriter->endElement();
+ }
+
+ // Values
+ if ($plotSeriesValues) {
+ $valIsMultiLevelSeries = $valIsMultiLevelSeries || $plotSeriesValues->isMultiLevelSeries();
+
+ if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)) {
+ $objWriter->startElement('c:yVal');
+ } else {
+ $objWriter->startElement('c:val');
+ }
+
+ $this->writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, 'num', $pSheet);
+ $objWriter->endElement();
+ }
+
+ if ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
+ $this->writeBubbles($plotSeriesValues, $objWriter, $pSheet);
+ }
+
+ $objWriter->endElement();
+ }
+
+ $this->_seriesIndex += $plotSeriesIdx + 1;
+ }
+
+ /**
+ * Write Plot Series Label
+ *
+ * @param PHPExcel_Chart_DataSeriesValues $plotSeriesLabel
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePlotSeriesLabel($plotSeriesLabel, $objWriter)
+ {
+ if (is_null($plotSeriesLabel)) {
+ return;
+ }
+
+ $objWriter->startElement('c:f');
+ $objWriter->writeRawData($plotSeriesLabel->getDataSource());
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:strCache');
+ $objWriter->startElement('c:ptCount');
+ $objWriter->writeAttribute('val', $plotSeriesLabel->getPointCount());
+ $objWriter->endElement();
+
+ foreach ($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) {
+ $objWriter->startElement('c:pt');
+ $objWriter->writeAttribute('idx', $plotLabelKey);
+
+ $objWriter->startElement('c:v');
+ $objWriter->writeRawData($plotLabelValue);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Plot Series Values
+ *
+ * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $groupType Type of plot for dataseries
+ * @param string $dataType Datatype of series values
+ * @param PHPExcel_Worksheet $pSheet
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, $dataType = 'str', PHPExcel_Worksheet $pSheet)
+ {
+ if (is_null($plotSeriesValues)) {
+ return;
+ }
+
+ if ($plotSeriesValues->isMultiLevelSeries()) {
+ $levelCount = $plotSeriesValues->multiLevelCount();
+
+ $objWriter->startElement('c:multiLvlStrRef');
+
+ $objWriter->startElement('c:f');
+ $objWriter->writeRawData($plotSeriesValues->getDataSource());
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:multiLvlStrCache');
+
+ $objWriter->startElement('c:ptCount');
+ $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
+ $objWriter->endElement();
+
+ for ($level = 0; $level < $levelCount; ++$level) {
+ $objWriter->startElement('c:lvl');
+
+ foreach ($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
+ if (isset($plotSeriesValue[$level])) {
+ $objWriter->startElement('c:pt');
+ $objWriter->writeAttribute('idx', $plotSeriesKey);
+
+ $objWriter->startElement('c:v');
+ $objWriter->writeRawData($plotSeriesValue[$level]);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+ }
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ } else {
+ $objWriter->startElement('c:' . $dataType . 'Ref');
+
+ $objWriter->startElement('c:f');
+ $objWriter->writeRawData($plotSeriesValues->getDataSource());
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:' . $dataType . 'Cache');
+
+ if (($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($groupType != PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
+ if (($plotSeriesValues->getFormatCode() !== null) && ($plotSeriesValues->getFormatCode() !== '')) {
+ $objWriter->startElement('c:formatCode');
+ $objWriter->writeRawData($plotSeriesValues->getFormatCode());
+ $objWriter->endElement();
+ }
+ }
+
+ $objWriter->startElement('c:ptCount');
+ $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
+ $objWriter->endElement();
+
+ $dataValues = $plotSeriesValues->getDataValues();
+ if (!empty($dataValues)) {
+ if (is_array($dataValues)) {
+ foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
+ $objWriter->startElement('c:pt');
+ $objWriter->writeAttribute('idx', $plotSeriesKey);
+
+ $objWriter->startElement('c:v');
+ $objWriter->writeRawData($plotSeriesValue);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+ }
+ }
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write Bubble Chart Details
+ *
+ * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeBubbles($plotSeriesValues, $objWriter, PHPExcel_Worksheet $pSheet)
+ {
+ if (is_null($plotSeriesValues)) {
+ return;
+ }
+
+ $objWriter->startElement('c:bubbleSize');
+ $objWriter->startElement('c:numLit');
+
+ $objWriter->startElement('c:formatCode');
+ $objWriter->writeRawData('General');
+ $objWriter->endElement();
+
+ $objWriter->startElement('c:ptCount');
+ $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
+ $objWriter->endElement();
+
+ $dataValues = $plotSeriesValues->getDataValues();
+ if (!empty($dataValues)) {
+ if (is_array($dataValues)) {
+ foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
+ $objWriter->startElement('c:pt');
+ $objWriter->writeAttribute('idx', $plotSeriesKey);
+ $objWriter->startElement('c:v');
+ $objWriter->writeRawData(1);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ }
+ }
+ }
+
+ $objWriter->endElement();
$objWriter->endElement();
$objWriter->startElement('c:bubble3D');
$objWriter->writeAttribute('val', 0);
$objWriter->endElement();
+ }
- $objWriter->startElement('c:spPr');
- $objWriter->startElement('a:solidFill');
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', 'FF9900');
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- }
+ /**
+ * Write Layout
+ *
+ * @param PHPExcel_Chart_Layout $layout
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeLayout(PHPExcel_Chart_Layout $layout = null, $objWriter)
+ {
+ $objWriter->startElement('c:layout');
- // Labels
- $plotSeriesLabel = $plotGroup->getPlotLabelByIndex($plotSeriesRef);
- if ($plotSeriesLabel && ($plotSeriesLabel->getPointCount() > 0)) {
- $objWriter->startElement('c:tx');
- $objWriter->startElement('c:strRef');
- $this->_writePlotSeriesLabel($plotSeriesLabel, $objWriter);
- $objWriter->endElement();
- $objWriter->endElement();
- }
+ if (!is_null($layout)) {
+ $objWriter->startElement('c:manualLayout');
- // Formatting for the points
- if (($groupType == PHPExcel_Chart_DataSeries::TYPE_LINECHART) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)
- ) {
- $objWriter->startElement('c:spPr');
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', 12700);
- if ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) {
- $objWriter->startElement('a:noFill');
- $objWriter->endElement();
- }
- $objWriter->endElement();
- $objWriter->endElement();
- }
-
- $plotSeriesValues = $plotGroup->getPlotValuesByIndex($plotSeriesRef);
- if ($plotSeriesValues) {
- $plotSeriesMarker = $plotSeriesValues->getPointMarker();
- if ($plotSeriesMarker) {
- $objWriter->startElement('c:marker');
- $objWriter->startElement('c:symbol');
- $objWriter->writeAttribute('val', $plotSeriesMarker);
- $objWriter->endElement();
-
- if ($plotSeriesMarker !== 'none') {
- $objWriter->startElement('c:size');
- $objWriter->writeAttribute('val', 3);
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) ||
- ($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) ||
- ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART)
- ) {
-
- $objWriter->startElement('c:invertIfNegative');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
- }
-
- // Category Labels
- $plotSeriesCategory = $plotGroup->getPlotCategoryByIndex($plotSeriesRef);
- if ($plotSeriesCategory && ($plotSeriesCategory->getPointCount() > 0)) {
- $catIsMultiLevelSeries = $catIsMultiLevelSeries || $plotSeriesCategory->isMultiLevelSeries();
-
- if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) ||
- ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)
- ) {
-
- if (!is_null($plotGroup->getPlotStyle())) {
- $plotStyle = $plotGroup->getPlotStyle();
- if ($plotStyle) {
- $objWriter->startElement('c:explosion');
- $objWriter->writeAttribute('val', 25);
- $objWriter->endElement();
+ $layoutTarget = $layout->getLayoutTarget();
+ if (!is_null($layoutTarget)) {
+ $objWriter->startElement('c:layoutTarget');
+ $objWriter->writeAttribute('val', $layoutTarget);
+ $objWriter->endElement();
}
- }
- }
- if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) ||
- ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)
- ) {
- $objWriter->startElement('c:xVal');
- } else {
- $objWriter->startElement('c:cat');
- }
+ $xMode = $layout->getXMode();
+ if (!is_null($xMode)) {
+ $objWriter->startElement('c:xMode');
+ $objWriter->writeAttribute('val', $xMode);
+ $objWriter->endElement();
+ }
- $this->_writePlotSeriesValues($plotSeriesCategory, $objWriter, $groupType, 'str', $pSheet);
- $objWriter->endElement();
- }
+ $yMode = $layout->getYMode();
+ if (!is_null($yMode)) {
+ $objWriter->startElement('c:yMode');
+ $objWriter->writeAttribute('val', $yMode);
+ $objWriter->endElement();
+ }
- // Values
- if ($plotSeriesValues) {
- $valIsMultiLevelSeries = $valIsMultiLevelSeries || $plotSeriesValues->isMultiLevelSeries();
+ $x = $layout->getXPosition();
+ if (!is_null($x)) {
+ $objWriter->startElement('c:x');
+ $objWriter->writeAttribute('val', $x);
+ $objWriter->endElement();
+ }
- if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) ||
- ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)
- ) {
- $objWriter->startElement('c:yVal');
- } else {
- $objWriter->startElement('c:val');
- }
+ $y = $layout->getYPosition();
+ if (!is_null($y)) {
+ $objWriter->startElement('c:y');
+ $objWriter->writeAttribute('val', $y);
+ $objWriter->endElement();
+ }
- $this->_writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, 'num', $pSheet);
- $objWriter->endElement();
- }
+ $w = $layout->getWidth();
+ if (!is_null($w)) {
+ $objWriter->startElement('c:w');
+ $objWriter->writeAttribute('val', $w);
+ $objWriter->endElement();
+ }
- if ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) {
- $this->_writeBubbles($plotSeriesValues, $objWriter, $pSheet);
- }
+ $h = $layout->getHeight();
+ if (!is_null($h)) {
+ $objWriter->startElement('c:h');
+ $objWriter->writeAttribute('val', $h);
+ $objWriter->endElement();
+ }
- $objWriter->endElement();
-
- }
-
- $this->_seriesIndex += $plotSeriesIdx + 1;
- }
-
- /**
- * Write Plot Series Label
- *
- * @param PHPExcel_Chart_DataSeriesValues $plotSeriesLabel
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePlotSeriesLabel($plotSeriesLabel, $objWriter) {
- if (is_null($plotSeriesLabel)) {
- return;
- }
-
- $objWriter->startElement('c:f');
- $objWriter->writeRawData($plotSeriesLabel->getDataSource());
- $objWriter->endElement();
-
- $objWriter->startElement('c:strCache');
- $objWriter->startElement('c:ptCount');
- $objWriter->writeAttribute('val', $plotSeriesLabel->getPointCount());
- $objWriter->endElement();
-
- foreach ($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) {
- $objWriter->startElement('c:pt');
- $objWriter->writeAttribute('idx', $plotLabelKey);
-
- $objWriter->startElement('c:v');
- $objWriter->writeRawData($plotLabelValue);
- $objWriter->endElement();
- $objWriter->endElement();
- }
- $objWriter->endElement();
-
- }
-
- /**
- * Write Plot Series Values
- *
- * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $groupType Type of plot for dataseries
- * @param string $dataType Datatype of series values
- * @param PHPExcel_Worksheet $pSheet
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePlotSeriesValues($plotSeriesValues,
- $objWriter,
- $groupType,
- $dataType = 'str',
- PHPExcel_Worksheet $pSheet
- ) {
- if (is_null($plotSeriesValues)) {
- return;
- }
-
- if ($plotSeriesValues->isMultiLevelSeries()) {
- $levelCount = $plotSeriesValues->multiLevelCount();
-
- $objWriter->startElement('c:multiLvlStrRef');
-
- $objWriter->startElement('c:f');
- $objWriter->writeRawData($plotSeriesValues->getDataSource());
- $objWriter->endElement();
-
- $objWriter->startElement('c:multiLvlStrCache');
-
- $objWriter->startElement('c:ptCount');
- $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
- $objWriter->endElement();
-
- for ($level = 0; $level < $levelCount; ++$level) {
- $objWriter->startElement('c:lvl');
-
- foreach ($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
- if (isset($plotSeriesValue[$level])) {
- $objWriter->startElement('c:pt');
- $objWriter->writeAttribute('idx', $plotSeriesKey);
-
- $objWriter->startElement('c:v');
- $objWriter->writeRawData($plotSeriesValue[$level]);
$objWriter->endElement();
- $objWriter->endElement();
- }
}
$objWriter->endElement();
- }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- } else {
- $objWriter->startElement('c:' . $dataType . 'Ref');
-
- $objWriter->startElement('c:f');
- $objWriter->writeRawData($plotSeriesValues->getDataSource());
- $objWriter->endElement();
-
- $objWriter->startElement('c:' . $dataType . 'Cache');
-
- if (($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART) &&
- ($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) &&
- ($groupType != PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)
- ) {
-
- if (($plotSeriesValues->getFormatCode() !== NULL) &&
- ($plotSeriesValues->getFormatCode() !== '')
- ) {
- $objWriter->startElement('c:formatCode');
- $objWriter->writeRawData($plotSeriesValues->getFormatCode());
- $objWriter->endElement();
- }
- }
-
- $objWriter->startElement('c:ptCount');
- $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
- $objWriter->endElement();
-
- $dataValues = $plotSeriesValues->getDataValues();
- if (!empty($dataValues)) {
- if (is_array($dataValues)) {
- foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
- $objWriter->startElement('c:pt');
- $objWriter->writeAttribute('idx', $plotSeriesKey);
-
- $objWriter->startElement('c:v');
- $objWriter->writeRawData($plotSeriesValue);
- $objWriter->endElement();
- $objWriter->endElement();
- }
- }
- }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write Bubble Chart Details
- *
- * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeBubbles($plotSeriesValues, $objWriter, PHPExcel_Worksheet $pSheet) {
- if (is_null($plotSeriesValues)) {
- return;
}
- $objWriter->startElement('c:bubbleSize');
- $objWriter->startElement('c:numLit');
+ /**
+ * Write Alternate Content block
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeAlternateContent($objWriter)
+ {
+ $objWriter->startElement('mc:AlternateContent');
+ $objWriter->writeAttribute('xmlns:mc', 'http://schemas.openxmlformats.org/markup-compatibility/2006');
- $objWriter->startElement('c:formatCode');
- $objWriter->writeRawData('General');
- $objWriter->endElement();
+ $objWriter->startElement('mc:Choice');
+ $objWriter->writeAttribute('xmlns:c14', 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart');
+ $objWriter->writeAttribute('Requires', 'c14');
- $objWriter->startElement('c:ptCount');
- $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount());
- $objWriter->endElement();
+ $objWriter->startElement('c14:style');
+ $objWriter->writeAttribute('val', '102');
+ $objWriter->endElement();
+ $objWriter->endElement();
- $dataValues = $plotSeriesValues->getDataValues();
- if (!empty($dataValues)) {
- if (is_array($dataValues)) {
- foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
- $objWriter->startElement('c:pt');
- $objWriter->writeAttribute('idx', $plotSeriesKey);
- $objWriter->startElement('c:v');
- $objWriter->writeRawData(1);
- $objWriter->endElement();
- $objWriter->endElement();
- }
- }
+ $objWriter->startElement('mc:Fallback');
+ $objWriter->startElement('c:style');
+ $objWriter->writeAttribute('val', '2');
+ $objWriter->endElement();
+ $objWriter->endElement();
+
+ $objWriter->endElement();
}
- $objWriter->endElement();
- $objWriter->endElement();
+ /**
+ * Write Printer Settings
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ *
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePrintSettings($objWriter)
+ {
+ $objWriter->startElement('c:printSettings');
- $objWriter->startElement('c:bubble3D');
- $objWriter->writeAttribute('val', 0);
- $objWriter->endElement();
- }
-
- /**
- * Write Layout
- *
- * @param PHPExcel_Chart_Layout $layout
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeLayout(PHPExcel_Chart_Layout $layout = NULL, $objWriter) {
- $objWriter->startElement('c:layout');
-
- if (!is_null($layout)) {
- $objWriter->startElement('c:manualLayout');
-
- $layoutTarget = $layout->getLayoutTarget();
- if (!is_null($layoutTarget)) {
- $objWriter->startElement('c:layoutTarget');
- $objWriter->writeAttribute('val', $layoutTarget);
+ $objWriter->startElement('c:headerFooter');
$objWriter->endElement();
- }
- $xMode = $layout->getXMode();
- if (!is_null($xMode)) {
- $objWriter->startElement('c:xMode');
- $objWriter->writeAttribute('val', $xMode);
+ $objWriter->startElement('c:pageMargins');
+ $objWriter->writeAttribute('footer', 0.3);
+ $objWriter->writeAttribute('header', 0.3);
+ $objWriter->writeAttribute('r', 0.7);
+ $objWriter->writeAttribute('l', 0.7);
+ $objWriter->writeAttribute('t', 0.75);
+ $objWriter->writeAttribute('b', 0.75);
$objWriter->endElement();
- }
- $yMode = $layout->getYMode();
- if (!is_null($yMode)) {
- $objWriter->startElement('c:yMode');
- $objWriter->writeAttribute('val', $yMode);
+ $objWriter->startElement('c:pageSetup');
+ $objWriter->writeAttribute('orientation', "portrait");
$objWriter->endElement();
- }
- $x = $layout->getXPosition();
- if (!is_null($x)) {
- $objWriter->startElement('c:x');
- $objWriter->writeAttribute('val', $x);
$objWriter->endElement();
- }
-
- $y = $layout->getYPosition();
- if (!is_null($y)) {
- $objWriter->startElement('c:y');
- $objWriter->writeAttribute('val', $y);
- $objWriter->endElement();
- }
-
- $w = $layout->getWidth();
- if (!is_null($w)) {
- $objWriter->startElement('c:w');
- $objWriter->writeAttribute('val', $w);
- $objWriter->endElement();
- }
-
- $h = $layout->getHeight();
- if (!is_null($h)) {
- $objWriter->startElement('c:h');
- $objWriter->writeAttribute('val', $h);
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
}
-
- $objWriter->endElement();
- }
-
- /**
- * Write Alternate Content block
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeAlternateContent($objWriter) {
- $objWriter->startElement('mc:AlternateContent');
- $objWriter->writeAttribute('xmlns:mc', 'http://schemas.openxmlformats.org/markup-compatibility/2006');
-
- $objWriter->startElement('mc:Choice');
- $objWriter->writeAttribute('xmlns:c14', 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart');
- $objWriter->writeAttribute('Requires', 'c14');
-
- $objWriter->startElement('c14:style');
- $objWriter->writeAttribute('val', '102');
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->startElement('mc:Fallback');
- $objWriter->startElement('c:style');
- $objWriter->writeAttribute('val', '2');
- $objWriter->endElement();
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write Printer Settings
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- *
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePrintSettings($objWriter) {
- $objWriter->startElement('c:printSettings');
-
- $objWriter->startElement('c:headerFooter');
- $objWriter->endElement();
-
- $objWriter->startElement('c:pageMargins');
- $objWriter->writeAttribute('footer', 0.3);
- $objWriter->writeAttribute('header', 0.3);
- $objWriter->writeAttribute('r', 0.7);
- $objWriter->writeAttribute('l', 0.7);
- $objWriter->writeAttribute('t', 0.75);
- $objWriter->writeAttribute('b', 0.75);
- $objWriter->endElement();
-
- $objWriter->startElement('c:pageSetup');
- $objWriter->writeAttribute('orientation', "portrait");
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Comments.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Comments.php
index dc809fa8..7139f6c4 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Comments.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Comments.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write comments to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeComments(PHPExcel_Worksheet $pWorksheet = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Comments cache
- $comments = $pWorksheet->getComments();
+ // Comments cache
+ $comments = $pWorksheet->getComments();
- // Authors cache
- $authors = array();
- $authorId = 0;
- foreach ($comments as $comment) {
- if (!isset($authors[$comment->getAuthor()])) {
- $authors[$comment->getAuthor()] = $authorId++;
- }
- }
+ // Authors cache
+ $authors = array();
+ $authorId = 0;
+ foreach ($comments as $comment) {
+ if (!isset($authors[$comment->getAuthor()])) {
+ $authors[$comment->getAuthor()] = $authorId++;
+ }
+ }
- // comments
- $objWriter->startElement('comments');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
+ // comments
+ $objWriter->startElement('comments');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
- // Loop through authors
- $objWriter->startElement('authors');
- foreach ($authors as $author => $index) {
- $objWriter->writeElement('author', $author);
- }
- $objWriter->endElement();
+ // Loop through authors
+ $objWriter->startElement('authors');
+ foreach ($authors as $author => $index) {
+ $objWriter->writeElement('author', $author);
+ }
+ $objWriter->endElement();
- // Loop through comments
- $objWriter->startElement('commentList');
- foreach ($comments as $key => $value) {
- $this->_writeComment($objWriter, $key, $value, $authors);
- }
- $objWriter->endElement();
+ // Loop through comments
+ $objWriter->startElement('commentList');
+ foreach ($comments as $key => $value) {
+ $this->writeComment($objWriter, $key, $value, $authors);
+ }
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write comment to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pCellReference Cell reference
- * @param PHPExcel_Comment $pComment Comment
- * @param array $pAuthors Array of authors
- * @throws PHPExcel_Writer_Exception
- */
- public function _writeComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null, $pAuthors = null)
- {
- // comment
- $objWriter->startElement('comment');
- $objWriter->writeAttribute('ref', $pCellReference);
- $objWriter->writeAttribute('authorId', $pAuthors[$pComment->getAuthor()]);
+ /**
+ * Write comment to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pCellReference Cell reference
+ * @param PHPExcel_Comment $pComment Comment
+ * @param array $pAuthors Array of authors
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null, $pAuthors = null)
+ {
+ // comment
+ $objWriter->startElement('comment');
+ $objWriter->writeAttribute('ref', $pCellReference);
+ $objWriter->writeAttribute('authorId', $pAuthors[$pComment->getAuthor()]);
- // text
- $objWriter->startElement('text');
- $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $pComment->getText());
- $objWriter->endElement();
+ // text
+ $objWriter->startElement('text');
+ $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $pComment->getText());
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write VML comments to XML format
- *
- * @param PHPExcel_Worksheet $pWorksheet
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeVMLComments(PHPExcel_Worksheet $pWorksheet = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write VML comments to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeVMLComments(PHPExcel_Worksheet $pWorksheet = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Comments cache
- $comments = $pWorksheet->getComments();
+ // Comments cache
+ $comments = $pWorksheet->getComments();
- // xml
- $objWriter->startElement('xml');
- $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml');
- $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office');
- $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel');
+ // xml
+ $objWriter->startElement('xml');
+ $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml');
+ $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office');
+ $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel');
- // o:shapelayout
- $objWriter->startElement('o:shapelayout');
- $objWriter->writeAttribute('v:ext', 'edit');
+ // o:shapelayout
+ $objWriter->startElement('o:shapelayout');
+ $objWriter->writeAttribute('v:ext', 'edit');
- // o:idmap
- $objWriter->startElement('o:idmap');
- $objWriter->writeAttribute('v:ext', 'edit');
- $objWriter->writeAttribute('data', '1');
- $objWriter->endElement();
+ // o:idmap
+ $objWriter->startElement('o:idmap');
+ $objWriter->writeAttribute('v:ext', 'edit');
+ $objWriter->writeAttribute('data', '1');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // v:shapetype
- $objWriter->startElement('v:shapetype');
- $objWriter->writeAttribute('id', '_x0000_t202');
- $objWriter->writeAttribute('coordsize', '21600,21600');
- $objWriter->writeAttribute('o:spt', '202');
- $objWriter->writeAttribute('path', 'm,l,21600r21600,l21600,xe');
+ // v:shapetype
+ $objWriter->startElement('v:shapetype');
+ $objWriter->writeAttribute('id', '_x0000_t202');
+ $objWriter->writeAttribute('coordsize', '21600,21600');
+ $objWriter->writeAttribute('o:spt', '202');
+ $objWriter->writeAttribute('path', 'm,l,21600r21600,l21600,xe');
- // v:stroke
- $objWriter->startElement('v:stroke');
- $objWriter->writeAttribute('joinstyle', 'miter');
- $objWriter->endElement();
+ // v:stroke
+ $objWriter->startElement('v:stroke');
+ $objWriter->writeAttribute('joinstyle', 'miter');
+ $objWriter->endElement();
- // v:path
- $objWriter->startElement('v:path');
- $objWriter->writeAttribute('gradientshapeok', 't');
- $objWriter->writeAttribute('o:connecttype', 'rect');
- $objWriter->endElement();
+ // v:path
+ $objWriter->startElement('v:path');
+ $objWriter->writeAttribute('gradientshapeok', 't');
+ $objWriter->writeAttribute('o:connecttype', 'rect');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // Loop through comments
- foreach ($comments as $key => $value) {
- $this->_writeVMLComment($objWriter, $key, $value);
- }
+ // Loop through comments
+ foreach ($comments as $key => $value) {
+ $this->writeVMLComment($objWriter, $key, $value);
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write VML comment to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pCellReference Cell reference
- * @param PHPExcel_Comment $pComment Comment
- * @throws PHPExcel_Writer_Exception
- */
- public function _writeVMLComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null)
- {
- // Metadata
- list($column, $row) = PHPExcel_Cell::coordinateFromString($pCellReference);
- $column = PHPExcel_Cell::columnIndexFromString($column);
- $id = 1024 + $column + $row;
- $id = substr($id, 0, 4);
+ /**
+ * Write VML comment to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pCellReference Cell reference
+ * @param PHPExcel_Comment $pComment Comment
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeVMLComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null)
+ {
+ // Metadata
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($pCellReference);
+ $column = PHPExcel_Cell::columnIndexFromString($column);
+ $id = 1024 + $column + $row;
+ $id = substr($id, 0, 4);
- // v:shape
- $objWriter->startElement('v:shape');
- $objWriter->writeAttribute('id', '_x0000_s' . $id);
- $objWriter->writeAttribute('type', '#_x0000_t202');
- $objWriter->writeAttribute('style', 'position:absolute;margin-left:' . $pComment->getMarginLeft() . ';margin-top:' . $pComment->getMarginTop() . ';width:' . $pComment->getWidth() . ';height:' . $pComment->getHeight() . ';z-index:1;visibility:' . ($pComment->getVisible() ? 'visible' : 'hidden'));
- $objWriter->writeAttribute('fillcolor', '#' . $pComment->getFillColor()->getRGB());
- $objWriter->writeAttribute('o:insetmode', 'auto');
+ // v:shape
+ $objWriter->startElement('v:shape');
+ $objWriter->writeAttribute('id', '_x0000_s' . $id);
+ $objWriter->writeAttribute('type', '#_x0000_t202');
+ $objWriter->writeAttribute('style', 'position:absolute;margin-left:' . $pComment->getMarginLeft() . ';margin-top:' . $pComment->getMarginTop() . ';width:' . $pComment->getWidth() . ';height:' . $pComment->getHeight() . ';z-index:1;visibility:' . ($pComment->getVisible() ? 'visible' : 'hidden'));
+ $objWriter->writeAttribute('fillcolor', '#' . $pComment->getFillColor()->getRGB());
+ $objWriter->writeAttribute('o:insetmode', 'auto');
- // v:fill
- $objWriter->startElement('v:fill');
- $objWriter->writeAttribute('color2', '#' . $pComment->getFillColor()->getRGB());
- $objWriter->endElement();
+ // v:fill
+ $objWriter->startElement('v:fill');
+ $objWriter->writeAttribute('color2', '#' . $pComment->getFillColor()->getRGB());
+ $objWriter->endElement();
- // v:shadow
- $objWriter->startElement('v:shadow');
- $objWriter->writeAttribute('on', 't');
- $objWriter->writeAttribute('color', 'black');
- $objWriter->writeAttribute('obscured', 't');
- $objWriter->endElement();
+ // v:shadow
+ $objWriter->startElement('v:shadow');
+ $objWriter->writeAttribute('on', 't');
+ $objWriter->writeAttribute('color', 'black');
+ $objWriter->writeAttribute('obscured', 't');
+ $objWriter->endElement();
- // v:path
- $objWriter->startElement('v:path');
- $objWriter->writeAttribute('o:connecttype', 'none');
- $objWriter->endElement();
+ // v:path
+ $objWriter->startElement('v:path');
+ $objWriter->writeAttribute('o:connecttype', 'none');
+ $objWriter->endElement();
- // v:textbox
- $objWriter->startElement('v:textbox');
- $objWriter->writeAttribute('style', 'mso-direction-alt:auto');
+ // v:textbox
+ $objWriter->startElement('v:textbox');
+ $objWriter->writeAttribute('style', 'mso-direction-alt:auto');
- // div
- $objWriter->startElement('div');
- $objWriter->writeAttribute('style', 'text-align:left');
- $objWriter->endElement();
+ // div
+ $objWriter->startElement('div');
+ $objWriter->writeAttribute('style', 'text-align:left');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // x:ClientData
- $objWriter->startElement('x:ClientData');
- $objWriter->writeAttribute('ObjectType', 'Note');
+ // x:ClientData
+ $objWriter->startElement('x:ClientData');
+ $objWriter->writeAttribute('ObjectType', 'Note');
- // x:MoveWithCells
- $objWriter->writeElement('x:MoveWithCells', '');
+ // x:MoveWithCells
+ $objWriter->writeElement('x:MoveWithCells', '');
- // x:SizeWithCells
- $objWriter->writeElement('x:SizeWithCells', '');
+ // x:SizeWithCells
+ $objWriter->writeElement('x:SizeWithCells', '');
- // x:Anchor
- //$objWriter->writeElement('x:Anchor', $column . ', 15, ' . ($row - 2) . ', 10, ' . ($column + 4) . ', 15, ' . ($row + 5) . ', 18');
+ // x:Anchor
+ //$objWriter->writeElement('x:Anchor', $column . ', 15, ' . ($row - 2) . ', 10, ' . ($column + 4) . ', 15, ' . ($row + 5) . ', 18');
- // x:AutoFill
- $objWriter->writeElement('x:AutoFill', 'False');
+ // x:AutoFill
+ $objWriter->writeElement('x:AutoFill', 'False');
- // x:Row
- $objWriter->writeElement('x:Row', ($row - 1));
+ // x:Row
+ $objWriter->writeElement('x:Row', ($row - 1));
- // x:Column
- $objWriter->writeElement('x:Column', ($column - 1));
+ // x:Column
+ $objWriter->writeElement('x:Column', ($column - 1));
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/ContentTypes.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/ContentTypes.php
index 55785365..0d911899 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/ContentTypes.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/ContentTypes.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write content types to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @param boolean $includeCharts Flag indicating if we should include drawing details for charts
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeContentTypes(PHPExcel $pPHPExcel = null, $includeCharts = false)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Types
- $objWriter->startElement('Types');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/content-types');
+ // Types
+ $objWriter->startElement('Types');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/content-types');
- // Theme
- $this->_writeOverrideContentType(
- $objWriter, '/xl/theme/theme1.xml', 'application/vnd.openxmlformats-officedocument.theme+xml'
- );
+ // Theme
+ $this->writeOverrideContentType($objWriter, '/xl/theme/theme1.xml', 'application/vnd.openxmlformats-officedocument.theme+xml');
- // Styles
- $this->_writeOverrideContentType(
- $objWriter, '/xl/styles.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml'
- );
+ // Styles
+ $this->writeOverrideContentType($objWriter, '/xl/styles.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml');
- // Rels
- $this->_writeDefaultContentType(
- $objWriter, 'rels', 'application/vnd.openxmlformats-package.relationships+xml'
- );
+ // Rels
+ $this->writeDefaultContentType($objWriter, 'rels', 'application/vnd.openxmlformats-package.relationships+xml');
- // XML
- $this->_writeDefaultContentType(
- $objWriter, 'xml', 'application/xml'
- );
+ // XML
+ $this->writeDefaultContentType($objWriter, 'xml', 'application/xml');
- // VML
- $this->_writeDefaultContentType(
- $objWriter, 'vml', 'application/vnd.openxmlformats-officedocument.vmlDrawing'
- );
+ // VML
+ $this->writeDefaultContentType($objWriter, 'vml', 'application/vnd.openxmlformats-officedocument.vmlDrawing');
- // Workbook
- if($pPHPExcel->hasMacros()){ //Macros in workbook ?
- // Yes : not standard content but "macroEnabled"
- $this->_writeOverrideContentType(
- $objWriter, '/xl/workbook.xml', 'application/vnd.ms-excel.sheet.macroEnabled.main+xml'
- );
- //... and define a new type for the VBA project
- $this->_writeDefaultContentType(
- $objWriter, 'bin', 'application/vnd.ms-office.vbaProject'
- );
- if($pPHPExcel->hasMacrosCertificate()){// signed macros ?
- // Yes : add needed information
- $this->_writeOverrideContentType(
- $objWriter, '/xl/vbaProjectSignature.bin', 'application/vnd.ms-office.vbaProjectSignature'
- );
- }
- }else{// no macros in workbook, so standard type
- $this->_writeOverrideContentType(
- $objWriter, '/xl/workbook.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml'
- );
- }
+ // Workbook
+ if ($pPHPExcel->hasMacros()) { //Macros in workbook ?
+ // Yes : not standard content but "macroEnabled"
+ $this->writeOverrideContentType($objWriter, '/xl/workbook.xml', 'application/vnd.ms-excel.sheet.macroEnabled.main+xml');
+ //... and define a new type for the VBA project
+ $this->writeDefaultContentType($objWriter, 'bin', 'application/vnd.ms-office.vbaProject');
+ if ($pPHPExcel->hasMacrosCertificate()) {// signed macros ?
+ // Yes : add needed information
+ $this->writeOverrideContentType($objWriter, '/xl/vbaProjectSignature.bin', 'application/vnd.ms-office.vbaProjectSignature');
+ }
+ } else {// no macros in workbook, so standard type
+ $this->writeOverrideContentType($objWriter, '/xl/workbook.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml');
+ }
- // DocProps
- $this->_writeOverrideContentType(
- $objWriter, '/docProps/app.xml', 'application/vnd.openxmlformats-officedocument.extended-properties+xml'
- );
+ // DocProps
+ $this->writeOverrideContentType($objWriter, '/docProps/app.xml', 'application/vnd.openxmlformats-officedocument.extended-properties+xml');
- $this->_writeOverrideContentType(
- $objWriter, '/docProps/core.xml', 'application/vnd.openxmlformats-package.core-properties+xml'
- );
+ $this->writeOverrideContentType($objWriter, '/docProps/core.xml', 'application/vnd.openxmlformats-package.core-properties+xml');
- $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
- if (!empty($customPropertyList)) {
- $this->_writeOverrideContentType(
- $objWriter, '/docProps/custom.xml', 'application/vnd.openxmlformats-officedocument.custom-properties+xml'
- );
- }
+ $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
+ if (!empty($customPropertyList)) {
+ $this->writeOverrideContentType($objWriter, '/docProps/custom.xml', 'application/vnd.openxmlformats-officedocument.custom-properties+xml');
+ }
- // Worksheets
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- $this->_writeOverrideContentType(
- $objWriter, '/xl/worksheets/sheet' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml'
- );
- }
+ // Worksheets
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ $this->writeOverrideContentType($objWriter, '/xl/worksheets/sheet' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml');
+ }
- // Shared strings
- $this->_writeOverrideContentType(
- $objWriter, '/xl/sharedStrings.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml'
- );
+ // Shared strings
+ $this->writeOverrideContentType($objWriter, '/xl/sharedStrings.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml');
- // Add worksheet relationship content types
- $chart = 1;
- for ($i = 0; $i < $sheetCount; ++$i) {
- $drawings = $pPHPExcel->getSheet($i)->getDrawingCollection();
- $drawingCount = count($drawings);
- $chartCount = ($includeCharts) ? $pPHPExcel->getSheet($i)->getChartCount() : 0;
+ // Add worksheet relationship content types
+ $chart = 1;
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ $drawings = $pPHPExcel->getSheet($i)->getDrawingCollection();
+ $drawingCount = count($drawings);
+ $chartCount = ($includeCharts) ? $pPHPExcel->getSheet($i)->getChartCount() : 0;
- // We need a drawing relationship for the worksheet if we have either drawings or charts
- if (($drawingCount > 0) || ($chartCount > 0)) {
- $this->_writeOverrideContentType(
- $objWriter, '/xl/drawings/drawing' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.drawing+xml'
- );
- }
+ // We need a drawing relationship for the worksheet if we have either drawings or charts
+ if (($drawingCount > 0) || ($chartCount > 0)) {
+ $this->writeOverrideContentType($objWriter, '/xl/drawings/drawing' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.drawing+xml');
+ }
- // If we have charts, then we need a chart relationship for every individual chart
- if ($chartCount > 0) {
- for ($c = 0; $c < $chartCount; ++$c) {
- $this->_writeOverrideContentType(
- $objWriter, '/xl/charts/chart' . $chart++ . '.xml', 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'
- );
- }
- }
- }
+ // If we have charts, then we need a chart relationship for every individual chart
+ if ($chartCount > 0) {
+ for ($c = 0; $c < $chartCount; ++$c) {
+ $this->writeOverrideContentType($objWriter, '/xl/charts/chart' . $chart++ . '.xml', 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml');
+ }
+ }
+ }
- // Comments
- for ($i = 0; $i < $sheetCount; ++$i) {
- if (count($pPHPExcel->getSheet($i)->getComments()) > 0) {
- $this->_writeOverrideContentType(
- $objWriter, '/xl/comments' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml'
- );
- }
- }
+ // Comments
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ if (count($pPHPExcel->getSheet($i)->getComments()) > 0) {
+ $this->writeOverrideContentType($objWriter, '/xl/comments' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml');
+ }
+ }
- // Add media content-types
- $aMediaContentTypes = array();
- $mediaCount = $this->getParentWriter()->getDrawingHashTable()->count();
- for ($i = 0; $i < $mediaCount; ++$i) {
- $extension = '';
- $mimeType = '';
+ // Add media content-types
+ $aMediaContentTypes = array();
+ $mediaCount = $this->getParentWriter()->getDrawingHashTable()->count();
+ for ($i = 0; $i < $mediaCount; ++$i) {
+ $extension = '';
+ $mimeType = '';
- if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) {
- $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension());
- $mimeType = $this->_getImageMimeType( $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getPath() );
- } else if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) {
- $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType());
- $extension = explode('/', $extension);
- $extension = $extension[1];
+ if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) {
+ $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension());
+ $mimeType = $this->getImageMimeType($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getPath());
+ } elseif ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) {
+ $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType());
+ $extension = explode('/', $extension);
+ $extension = $extension[1];
- $mimeType = $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType();
- }
+ $mimeType = $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType();
+ }
- if (!isset( $aMediaContentTypes[$extension]) ) {
- $aMediaContentTypes[$extension] = $mimeType;
+ if (!isset( $aMediaContentTypes[$extension])) {
+ $aMediaContentTypes[$extension] = $mimeType;
- $this->_writeDefaultContentType(
- $objWriter, $extension, $mimeType
- );
- }
- }
- if($pPHPExcel->hasRibbonBinObjects()){//Some additional objects in the ribbon ?
- //we need to write "Extension" but not already write for media content
- $tabRibbonTypes=array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes));
- foreach($tabRibbonTypes as $aRibbonType){
- $mimeType='image/.'.$aRibbonType;//we wrote $mimeType like customUI Editor
- $this->_writeDefaultContentType(
- $objWriter, $aRibbonType, $mimeType
- );
- }
- }
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- if (count($pPHPExcel->getSheet()->getHeaderFooter()->getImages()) > 0) {
- foreach ($pPHPExcel->getSheet()->getHeaderFooter()->getImages() as $image) {
- if (!isset( $aMediaContentTypes[strtolower($image->getExtension())]) ) {
- $aMediaContentTypes[strtolower($image->getExtension())] = $this->_getImageMimeType( $image->getPath() );
+ $this->writeDefaultContentType($objWriter, $extension, $mimeType);
+ }
+ }
+ if ($pPHPExcel->hasRibbonBinObjects()) {
+ // Some additional objects in the ribbon ?
+ // we need to write "Extension" but not already write for media content
+ $tabRibbonTypes=array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes));
+ foreach ($tabRibbonTypes as $aRibbonType) {
+ $mimeType='image/.'.$aRibbonType;//we wrote $mimeType like customUI Editor
+ $this->writeDefaultContentType($objWriter, $aRibbonType, $mimeType);
+ }
+ }
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ if (count($pPHPExcel->getSheet()->getHeaderFooter()->getImages()) > 0) {
+ foreach ($pPHPExcel->getSheet()->getHeaderFooter()->getImages() as $image) {
+ if (!isset( $aMediaContentTypes[strtolower($image->getExtension())])) {
+ $aMediaContentTypes[strtolower($image->getExtension())] = $this->getImageMimeType($image->getPath());
- $this->_writeDefaultContentType(
- $objWriter, strtolower($image->getExtension()), $aMediaContentTypes[strtolower($image->getExtension())]
- );
- }
- }
- }
- }
+ $this->writeDefaultContentType($objWriter, strtolower($image->getExtension()), $aMediaContentTypes[strtolower($image->getExtension())]);
+ }
+ }
+ }
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Get image mime type
- *
- * @param string $pFile Filename
- * @return string Mime Type
- * @throws PHPExcel_Writer_Exception
- */
- private function _getImageMimeType($pFile = '')
- {
- if (PHPExcel_Shared_File::file_exists($pFile)) {
- $image = getimagesize($pFile);
- return image_type_to_mime_type($image[2]);
- } else {
- throw new PHPExcel_Writer_Exception("File $pFile does not exist");
- }
- }
+ /**
+ * Get image mime type
+ *
+ * @param string $pFile Filename
+ * @return string Mime Type
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function getImageMimeType($pFile = '')
+ {
+ if (PHPExcel_Shared_File::file_exists($pFile)) {
+ $image = getimagesize($pFile);
+ return image_type_to_mime_type($image[2]);
+ } else {
+ throw new PHPExcel_Writer_Exception("File $pFile does not exist");
+ }
+ }
- /**
- * Write Default content type
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pPartname Part name
- * @param string $pContentType Content type
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefaultContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '')
- {
- if ($pPartname != '' && $pContentType != '') {
- // Write content type
- $objWriter->startElement('Default');
- $objWriter->writeAttribute('Extension', $pPartname);
- $objWriter->writeAttribute('ContentType', $pContentType);
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ /**
+ * Write Default content type
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pPartname Part name
+ * @param string $pContentType Content type
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefaultContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '')
+ {
+ if ($pPartname != '' && $pContentType != '') {
+ // Write content type
+ $objWriter->startElement('Default');
+ $objWriter->writeAttribute('Extension', $pPartname);
+ $objWriter->writeAttribute('ContentType', $pContentType);
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
- /**
- * Write Override content type
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pPartname Part name
- * @param string $pContentType Content type
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeOverrideContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '')
- {
- if ($pPartname != '' && $pContentType != '') {
- // Write content type
- $objWriter->startElement('Override');
- $objWriter->writeAttribute('PartName', $pPartname);
- $objWriter->writeAttribute('ContentType', $pContentType);
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ /**
+ * Write Override content type
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pPartname Part name
+ * @param string $pContentType Content type
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeOverrideContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '')
+ {
+ if ($pPartname != '' && $pContentType != '') {
+ // Write content type
+ $objWriter->startElement('Override');
+ $objWriter->writeAttribute('PartName', $pPartname);
+ $objWriter->writeAttribute('ContentType', $pContentType);
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/DocProps.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/DocProps.php
index f8821379..fef3d937 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/DocProps.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/DocProps.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write docProps/app.xml to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDocPropsApp(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Properties
- $objWriter->startElement('Properties');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties');
- $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes');
+ // Properties
+ $objWriter->startElement('Properties');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties');
+ $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes');
- // Application
- $objWriter->writeElement('Application', 'Microsoft Excel');
+ // Application
+ $objWriter->writeElement('Application', 'Microsoft Excel');
- // DocSecurity
- $objWriter->writeElement('DocSecurity', '0');
+ // DocSecurity
+ $objWriter->writeElement('DocSecurity', '0');
- // ScaleCrop
- $objWriter->writeElement('ScaleCrop', 'false');
+ // ScaleCrop
+ $objWriter->writeElement('ScaleCrop', 'false');
- // HeadingPairs
- $objWriter->startElement('HeadingPairs');
+ // HeadingPairs
+ $objWriter->startElement('HeadingPairs');
- // Vector
- $objWriter->startElement('vt:vector');
- $objWriter->writeAttribute('size', '2');
- $objWriter->writeAttribute('baseType', 'variant');
+ // Vector
+ $objWriter->startElement('vt:vector');
+ $objWriter->writeAttribute('size', '2');
+ $objWriter->writeAttribute('baseType', 'variant');
- // Variant
- $objWriter->startElement('vt:variant');
- $objWriter->writeElement('vt:lpstr', 'Worksheets');
- $objWriter->endElement();
+ // Variant
+ $objWriter->startElement('vt:variant');
+ $objWriter->writeElement('vt:lpstr', 'Worksheets');
+ $objWriter->endElement();
- // Variant
- $objWriter->startElement('vt:variant');
- $objWriter->writeElement('vt:i4', $pPHPExcel->getSheetCount());
- $objWriter->endElement();
+ // Variant
+ $objWriter->startElement('vt:variant');
+ $objWriter->writeElement('vt:i4', $pPHPExcel->getSheetCount());
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // TitlesOfParts
- $objWriter->startElement('TitlesOfParts');
+ // TitlesOfParts
+ $objWriter->startElement('TitlesOfParts');
- // Vector
- $objWriter->startElement('vt:vector');
- $objWriter->writeAttribute('size', $pPHPExcel->getSheetCount());
- $objWriter->writeAttribute('baseType', 'lpstr');
+ // Vector
+ $objWriter->startElement('vt:vector');
+ $objWriter->writeAttribute('size', $pPHPExcel->getSheetCount());
+ $objWriter->writeAttribute('baseType', 'lpstr');
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- $objWriter->writeElement('vt:lpstr', $pPHPExcel->getSheet($i)->getTitle());
- }
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ $objWriter->writeElement('vt:lpstr', $pPHPExcel->getSheet($i)->getTitle());
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // Company
- $objWriter->writeElement('Company', $pPHPExcel->getProperties()->getCompany());
+ // Company
+ $objWriter->writeElement('Company', $pPHPExcel->getProperties()->getCompany());
- // Company
- $objWriter->writeElement('Manager', $pPHPExcel->getProperties()->getManager());
+ // Company
+ $objWriter->writeElement('Manager', $pPHPExcel->getProperties()->getManager());
- // LinksUpToDate
- $objWriter->writeElement('LinksUpToDate', 'false');
+ // LinksUpToDate
+ $objWriter->writeElement('LinksUpToDate', 'false');
- // SharedDoc
- $objWriter->writeElement('SharedDoc', 'false');
+ // SharedDoc
+ $objWriter->writeElement('SharedDoc', 'false');
- // HyperlinksChanged
- $objWriter->writeElement('HyperlinksChanged', 'false');
+ // HyperlinksChanged
+ $objWriter->writeElement('HyperlinksChanged', 'false');
- // AppVersion
- $objWriter->writeElement('AppVersion', '12.0000');
+ // AppVersion
+ $objWriter->writeElement('AppVersion', '12.0000');
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write docProps/core.xml to XML format
- *
- * @param PHPExcel $pPHPExcel
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeDocPropsCore(PHPExcel $pPHPExcel = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write docProps/core.xml to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDocPropsCore(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // cp:coreProperties
- $objWriter->startElement('cp:coreProperties');
- $objWriter->writeAttribute('xmlns:cp', 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties');
- $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
- $objWriter->writeAttribute('xmlns:dcterms', 'http://purl.org/dc/terms/');
- $objWriter->writeAttribute('xmlns:dcmitype', 'http://purl.org/dc/dcmitype/');
- $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
+ // cp:coreProperties
+ $objWriter->startElement('cp:coreProperties');
+ $objWriter->writeAttribute('xmlns:cp', 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties');
+ $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
+ $objWriter->writeAttribute('xmlns:dcterms', 'http://purl.org/dc/terms/');
+ $objWriter->writeAttribute('xmlns:dcmitype', 'http://purl.org/dc/dcmitype/');
+ $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
- // dc:creator
- $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator());
+ // dc:creator
+ $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator());
- // cp:lastModifiedBy
- $objWriter->writeElement('cp:lastModifiedBy', $pPHPExcel->getProperties()->getLastModifiedBy());
+ // cp:lastModifiedBy
+ $objWriter->writeElement('cp:lastModifiedBy', $pPHPExcel->getProperties()->getLastModifiedBy());
- // dcterms:created
- $objWriter->startElement('dcterms:created');
- $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF');
- $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getCreated()));
- $objWriter->endElement();
+ // dcterms:created
+ $objWriter->startElement('dcterms:created');
+ $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF');
+ $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getCreated()));
+ $objWriter->endElement();
- // dcterms:modified
- $objWriter->startElement('dcterms:modified');
- $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF');
- $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getModified()));
- $objWriter->endElement();
+ // dcterms:modified
+ $objWriter->startElement('dcterms:modified');
+ $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF');
+ $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getModified()));
+ $objWriter->endElement();
- // dc:title
- $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle());
+ // dc:title
+ $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle());
- // dc:description
- $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription());
+ // dc:description
+ $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription());
- // dc:subject
- $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject());
+ // dc:subject
+ $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject());
- // cp:keywords
- $objWriter->writeElement('cp:keywords', $pPHPExcel->getProperties()->getKeywords());
+ // cp:keywords
+ $objWriter->writeElement('cp:keywords', $pPHPExcel->getProperties()->getKeywords());
- // cp:category
- $objWriter->writeElement('cp:category', $pPHPExcel->getProperties()->getCategory());
+ // cp:category
+ $objWriter->writeElement('cp:category', $pPHPExcel->getProperties()->getCategory());
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write docProps/custom.xml to XML format
- *
- * @param PHPExcel $pPHPExcel
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeDocPropsCustom(PHPExcel $pPHPExcel = null)
- {
- $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
- if (empty($customPropertyList)) {
- return;
- }
+ /**
+ * Write docProps/custom.xml to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDocPropsCustom(PHPExcel $pPHPExcel = null)
+ {
+ $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
+ if (empty($customPropertyList)) {
+ return;
+ }
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // cp:coreProperties
- $objWriter->startElement('Properties');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties');
- $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes');
+ // cp:coreProperties
+ $objWriter->startElement('Properties');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties');
+ $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes');
- foreach($customPropertyList as $key => $customProperty) {
- $propertyValue = $pPHPExcel->getProperties()->getCustomPropertyValue($customProperty);
- $propertyType = $pPHPExcel->getProperties()->getCustomPropertyType($customProperty);
+ foreach ($customPropertyList as $key => $customProperty) {
+ $propertyValue = $pPHPExcel->getProperties()->getCustomPropertyValue($customProperty);
+ $propertyType = $pPHPExcel->getProperties()->getCustomPropertyType($customProperty);
- $objWriter->startElement('property');
- $objWriter->writeAttribute('fmtid', '{D5CDD505-2E9C-101B-9397-08002B2CF9AE}');
- $objWriter->writeAttribute('pid', $key+2);
- $objWriter->writeAttribute('name', $customProperty);
+ $objWriter->startElement('property');
+ $objWriter->writeAttribute('fmtid', '{D5CDD505-2E9C-101B-9397-08002B2CF9AE}');
+ $objWriter->writeAttribute('pid', $key+2);
+ $objWriter->writeAttribute('name', $customProperty);
- switch($propertyType) {
- case 'i' :
- $objWriter->writeElement('vt:i4', $propertyValue);
- break;
- case 'f' :
- $objWriter->writeElement('vt:r8', $propertyValue);
- break;
- case 'b' :
- $objWriter->writeElement('vt:bool', ($propertyValue) ? 'true' : 'false');
- break;
- case 'd' :
- $objWriter->startElement('vt:filetime');
- $objWriter->writeRawData(date(DATE_W3C, $propertyValue));
- $objWriter->endElement();
- break;
- default :
- $objWriter->writeElement('vt:lpwstr', $propertyValue);
- break;
- }
+ switch ($propertyType) {
+ case 'i':
+ $objWriter->writeElement('vt:i4', $propertyValue);
+ break;
+ case 'f':
+ $objWriter->writeElement('vt:r8', $propertyValue);
+ break;
+ case 'b':
+ $objWriter->writeElement('vt:bool', ($propertyValue) ? 'true' : 'false');
+ break;
+ case 'd':
+ $objWriter->startElement('vt:filetime');
+ $objWriter->writeRawData(date(DATE_W3C, $propertyValue));
+ $objWriter->endElement();
+ break;
+ default:
+ $objWriter->writeElement('vt:lpwstr', $propertyValue);
+ break;
+ }
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- $objWriter->endElement();
-
- // Return
- return $objWriter->getData();
- }
+ $objWriter->endElement();
+ return $objWriter->getData();
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Drawing.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Drawing.php
index 1cf971ed..28143888 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Drawing.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Drawing.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write drawings to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @param int &$chartRef Chart ID
+ * @param boolean $includeCharts Flag indicating if we should include drawing details for charts
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDrawings(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = false)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // xdr:wsDr
- $objWriter->startElement('xdr:wsDr');
- $objWriter->writeAttribute('xmlns:xdr', 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing');
- $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
+ // xdr:wsDr
+ $objWriter->startElement('xdr:wsDr');
+ $objWriter->writeAttribute('xmlns:xdr', 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing');
+ $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
- // Loop through images and write drawings
- $i = 1;
- $iterator = $pWorksheet->getDrawingCollection()->getIterator();
- while ($iterator->valid()) {
- $this->_writeDrawing($objWriter, $iterator->current(), $i);
+ // Loop through images and write drawings
+ $i = 1;
+ $iterator = $pWorksheet->getDrawingCollection()->getIterator();
+ while ($iterator->valid()) {
+ $this->writeDrawing($objWriter, $iterator->current(), $i);
- $iterator->next();
- ++$i;
- }
+ $iterator->next();
+ ++$i;
+ }
- if ($includeCharts) {
- $chartCount = $pWorksheet->getChartCount();
- // Loop through charts and write the chart position
- if ($chartCount > 0) {
- for ($c = 0; $c < $chartCount; ++$c) {
- $this->_writeChart($objWriter, $pWorksheet->getChartByIndex($c), $c+$i);
- }
- }
- }
+ if ($includeCharts) {
+ $chartCount = $pWorksheet->getChartCount();
+ // Loop through charts and write the chart position
+ if ($chartCount > 0) {
+ for ($c = 0; $c < $chartCount; ++$c) {
+ $this->writeChart($objWriter, $pWorksheet->getChartByIndex($c), $c+$i);
+ }
+ }
+ }
+ $objWriter->endElement();
- $objWriter->endElement();
+ // Return
+ return $objWriter->getData();
+ }
- // Return
- return $objWriter->getData();
- }
+ /**
+ * Write drawings to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Chart $pChart
+ * @param int $pRelationId
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, $pRelationId = -1)
+ {
+ $tl = $pChart->getTopLeftPosition();
+ $tl['colRow'] = PHPExcel_Cell::coordinateFromString($tl['cell']);
+ $br = $pChart->getBottomRightPosition();
+ $br['colRow'] = PHPExcel_Cell::coordinateFromString($br['cell']);
- /**
- * Write drawings to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Chart $pChart
- * @param int $pRelationId
- * @throws PHPExcel_Writer_Exception
- */
- public function _writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, $pRelationId = -1)
- {
- $tl = $pChart->getTopLeftPosition();
- $tl['colRow'] = PHPExcel_Cell::coordinateFromString($tl['cell']);
- $br = $pChart->getBottomRightPosition();
- $br['colRow'] = PHPExcel_Cell::coordinateFromString($br['cell']);
+ $objWriter->startElement('xdr:twoCellAnchor');
- $objWriter->startElement('xdr:twoCellAnchor');
+ $objWriter->startElement('xdr:from');
+ $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($tl['colRow'][0]) - 1);
+ $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['xOffset']));
+ $objWriter->writeElement('xdr:row', $tl['colRow'][1] - 1);
+ $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['yOffset']));
+ $objWriter->endElement();
+ $objWriter->startElement('xdr:to');
+ $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($br['colRow'][0]) - 1);
+ $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['xOffset']));
+ $objWriter->writeElement('xdr:row', $br['colRow'][1] - 1);
+ $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['yOffset']));
+ $objWriter->endElement();
- $objWriter->startElement('xdr:from');
- $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($tl['colRow'][0]) - 1);
- $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['xOffset']));
- $objWriter->writeElement('xdr:row', $tl['colRow'][1] - 1);
- $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['yOffset']));
- $objWriter->endElement();
- $objWriter->startElement('xdr:to');
- $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($br['colRow'][0]) - 1);
- $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['xOffset']));
- $objWriter->writeElement('xdr:row', $br['colRow'][1] - 1);
- $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['yOffset']));
- $objWriter->endElement();
+ $objWriter->startElement('xdr:graphicFrame');
+ $objWriter->writeAttribute('macro', '');
+ $objWriter->startElement('xdr:nvGraphicFramePr');
+ $objWriter->startElement('xdr:cNvPr');
+ $objWriter->writeAttribute('name', 'Chart '.$pRelationId);
+ $objWriter->writeAttribute('id', 1025 * $pRelationId);
+ $objWriter->endElement();
+ $objWriter->startElement('xdr:cNvGraphicFramePr');
+ $objWriter->startElement('a:graphicFrameLocks');
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->startElement('xdr:graphicFrame');
- $objWriter->writeAttribute('macro', '');
- $objWriter->startElement('xdr:nvGraphicFramePr');
- $objWriter->startElement('xdr:cNvPr');
- $objWriter->writeAttribute('name', 'Chart '.$pRelationId);
- $objWriter->writeAttribute('id', 1025 * $pRelationId);
- $objWriter->endElement();
- $objWriter->startElement('xdr:cNvGraphicFramePr');
- $objWriter->startElement('a:graphicFrameLocks');
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->startElement('xdr:xfrm');
+ $objWriter->startElement('a:off');
+ $objWriter->writeAttribute('x', '0');
+ $objWriter->writeAttribute('y', '0');
+ $objWriter->endElement();
+ $objWriter->startElement('a:ext');
+ $objWriter->writeAttribute('cx', '0');
+ $objWriter->writeAttribute('cy', '0');
+ $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->startElement('xdr:xfrm');
- $objWriter->startElement('a:off');
- $objWriter->writeAttribute('x', '0');
- $objWriter->writeAttribute('y', '0');
- $objWriter->endElement();
- $objWriter->startElement('a:ext');
- $objWriter->writeAttribute('cx', '0');
- $objWriter->writeAttribute('cy', '0');
- $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->startElement('a:graphic');
+ $objWriter->startElement('a:graphicData');
+ $objWriter->writeAttribute('uri', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
+ $objWriter->startElement('c:chart');
+ $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
+ $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+ $objWriter->writeAttribute('r:id', 'rId'.$pRelationId);
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->startElement('a:graphic');
- $objWriter->startElement('a:graphicData');
- $objWriter->writeAttribute('uri', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
- $objWriter->startElement('c:chart');
- $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart');
- $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
- $objWriter->writeAttribute('r:id', 'rId'.$pRelationId);
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->startElement('xdr:clientData');
+ $objWriter->endElement();
- $objWriter->startElement('xdr:clientData');
- $objWriter->endElement();
+ $objWriter->endElement();
+ }
- $objWriter->endElement();
- }
+ /**
+ * Write drawings to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet_BaseDrawing $pDrawing
+ * @param int $pRelationId
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, $pRelationId = -1)
+ {
+ if ($pRelationId >= 0) {
+ // xdr:oneCellAnchor
+ $objWriter->startElement('xdr:oneCellAnchor');
+ // Image location
+ $aCoordinates = PHPExcel_Cell::coordinateFromString($pDrawing->getCoordinates());
+ $aCoordinates[0] = PHPExcel_Cell::columnIndexFromString($aCoordinates[0]);
- /**
- * Write drawings to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet_BaseDrawing $pDrawing
- * @param int $pRelationId
- * @throws PHPExcel_Writer_Exception
- */
- public function _writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, $pRelationId = -1)
- {
- if ($pRelationId >= 0) {
- // xdr:oneCellAnchor
- $objWriter->startElement('xdr:oneCellAnchor');
- // Image location
- $aCoordinates = PHPExcel_Cell::coordinateFromString($pDrawing->getCoordinates());
- $aCoordinates[0] = PHPExcel_Cell::columnIndexFromString($aCoordinates[0]);
+ // xdr:from
+ $objWriter->startElement('xdr:from');
+ $objWriter->writeElement('xdr:col', $aCoordinates[0] - 1);
+ $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetX()));
+ $objWriter->writeElement('xdr:row', $aCoordinates[1] - 1);
+ $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetY()));
+ $objWriter->endElement();
- // xdr:from
- $objWriter->startElement('xdr:from');
- $objWriter->writeElement('xdr:col', $aCoordinates[0] - 1);
- $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetX()));
- $objWriter->writeElement('xdr:row', $aCoordinates[1] - 1);
- $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetY()));
- $objWriter->endElement();
+ // xdr:ext
+ $objWriter->startElement('xdr:ext');
+ $objWriter->writeAttribute('cx', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getWidth()));
+ $objWriter->writeAttribute('cy', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getHeight()));
+ $objWriter->endElement();
- // xdr:ext
- $objWriter->startElement('xdr:ext');
- $objWriter->writeAttribute('cx', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getWidth()));
- $objWriter->writeAttribute('cy', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getHeight()));
- $objWriter->endElement();
+ // xdr:pic
+ $objWriter->startElement('xdr:pic');
- // xdr:pic
- $objWriter->startElement('xdr:pic');
+ // xdr:nvPicPr
+ $objWriter->startElement('xdr:nvPicPr');
- // xdr:nvPicPr
- $objWriter->startElement('xdr:nvPicPr');
+ // xdr:cNvPr
+ $objWriter->startElement('xdr:cNvPr');
+ $objWriter->writeAttribute('id', $pRelationId);
+ $objWriter->writeAttribute('name', $pDrawing->getName());
+ $objWriter->writeAttribute('descr', $pDrawing->getDescription());
+ $objWriter->endElement();
- // xdr:cNvPr
- $objWriter->startElement('xdr:cNvPr');
- $objWriter->writeAttribute('id', $pRelationId);
- $objWriter->writeAttribute('name', $pDrawing->getName());
- $objWriter->writeAttribute('descr', $pDrawing->getDescription());
- $objWriter->endElement();
+ // xdr:cNvPicPr
+ $objWriter->startElement('xdr:cNvPicPr');
- // xdr:cNvPicPr
- $objWriter->startElement('xdr:cNvPicPr');
+ // a:picLocks
+ $objWriter->startElement('a:picLocks');
+ $objWriter->writeAttribute('noChangeAspect', '1');
+ $objWriter->endElement();
- // a:picLocks
- $objWriter->startElement('a:picLocks');
- $objWriter->writeAttribute('noChangeAspect', '1');
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ // xdr:blipFill
+ $objWriter->startElement('xdr:blipFill');
- // xdr:blipFill
- $objWriter->startElement('xdr:blipFill');
+ // a:blip
+ $objWriter->startElement('a:blip');
+ $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+ $objWriter->writeAttribute('r:embed', 'rId' . $pRelationId);
+ $objWriter->endElement();
- // a:blip
- $objWriter->startElement('a:blip');
- $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
- $objWriter->writeAttribute('r:embed', 'rId' . $pRelationId);
- $objWriter->endElement();
+ // a:stretch
+ $objWriter->startElement('a:stretch');
+ $objWriter->writeElement('a:fillRect', null);
+ $objWriter->endElement();
- // a:stretch
- $objWriter->startElement('a:stretch');
- $objWriter->writeElement('a:fillRect', null);
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ // xdr:spPr
+ $objWriter->startElement('xdr:spPr');
- // xdr:spPr
- $objWriter->startElement('xdr:spPr');
+ // a:xfrm
+ $objWriter->startElement('a:xfrm');
+ $objWriter->writeAttribute('rot', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getRotation()));
+ $objWriter->endElement();
- // a:xfrm
- $objWriter->startElement('a:xfrm');
- $objWriter->writeAttribute('rot', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getRotation()));
- $objWriter->endElement();
+ // a:prstGeom
+ $objWriter->startElement('a:prstGeom');
+ $objWriter->writeAttribute('prst', 'rect');
- // a:prstGeom
- $objWriter->startElement('a:prstGeom');
- $objWriter->writeAttribute('prst', 'rect');
+ // a:avLst
+ $objWriter->writeElement('a:avLst', null);
- // a:avLst
- $objWriter->writeElement('a:avLst', null);
+ $objWriter->endElement();
- $objWriter->endElement();
+// // a:solidFill
+// $objWriter->startElement('a:solidFill');
-// // a:solidFill
-// $objWriter->startElement('a:solidFill');
-
-// // a:srgbClr
-// $objWriter->startElement('a:srgbClr');
-// $objWriter->writeAttribute('val', 'FFFFFF');
+// // a:srgbClr
+// $objWriter->startElement('a:srgbClr');
+// $objWriter->writeAttribute('val', 'FFFFFF');
///* SHADE
-// // a:shade
-// $objWriter->startElement('a:shade');
-// $objWriter->writeAttribute('val', '85000');
-// $objWriter->endElement();
+// // a:shade
+// $objWriter->startElement('a:shade');
+// $objWriter->writeAttribute('val', '85000');
+// $objWriter->endElement();
//*/
-// $objWriter->endElement();
+// $objWriter->endElement();
-// $objWriter->endElement();
+// $objWriter->endElement();
/*
- // a:ln
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', '88900');
- $objWriter->writeAttribute('cap', 'sq');
+ // a:ln
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', '88900');
+ $objWriter->writeAttribute('cap', 'sq');
- // a:solidFill
- $objWriter->startElement('a:solidFill');
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', 'FFFFFF');
- $objWriter->endElement();
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', 'FFFFFF');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:miter
- $objWriter->startElement('a:miter');
- $objWriter->writeAttribute('lim', '800000');
- $objWriter->endElement();
+ // a:miter
+ $objWriter->startElement('a:miter');
+ $objWriter->writeAttribute('lim', '800000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
*/
- if ($pDrawing->getShadow()->getVisible()) {
- // a:effectLst
- $objWriter->startElement('a:effectLst');
+ if ($pDrawing->getShadow()->getVisible()) {
+ // a:effectLst
+ $objWriter->startElement('a:effectLst');
- // a:outerShdw
- $objWriter->startElement('a:outerShdw');
- $objWriter->writeAttribute('blurRad', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getBlurRadius()));
- $objWriter->writeAttribute('dist', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getDistance()));
- $objWriter->writeAttribute('dir', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getShadow()->getDirection()));
- $objWriter->writeAttribute('algn', $pDrawing->getShadow()->getAlignment());
- $objWriter->writeAttribute('rotWithShape', '0');
+ // a:outerShdw
+ $objWriter->startElement('a:outerShdw');
+ $objWriter->writeAttribute('blurRad', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getBlurRadius()));
+ $objWriter->writeAttribute('dist', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getDistance()));
+ $objWriter->writeAttribute('dir', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getShadow()->getDirection()));
+ $objWriter->writeAttribute('algn', $pDrawing->getShadow()->getAlignment());
+ $objWriter->writeAttribute('rotWithShape', '0');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', $pDrawing->getShadow()->getColor()->getRGB());
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', $pDrawing->getShadow()->getColor()->getRGB());
- // a:alpha
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', $pDrawing->getShadow()->getAlpha() * 1000);
- $objWriter->endElement();
+ // a:alpha
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', $pDrawing->getShadow()->getAlpha() * 1000);
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
/*
- // a:scene3d
- $objWriter->startElement('a:scene3d');
+ // a:scene3d
+ $objWriter->startElement('a:scene3d');
- // a:camera
- $objWriter->startElement('a:camera');
- $objWriter->writeAttribute('prst', 'orthographicFront');
- $objWriter->endElement();
+ // a:camera
+ $objWriter->startElement('a:camera');
+ $objWriter->writeAttribute('prst', 'orthographicFront');
+ $objWriter->endElement();
- // a:lightRig
- $objWriter->startElement('a:lightRig');
- $objWriter->writeAttribute('rig', 'twoPt');
- $objWriter->writeAttribute('dir', 't');
+ // a:lightRig
+ $objWriter->startElement('a:lightRig');
+ $objWriter->writeAttribute('rig', 'twoPt');
+ $objWriter->writeAttribute('dir', 't');
- // a:rot
- $objWriter->startElement('a:rot');
- $objWriter->writeAttribute('lat', '0');
- $objWriter->writeAttribute('lon', '0');
- $objWriter->writeAttribute('rev', '0');
- $objWriter->endElement();
+ // a:rot
+ $objWriter->startElement('a:rot');
+ $objWriter->writeAttribute('lat', '0');
+ $objWriter->writeAttribute('lon', '0');
+ $objWriter->writeAttribute('rev', '0');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
*/
/*
- // a:sp3d
- $objWriter->startElement('a:sp3d');
+ // a:sp3d
+ $objWriter->startElement('a:sp3d');
- // a:bevelT
- $objWriter->startElement('a:bevelT');
- $objWriter->writeAttribute('w', '25400');
- $objWriter->writeAttribute('h', '19050');
- $objWriter->endElement();
+ // a:bevelT
+ $objWriter->startElement('a:bevelT');
+ $objWriter->writeAttribute('w', '25400');
+ $objWriter->writeAttribute('h', '19050');
+ $objWriter->endElement();
- // a:contourClr
- $objWriter->startElement('a:contourClr');
+ // a:contourClr
+ $objWriter->startElement('a:contourClr');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', 'FFFFFF');
- $objWriter->endElement();
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', 'FFFFFF');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
*/
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // xdr:clientData
- $objWriter->writeElement('xdr:clientData', null);
+ // xdr:clientData
+ $objWriter->writeElement('xdr:clientData', null);
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
- /**
- * Write VML header/footer images to XML format
- *
- * @param PHPExcel_Worksheet $pWorksheet
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write VML header/footer images to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Header/footer images
- $images = $pWorksheet->getHeaderFooter()->getImages();
+ // Header/footer images
+ $images = $pWorksheet->getHeaderFooter()->getImages();
- // xml
- $objWriter->startElement('xml');
- $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml');
- $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office');
- $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel');
+ // xml
+ $objWriter->startElement('xml');
+ $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml');
+ $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office');
+ $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel');
- // o:shapelayout
- $objWriter->startElement('o:shapelayout');
- $objWriter->writeAttribute('v:ext', 'edit');
+ // o:shapelayout
+ $objWriter->startElement('o:shapelayout');
+ $objWriter->writeAttribute('v:ext', 'edit');
- // o:idmap
- $objWriter->startElement('o:idmap');
- $objWriter->writeAttribute('v:ext', 'edit');
- $objWriter->writeAttribute('data', '1');
- $objWriter->endElement();
+ // o:idmap
+ $objWriter->startElement('o:idmap');
+ $objWriter->writeAttribute('v:ext', 'edit');
+ $objWriter->writeAttribute('data', '1');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // v:shapetype
- $objWriter->startElement('v:shapetype');
- $objWriter->writeAttribute('id', '_x0000_t75');
- $objWriter->writeAttribute('coordsize', '21600,21600');
- $objWriter->writeAttribute('o:spt', '75');
- $objWriter->writeAttribute('o:preferrelative', 't');
- $objWriter->writeAttribute('path', 'm@4@5l@4@11@9@11@9@5xe');
- $objWriter->writeAttribute('filled', 'f');
- $objWriter->writeAttribute('stroked', 'f');
+ // v:shapetype
+ $objWriter->startElement('v:shapetype');
+ $objWriter->writeAttribute('id', '_x0000_t75');
+ $objWriter->writeAttribute('coordsize', '21600,21600');
+ $objWriter->writeAttribute('o:spt', '75');
+ $objWriter->writeAttribute('o:preferrelative', 't');
+ $objWriter->writeAttribute('path', 'm@4@5l@4@11@9@11@9@5xe');
+ $objWriter->writeAttribute('filled', 'f');
+ $objWriter->writeAttribute('stroked', 'f');
- // v:stroke
- $objWriter->startElement('v:stroke');
- $objWriter->writeAttribute('joinstyle', 'miter');
- $objWriter->endElement();
+ // v:stroke
+ $objWriter->startElement('v:stroke');
+ $objWriter->writeAttribute('joinstyle', 'miter');
+ $objWriter->endElement();
- // v:formulas
- $objWriter->startElement('v:formulas');
+ // v:formulas
+ $objWriter->startElement('v:formulas');
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'if lineDrawn pixelLineWidth 0');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'if lineDrawn pixelLineWidth 0');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'sum @0 1 0');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'sum @0 1 0');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'sum 0 0 @1');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'sum 0 0 @1');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @2 1 2');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @2 1 2');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelWidth');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelWidth');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelHeight');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelHeight');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'sum @0 0 1');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'sum @0 0 1');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @6 1 2');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @6 1 2');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelWidth');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelWidth');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'sum @8 21600 0');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'sum @8 21600 0');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelHeight');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelHeight');
+ $objWriter->endElement();
- // v:f
- $objWriter->startElement('v:f');
- $objWriter->writeAttribute('eqn', 'sum @10 21600 0');
- $objWriter->endElement();
+ // v:f
+ $objWriter->startElement('v:f');
+ $objWriter->writeAttribute('eqn', 'sum @10 21600 0');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // v:path
- $objWriter->startElement('v:path');
- $objWriter->writeAttribute('o:extrusionok', 'f');
- $objWriter->writeAttribute('gradientshapeok', 't');
- $objWriter->writeAttribute('o:connecttype', 'rect');
- $objWriter->endElement();
+ // v:path
+ $objWriter->startElement('v:path');
+ $objWriter->writeAttribute('o:extrusionok', 'f');
+ $objWriter->writeAttribute('gradientshapeok', 't');
+ $objWriter->writeAttribute('o:connecttype', 'rect');
+ $objWriter->endElement();
- // o:lock
- $objWriter->startElement('o:lock');
- $objWriter->writeAttribute('v:ext', 'edit');
- $objWriter->writeAttribute('aspectratio', 't');
- $objWriter->endElement();
+ // o:lock
+ $objWriter->startElement('o:lock');
+ $objWriter->writeAttribute('v:ext', 'edit');
+ $objWriter->writeAttribute('aspectratio', 't');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // Loop through images
- foreach ($images as $key => $value) {
- $this->_writeVMLHeaderFooterImage($objWriter, $key, $value);
- }
+ // Loop through images
+ foreach ($images as $key => $value) {
+ $this->writeVMLHeaderFooterImage($objWriter, $key, $value);
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write VML comment to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pReference Reference
- * @param PHPExcel_Worksheet_HeaderFooterDrawing $pImage Image
- * @throws PHPExcel_Writer_Exception
- */
- public function _writeVMLHeaderFooterImage(PHPExcel_Shared_XMLWriter $objWriter = null, $pReference = '', PHPExcel_Worksheet_HeaderFooterDrawing $pImage = null)
- {
- // Calculate object id
- preg_match('{(\d+)}', md5($pReference), $m);
- $id = 1500 + (substr($m[1], 0, 2) * 1);
+ /**
+ * Write VML comment to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pReference Reference
+ * @param PHPExcel_Worksheet_HeaderFooterDrawing $pImage Image
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeVMLHeaderFooterImage(PHPExcel_Shared_XMLWriter $objWriter = null, $pReference = '', PHPExcel_Worksheet_HeaderFooterDrawing $pImage = null)
+ {
+ // Calculate object id
+ preg_match('{(\d+)}', md5($pReference), $m);
+ $id = 1500 + (substr($m[1], 0, 2) * 1);
- // Calculate offset
- $width = $pImage->getWidth();
- $height = $pImage->getHeight();
- $marginLeft = $pImage->getOffsetX();
- $marginTop = $pImage->getOffsetY();
+ // Calculate offset
+ $width = $pImage->getWidth();
+ $height = $pImage->getHeight();
+ $marginLeft = $pImage->getOffsetX();
+ $marginTop = $pImage->getOffsetY();
- // v:shape
- $objWriter->startElement('v:shape');
- $objWriter->writeAttribute('id', $pReference);
- $objWriter->writeAttribute('o:spid', '_x0000_s' . $id);
- $objWriter->writeAttribute('type', '#_x0000_t75');
- $objWriter->writeAttribute('style', "position:absolute;margin-left:{$marginLeft}px;margin-top:{$marginTop}px;width:{$width}px;height:{$height}px;z-index:1");
+ // v:shape
+ $objWriter->startElement('v:shape');
+ $objWriter->writeAttribute('id', $pReference);
+ $objWriter->writeAttribute('o:spid', '_x0000_s' . $id);
+ $objWriter->writeAttribute('type', '#_x0000_t75');
+ $objWriter->writeAttribute('style', "position:absolute;margin-left:{$marginLeft}px;margin-top:{$marginTop}px;width:{$width}px;height:{$height}px;z-index:1");
- // v:imagedata
- $objWriter->startElement('v:imagedata');
- $objWriter->writeAttribute('o:relid', 'rId' . $pReference);
- $objWriter->writeAttribute('o:title', $pImage->getName());
- $objWriter->endElement();
+ // v:imagedata
+ $objWriter->startElement('v:imagedata');
+ $objWriter->writeAttribute('o:relid', 'rId' . $pReference);
+ $objWriter->writeAttribute('o:title', $pImage->getName());
+ $objWriter->endElement();
- // o:lock
- $objWriter->startElement('o:lock');
- $objWriter->writeAttribute('v:ext', 'edit');
- $objWriter->writeAttribute('rotation', 't');
- $objWriter->endElement();
+ // o:lock
+ $objWriter->startElement('o:lock');
+ $objWriter->writeAttribute('v:ext', 'edit');
+ $objWriter->writeAttribute('rotation', 't');
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Get an array of all drawings
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Worksheet_Drawing[] All drawings in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allDrawings(PHPExcel $pPHPExcel = null)
- {
- // Get an array of all drawings
- $aDrawings = array();
+ /**
+ * Get an array of all drawings
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Worksheet_Drawing[] All drawings in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allDrawings(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of all drawings
+ $aDrawings = array();
- // Loop through PHPExcel
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- // Loop through images and add to array
- $iterator = $pPHPExcel->getSheet($i)->getDrawingCollection()->getIterator();
- while ($iterator->valid()) {
- $aDrawings[] = $iterator->current();
+ // Loop through PHPExcel
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ // Loop through images and add to array
+ $iterator = $pPHPExcel->getSheet($i)->getDrawingCollection()->getIterator();
+ while ($iterator->valid()) {
+ $aDrawings[] = $iterator->current();
- $iterator->next();
- }
- }
+ $iterator->next();
+ }
+ }
- return $aDrawings;
- }
+ return $aDrawings;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Rels.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Rels.php
index a7d36c0a..14ff3371 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Rels.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Rels.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write relationships to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeRelationships(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
- if (!empty($customPropertyList)) {
- // Relationship docProps/app.xml
- $this->_writeRelationship(
- $objWriter,
- 4,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties',
- 'docProps/custom.xml'
- );
+ $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties();
+ if (!empty($customPropertyList)) {
+ // Relationship docProps/app.xml
+ $this->writeRelationship(
+ $objWriter,
+ 4,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties',
+ 'docProps/custom.xml'
+ );
- }
+ }
- // Relationship docProps/app.xml
- $this->_writeRelationship(
- $objWriter,
- 3,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties',
- 'docProps/app.xml'
- );
+ // Relationship docProps/app.xml
+ $this->writeRelationship(
+ $objWriter,
+ 3,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties',
+ 'docProps/app.xml'
+ );
- // Relationship docProps/core.xml
- $this->_writeRelationship(
- $objWriter,
- 2,
- 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',
- 'docProps/core.xml'
- );
+ // Relationship docProps/core.xml
+ $this->writeRelationship(
+ $objWriter,
+ 2,
+ 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',
+ 'docProps/core.xml'
+ );
- // Relationship xl/workbook.xml
- $this->_writeRelationship(
- $objWriter,
- 1,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument',
- 'xl/workbook.xml'
- );
- // a custom UI in workbook ?
- if($pPHPExcel->hasRibbon()){
- $this->_writeRelationShip(
- $objWriter,
- 5,
- 'http://schemas.microsoft.com/office/2006/relationships/ui/extensibility',
- $pPHPExcel->getRibbonXMLData('target')
- );
- }
+ // Relationship xl/workbook.xml
+ $this->writeRelationship(
+ $objWriter,
+ 1,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument',
+ 'xl/workbook.xml'
+ );
+ // a custom UI in workbook ?
+ if ($pPHPExcel->hasRibbon()) {
+ $this->writeRelationShip(
+ $objWriter,
+ 5,
+ 'http://schemas.microsoft.com/office/2006/relationships/ui/extensibility',
+ $pPHPExcel->getRibbonXMLData('target')
+ );
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ return $objWriter->getData();
+ }
- /**
- * Write workbook relationships to XML format
- *
- * @param PHPExcel $pPHPExcel
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeWorkbookRelationships(PHPExcel $pPHPExcel = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write workbook relationships to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeWorkbookRelationships(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- // Relationship styles.xml
- $this->_writeRelationship(
- $objWriter,
- 1,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',
- 'styles.xml'
- );
+ // Relationship styles.xml
+ $this->writeRelationship(
+ $objWriter,
+ 1,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',
+ 'styles.xml'
+ );
- // Relationship theme/theme1.xml
- $this->_writeRelationship(
- $objWriter,
- 2,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
- 'theme/theme1.xml'
- );
+ // Relationship theme/theme1.xml
+ $this->writeRelationship(
+ $objWriter,
+ 2,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
+ 'theme/theme1.xml'
+ );
- // Relationship sharedStrings.xml
- $this->_writeRelationship(
- $objWriter,
- 3,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',
- 'sharedStrings.xml'
- );
+ // Relationship sharedStrings.xml
+ $this->writeRelationship(
+ $objWriter,
+ 3,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',
+ 'sharedStrings.xml'
+ );
- // Relationships with sheets
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- $this->_writeRelationship(
- $objWriter,
- ($i + 1 + 3),
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',
- 'worksheets/sheet' . ($i + 1) . '.xml'
- );
- }
- // Relationships for vbaProject if needed
- // id : just after the last sheet
- if($pPHPExcel->hasMacros()){
- $this->_writeRelationShip(
- $objWriter,
- ($i + 1 + 3),
- 'http://schemas.microsoft.com/office/2006/relationships/vbaProject',
- 'vbaProject.bin'
- );
- ++$i;//increment i if needed for an another relation
- }
+ // Relationships with sheets
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ $this->writeRelationship(
+ $objWriter,
+ ($i + 1 + 3),
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',
+ 'worksheets/sheet' . ($i + 1) . '.xml'
+ );
+ }
+ // Relationships for vbaProject if needed
+ // id : just after the last sheet
+ if ($pPHPExcel->hasMacros()) {
+ $this->writeRelationShip(
+ $objWriter,
+ ($i + 1 + 3),
+ 'http://schemas.microsoft.com/office/2006/relationships/vbaProject',
+ 'vbaProject.bin'
+ );
+ ++$i;//increment i if needed for an another relation
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ return $objWriter->getData();
+ }
- /**
- * Write worksheet relationships to XML format
- *
- * Numbering is as follows:
- * rId1 - Drawings
- * rId_hyperlink_x - Hyperlinks
- *
- * @param PHPExcel_Worksheet $pWorksheet
- * @param int $pWorksheetId
- * @param boolean $includeCharts Flag indicating if we should write charts
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, $pWorksheetId = 1, $includeCharts = FALSE)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write worksheet relationships to XML format
+ *
+ * Numbering is as follows:
+ * rId1 - Drawings
+ * rId_hyperlink_x - Hyperlinks
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @param int $pWorksheetId
+ * @param boolean $includeCharts Flag indicating if we should write charts
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, $pWorksheetId = 1, $includeCharts = false)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- // Write drawing relationships?
- $d = 0;
- if ($includeCharts) {
- $charts = $pWorksheet->getChartCollection();
- } else {
- $charts = array();
- }
- if (($pWorksheet->getDrawingCollection()->count() > 0) ||
- (count($charts) > 0)) {
- $this->_writeRelationship(
- $objWriter,
- ++$d,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing',
- '../drawings/drawing' . $pWorksheetId . '.xml'
- );
- }
+ // Write drawing relationships?
+ $d = 0;
+ if ($includeCharts) {
+ $charts = $pWorksheet->getChartCollection();
+ } else {
+ $charts = array();
+ }
+ if (($pWorksheet->getDrawingCollection()->count() > 0) ||
+ (count($charts) > 0)) {
+ $this->writeRelationship(
+ $objWriter,
+ ++$d,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing',
+ '../drawings/drawing' . $pWorksheetId . '.xml'
+ );
+ }
- // Write chart relationships?
-// $chartCount = 0;
-// $charts = $pWorksheet->getChartCollection();
-// echo 'Chart Rels: ' , count($charts) , '
* $objDrawing->setResizeProportional(true);
* $objDrawing->setWidthAndHeight(160,120);
- *
- *
+ *
';
-// if (count($charts) > 0) {
-// foreach($charts as $chart) {
-// $this->_writeRelationship(
-// $objWriter,
-// ++$d,
-// 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
-// '../charts/chart' . ++$chartCount . '.xml'
-// );
-// }
-// }
+ // Write chart relationships?
+// $chartCount = 0;
+// $charts = $pWorksheet->getChartCollection();
+// echo 'Chart Rels: ' , count($charts) , '
';
+// if (count($charts) > 0) {
+// foreach ($charts as $chart) {
+// $this->writeRelationship(
+// $objWriter,
+// ++$d,
+// 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
+// '../charts/chart' . ++$chartCount . '.xml'
+// );
+// }
+// }
//
- // Write hyperlink relationships?
- $i = 1;
- foreach ($pWorksheet->getHyperlinkCollection() as $hyperlink) {
- if (!$hyperlink->isInternal()) {
- $this->_writeRelationship(
- $objWriter,
- '_hyperlink_' . $i,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink',
- $hyperlink->getUrl(),
- 'External'
- );
+ // Write hyperlink relationships?
+ $i = 1;
+ foreach ($pWorksheet->getHyperlinkCollection() as $hyperlink) {
+ if (!$hyperlink->isInternal()) {
+ $this->writeRelationship(
+ $objWriter,
+ '_hyperlink_' . $i,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink',
+ $hyperlink->getUrl(),
+ 'External'
+ );
- ++$i;
- }
- }
+ ++$i;
+ }
+ }
- // Write comments relationship?
- $i = 1;
- if (count($pWorksheet->getComments()) > 0) {
- $this->_writeRelationship(
- $objWriter,
- '_comments_vml' . $i,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing',
- '../drawings/vmlDrawing' . $pWorksheetId . '.vml'
- );
+ // Write comments relationship?
+ $i = 1;
+ if (count($pWorksheet->getComments()) > 0) {
+ $this->writeRelationship(
+ $objWriter,
+ '_comments_vml' . $i,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing',
+ '../drawings/vmlDrawing' . $pWorksheetId . '.vml'
+ );
- $this->_writeRelationship(
- $objWriter,
- '_comments' . $i,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments',
- '../comments' . $pWorksheetId . '.xml'
- );
- }
+ $this->writeRelationship(
+ $objWriter,
+ '_comments' . $i,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments',
+ '../comments' . $pWorksheetId . '.xml'
+ );
+ }
- // Write header/footer relationship?
- $i = 1;
- if (count($pWorksheet->getHeaderFooter()->getImages()) > 0) {
- $this->_writeRelationship(
- $objWriter,
- '_headerfooter_vml' . $i,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing',
- '../drawings/vmlDrawingHF' . $pWorksheetId . '.vml'
- );
- }
+ // Write header/footer relationship?
+ $i = 1;
+ if (count($pWorksheet->getHeaderFooter()->getImages()) > 0) {
+ $this->writeRelationship(
+ $objWriter,
+ '_headerfooter_vml' . $i,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing',
+ '../drawings/vmlDrawingHF' . $pWorksheetId . '.vml'
+ );
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ return $objWriter->getData();
+ }
- /**
- * Write drawing relationships to XML format
- *
- * @param PHPExcel_Worksheet $pWorksheet
- * @param int &$chartRef Chart ID
- * @param boolean $includeCharts Flag indicating if we should write charts
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = FALSE)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write drawing relationships to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @param int &$chartRef Chart ID
+ * @param boolean $includeCharts Flag indicating if we should write charts
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = false)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- // Loop through images and write relationships
- $i = 1;
- $iterator = $pWorksheet->getDrawingCollection()->getIterator();
- while ($iterator->valid()) {
- if ($iterator->current() instanceof PHPExcel_Worksheet_Drawing
- || $iterator->current() instanceof PHPExcel_Worksheet_MemoryDrawing) {
- // Write relationship for image drawing
- $this->_writeRelationship(
- $objWriter,
- $i,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
- '../media/' . str_replace(' ', '', $iterator->current()->getIndexedFilename())
- );
- }
+ // Loop through images and write relationships
+ $i = 1;
+ $iterator = $pWorksheet->getDrawingCollection()->getIterator();
+ while ($iterator->valid()) {
+ if ($iterator->current() instanceof PHPExcel_Worksheet_Drawing
+ || $iterator->current() instanceof PHPExcel_Worksheet_MemoryDrawing) {
+ // Write relationship for image drawing
+ $this->writeRelationship(
+ $objWriter,
+ $i,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
+ '../media/' . str_replace(' ', '', $iterator->current()->getIndexedFilename())
+ );
+ }
- $iterator->next();
- ++$i;
- }
+ $iterator->next();
+ ++$i;
+ }
- if ($includeCharts) {
- // Loop through charts and write relationships
- $chartCount = $pWorksheet->getChartCount();
- if ($chartCount > 0) {
- for ($c = 0; $c < $chartCount; ++$c) {
- $this->_writeRelationship(
- $objWriter,
- $i++,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
- '../charts/chart' . ++$chartRef . '.xml'
- );
- }
- }
- }
+ if ($includeCharts) {
+ // Loop through charts and write relationships
+ $chartCount = $pWorksheet->getChartCount();
+ if ($chartCount > 0) {
+ for ($c = 0; $c < $chartCount; ++$c) {
+ $this->writeRelationship(
+ $objWriter,
+ $i++,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart',
+ '../charts/chart' . ++$chartRef . '.xml'
+ );
+ }
+ }
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ return $objWriter->getData();
+ }
- /**
- * Write header/footer drawing relationships to XML format
- *
- * @param PHPExcel_Worksheet $pWorksheet
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write header/footer drawing relationships to XML format
+ *
+ * @param PHPExcel_Worksheet $pWorksheet
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- // Loop through images and write relationships
- foreach ($pWorksheet->getHeaderFooter()->getImages() as $key => $value) {
- // Write relationship for image drawing
- $this->_writeRelationship(
- $objWriter,
- $key,
- 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
- '../media/' . $value->getIndexedFilename()
- );
- }
+ // Loop through images and write relationships
+ foreach ($pWorksheet->getHeaderFooter()->getImages() as $key => $value) {
+ // Write relationship for image drawing
+ $this->writeRelationship(
+ $objWriter,
+ $key,
+ 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
+ '../media/' . $value->getIndexedFilename()
+ );
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ return $objWriter->getData();
+ }
- /**
- * Write Override content type
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param int $pId Relationship ID. rId will be prepended!
- * @param string $pType Relationship type
- * @param string $pTarget Relationship target
- * @param string $pTargetMode Relationship target mode
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeRelationship(PHPExcel_Shared_XMLWriter $objWriter = null, $pId = 1, $pType = '', $pTarget = '', $pTargetMode = '')
- {
- if ($pType != '' && $pTarget != '') {
- // Write relationship
- $objWriter->startElement('Relationship');
- $objWriter->writeAttribute('Id', 'rId' . $pId);
- $objWriter->writeAttribute('Type', $pType);
- $objWriter->writeAttribute('Target', $pTarget);
+ /**
+ * Write Override content type
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param int $pId Relationship ID. rId will be prepended!
+ * @param string $pType Relationship type
+ * @param string $pTarget Relationship target
+ * @param string $pTargetMode Relationship target mode
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeRelationship(PHPExcel_Shared_XMLWriter $objWriter = null, $pId = 1, $pType = '', $pTarget = '', $pTargetMode = '')
+ {
+ if ($pType != '' && $pTarget != '') {
+ // Write relationship
+ $objWriter->startElement('Relationship');
+ $objWriter->writeAttribute('Id', 'rId' . $pId);
+ $objWriter->writeAttribute('Type', $pType);
+ $objWriter->writeAttribute('Target', $pTarget);
- if ($pTargetMode != '') {
- $objWriter->writeAttribute('TargetMode', $pTargetMode);
- }
+ if ($pTargetMode != '') {
+ $objWriter->writeAttribute('TargetMode', $pTargetMode);
+ }
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsRibbon.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsRibbon.php
index 615f2cbd..5a4a9fc0 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsRibbon.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsRibbon.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write relationships for additional objects of custom UI (ribbon)
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeRibbonRelationships(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- $localRels=$pPHPExcel->getRibbonBinObjects('names');
- if(is_array($localRels)){
- foreach($localRels as $aId=>$aTarget){
- $objWriter->startElement('Relationship');
- $objWriter->writeAttribute('Id', $aId);
- $objWriter->writeAttribute('Type', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image');
- $objWriter->writeAttribute('Target', $aTarget);
- $objWriter->endElement();//Relationship
- }
- }
- $objWriter->endElement();//Relationships
-
- // Return
- return $objWriter->getData();
-
- }
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ $localRels = $pPHPExcel->getRibbonBinObjects('names');
+ if (is_array($localRels)) {
+ foreach ($localRels as $aId => $aTarget) {
+ $objWriter->startElement('Relationship');
+ $objWriter->writeAttribute('Id', $aId);
+ $objWriter->writeAttribute('Type', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image');
+ $objWriter->writeAttribute('Target', $aTarget);
+ $objWriter->endElement();
+ }
+ }
+ $objWriter->endElement();
+ return $objWriter->getData();
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsVBA.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsVBA.php
index 3f87d81f..bee0e643 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsVBA.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/RelsVBA.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write relationships for a signed VBA Project
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeVBARelationships(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // Relationships
- $objWriter->startElement('Relationships');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
- $objWriter->startElement('Relationship');
- $objWriter->writeAttribute('Id', 'rId1');
- $objWriter->writeAttribute('Type', 'http://schemas.microsoft.com/office/2006/relationships/vbaProjectSignature');
- $objWriter->writeAttribute('Target', 'vbaProjectSignature.bin');
- $objWriter->endElement();//Relationship
- $objWriter->endElement();//Relationships
+ // Relationships
+ $objWriter->startElement('Relationships');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships');
+ $objWriter->startElement('Relationship');
+ $objWriter->writeAttribute('Id', 'rId1');
+ $objWriter->writeAttribute('Type', 'http://schemas.microsoft.com/office/2006/relationships/vbaProjectSignature');
+ $objWriter->writeAttribute('Target', 'vbaProjectSignature.bin');
+ $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
-
- }
+ return $objWriter->getData();
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/StringTable.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/StringTable.php
index e8ca1c5a..fccec669 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/StringTable.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/StringTable.php
@@ -1,8 +1,9 @@
flipStringTable($aStringTable);
+ // Fill index array
+ $aFlippedStringTable = $this->flipStringTable($aStringTable);
- // Loop through cells
- foreach ($pSheet->getCellCollection() as $cellID) {
- $cell = $pSheet->getCell($cellID);
- $cellValue = $cell->getValue();
- if (!is_object($cellValue) &&
- ($cellValue !== NULL) &&
- $cellValue !== '' &&
- !isset($aFlippedStringTable[$cellValue]) &&
- ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING2 || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_NULL)) {
- $aStringTable[] = $cellValue;
- $aFlippedStringTable[$cellValue] = true;
- } elseif ($cellValue instanceof PHPExcel_RichText &&
- ($cellValue !== NULL) &&
- !isset($aFlippedStringTable[$cellValue->getHashCode()])) {
- $aStringTable[] = $cellValue;
- $aFlippedStringTable[$cellValue->getHashCode()] = true;
- }
- }
+ // Loop through cells
+ foreach ($pSheet->getCellCollection() as $cellID) {
+ $cell = $pSheet->getCell($cellID);
+ $cellValue = $cell->getValue();
+ if (!is_object($cellValue) &&
+ ($cellValue !== null) &&
+ $cellValue !== '' &&
+ !isset($aFlippedStringTable[$cellValue]) &&
+ ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING2 || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_NULL)) {
+ $aStringTable[] = $cellValue;
+ $aFlippedStringTable[$cellValue] = true;
+ } elseif ($cellValue instanceof PHPExcel_RichText &&
+ ($cellValue !== null) &&
+ !isset($aFlippedStringTable[$cellValue->getHashCode()])) {
+ $aStringTable[] = $cellValue;
+ $aFlippedStringTable[$cellValue->getHashCode()] = true;
+ }
+ }
- // Return
- return $aStringTable;
- } else {
- throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed.");
- }
- }
+ return $aStringTable;
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed.");
+ }
+ }
- /**
- * Write string table to XML format
- *
- * @param string[] $pStringTable
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeStringTable($pStringTable = null)
- {
- if ($pStringTable !== NULL) {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write string table to XML format
+ *
+ * @param string[] $pStringTable
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeStringTable($pStringTable = null)
+ {
+ if ($pStringTable !== null) {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // String table
- $objWriter->startElement('sst');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
- $objWriter->writeAttribute('uniqueCount', count($pStringTable));
+ // String table
+ $objWriter->startElement('sst');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
+ $objWriter->writeAttribute('uniqueCount', count($pStringTable));
- // Loop through string table
- foreach ($pStringTable as $textElement) {
- $objWriter->startElement('si');
-
- if (! $textElement instanceof PHPExcel_RichText) {
- $textToWrite = PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $textElement );
- $objWriter->startElement('t');
- if ($textToWrite !== trim($textToWrite)) {
- $objWriter->writeAttribute('xml:space', 'preserve');
- }
- $objWriter->writeRawData($textToWrite);
- $objWriter->endElement();
- } else if ($textElement instanceof PHPExcel_RichText) {
- $this->writeRichText($objWriter, $textElement);
- }
+ // Loop through string table
+ foreach ($pStringTable as $textElement) {
+ $objWriter->startElement('si');
+ if (! $textElement instanceof PHPExcel_RichText) {
+ $textToWrite = PHPExcel_Shared_String::ControlCharacterPHP2OOXML($textElement);
+ $objWriter->startElement('t');
+ if ($textToWrite !== trim($textToWrite)) {
+ $objWriter->writeAttribute('xml:space', 'preserve');
+ }
+ $objWriter->writeRawData($textToWrite);
$objWriter->endElement();
- }
+ } elseif ($textElement instanceof PHPExcel_RichText) {
+ $this->writeRichText($objWriter, $textElement);
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
+ }
- // Return
- return $objWriter->getData();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid string table array passed.");
- }
- }
+ $objWriter->endElement();
- /**
- * Write Rich Text
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_RichText $pRichText Rich text
- * @param string $prefix Optional Namespace prefix
- * @throws PHPExcel_Writer_Exception
- */
- public function writeRichText(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_RichText $pRichText = null, $prefix=NULL)
- {
- if ($prefix !== NULL)
- $prefix .= ':';
- // Loop through rich text elements
- $elements = $pRichText->getRichTextElements();
- foreach ($elements as $element) {
- // r
- $objWriter->startElement($prefix.'r');
+ return $objWriter->getData();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid string table array passed.");
+ }
+ }
- // rPr
- if ($element instanceof PHPExcel_RichText_Run) {
- // rPr
- $objWriter->startElement($prefix.'rPr');
+ /**
+ * Write Rich Text
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_RichText $pRichText Rich text
+ * @param string $prefix Optional Namespace prefix
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeRichText(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_RichText $pRichText = null, $prefix = null)
+ {
+ if ($prefix !== null) {
+ $prefix .= ':';
+ }
+
+ // Loop through rich text elements
+ $elements = $pRichText->getRichTextElements();
+ foreach ($elements as $element) {
+ // r
+ $objWriter->startElement($prefix.'r');
- // rFont
- $objWriter->startElement($prefix.'rFont');
- $objWriter->writeAttribute('val', $element->getFont()->getName());
- $objWriter->endElement();
+ // rPr
+ if ($element instanceof PHPExcel_RichText_Run) {
+ // rPr
+ $objWriter->startElement($prefix.'rPr');
- // Bold
- $objWriter->startElement($prefix.'b');
- $objWriter->writeAttribute('val', ($element->getFont()->getBold() ? 'true' : 'false'));
- $objWriter->endElement();
+ // rFont
+ $objWriter->startElement($prefix.'rFont');
+ $objWriter->writeAttribute('val', $element->getFont()->getName());
+ $objWriter->endElement();
- // Italic
- $objWriter->startElement($prefix.'i');
- $objWriter->writeAttribute('val', ($element->getFont()->getItalic() ? 'true' : 'false'));
- $objWriter->endElement();
+ // Bold
+ $objWriter->startElement($prefix.'b');
+ $objWriter->writeAttribute('val', ($element->getFont()->getBold() ? 'true' : 'false'));
+ $objWriter->endElement();
- // Superscript / subscript
- if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) {
- $objWriter->startElement($prefix.'vertAlign');
- if ($element->getFont()->getSuperScript()) {
- $objWriter->writeAttribute('val', 'superscript');
- } else if ($element->getFont()->getSubScript()) {
- $objWriter->writeAttribute('val', 'subscript');
- }
- $objWriter->endElement();
- }
+ // Italic
+ $objWriter->startElement($prefix.'i');
+ $objWriter->writeAttribute('val', ($element->getFont()->getItalic() ? 'true' : 'false'));
+ $objWriter->endElement();
- // Strikethrough
- $objWriter->startElement($prefix.'strike');
- $objWriter->writeAttribute('val', ($element->getFont()->getStrikethrough() ? 'true' : 'false'));
- $objWriter->endElement();
+ // Superscript / subscript
+ if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) {
+ $objWriter->startElement($prefix.'vertAlign');
+ if ($element->getFont()->getSuperScript()) {
+ $objWriter->writeAttribute('val', 'superscript');
+ } elseif ($element->getFont()->getSubScript()) {
+ $objWriter->writeAttribute('val', 'subscript');
+ }
+ $objWriter->endElement();
+ }
- // Color
- $objWriter->startElement($prefix.'color');
- $objWriter->writeAttribute('rgb', $element->getFont()->getColor()->getARGB());
- $objWriter->endElement();
+ // Strikethrough
+ $objWriter->startElement($prefix.'strike');
+ $objWriter->writeAttribute('val', ($element->getFont()->getStrikethrough() ? 'true' : 'false'));
+ $objWriter->endElement();
- // Size
- $objWriter->startElement($prefix.'sz');
- $objWriter->writeAttribute('val', $element->getFont()->getSize());
- $objWriter->endElement();
+ // Color
+ $objWriter->startElement($prefix.'color');
+ $objWriter->writeAttribute('rgb', $element->getFont()->getColor()->getARGB());
+ $objWriter->endElement();
- // Underline
- $objWriter->startElement($prefix.'u');
- $objWriter->writeAttribute('val', $element->getFont()->getUnderline());
- $objWriter->endElement();
+ // Size
+ $objWriter->startElement($prefix.'sz');
+ $objWriter->writeAttribute('val', $element->getFont()->getSize());
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ // Underline
+ $objWriter->startElement($prefix.'u');
+ $objWriter->writeAttribute('val', $element->getFont()->getUnderline());
+ $objWriter->endElement();
- // t
- $objWriter->startElement($prefix.'t');
- $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $element->getText() ));
- $objWriter->endElement();
+ $objWriter->endElement();
+ }
- $objWriter->endElement();
- }
- }
+ // t
+ $objWriter->startElement($prefix.'t');
+ $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($element->getText()));
+ $objWriter->endElement();
- /**
- * Write Rich Text
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string|PHPExcel_RichText $pRichText text string or Rich text
- * @param string $prefix Optional Namespace prefix
- * @throws PHPExcel_Writer_Exception
- */
- public function writeRichTextForCharts(PHPExcel_Shared_XMLWriter $objWriter = null, $pRichText = null, $prefix=NULL)
- {
- if (!$pRichText instanceof PHPExcel_RichText) {
- $textRun = $pRichText;
- $pRichText = new PHPExcel_RichText();
- $pRichText->createTextRun($textRun);
- }
+ $objWriter->endElement();
+ }
+ }
- if ($prefix !== NULL)
- $prefix .= ':';
- // Loop through rich text elements
- $elements = $pRichText->getRichTextElements();
- foreach ($elements as $element) {
- // r
- $objWriter->startElement($prefix.'r');
+ /**
+ * Write Rich Text
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string|PHPExcel_RichText $pRichText text string or Rich text
+ * @param string $prefix Optional Namespace prefix
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeRichTextForCharts(PHPExcel_Shared_XMLWriter $objWriter = null, $pRichText = null, $prefix = null)
+ {
+ if (!$pRichText instanceof PHPExcel_RichText) {
+ $textRun = $pRichText;
+ $pRichText = new PHPExcel_RichText();
+ $pRichText->createTextRun($textRun);
+ }
- // rPr
- $objWriter->startElement($prefix.'rPr');
+ if ($prefix !== null) {
+ $prefix .= ':';
+ }
+
+ // Loop through rich text elements
+ $elements = $pRichText->getRichTextElements();
+ foreach ($elements as $element) {
+ // r
+ $objWriter->startElement($prefix.'r');
- // Bold
- $objWriter->writeAttribute('b', ($element->getFont()->getBold() ? 1 : 0));
- // Italic
- $objWriter->writeAttribute('i', ($element->getFont()->getItalic() ? 1 : 0));
- // Underline
- $underlineType = $element->getFont()->getUnderline();
- switch($underlineType) {
- case 'single' :
- $underlineType = 'sng';
- break;
- case 'double' :
- $underlineType = 'dbl';
- break;
- }
- $objWriter->writeAttribute('u', $underlineType);
- // Strikethrough
- $objWriter->writeAttribute('strike', ($element->getFont()->getStrikethrough() ? 'sngStrike' : 'noStrike'));
+ // rPr
+ $objWriter->startElement($prefix.'rPr');
- // rFont
- $objWriter->startElement($prefix.'latin');
- $objWriter->writeAttribute('typeface', $element->getFont()->getName());
- $objWriter->endElement();
+ // Bold
+ $objWriter->writeAttribute('b', ($element->getFont()->getBold() ? 1 : 0));
+ // Italic
+ $objWriter->writeAttribute('i', ($element->getFont()->getItalic() ? 1 : 0));
+ // Underline
+ $underlineType = $element->getFont()->getUnderline();
+ switch ($underlineType) {
+ case 'single':
+ $underlineType = 'sng';
+ break;
+ case 'double':
+ $underlineType = 'dbl';
+ break;
+ }
+ $objWriter->writeAttribute('u', $underlineType);
+ // Strikethrough
+ $objWriter->writeAttribute('strike', ($element->getFont()->getStrikethrough() ? 'sngStrike' : 'noStrike'));
- // Superscript / subscript
-// if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) {
-// $objWriter->startElement($prefix.'vertAlign');
-// if ($element->getFont()->getSuperScript()) {
-// $objWriter->writeAttribute('val', 'superscript');
-// } else if ($element->getFont()->getSubScript()) {
-// $objWriter->writeAttribute('val', 'subscript');
-// }
-// $objWriter->endElement();
-// }
+ // rFont
+ $objWriter->startElement($prefix.'latin');
+ $objWriter->writeAttribute('typeface', $element->getFont()->getName());
+ $objWriter->endElement();
+
+ // Superscript / subscript
+// if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) {
+// $objWriter->startElement($prefix.'vertAlign');
+// if ($element->getFont()->getSuperScript()) {
+// $objWriter->writeAttribute('val', 'superscript');
+// } elseif ($element->getFont()->getSubScript()) {
+// $objWriter->writeAttribute('val', 'subscript');
+// }
+// $objWriter->endElement();
+// }
//
- $objWriter->endElement();
+ $objWriter->endElement();
- // t
- $objWriter->startElement($prefix.'t');
-// $objWriter->writeAttribute('xml:space', 'preserve'); // Excel2010 accepts, Excel2007 complains
- $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML( $element->getText() ));
- $objWriter->endElement();
+ // t
+ $objWriter->startElement($prefix.'t');
+// $objWriter->writeAttribute('xml:space', 'preserve'); // Excel2010 accepts, Excel2007 complains
+ $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($element->getText()));
+ $objWriter->endElement();
- $objWriter->endElement();
- }
- }
+ $objWriter->endElement();
+ }
+ }
- /**
- * Flip string table (for index searching)
- *
- * @param array $stringTable Stringtable
- * @return array
- */
- public function flipStringTable($stringTable = array()) {
- // Return value
- $returnValue = array();
+ /**
+ * Flip string table (for index searching)
+ *
+ * @param array $stringTable Stringtable
+ * @return array
+ */
+ public function flipStringTable($stringTable = array())
+ {
+ // Return value
+ $returnValue = array();
- // Loop through stringtable and add flipped items to $returnValue
- foreach ($stringTable as $key => $value) {
- if (! $value instanceof PHPExcel_RichText) {
- $returnValue[$value] = $key;
- } else if ($value instanceof PHPExcel_RichText) {
- $returnValue[$value->getHashCode()] = $key;
- }
- }
+ // Loop through stringtable and add flipped items to $returnValue
+ foreach ($stringTable as $key => $value) {
+ if (! $value instanceof PHPExcel_RichText) {
+ $returnValue[$value] = $key;
+ } elseif ($value instanceof PHPExcel_RichText) {
+ $returnValue[$value->getHashCode()] = $key;
+ }
+ }
- // Return
- return $returnValue;
- }
+ return $returnValue;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
index d38c6eac..d3f0af7b 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write styles to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeStyles(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // styleSheet
- $objWriter->startElement('styleSheet');
- $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
+ // styleSheet
+ $objWriter->startElement('styleSheet');
+ $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
- // numFmts
- $objWriter->startElement('numFmts');
- $objWriter->writeAttribute('count', $this->getParentWriter()->getNumFmtHashTable()->count());
+ // numFmts
+ $objWriter->startElement('numFmts');
+ $objWriter->writeAttribute('count', $this->getParentWriter()->getNumFmtHashTable()->count());
- // numFmt
- for ($i = 0; $i < $this->getParentWriter()->getNumFmtHashTable()->count(); ++$i) {
- $this->_writeNumFmt($objWriter, $this->getParentWriter()->getNumFmtHashTable()->getByIndex($i), $i);
- }
+ // numFmt
+ for ($i = 0; $i < $this->getParentWriter()->getNumFmtHashTable()->count(); ++$i) {
+ $this->writeNumFmt($objWriter, $this->getParentWriter()->getNumFmtHashTable()->getByIndex($i), $i);
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // fonts
- $objWriter->startElement('fonts');
- $objWriter->writeAttribute('count', $this->getParentWriter()->getFontHashTable()->count());
+ // fonts
+ $objWriter->startElement('fonts');
+ $objWriter->writeAttribute('count', $this->getParentWriter()->getFontHashTable()->count());
- // font
- for ($i = 0; $i < $this->getParentWriter()->getFontHashTable()->count(); ++$i) {
- $this->_writeFont($objWriter, $this->getParentWriter()->getFontHashTable()->getByIndex($i));
- }
+ // font
+ for ($i = 0; $i < $this->getParentWriter()->getFontHashTable()->count(); ++$i) {
+ $this->writeFont($objWriter, $this->getParentWriter()->getFontHashTable()->getByIndex($i));
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // fills
- $objWriter->startElement('fills');
- $objWriter->writeAttribute('count', $this->getParentWriter()->getFillHashTable()->count());
+ // fills
+ $objWriter->startElement('fills');
+ $objWriter->writeAttribute('count', $this->getParentWriter()->getFillHashTable()->count());
- // fill
- for ($i = 0; $i < $this->getParentWriter()->getFillHashTable()->count(); ++$i) {
- $this->_writeFill($objWriter, $this->getParentWriter()->getFillHashTable()->getByIndex($i));
- }
+ // fill
+ for ($i = 0; $i < $this->getParentWriter()->getFillHashTable()->count(); ++$i) {
+ $this->writeFill($objWriter, $this->getParentWriter()->getFillHashTable()->getByIndex($i));
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // borders
- $objWriter->startElement('borders');
- $objWriter->writeAttribute('count', $this->getParentWriter()->getBordersHashTable()->count());
+ // borders
+ $objWriter->startElement('borders');
+ $objWriter->writeAttribute('count', $this->getParentWriter()->getBordersHashTable()->count());
- // border
- for ($i = 0; $i < $this->getParentWriter()->getBordersHashTable()->count(); ++$i) {
- $this->_writeBorder($objWriter, $this->getParentWriter()->getBordersHashTable()->getByIndex($i));
- }
+ // border
+ for ($i = 0; $i < $this->getParentWriter()->getBordersHashTable()->count(); ++$i) {
+ $this->writeBorder($objWriter, $this->getParentWriter()->getBordersHashTable()->getByIndex($i));
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // cellStyleXfs
- $objWriter->startElement('cellStyleXfs');
- $objWriter->writeAttribute('count', 1);
+ // cellStyleXfs
+ $objWriter->startElement('cellStyleXfs');
+ $objWriter->writeAttribute('count', 1);
- // xf
- $objWriter->startElement('xf');
- $objWriter->writeAttribute('numFmtId', 0);
- $objWriter->writeAttribute('fontId', 0);
- $objWriter->writeAttribute('fillId', 0);
- $objWriter->writeAttribute('borderId', 0);
- $objWriter->endElement();
+ // xf
+ $objWriter->startElement('xf');
+ $objWriter->writeAttribute('numFmtId', 0);
+ $objWriter->writeAttribute('fontId', 0);
+ $objWriter->writeAttribute('fillId', 0);
+ $objWriter->writeAttribute('borderId', 0);
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // cellXfs
- $objWriter->startElement('cellXfs');
- $objWriter->writeAttribute('count', count($pPHPExcel->getCellXfCollection()));
+ // cellXfs
+ $objWriter->startElement('cellXfs');
+ $objWriter->writeAttribute('count', count($pPHPExcel->getCellXfCollection()));
- // xf
- foreach ($pPHPExcel->getCellXfCollection() as $cellXf) {
- $this->_writeCellStyleXf($objWriter, $cellXf, $pPHPExcel);
- }
+ // xf
+ foreach ($pPHPExcel->getCellXfCollection() as $cellXf) {
+ $this->writeCellStyleXf($objWriter, $cellXf, $pPHPExcel);
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // cellStyles
- $objWriter->startElement('cellStyles');
- $objWriter->writeAttribute('count', 1);
+ // cellStyles
+ $objWriter->startElement('cellStyles');
+ $objWriter->writeAttribute('count', 1);
- // cellStyle
- $objWriter->startElement('cellStyle');
- $objWriter->writeAttribute('name', 'Normal');
- $objWriter->writeAttribute('xfId', 0);
- $objWriter->writeAttribute('builtinId', 0);
- $objWriter->endElement();
+ // cellStyle
+ $objWriter->startElement('cellStyle');
+ $objWriter->writeAttribute('name', 'Normal');
+ $objWriter->writeAttribute('xfId', 0);
+ $objWriter->writeAttribute('builtinId', 0);
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // dxfs
- $objWriter->startElement('dxfs');
- $objWriter->writeAttribute('count', $this->getParentWriter()->getStylesConditionalHashTable()->count());
+ // dxfs
+ $objWriter->startElement('dxfs');
+ $objWriter->writeAttribute('count', $this->getParentWriter()->getStylesConditionalHashTable()->count());
- // dxf
- for ($i = 0; $i < $this->getParentWriter()->getStylesConditionalHashTable()->count(); ++$i) {
- $this->_writeCellStyleDxf($objWriter, $this->getParentWriter()->getStylesConditionalHashTable()->getByIndex($i)->getStyle());
- }
+ // dxf
+ for ($i = 0; $i < $this->getParentWriter()->getStylesConditionalHashTable()->count(); ++$i) {
+ $this->writeCellStyleDxf($objWriter, $this->getParentWriter()->getStylesConditionalHashTable()->getByIndex($i)->getStyle());
+ }
- $objWriter->endElement();
+ $objWriter->endElement();
- // tableStyles
- $objWriter->startElement('tableStyles');
- $objWriter->writeAttribute('defaultTableStyle', 'TableStyleMedium9');
- $objWriter->writeAttribute('defaultPivotStyle', 'PivotTableStyle1');
- $objWriter->endElement();
+ // tableStyles
+ $objWriter->startElement('tableStyles');
+ $objWriter->writeAttribute('defaultTableStyle', 'TableStyleMedium9');
+ $objWriter->writeAttribute('defaultPivotStyle', 'PivotTableStyle1');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write Fill
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_Fill $pFill Fill style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
- {
- // Check if this is a pattern type or gradient type
- if ($pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR ||
- $pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_PATH) {
- // Gradient fill
- $this->_writeGradientFill($objWriter, $pFill);
- } elseif($pFill->getFillType() !== NULL) {
- // Pattern fill
- $this->_writePatternFill($objWriter, $pFill);
- }
- }
+ /**
+ * Write Fill
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_Fill $pFill Fill style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
+ {
+ // Check if this is a pattern type or gradient type
+ if ($pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR ||
+ $pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_PATH) {
+ // Gradient fill
+ $this->writeGradientFill($objWriter, $pFill);
+ } elseif ($pFill->getFillType() !== null) {
+ // Pattern fill
+ $this->writePatternFill($objWriter, $pFill);
+ }
+ }
- /**
- * Write Gradient Fill
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_Fill $pFill Fill style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeGradientFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
- {
- // fill
- $objWriter->startElement('fill');
+ /**
+ * Write Gradient Fill
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_Fill $pFill Fill style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeGradientFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
+ {
+ // fill
+ $objWriter->startElement('fill');
- // gradientFill
- $objWriter->startElement('gradientFill');
- $objWriter->writeAttribute('type', $pFill->getFillType());
- $objWriter->writeAttribute('degree', $pFill->getRotation());
+ // gradientFill
+ $objWriter->startElement('gradientFill');
+ $objWriter->writeAttribute('type', $pFill->getFillType());
+ $objWriter->writeAttribute('degree', $pFill->getRotation());
- // stop
- $objWriter->startElement('stop');
- $objWriter->writeAttribute('position', '0');
+ // stop
+ $objWriter->startElement('stop');
+ $objWriter->writeAttribute('position', '0');
- // color
- $objWriter->startElement('color');
- $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB());
- $objWriter->endElement();
+ // color
+ $objWriter->startElement('color');
+ $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB());
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // stop
- $objWriter->startElement('stop');
- $objWriter->writeAttribute('position', '1');
+ // stop
+ $objWriter->startElement('stop');
+ $objWriter->writeAttribute('position', '1');
- // color
- $objWriter->startElement('color');
- $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB());
- $objWriter->endElement();
+ // color
+ $objWriter->startElement('color');
+ $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB());
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write Pattern Fill
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_Fill $pFill Fill style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePatternFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
- {
- // fill
- $objWriter->startElement('fill');
+ /**
+ * Write Pattern Fill
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_Fill $pFill Fill style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePatternFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null)
+ {
+ // fill
+ $objWriter->startElement('fill');
- // patternFill
- $objWriter->startElement('patternFill');
- $objWriter->writeAttribute('patternType', $pFill->getFillType());
+ // patternFill
+ $objWriter->startElement('patternFill');
+ $objWriter->writeAttribute('patternType', $pFill->getFillType());
- if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) {
- // fgColor
- if ($pFill->getStartColor()->getARGB()) {
- $objWriter->startElement('fgColor');
- $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB());
- $objWriter->endElement();
- }
- }
- if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) {
- // bgColor
- if ($pFill->getEndColor()->getARGB()) {
- $objWriter->startElement('bgColor');
- $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB());
- $objWriter->endElement();
- }
- }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write Font
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_Font $pFont Font style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeFont(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Font $pFont = null)
- {
- // font
- $objWriter->startElement('font');
- // Weird! The order of these elements actually makes a difference when opening Excel2007
- // files in Excel2003 with the compatibility pack. It's not documented behaviour,
- // and makes for a real WTF!
-
- // Bold. We explicitly write this element also when false (like MS Office Excel 2007 does
- // for conditional formatting). Otherwise it will apparently not be picked up in conditional
- // formatting style dialog
- if ($pFont->getBold() !== NULL) {
- $objWriter->startElement('b');
- $objWriter->writeAttribute('val', $pFont->getBold() ? '1' : '0');
- $objWriter->endElement();
- }
-
- // Italic
- if ($pFont->getItalic() !== NULL) {
- $objWriter->startElement('i');
- $objWriter->writeAttribute('val', $pFont->getItalic() ? '1' : '0');
- $objWriter->endElement();
- }
-
- // Strikethrough
- if ($pFont->getStrikethrough() !== NULL) {
- $objWriter->startElement('strike');
- $objWriter->writeAttribute('val', $pFont->getStrikethrough() ? '1' : '0');
- $objWriter->endElement();
- }
-
- // Underline
- if ($pFont->getUnderline() !== NULL) {
- $objWriter->startElement('u');
- $objWriter->writeAttribute('val', $pFont->getUnderline());
- $objWriter->endElement();
- }
-
- // Superscript / subscript
- if ($pFont->getSuperScript() === TRUE || $pFont->getSubScript() === TRUE) {
- $objWriter->startElement('vertAlign');
- if ($pFont->getSuperScript() === TRUE) {
- $objWriter->writeAttribute('val', 'superscript');
- } else if ($pFont->getSubScript() === TRUE) {
- $objWriter->writeAttribute('val', 'subscript');
- }
- $objWriter->endElement();
- }
-
- // Size
- if ($pFont->getSize() !== NULL) {
- $objWriter->startElement('sz');
- $objWriter->writeAttribute('val', $pFont->getSize());
- $objWriter->endElement();
- }
-
- // Foreground color
- if ($pFont->getColor()->getARGB() !== NULL) {
- $objWriter->startElement('color');
- $objWriter->writeAttribute('rgb', $pFont->getColor()->getARGB());
- $objWriter->endElement();
- }
-
- // Name
- if ($pFont->getName() !== NULL) {
- $objWriter->startElement('name');
- $objWriter->writeAttribute('val', $pFont->getName());
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
-
- /**
- * Write Border
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_Borders $pBorders Borders style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeBorder(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Borders $pBorders = null)
- {
- // Write border
- $objWriter->startElement('border');
- // Diagonal?
- switch ($pBorders->getDiagonalDirection()) {
- case PHPExcel_Style_Borders::DIAGONAL_UP:
- $objWriter->writeAttribute('diagonalUp', 'true');
- $objWriter->writeAttribute('diagonalDown', 'false');
- break;
- case PHPExcel_Style_Borders::DIAGONAL_DOWN:
- $objWriter->writeAttribute('diagonalUp', 'false');
- $objWriter->writeAttribute('diagonalDown', 'true');
- break;
- case PHPExcel_Style_Borders::DIAGONAL_BOTH:
- $objWriter->writeAttribute('diagonalUp', 'true');
- $objWriter->writeAttribute('diagonalDown', 'true');
- break;
- }
-
- // BorderPr
- $this->_writeBorderPr($objWriter, 'left', $pBorders->getLeft());
- $this->_writeBorderPr($objWriter, 'right', $pBorders->getRight());
- $this->_writeBorderPr($objWriter, 'top', $pBorders->getTop());
- $this->_writeBorderPr($objWriter, 'bottom', $pBorders->getBottom());
- $this->_writeBorderPr($objWriter, 'diagonal', $pBorders->getDiagonal());
- $objWriter->endElement();
- }
-
- /**
- * Write Cell Style Xf
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style $pStyle Style
- * @param PHPExcel $pPHPExcel Workbook
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCellStyleXf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null, PHPExcel $pPHPExcel = null)
- {
- // xf
- $objWriter->startElement('xf');
- $objWriter->writeAttribute('xfId', 0);
- $objWriter->writeAttribute('fontId', (int)$this->getParentWriter()->getFontHashTable()->getIndexForHashCode($pStyle->getFont()->getHashCode()));
- if ($pStyle->getQuotePrefix()) {
- $objWriter->writeAttribute('quotePrefix', 1);
+ if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) {
+ // fgColor
+ if ($pFill->getStartColor()->getARGB()) {
+ $objWriter->startElement('fgColor');
+ $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB());
+ $objWriter->endElement();
}
+ }
+ if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) {
+ // bgColor
+ if ($pFill->getEndColor()->getARGB()) {
+ $objWriter->startElement('bgColor');
+ $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB());
+ $objWriter->endElement();
+ }
+ }
- if ($pStyle->getNumberFormat()->getBuiltInFormatCode() === false) {
- $objWriter->writeAttribute('numFmtId', (int)($this->getParentWriter()->getNumFmtHashTable()->getIndexForHashCode($pStyle->getNumberFormat()->getHashCode()) + 164) );
- } else {
- $objWriter->writeAttribute('numFmtId', (int)$pStyle->getNumberFormat()->getBuiltInFormatCode());
- }
+ $objWriter->endElement();
- $objWriter->writeAttribute('fillId', (int)$this->getParentWriter()->getFillHashTable()->getIndexForHashCode($pStyle->getFill()->getHashCode()));
- $objWriter->writeAttribute('borderId', (int)$this->getParentWriter()->getBordersHashTable()->getIndexForHashCode($pStyle->getBorders()->getHashCode()));
+ $objWriter->endElement();
+ }
- // Apply styles?
- $objWriter->writeAttribute('applyFont', ($pPHPExcel->getDefaultStyle()->getFont()->getHashCode() != $pStyle->getFont()->getHashCode()) ? '1' : '0');
- $objWriter->writeAttribute('applyNumberFormat', ($pPHPExcel->getDefaultStyle()->getNumberFormat()->getHashCode() != $pStyle->getNumberFormat()->getHashCode()) ? '1' : '0');
- $objWriter->writeAttribute('applyFill', ($pPHPExcel->getDefaultStyle()->getFill()->getHashCode() != $pStyle->getFill()->getHashCode()) ? '1' : '0');
- $objWriter->writeAttribute('applyBorder', ($pPHPExcel->getDefaultStyle()->getBorders()->getHashCode() != $pStyle->getBorders()->getHashCode()) ? '1' : '0');
- $objWriter->writeAttribute('applyAlignment', ($pPHPExcel->getDefaultStyle()->getAlignment()->getHashCode() != $pStyle->getAlignment()->getHashCode()) ? '1' : '0');
- if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
- $objWriter->writeAttribute('applyProtection', 'true');
- }
+ /**
+ * Write Font
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_Font $pFont Font style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeFont(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Font $pFont = null)
+ {
+ // font
+ $objWriter->startElement('font');
+ // Weird! The order of these elements actually makes a difference when opening Excel2007
+ // files in Excel2003 with the compatibility pack. It's not documented behaviour,
+ // and makes for a real WTF!
- // alignment
- $objWriter->startElement('alignment');
- $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal());
- $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical());
+ // Bold. We explicitly write this element also when false (like MS Office Excel 2007 does
+ // for conditional formatting). Otherwise it will apparently not be picked up in conditional
+ // formatting style dialog
+ if ($pFont->getBold() !== null) {
+ $objWriter->startElement('b');
+ $objWriter->writeAttribute('val', $pFont->getBold() ? '1' : '0');
+ $objWriter->endElement();
+ }
- $textRotation = 0;
- if ($pStyle->getAlignment()->getTextRotation() >= 0) {
- $textRotation = $pStyle->getAlignment()->getTextRotation();
- } else if ($pStyle->getAlignment()->getTextRotation() < 0) {
- $textRotation = 90 - $pStyle->getAlignment()->getTextRotation();
- }
- $objWriter->writeAttribute('textRotation', $textRotation);
+ // Italic
+ if ($pFont->getItalic() !== null) {
+ $objWriter->startElement('i');
+ $objWriter->writeAttribute('val', $pFont->getItalic() ? '1' : '0');
+ $objWriter->endElement();
+ }
- $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false'));
- $objWriter->writeAttribute('shrinkToFit', ($pStyle->getAlignment()->getShrinkToFit() ? 'true' : 'false'));
+ // Strikethrough
+ if ($pFont->getStrikethrough() !== null) {
+ $objWriter->startElement('strike');
+ $objWriter->writeAttribute('val', $pFont->getStrikethrough() ? '1' : '0');
+ $objWriter->endElement();
+ }
- if ($pStyle->getAlignment()->getIndent() > 0) {
- $objWriter->writeAttribute('indent', $pStyle->getAlignment()->getIndent());
- }
- if ($pStyle->getAlignment()->getReadorder() > 0) {
- $objWriter->writeAttribute('readingOrder', $pStyle->getAlignment()->getReadorder());
- }
- $objWriter->endElement();
+ // Underline
+ if ($pFont->getUnderline() !== null) {
+ $objWriter->startElement('u');
+ $objWriter->writeAttribute('val', $pFont->getUnderline());
+ $objWriter->endElement();
+ }
- // protection
- if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
- $objWriter->startElement('protection');
- if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
- $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
- }
- if ($pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
- $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
- }
- $objWriter->endElement();
- }
+ // Superscript / subscript
+ if ($pFont->getSuperScript() === true || $pFont->getSubScript() === true) {
+ $objWriter->startElement('vertAlign');
+ if ($pFont->getSuperScript() === true) {
+ $objWriter->writeAttribute('val', 'superscript');
+ } elseif ($pFont->getSubScript() === true) {
+ $objWriter->writeAttribute('val', 'subscript');
+ }
+ $objWriter->endElement();
+ }
- $objWriter->endElement();
- }
+ // Size
+ if ($pFont->getSize() !== null) {
+ $objWriter->startElement('sz');
+ $objWriter->writeAttribute('val', $pFont->getSize());
+ $objWriter->endElement();
+ }
- /**
- * Write Cell Style Dxf
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style $pStyle Style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCellStyleDxf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null)
- {
- // dxf
- $objWriter->startElement('dxf');
+ // Foreground color
+ if ($pFont->getColor()->getARGB() !== null) {
+ $objWriter->startElement('color');
+ $objWriter->writeAttribute('rgb', $pFont->getColor()->getARGB());
+ $objWriter->endElement();
+ }
- // font
- $this->_writeFont($objWriter, $pStyle->getFont());
+ // Name
+ if ($pFont->getName() !== null) {
+ $objWriter->startElement('name');
+ $objWriter->writeAttribute('val', $pFont->getName());
+ $objWriter->endElement();
+ }
- // numFmt
- $this->_writeNumFmt($objWriter, $pStyle->getNumberFormat());
+ $objWriter->endElement();
+ }
- // fill
- $this->_writeFill($objWriter, $pStyle->getFill());
+ /**
+ * Write Border
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_Borders $pBorders Borders style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeBorder(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Borders $pBorders = null)
+ {
+ // Write border
+ $objWriter->startElement('border');
+ // Diagonal?
+ switch ($pBorders->getDiagonalDirection()) {
+ case PHPExcel_Style_Borders::DIAGONAL_UP:
+ $objWriter->writeAttribute('diagonalUp', 'true');
+ $objWriter->writeAttribute('diagonalDown', 'false');
+ break;
+ case PHPExcel_Style_Borders::DIAGONAL_DOWN:
+ $objWriter->writeAttribute('diagonalUp', 'false');
+ $objWriter->writeAttribute('diagonalDown', 'true');
+ break;
+ case PHPExcel_Style_Borders::DIAGONAL_BOTH:
+ $objWriter->writeAttribute('diagonalUp', 'true');
+ $objWriter->writeAttribute('diagonalDown', 'true');
+ break;
+ }
- // alignment
- $objWriter->startElement('alignment');
- if ($pStyle->getAlignment()->getHorizontal() !== NULL) {
- $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal());
- }
- if ($pStyle->getAlignment()->getVertical() !== NULL) {
- $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical());
- }
+ // BorderPr
+ $this->writeBorderPr($objWriter, 'left', $pBorders->getLeft());
+ $this->writeBorderPr($objWriter, 'right', $pBorders->getRight());
+ $this->writeBorderPr($objWriter, 'top', $pBorders->getTop());
+ $this->writeBorderPr($objWriter, 'bottom', $pBorders->getBottom());
+ $this->writeBorderPr($objWriter, 'diagonal', $pBorders->getDiagonal());
+ $objWriter->endElement();
+ }
- if ($pStyle->getAlignment()->getTextRotation() !== NULL) {
- $textRotation = 0;
- if ($pStyle->getAlignment()->getTextRotation() >= 0) {
- $textRotation = $pStyle->getAlignment()->getTextRotation();
- } else if ($pStyle->getAlignment()->getTextRotation() < 0) {
- $textRotation = 90 - $pStyle->getAlignment()->getTextRotation();
- }
- $objWriter->writeAttribute('textRotation', $textRotation);
- }
- $objWriter->endElement();
+ /**
+ * Write Cell Style Xf
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style $pStyle Style
+ * @param PHPExcel $pPHPExcel Workbook
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCellStyleXf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null, PHPExcel $pPHPExcel = null)
+ {
+ // xf
+ $objWriter->startElement('xf');
+ $objWriter->writeAttribute('xfId', 0);
+ $objWriter->writeAttribute('fontId', (int)$this->getParentWriter()->getFontHashTable()->getIndexForHashCode($pStyle->getFont()->getHashCode()));
+ if ($pStyle->getQuotePrefix()) {
+ $objWriter->writeAttribute('quotePrefix', 1);
+ }
- // border
- $this->_writeBorder($objWriter, $pStyle->getBorders());
+ if ($pStyle->getNumberFormat()->getBuiltInFormatCode() === false) {
+ $objWriter->writeAttribute('numFmtId', (int)($this->getParentWriter()->getNumFmtHashTable()->getIndexForHashCode($pStyle->getNumberFormat()->getHashCode()) + 164));
+ } else {
+ $objWriter->writeAttribute('numFmtId', (int)$pStyle->getNumberFormat()->getBuiltInFormatCode());
+ }
- // protection
- if (($pStyle->getProtection()->getLocked() !== NULL) ||
- ($pStyle->getProtection()->getHidden() !== NULL)) {
- if ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT ||
- $pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT) {
- $objWriter->startElement('protection');
- if (($pStyle->getProtection()->getLocked() !== NULL) &&
- ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) {
- $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
- }
- if (($pStyle->getProtection()->getHidden() !== NULL) &&
- ($pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) {
- $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
- }
- $objWriter->endElement();
- }
- }
+ $objWriter->writeAttribute('fillId', (int)$this->getParentWriter()->getFillHashTable()->getIndexForHashCode($pStyle->getFill()->getHashCode()));
+ $objWriter->writeAttribute('borderId', (int)$this->getParentWriter()->getBordersHashTable()->getIndexForHashCode($pStyle->getBorders()->getHashCode()));
- $objWriter->endElement();
- }
+ // Apply styles?
+ $objWriter->writeAttribute('applyFont', ($pPHPExcel->getDefaultStyle()->getFont()->getHashCode() != $pStyle->getFont()->getHashCode()) ? '1' : '0');
+ $objWriter->writeAttribute('applyNumberFormat', ($pPHPExcel->getDefaultStyle()->getNumberFormat()->getHashCode() != $pStyle->getNumberFormat()->getHashCode()) ? '1' : '0');
+ $objWriter->writeAttribute('applyFill', ($pPHPExcel->getDefaultStyle()->getFill()->getHashCode() != $pStyle->getFill()->getHashCode()) ? '1' : '0');
+ $objWriter->writeAttribute('applyBorder', ($pPHPExcel->getDefaultStyle()->getBorders()->getHashCode() != $pStyle->getBorders()->getHashCode()) ? '1' : '0');
+ $objWriter->writeAttribute('applyAlignment', ($pPHPExcel->getDefaultStyle()->getAlignment()->getHashCode() != $pStyle->getAlignment()->getHashCode()) ? '1' : '0');
+ if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
+ $objWriter->writeAttribute('applyProtection', 'true');
+ }
- /**
- * Write BorderPr
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pName Element name
- * @param PHPExcel_Style_Border $pBorder Border style
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeBorderPr(PHPExcel_Shared_XMLWriter $objWriter = null, $pName = 'left', PHPExcel_Style_Border $pBorder = null)
- {
- // Write BorderPr
- if ($pBorder->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) {
- $objWriter->startElement($pName);
- $objWriter->writeAttribute('style', $pBorder->getBorderStyle());
+ // alignment
+ $objWriter->startElement('alignment');
+ $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal());
+ $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical());
- // color
- $objWriter->startElement('color');
- $objWriter->writeAttribute('rgb', $pBorder->getColor()->getARGB());
- $objWriter->endElement();
+ $textRotation = 0;
+ if ($pStyle->getAlignment()->getTextRotation() >= 0) {
+ $textRotation = $pStyle->getAlignment()->getTextRotation();
+ } elseif ($pStyle->getAlignment()->getTextRotation() < 0) {
+ $textRotation = 90 - $pStyle->getAlignment()->getTextRotation();
+ }
+ $objWriter->writeAttribute('textRotation', $textRotation);
- $objWriter->endElement();
- }
- }
+ $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false'));
+ $objWriter->writeAttribute('shrinkToFit', ($pStyle->getAlignment()->getShrinkToFit() ? 'true' : 'false'));
- /**
- * Write NumberFormat
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Style_NumberFormat $pNumberFormat Number Format
- * @param int $pId Number Format identifier
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeNumFmt(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_NumberFormat $pNumberFormat = null, $pId = 0)
- {
- // Translate formatcode
- $formatCode = $pNumberFormat->getFormatCode();
+ if ($pStyle->getAlignment()->getIndent() > 0) {
+ $objWriter->writeAttribute('indent', $pStyle->getAlignment()->getIndent());
+ }
+ if ($pStyle->getAlignment()->getReadorder() > 0) {
+ $objWriter->writeAttribute('readingOrder', $pStyle->getAlignment()->getReadorder());
+ }
+ $objWriter->endElement();
- // numFmt
- if ($formatCode !== NULL) {
- $objWriter->startElement('numFmt');
- $objWriter->writeAttribute('numFmtId', ($pId + 164));
- $objWriter->writeAttribute('formatCode', $formatCode);
- $objWriter->endElement();
- }
- }
+ // protection
+ if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
+ $objWriter->startElement('protection');
+ if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
+ $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
+ }
+ if ($pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) {
+ $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
+ }
+ $objWriter->endElement();
+ }
- /**
- * Get an array of all styles
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style[] All styles in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allStyles(PHPExcel $pPHPExcel = null)
- {
- $aStyles = $pPHPExcel->getCellXfCollection();
+ $objWriter->endElement();
+ }
- return $aStyles;
- }
+ /**
+ * Write Cell Style Dxf
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style $pStyle Style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCellStyleDxf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null)
+ {
+ // dxf
+ $objWriter->startElement('dxf');
- /**
- * Get an array of all conditional styles
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style_Conditional[] All conditional styles in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allConditionalStyles(PHPExcel $pPHPExcel = null)
- {
- // Get an array of all styles
- $aStyles = array();
+ // font
+ $this->writeFont($objWriter, $pStyle->getFont());
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- foreach ($pPHPExcel->getSheet($i)->getConditionalStylesCollection() as $conditionalStyles) {
- foreach ($conditionalStyles as $conditionalStyle) {
- $aStyles[] = $conditionalStyle;
- }
- }
- }
+ // numFmt
+ $this->writeNumFmt($objWriter, $pStyle->getNumberFormat());
- return $aStyles;
- }
+ // fill
+ $this->writeFill($objWriter, $pStyle->getFill());
- /**
- * Get an array of all fills
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style_Fill[] All fills in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allFills(PHPExcel $pPHPExcel = null)
- {
- // Get an array of unique fills
- $aFills = array();
+ // alignment
+ $objWriter->startElement('alignment');
+ if ($pStyle->getAlignment()->getHorizontal() !== null) {
+ $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal());
+ }
+ if ($pStyle->getAlignment()->getVertical() !== null) {
+ $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical());
+ }
- // Two first fills are predefined
- $fill0 = new PHPExcel_Style_Fill();
- $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE);
- $aFills[] = $fill0;
+ if ($pStyle->getAlignment()->getTextRotation() !== null) {
+ $textRotation = 0;
+ if ($pStyle->getAlignment()->getTextRotation() >= 0) {
+ $textRotation = $pStyle->getAlignment()->getTextRotation();
+ } elseif ($pStyle->getAlignment()->getTextRotation() < 0) {
+ $textRotation = 90 - $pStyle->getAlignment()->getTextRotation();
+ }
+ $objWriter->writeAttribute('textRotation', $textRotation);
+ }
+ $objWriter->endElement();
- $fill1 = new PHPExcel_Style_Fill();
- $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125);
- $aFills[] = $fill1;
- // The remaining fills
- $aStyles = $this->allStyles($pPHPExcel);
- foreach ($aStyles as $style) {
- if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) {
- $aFills[ $style->getFill()->getHashCode() ] = $style->getFill();
- }
- }
+ // border
+ $this->writeBorder($objWriter, $pStyle->getBorders());
- return $aFills;
- }
+ // protection
+ if (($pStyle->getProtection()->getLocked() !== null) || ($pStyle->getProtection()->getHidden() !== null)) {
+ if ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT ||
+ $pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT) {
+ $objWriter->startElement('protection');
+ if (($pStyle->getProtection()->getLocked() !== null) &&
+ ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) {
+ $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
+ }
+ if (($pStyle->getProtection()->getHidden() !== null) &&
+ ($pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) {
+ $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false'));
+ }
+ $objWriter->endElement();
+ }
+ }
- /**
- * Get an array of all fonts
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style_Font[] All fonts in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allFonts(PHPExcel $pPHPExcel = null)
- {
- // Get an array of unique fonts
- $aFonts = array();
- $aStyles = $this->allStyles($pPHPExcel);
+ $objWriter->endElement();
+ }
- foreach ($aStyles as $style) {
- if (!array_key_exists($style->getFont()->getHashCode(), $aFonts)) {
- $aFonts[ $style->getFont()->getHashCode() ] = $style->getFont();
- }
- }
+ /**
+ * Write BorderPr
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pName Element name
+ * @param PHPExcel_Style_Border $pBorder Border style
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeBorderPr(PHPExcel_Shared_XMLWriter $objWriter = null, $pName = 'left', PHPExcel_Style_Border $pBorder = null)
+ {
+ // Write BorderPr
+ if ($pBorder->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) {
+ $objWriter->startElement($pName);
+ $objWriter->writeAttribute('style', $pBorder->getBorderStyle());
- return $aFonts;
- }
+ // color
+ $objWriter->startElement('color');
+ $objWriter->writeAttribute('rgb', $pBorder->getColor()->getARGB());
+ $objWriter->endElement();
- /**
- * Get an array of all borders
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style_Borders[] All borders in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allBorders(PHPExcel $pPHPExcel = null)
- {
- // Get an array of unique borders
- $aBorders = array();
- $aStyles = $this->allStyles($pPHPExcel);
+ $objWriter->endElement();
+ }
+ }
- foreach ($aStyles as $style) {
- if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) {
- $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders();
- }
- }
+ /**
+ * Write NumberFormat
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Style_NumberFormat $pNumberFormat Number Format
+ * @param int $pId Number Format identifier
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeNumFmt(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_NumberFormat $pNumberFormat = null, $pId = 0)
+ {
+ // Translate formatcode
+ $formatCode = $pNumberFormat->getFormatCode();
- return $aBorders;
- }
+ // numFmt
+ if ($formatCode !== null) {
+ $objWriter->startElement('numFmt');
+ $objWriter->writeAttribute('numFmtId', ($pId + 164));
+ $objWriter->writeAttribute('formatCode', $formatCode);
+ $objWriter->endElement();
+ }
+ }
- /**
- * Get an array of all number formats
- *
- * @param PHPExcel $pPHPExcel
- * @return PHPExcel_Style_NumberFormat[] All number formats in PHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- public function allNumberFormats(PHPExcel $pPHPExcel = null)
- {
- // Get an array of unique number formats
- $aNumFmts = array();
- $aStyles = $this->allStyles($pPHPExcel);
+ /**
+ * Get an array of all styles
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style[] All styles in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allStyles(PHPExcel $pPHPExcel = null)
+ {
+ return $pPHPExcel->getCellXfCollection();
+ }
- foreach ($aStyles as $style) {
- if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
- $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
- }
- }
+ /**
+ * Get an array of all conditional styles
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style_Conditional[] All conditional styles in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allConditionalStyles(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of all styles
+ $aStyles = array();
- return $aNumFmts;
- }
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ foreach ($pPHPExcel->getSheet($i)->getConditionalStylesCollection() as $conditionalStyles) {
+ foreach ($conditionalStyles as $conditionalStyle) {
+ $aStyles[] = $conditionalStyle;
+ }
+ }
+ }
+
+ return $aStyles;
+ }
+
+ /**
+ * Get an array of all fills
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style_Fill[] All fills in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allFills(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of unique fills
+ $aFills = array();
+
+ // Two first fills are predefined
+ $fill0 = new PHPExcel_Style_Fill();
+ $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE);
+ $aFills[] = $fill0;
+
+ $fill1 = new PHPExcel_Style_Fill();
+ $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125);
+ $aFills[] = $fill1;
+ // The remaining fills
+ $aStyles = $this->allStyles($pPHPExcel);
+ foreach ($aStyles as $style) {
+ if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) {
+ $aFills[ $style->getFill()->getHashCode() ] = $style->getFill();
+ }
+ }
+
+ return $aFills;
+ }
+
+ /**
+ * Get an array of all fonts
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style_Font[] All fonts in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allFonts(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of unique fonts
+ $aFonts = array();
+ $aStyles = $this->allStyles($pPHPExcel);
+
+ foreach ($aStyles as $style) {
+ if (!array_key_exists($style->getFont()->getHashCode(), $aFonts)) {
+ $aFonts[ $style->getFont()->getHashCode() ] = $style->getFont();
+ }
+ }
+
+ return $aFonts;
+ }
+
+ /**
+ * Get an array of all borders
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style_Borders[] All borders in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allBorders(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of unique borders
+ $aBorders = array();
+ $aStyles = $this->allStyles($pPHPExcel);
+
+ foreach ($aStyles as $style) {
+ if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) {
+ $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders();
+ }
+ }
+
+ return $aBorders;
+ }
+
+ /**
+ * Get an array of all number formats
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return PHPExcel_Style_NumberFormat[] All number formats in PHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function allNumberFormats(PHPExcel $pPHPExcel = null)
+ {
+ // Get an array of unique number formats
+ $aNumFmts = array();
+ $aStyles = $this->allStyles($pPHPExcel);
+
+ foreach ($aStyles as $style) {
+ if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
+ $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
+ }
+ }
+
+ return $aNumFmts;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Theme.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Theme.php
index c67b9481..223e4024 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Theme.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Theme.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_Excel2007
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,841 +31,839 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_Excel2007
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Writer_Excel2007_Theme extends PHPExcel_Writer_Excel2007_WriterPart
{
- /**
- * Map of Major fonts to write
- * @static array of string
- *
- */
- private static $_majorFonts = array(
- 'Jpan' => 'ï¼ï¼³ Pゴシック',
- 'Hang' => 'ë§‘ì€ ê³ ë”•',
- 'Hans' => '宋体',
- 'Hant' => '新細明體',
- 'Arab' => 'Times New Roman',
- 'Hebr' => 'Times New Roman',
- 'Thai' => 'Tahoma',
- 'Ethi' => 'Nyala',
- 'Beng' => 'Vrinda',
- 'Gujr' => 'Shruti',
- 'Khmr' => 'MoolBoran',
- 'Knda' => 'Tunga',
- 'Guru' => 'Raavi',
- 'Cans' => 'Euphemia',
- 'Cher' => 'Plantagenet Cherokee',
- 'Yiii' => 'Microsoft Yi Baiti',
- 'Tibt' => 'Microsoft Himalaya',
- 'Thaa' => 'MV Boli',
- 'Deva' => 'Mangal',
- 'Telu' => 'Gautami',
- 'Taml' => 'Latha',
- 'Syrc' => 'Estrangelo Edessa',
- 'Orya' => 'Kalinga',
- 'Mlym' => 'Kartika',
- 'Laoo' => 'DokChampa',
- 'Sinh' => 'Iskoola Pota',
- 'Mong' => 'Mongolian Baiti',
- 'Viet' => 'Times New Roman',
- 'Uigh' => 'Microsoft Uighur',
- 'Geor' => 'Sylfaen',
- );
-
- /**
- * Map of Minor fonts to write
- * @static array of string
- *
- */
- private static $_minorFonts = array(
- 'Jpan' => 'ï¼ï¼³ Pゴシック',
- 'Hang' => 'ë§‘ì€ ê³ ë”•',
- 'Hans' => '宋体',
- 'Hant' => '新細明體',
- 'Arab' => 'Arial',
- 'Hebr' => 'Arial',
- 'Thai' => 'Tahoma',
- 'Ethi' => 'Nyala',
- 'Beng' => 'Vrinda',
- 'Gujr' => 'Shruti',
- 'Khmr' => 'DaunPenh',
- 'Knda' => 'Tunga',
- 'Guru' => 'Raavi',
- 'Cans' => 'Euphemia',
- 'Cher' => 'Plantagenet Cherokee',
- 'Yiii' => 'Microsoft Yi Baiti',
- 'Tibt' => 'Microsoft Himalaya',
- 'Thaa' => 'MV Boli',
- 'Deva' => 'Mangal',
- 'Telu' => 'Gautami',
- 'Taml' => 'Latha',
- 'Syrc' => 'Estrangelo Edessa',
- 'Orya' => 'Kalinga',
- 'Mlym' => 'Kartika',
- 'Laoo' => 'DokChampa',
- 'Sinh' => 'Iskoola Pota',
- 'Mong' => 'Mongolian Baiti',
- 'Viet' => 'Arial',
- 'Uigh' => 'Microsoft Uighur',
- 'Geor' => 'Sylfaen',
- );
-
- /**
- * Map of core colours
- * @static array of string
- *
- */
- private static $_colourScheme = array(
- 'dk2' => '1F497D',
- 'lt2' => 'EEECE1',
- 'accent1' => '4F81BD',
- 'accent2' => 'C0504D',
- 'accent3' => '9BBB59',
- 'accent4' => '8064A2',
- 'accent5' => '4BACC6',
- 'accent6' => 'F79646',
- 'hlink' => '0000FF',
- 'folHlink' => '800080',
- );
-
- /**
- * Write theme to XML format
- *
- * @param PHPExcel $pPHPExcel
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeTheme(PHPExcel $pPHPExcel = null)
- {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
-
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
-
- // a:theme
- $objWriter->startElement('a:theme');
- $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
- $objWriter->writeAttribute('name', 'Office Theme');
-
- // a:themeElements
- $objWriter->startElement('a:themeElements');
-
- // a:clrScheme
- $objWriter->startElement('a:clrScheme');
- $objWriter->writeAttribute('name', 'Office');
-
- // a:dk1
- $objWriter->startElement('a:dk1');
-
- // a:sysClr
- $objWriter->startElement('a:sysClr');
- $objWriter->writeAttribute('val', 'windowText');
- $objWriter->writeAttribute('lastClr', '000000');
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- // a:lt1
- $objWriter->startElement('a:lt1');
-
- // a:sysClr
- $objWriter->startElement('a:sysClr');
- $objWriter->writeAttribute('val', 'window');
- $objWriter->writeAttribute('lastClr', 'FFFFFF');
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- // a:dk2
- $this->_writeColourScheme($objWriter);
-
- $objWriter->endElement();
-
- // a:fontScheme
- $objWriter->startElement('a:fontScheme');
- $objWriter->writeAttribute('name', 'Office');
-
- // a:majorFont
- $objWriter->startElement('a:majorFont');
- $this->_writeFonts($objWriter, 'Cambria', self::$_majorFonts);
- $objWriter->endElement();
-
- // a:minorFont
- $objWriter->startElement('a:minorFont');
- $this->_writeFonts($objWriter, 'Calibri', self::$_minorFonts);
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- // a:fmtScheme
- $objWriter->startElement('a:fmtScheme');
- $objWriter->writeAttribute('name', 'Office');
-
- // a:fillStyleLst
- $objWriter->startElement('a:fillStyleLst');
-
- // a:solidFill
- $objWriter->startElement('a:solidFill');
-
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- // a:gradFill
- $objWriter->startElement('a:gradFill');
- $objWriter->writeAttribute('rotWithShape', '1');
+ /**
+ * Map of Major fonts to write
+ * @static array of string
+ *
+ */
+ private static $majorFonts = array(
+ 'Jpan' => 'ï¼ï¼³ Pゴシック',
+ 'Hang' => 'ë§‘ì€ ê³ ë”•',
+ 'Hans' => '宋体',
+ 'Hant' => '新細明體',
+ 'Arab' => 'Times New Roman',
+ 'Hebr' => 'Times New Roman',
+ 'Thai' => 'Tahoma',
+ 'Ethi' => 'Nyala',
+ 'Beng' => 'Vrinda',
+ 'Gujr' => 'Shruti',
+ 'Khmr' => 'MoolBoran',
+ 'Knda' => 'Tunga',
+ 'Guru' => 'Raavi',
+ 'Cans' => 'Euphemia',
+ 'Cher' => 'Plantagenet Cherokee',
+ 'Yiii' => 'Microsoft Yi Baiti',
+ 'Tibt' => 'Microsoft Himalaya',
+ 'Thaa' => 'MV Boli',
+ 'Deva' => 'Mangal',
+ 'Telu' => 'Gautami',
+ 'Taml' => 'Latha',
+ 'Syrc' => 'Estrangelo Edessa',
+ 'Orya' => 'Kalinga',
+ 'Mlym' => 'Kartika',
+ 'Laoo' => 'DokChampa',
+ 'Sinh' => 'Iskoola Pota',
+ 'Mong' => 'Mongolian Baiti',
+ 'Viet' => 'Times New Roman',
+ 'Uigh' => 'Microsoft Uighur',
+ 'Geor' => 'Sylfaen',
+ );
+
+ /**
+ * Map of Minor fonts to write
+ * @static array of string
+ *
+ */
+ private static $minorFonts = array(
+ 'Jpan' => 'ï¼ï¼³ Pゴシック',
+ 'Hang' => 'ë§‘ì€ ê³ ë”•',
+ 'Hans' => '宋体',
+ 'Hant' => '新細明體',
+ 'Arab' => 'Arial',
+ 'Hebr' => 'Arial',
+ 'Thai' => 'Tahoma',
+ 'Ethi' => 'Nyala',
+ 'Beng' => 'Vrinda',
+ 'Gujr' => 'Shruti',
+ 'Khmr' => 'DaunPenh',
+ 'Knda' => 'Tunga',
+ 'Guru' => 'Raavi',
+ 'Cans' => 'Euphemia',
+ 'Cher' => 'Plantagenet Cherokee',
+ 'Yiii' => 'Microsoft Yi Baiti',
+ 'Tibt' => 'Microsoft Himalaya',
+ 'Thaa' => 'MV Boli',
+ 'Deva' => 'Mangal',
+ 'Telu' => 'Gautami',
+ 'Taml' => 'Latha',
+ 'Syrc' => 'Estrangelo Edessa',
+ 'Orya' => 'Kalinga',
+ 'Mlym' => 'Kartika',
+ 'Laoo' => 'DokChampa',
+ 'Sinh' => 'Iskoola Pota',
+ 'Mong' => 'Mongolian Baiti',
+ 'Viet' => 'Arial',
+ 'Uigh' => 'Microsoft Uighur',
+ 'Geor' => 'Sylfaen',
+ );
+
+ /**
+ * Map of core colours
+ * @static array of string
+ *
+ */
+ private static $colourScheme = array(
+ 'dk2' => '1F497D',
+ 'lt2' => 'EEECE1',
+ 'accent1' => '4F81BD',
+ 'accent2' => 'C0504D',
+ 'accent3' => '9BBB59',
+ 'accent4' => '8064A2',
+ 'accent5' => '4BACC6',
+ 'accent6' => 'F79646',
+ 'hlink' => '0000FF',
+ 'folHlink' => '800080',
+ );
+
+ /**
+ * Write theme to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeTheme(PHPExcel $pPHPExcel = null)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
+
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
+
+ // a:theme
+ $objWriter->startElement('a:theme');
+ $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
+ $objWriter->writeAttribute('name', 'Office Theme');
+
+ // a:themeElements
+ $objWriter->startElement('a:themeElements');
+
+ // a:clrScheme
+ $objWriter->startElement('a:clrScheme');
+ $objWriter->writeAttribute('name', 'Office');
+
+ // a:dk1
+ $objWriter->startElement('a:dk1');
+
+ // a:sysClr
+ $objWriter->startElement('a:sysClr');
+ $objWriter->writeAttribute('val', 'windowText');
+ $objWriter->writeAttribute('lastClr', '000000');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ // a:lt1
+ $objWriter->startElement('a:lt1');
+
+ // a:sysClr
+ $objWriter->startElement('a:sysClr');
+ $objWriter->writeAttribute('val', 'window');
+ $objWriter->writeAttribute('lastClr', 'FFFFFF');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ // a:dk2
+ $this->writeColourScheme($objWriter);
+
+ $objWriter->endElement();
+
+ // a:fontScheme
+ $objWriter->startElement('a:fontScheme');
+ $objWriter->writeAttribute('name', 'Office');
+
+ // a:majorFont
+ $objWriter->startElement('a:majorFont');
+ $this->writeFonts($objWriter, 'Cambria', self::$majorFonts);
+ $objWriter->endElement();
+
+ // a:minorFont
+ $objWriter->startElement('a:minorFont');
+ $this->writeFonts($objWriter, 'Calibri', self::$minorFonts);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ // a:fmtScheme
+ $objWriter->startElement('a:fmtScheme');
+ $objWriter->writeAttribute('name', 'Office');
+
+ // a:fillStyleLst
+ $objWriter->startElement('a:fillStyleLst');
+
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
+
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ // a:gradFill
+ $objWriter->startElement('a:gradFill');
+ $objWriter->writeAttribute('rotWithShape', '1');
- // a:gsLst
- $objWriter->startElement('a:gsLst');
+ // a:gsLst
+ $objWriter->startElement('a:gsLst');
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '0');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '0');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '50000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '50000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '300000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '300000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '35000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '35000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '37000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '37000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '300000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '300000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '100000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '100000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '15000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '15000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '350000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '350000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:lin
- $objWriter->startElement('a:lin');
- $objWriter->writeAttribute('ang', '16200000');
- $objWriter->writeAttribute('scaled', '1');
- $objWriter->endElement();
+ // a:lin
+ $objWriter->startElement('a:lin');
+ $objWriter->writeAttribute('ang', '16200000');
+ $objWriter->writeAttribute('scaled', '1');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gradFill
- $objWriter->startElement('a:gradFill');
- $objWriter->writeAttribute('rotWithShape', '1');
+ // a:gradFill
+ $objWriter->startElement('a:gradFill');
+ $objWriter->writeAttribute('rotWithShape', '1');
- // a:gsLst
- $objWriter->startElement('a:gsLst');
+ // a:gsLst
+ $objWriter->startElement('a:gsLst');
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '0');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '0');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '51000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '51000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '130000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '130000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '80000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '80000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '93000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '93000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '130000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '130000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '100000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '100000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '94000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '94000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '135000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '135000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:lin
- $objWriter->startElement('a:lin');
- $objWriter->writeAttribute('ang', '16200000');
- $objWriter->writeAttribute('scaled', '0');
- $objWriter->endElement();
+ // a:lin
+ $objWriter->startElement('a:lin');
+ $objWriter->writeAttribute('ang', '16200000');
+ $objWriter->writeAttribute('scaled', '0');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:lnStyleLst
- $objWriter->startElement('a:lnStyleLst');
+ // a:lnStyleLst
+ $objWriter->startElement('a:lnStyleLst');
- // a:ln
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', '9525');
- $objWriter->writeAttribute('cap', 'flat');
- $objWriter->writeAttribute('cmpd', 'sng');
- $objWriter->writeAttribute('algn', 'ctr');
+ // a:ln
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', '9525');
+ $objWriter->writeAttribute('cap', 'flat');
+ $objWriter->writeAttribute('cmpd', 'sng');
+ $objWriter->writeAttribute('algn', 'ctr');
- // a:solidFill
- $objWriter->startElement('a:solidFill');
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '95000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '95000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '105000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '105000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:prstDash
- $objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', 'solid');
- $objWriter->endElement();
+ // a:prstDash
+ $objWriter->startElement('a:prstDash');
+ $objWriter->writeAttribute('val', 'solid');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:ln
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', '25400');
- $objWriter->writeAttribute('cap', 'flat');
- $objWriter->writeAttribute('cmpd', 'sng');
- $objWriter->writeAttribute('algn', 'ctr');
+ // a:ln
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', '25400');
+ $objWriter->writeAttribute('cap', 'flat');
+ $objWriter->writeAttribute('cmpd', 'sng');
+ $objWriter->writeAttribute('algn', 'ctr');
- // a:solidFill
- $objWriter->startElement('a:solidFill');
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
- $objWriter->endElement();
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:prstDash
- $objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', 'solid');
- $objWriter->endElement();
+ // a:prstDash
+ $objWriter->startElement('a:prstDash');
+ $objWriter->writeAttribute('val', 'solid');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:ln
- $objWriter->startElement('a:ln');
- $objWriter->writeAttribute('w', '38100');
- $objWriter->writeAttribute('cap', 'flat');
- $objWriter->writeAttribute('cmpd', 'sng');
- $objWriter->writeAttribute('algn', 'ctr');
+ // a:ln
+ $objWriter->startElement('a:ln');
+ $objWriter->writeAttribute('w', '38100');
+ $objWriter->writeAttribute('cap', 'flat');
+ $objWriter->writeAttribute('cmpd', 'sng');
+ $objWriter->writeAttribute('algn', 'ctr');
- // a:solidFill
- $objWriter->startElement('a:solidFill');
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
- $objWriter->endElement();
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:prstDash
- $objWriter->startElement('a:prstDash');
- $objWriter->writeAttribute('val', 'solid');
- $objWriter->endElement();
+ // a:prstDash
+ $objWriter->startElement('a:prstDash');
+ $objWriter->writeAttribute('val', 'solid');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:effectStyleLst
- $objWriter->startElement('a:effectStyleLst');
+ // a:effectStyleLst
+ $objWriter->startElement('a:effectStyleLst');
- // a:effectStyle
- $objWriter->startElement('a:effectStyle');
+ // a:effectStyle
+ $objWriter->startElement('a:effectStyle');
- // a:effectLst
- $objWriter->startElement('a:effectLst');
+ // a:effectLst
+ $objWriter->startElement('a:effectLst');
- // a:outerShdw
- $objWriter->startElement('a:outerShdw');
- $objWriter->writeAttribute('blurRad', '40000');
- $objWriter->writeAttribute('dist', '20000');
- $objWriter->writeAttribute('dir', '5400000');
- $objWriter->writeAttribute('rotWithShape', '0');
+ // a:outerShdw
+ $objWriter->startElement('a:outerShdw');
+ $objWriter->writeAttribute('blurRad', '40000');
+ $objWriter->writeAttribute('dist', '20000');
+ $objWriter->writeAttribute('dir', '5400000');
+ $objWriter->writeAttribute('rotWithShape', '0');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', '000000');
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', '000000');
- // a:alpha
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', '38000');
- $objWriter->endElement();
+ // a:alpha
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', '38000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:effectStyle
- $objWriter->startElement('a:effectStyle');
+ // a:effectStyle
+ $objWriter->startElement('a:effectStyle');
- // a:effectLst
- $objWriter->startElement('a:effectLst');
+ // a:effectLst
+ $objWriter->startElement('a:effectLst');
- // a:outerShdw
- $objWriter->startElement('a:outerShdw');
- $objWriter->writeAttribute('blurRad', '40000');
- $objWriter->writeAttribute('dist', '23000');
- $objWriter->writeAttribute('dir', '5400000');
- $objWriter->writeAttribute('rotWithShape', '0');
+ // a:outerShdw
+ $objWriter->startElement('a:outerShdw');
+ $objWriter->writeAttribute('blurRad', '40000');
+ $objWriter->writeAttribute('dist', '23000');
+ $objWriter->writeAttribute('dir', '5400000');
+ $objWriter->writeAttribute('rotWithShape', '0');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', '000000');
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', '000000');
- // a:alpha
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', '35000');
- $objWriter->endElement();
+ // a:alpha
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', '35000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:effectStyle
- $objWriter->startElement('a:effectStyle');
+ // a:effectStyle
+ $objWriter->startElement('a:effectStyle');
- // a:effectLst
- $objWriter->startElement('a:effectLst');
+ // a:effectLst
+ $objWriter->startElement('a:effectLst');
- // a:outerShdw
- $objWriter->startElement('a:outerShdw');
- $objWriter->writeAttribute('blurRad', '40000');
- $objWriter->writeAttribute('dist', '23000');
- $objWriter->writeAttribute('dir', '5400000');
- $objWriter->writeAttribute('rotWithShape', '0');
+ // a:outerShdw
+ $objWriter->startElement('a:outerShdw');
+ $objWriter->writeAttribute('blurRad', '40000');
+ $objWriter->writeAttribute('dist', '23000');
+ $objWriter->writeAttribute('dir', '5400000');
+ $objWriter->writeAttribute('rotWithShape', '0');
- // a:srgbClr
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', '000000');
+ // a:srgbClr
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', '000000');
- // a:alpha
- $objWriter->startElement('a:alpha');
- $objWriter->writeAttribute('val', '35000');
- $objWriter->endElement();
+ // a:alpha
+ $objWriter->startElement('a:alpha');
+ $objWriter->writeAttribute('val', '35000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:scene3d
- $objWriter->startElement('a:scene3d');
+ // a:scene3d
+ $objWriter->startElement('a:scene3d');
- // a:camera
- $objWriter->startElement('a:camera');
- $objWriter->writeAttribute('prst', 'orthographicFront');
+ // a:camera
+ $objWriter->startElement('a:camera');
+ $objWriter->writeAttribute('prst', 'orthographicFront');
- // a:rot
- $objWriter->startElement('a:rot');
- $objWriter->writeAttribute('lat', '0');
- $objWriter->writeAttribute('lon', '0');
- $objWriter->writeAttribute('rev', '0');
- $objWriter->endElement();
+ // a:rot
+ $objWriter->startElement('a:rot');
+ $objWriter->writeAttribute('lat', '0');
+ $objWriter->writeAttribute('lon', '0');
+ $objWriter->writeAttribute('rev', '0');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:lightRig
- $objWriter->startElement('a:lightRig');
- $objWriter->writeAttribute('rig', 'threePt');
- $objWriter->writeAttribute('dir', 't');
+ // a:lightRig
+ $objWriter->startElement('a:lightRig');
+ $objWriter->writeAttribute('rig', 'threePt');
+ $objWriter->writeAttribute('dir', 't');
- // a:rot
- $objWriter->startElement('a:rot');
- $objWriter->writeAttribute('lat', '0');
- $objWriter->writeAttribute('lon', '0');
- $objWriter->writeAttribute('rev', '1200000');
- $objWriter->endElement();
+ // a:rot
+ $objWriter->startElement('a:rot');
+ $objWriter->writeAttribute('lat', '0');
+ $objWriter->writeAttribute('lon', '0');
+ $objWriter->writeAttribute('rev', '1200000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:sp3d
- $objWriter->startElement('a:sp3d');
+ // a:sp3d
+ $objWriter->startElement('a:sp3d');
- // a:bevelT
- $objWriter->startElement('a:bevelT');
- $objWriter->writeAttribute('w', '63500');
- $objWriter->writeAttribute('h', '25400');
- $objWriter->endElement();
+ // a:bevelT
+ $objWriter->startElement('a:bevelT');
+ $objWriter->writeAttribute('w', '63500');
+ $objWriter->writeAttribute('h', '25400');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:bgFillStyleLst
- $objWriter->startElement('a:bgFillStyleLst');
+ // a:bgFillStyleLst
+ $objWriter->startElement('a:bgFillStyleLst');
- // a:solidFill
- $objWriter->startElement('a:solidFill');
+ // a:solidFill
+ $objWriter->startElement('a:solidFill');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
- $objWriter->endElement();
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gradFill
- $objWriter->startElement('a:gradFill');
- $objWriter->writeAttribute('rotWithShape', '1');
+ // a:gradFill
+ $objWriter->startElement('a:gradFill');
+ $objWriter->writeAttribute('rotWithShape', '1');
- // a:gsLst
- $objWriter->startElement('a:gsLst');
+ // a:gsLst
+ $objWriter->startElement('a:gsLst');
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '0');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '0');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '40000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '40000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '350000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '350000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '40000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '40000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '45000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '45000');
+ $objWriter->endElement();
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '99000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '99000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '350000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '350000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '100000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '100000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '20000');
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '20000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '255000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '255000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:path
- $objWriter->startElement('a:path');
- $objWriter->writeAttribute('path', 'circle');
+ // a:path
+ $objWriter->startElement('a:path');
+ $objWriter->writeAttribute('path', 'circle');
- // a:fillToRect
- $objWriter->startElement('a:fillToRect');
- $objWriter->writeAttribute('l', '50000');
- $objWriter->writeAttribute('t', '-80000');
- $objWriter->writeAttribute('r', '50000');
- $objWriter->writeAttribute('b', '180000');
- $objWriter->endElement();
+ // a:fillToRect
+ $objWriter->startElement('a:fillToRect');
+ $objWriter->writeAttribute('l', '50000');
+ $objWriter->writeAttribute('t', '-80000');
+ $objWriter->writeAttribute('r', '50000');
+ $objWriter->writeAttribute('b', '180000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gradFill
- $objWriter->startElement('a:gradFill');
- $objWriter->writeAttribute('rotWithShape', '1');
+ // a:gradFill
+ $objWriter->startElement('a:gradFill');
+ $objWriter->writeAttribute('rotWithShape', '1');
- // a:gsLst
- $objWriter->startElement('a:gsLst');
+ // a:gsLst
+ $objWriter->startElement('a:gsLst');
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '0');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '0');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:tint
- $objWriter->startElement('a:tint');
- $objWriter->writeAttribute('val', '80000');
- $objWriter->endElement();
+ // a:tint
+ $objWriter->startElement('a:tint');
+ $objWriter->writeAttribute('val', '80000');
+ $objWriter->endElement();
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '300000');
- $objWriter->endElement();
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '300000');
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
- // a:gs
- $objWriter->startElement('a:gs');
- $objWriter->writeAttribute('pos', '100000');
+ // a:gs
+ $objWriter->startElement('a:gs');
+ $objWriter->writeAttribute('pos', '100000');
- // a:schemeClr
- $objWriter->startElement('a:schemeClr');
- $objWriter->writeAttribute('val', 'phClr');
+ // a:schemeClr
+ $objWriter->startElement('a:schemeClr');
+ $objWriter->writeAttribute('val', 'phClr');
- // a:shade
- $objWriter->startElement('a:shade');
- $objWriter->writeAttribute('val', '30000');
- $objWriter->endElement();
-
- // a:satMod
- $objWriter->startElement('a:satMod');
- $objWriter->writeAttribute('val', '200000');
- $objWriter->endElement();
-
- $objWriter->endElement();
+ // a:shade
+ $objWriter->startElement('a:shade');
+ $objWriter->writeAttribute('val', '30000');
+ $objWriter->endElement();
+
+ // a:satMod
+ $objWriter->startElement('a:satMod');
+ $objWriter->writeAttribute('val', '200000');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
- $objWriter->endElement();
+ $objWriter->endElement();
+
+ // a:path
+ $objWriter->startElement('a:path');
+ $objWriter->writeAttribute('path', 'circle');
+
+ // a:fillToRect
+ $objWriter->startElement('a:fillToRect');
+ $objWriter->writeAttribute('l', '50000');
+ $objWriter->writeAttribute('t', '50000');
+ $objWriter->writeAttribute('r', '50000');
+ $objWriter->writeAttribute('b', '50000');
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+
+ // a:objectDefaults
+ $objWriter->writeElement('a:objectDefaults', null);
- $objWriter->endElement();
-
- // a:path
- $objWriter->startElement('a:path');
- $objWriter->writeAttribute('path', 'circle');
-
- // a:fillToRect
- $objWriter->startElement('a:fillToRect');
- $objWriter->writeAttribute('l', '50000');
- $objWriter->writeAttribute('t', '50000');
- $objWriter->writeAttribute('r', '50000');
- $objWriter->writeAttribute('b', '50000');
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- $objWriter->endElement();
-
- // a:objectDefaults
- $objWriter->writeElement('a:objectDefaults', null);
-
- // a:extraClrSchemeLst
- $objWriter->writeElement('a:extraClrSchemeLst', null);
-
- $objWriter->endElement();
-
- // Return
- return $objWriter->getData();
- }
-
- /**
- * Write fonts to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter
- * @param string $latinFont
- * @param array of string $fontSet
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeFonts($objWriter, $latinFont, $fontSet)
- {
- // a:latin
- $objWriter->startElement('a:latin');
- $objWriter->writeAttribute('typeface', $latinFont);
- $objWriter->endElement();
-
- // a:ea
- $objWriter->startElement('a:ea');
- $objWriter->writeAttribute('typeface', '');
- $objWriter->endElement();
-
- // a:cs
- $objWriter->startElement('a:cs');
- $objWriter->writeAttribute('typeface', '');
- $objWriter->endElement();
-
- foreach($fontSet as $fontScript => $typeface) {
- $objWriter->startElement('a:font');
- $objWriter->writeAttribute('script', $fontScript);
- $objWriter->writeAttribute('typeface', $typeface);
- $objWriter->endElement();
- }
-
- }
-
- /**
- * Write colour scheme to XML format
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeColourScheme($objWriter)
- {
- foreach(self::$_colourScheme as $colourName => $colourValue) {
- $objWriter->startElement('a:'.$colourName);
-
- $objWriter->startElement('a:srgbClr');
- $objWriter->writeAttribute('val', $colourValue);
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- }
+ // a:extraClrSchemeLst
+ $objWriter->writeElement('a:extraClrSchemeLst', null);
+
+ $objWriter->endElement();
+
+ // Return
+ return $objWriter->getData();
+ }
+
+ /**
+ * Write fonts to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter
+ * @param string $latinFont
+ * @param array of string $fontSet
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeFonts($objWriter, $latinFont, $fontSet)
+ {
+ // a:latin
+ $objWriter->startElement('a:latin');
+ $objWriter->writeAttribute('typeface', $latinFont);
+ $objWriter->endElement();
+
+ // a:ea
+ $objWriter->startElement('a:ea');
+ $objWriter->writeAttribute('typeface', '');
+ $objWriter->endElement();
+
+ // a:cs
+ $objWriter->startElement('a:cs');
+ $objWriter->writeAttribute('typeface', '');
+ $objWriter->endElement();
+
+ foreach ($fontSet as $fontScript => $typeface) {
+ $objWriter->startElement('a:font');
+ $objWriter->writeAttribute('script', $fontScript);
+ $objWriter->writeAttribute('typeface', $typeface);
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write colour scheme to XML format
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeColourScheme($objWriter)
+ {
+ foreach (self::$colourScheme as $colourName => $colourValue) {
+ $objWriter->startElement('a:'.$colourName);
+
+ $objWriter->startElement('a:srgbClr');
+ $objWriter->writeAttribute('val', $colourValue);
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Workbook.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Workbook.php
index f3092947..87c877ea 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Workbook.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Workbook.php
@@ -1,8 +1,9 @@
getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
+ /**
+ * Write workbook to XML format
+ *
+ * @param PHPExcel $pPHPExcel
+ * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeWorkbook(PHPExcel $pPHPExcel = null, $recalcRequired = false)
+ {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
- // workbook
- $objWriter->startElement('workbook');
- $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
- $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+ // workbook
+ $objWriter->startElement('workbook');
+ $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
+ $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
- // fileVersion
- $this->_writeFileVersion($objWriter);
+ // fileVersion
+ $this->writeFileVersion($objWriter);
- // workbookPr
- $this->_writeWorkbookPr($objWriter);
+ // workbookPr
+ $this->writeWorkbookPr($objWriter);
- // workbookProtection
- $this->_writeWorkbookProtection($objWriter, $pPHPExcel);
+ // workbookProtection
+ $this->writeWorkbookProtection($objWriter, $pPHPExcel);
- // bookViews
- if ($this->getParentWriter()->getOffice2003Compatibility() === false) {
- $this->_writeBookViews($objWriter, $pPHPExcel);
- }
+ // bookViews
+ if ($this->getParentWriter()->getOffice2003Compatibility() === false) {
+ $this->writeBookViews($objWriter, $pPHPExcel);
+ }
- // sheets
- $this->_writeSheets($objWriter, $pPHPExcel);
+ // sheets
+ $this->writeSheets($objWriter, $pPHPExcel);
- // definedNames
- $this->_writeDefinedNames($objWriter, $pPHPExcel);
+ // definedNames
+ $this->writeDefinedNames($objWriter, $pPHPExcel);
- // calcPr
- $this->_writeCalcPr($objWriter,$recalcRequired);
+ // calcPr
+ $this->writeCalcPr($objWriter, $recalcRequired);
- $objWriter->endElement();
+ $objWriter->endElement();
- // Return
- return $objWriter->getData();
- }
+ // Return
+ return $objWriter->getData();
+ }
- /**
- * Write file version
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeFileVersion(PHPExcel_Shared_XMLWriter $objWriter = null)
- {
- $objWriter->startElement('fileVersion');
- $objWriter->writeAttribute('appName', 'xl');
- $objWriter->writeAttribute('lastEdited', '4');
- $objWriter->writeAttribute('lowestEdited', '4');
- $objWriter->writeAttribute('rupBuild', '4505');
- $objWriter->endElement();
- }
+ /**
+ * Write file version
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeFileVersion(PHPExcel_Shared_XMLWriter $objWriter = null)
+ {
+ $objWriter->startElement('fileVersion');
+ $objWriter->writeAttribute('appName', 'xl');
+ $objWriter->writeAttribute('lastEdited', '4');
+ $objWriter->writeAttribute('lowestEdited', '4');
+ $objWriter->writeAttribute('rupBuild', '4505');
+ $objWriter->endElement();
+ }
- /**
- * Write WorkbookPr
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeWorkbookPr(PHPExcel_Shared_XMLWriter $objWriter = null)
- {
- $objWriter->startElement('workbookPr');
+ /**
+ * Write WorkbookPr
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeWorkbookPr(PHPExcel_Shared_XMLWriter $objWriter = null)
+ {
+ $objWriter->startElement('workbookPr');
- if (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) {
- $objWriter->writeAttribute('date1904', '1');
- }
+ if (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) {
+ $objWriter->writeAttribute('date1904', '1');
+ }
- $objWriter->writeAttribute('codeName', 'ThisWorkbook');
+ $objWriter->writeAttribute('codeName', 'ThisWorkbook');
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write BookViews
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel $pPHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeBookViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
- {
- // bookViews
- $objWriter->startElement('bookViews');
+ /**
+ * Write BookViews
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel $pPHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeBookViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
+ {
+ // bookViews
+ $objWriter->startElement('bookViews');
- // workbookView
- $objWriter->startElement('workbookView');
+ // workbookView
+ $objWriter->startElement('workbookView');
- $objWriter->writeAttribute('activeTab', $pPHPExcel->getActiveSheetIndex());
- $objWriter->writeAttribute('autoFilterDateGrouping', '1');
- $objWriter->writeAttribute('firstSheet', '0');
- $objWriter->writeAttribute('minimized', '0');
- $objWriter->writeAttribute('showHorizontalScroll', '1');
- $objWriter->writeAttribute('showSheetTabs', '1');
- $objWriter->writeAttribute('showVerticalScroll', '1');
- $objWriter->writeAttribute('tabRatio', '600');
- $objWriter->writeAttribute('visibility', 'visible');
+ $objWriter->writeAttribute('activeTab', $pPHPExcel->getActiveSheetIndex());
+ $objWriter->writeAttribute('autoFilterDateGrouping', '1');
+ $objWriter->writeAttribute('firstSheet', '0');
+ $objWriter->writeAttribute('minimized', '0');
+ $objWriter->writeAttribute('showHorizontalScroll', '1');
+ $objWriter->writeAttribute('showSheetTabs', '1');
+ $objWriter->writeAttribute('showVerticalScroll', '1');
+ $objWriter->writeAttribute('tabRatio', '600');
+ $objWriter->writeAttribute('visibility', 'visible');
- $objWriter->endElement();
+ $objWriter->endElement();
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write WorkbookProtection
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel $pPHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeWorkbookProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
- {
- if ($pPHPExcel->getSecurity()->isSecurityEnabled()) {
- $objWriter->startElement('workbookProtection');
- $objWriter->writeAttribute('lockRevision', ($pPHPExcel->getSecurity()->getLockRevision() ? 'true' : 'false'));
- $objWriter->writeAttribute('lockStructure', ($pPHPExcel->getSecurity()->getLockStructure() ? 'true' : 'false'));
- $objWriter->writeAttribute('lockWindows', ($pPHPExcel->getSecurity()->getLockWindows() ? 'true' : 'false'));
+ /**
+ * Write WorkbookProtection
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel $pPHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeWorkbookProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
+ {
+ if ($pPHPExcel->getSecurity()->isSecurityEnabled()) {
+ $objWriter->startElement('workbookProtection');
+ $objWriter->writeAttribute('lockRevision', ($pPHPExcel->getSecurity()->getLockRevision() ? 'true' : 'false'));
+ $objWriter->writeAttribute('lockStructure', ($pPHPExcel->getSecurity()->getLockStructure() ? 'true' : 'false'));
+ $objWriter->writeAttribute('lockWindows', ($pPHPExcel->getSecurity()->getLockWindows() ? 'true' : 'false'));
- if ($pPHPExcel->getSecurity()->getRevisionsPassword() != '') {
- $objWriter->writeAttribute('revisionsPassword', $pPHPExcel->getSecurity()->getRevisionsPassword());
- }
+ if ($pPHPExcel->getSecurity()->getRevisionsPassword() != '') {
+ $objWriter->writeAttribute('revisionsPassword', $pPHPExcel->getSecurity()->getRevisionsPassword());
+ }
- if ($pPHPExcel->getSecurity()->getWorkbookPassword() != '') {
- $objWriter->writeAttribute('workbookPassword', $pPHPExcel->getSecurity()->getWorkbookPassword());
- }
+ if ($pPHPExcel->getSecurity()->getWorkbookPassword() != '') {
+ $objWriter->writeAttribute('workbookPassword', $pPHPExcel->getSecurity()->getWorkbookPassword());
+ }
- $objWriter->endElement();
- }
- }
+ $objWriter->endElement();
+ }
+ }
- /**
- * Write calcPr
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCalcPr(PHPExcel_Shared_XMLWriter $objWriter = null, $recalcRequired = TRUE)
- {
- $objWriter->startElement('calcPr');
+ /**
+ * Write calcPr
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCalcPr(PHPExcel_Shared_XMLWriter $objWriter = null, $recalcRequired = true)
+ {
+ $objWriter->startElement('calcPr');
- // Set the calcid to a higher value than Excel itself will use, otherwise Excel will always recalc
+ // Set the calcid to a higher value than Excel itself will use, otherwise Excel will always recalc
// If MS Excel does do a recalc, then users opening a file in MS Excel will be prompted to save on exit
// because the file has changed
- $objWriter->writeAttribute('calcId', '999999');
- $objWriter->writeAttribute('calcMode', 'auto');
- // fullCalcOnLoad isn't needed if we've recalculating for the save
- $objWriter->writeAttribute('calcCompleted', ($recalcRequired) ? 1 : 0);
- $objWriter->writeAttribute('fullCalcOnLoad', ($recalcRequired) ? 0 : 1);
+ $objWriter->writeAttribute('calcId', '999999');
+ $objWriter->writeAttribute('calcMode', 'auto');
+ // fullCalcOnLoad isn't needed if we've recalculating for the save
+ $objWriter->writeAttribute('calcCompleted', ($recalcRequired) ? 1 : 0);
+ $objWriter->writeAttribute('fullCalcOnLoad', ($recalcRequired) ? 0 : 1);
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write sheets
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel $pPHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheets(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
- {
- // Write sheets
- $objWriter->startElement('sheets');
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- // sheet
- $this->_writeSheet(
- $objWriter,
- $pPHPExcel->getSheet($i)->getTitle(),
- ($i + 1),
- ($i + 1 + 3),
- $pPHPExcel->getSheet($i)->getSheetState()
- );
- }
+ /**
+ * Write sheets
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel $pPHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheets(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
+ {
+ // Write sheets
+ $objWriter->startElement('sheets');
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ // sheet
+ $this->writeSheet(
+ $objWriter,
+ $pPHPExcel->getSheet($i)->getTitle(),
+ ($i + 1),
+ ($i + 1 + 3),
+ $pPHPExcel->getSheet($i)->getSheetState()
+ );
+ }
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write sheet
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param string $pSheetname Sheet name
- * @param int $pSheetId Sheet id
- * @param int $pRelId Relationship ID
- * @param string $sheetState Sheet state (visible, hidden, veryHidden)
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheet(PHPExcel_Shared_XMLWriter $objWriter = null, $pSheetname = '', $pSheetId = 1, $pRelId = 1, $sheetState = 'visible')
- {
- if ($pSheetname != '') {
- // Write sheet
- $objWriter->startElement('sheet');
- $objWriter->writeAttribute('name', $pSheetname);
- $objWriter->writeAttribute('sheetId', $pSheetId);
- if ($sheetState != 'visible' && $sheetState != '') {
- $objWriter->writeAttribute('state', $sheetState);
- }
- $objWriter->writeAttribute('r:id', 'rId' . $pRelId);
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ /**
+ * Write sheet
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param string $pSheetname Sheet name
+ * @param int $pSheetId Sheet id
+ * @param int $pRelId Relationship ID
+ * @param string $sheetState Sheet state (visible, hidden, veryHidden)
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheet(PHPExcel_Shared_XMLWriter $objWriter = null, $pSheetname = '', $pSheetId = 1, $pRelId = 1, $sheetState = 'visible')
+ {
+ if ($pSheetname != '') {
+ // Write sheet
+ $objWriter->startElement('sheet');
+ $objWriter->writeAttribute('name', $pSheetname);
+ $objWriter->writeAttribute('sheetId', $pSheetId);
+ if ($sheetState != 'visible' && $sheetState != '') {
+ $objWriter->writeAttribute('state', $sheetState);
+ }
+ $objWriter->writeAttribute('r:id', 'rId' . $pRelId);
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
- /**
- * Write Defined Names
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel $pPHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefinedNames(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
- {
- // Write defined names
- $objWriter->startElement('definedNames');
+ /**
+ * Write Defined Names
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel $pPHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefinedNames(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null)
+ {
+ // Write defined names
+ $objWriter->startElement('definedNames');
- // Named ranges
- if (count($pPHPExcel->getNamedRanges()) > 0) {
- // Named ranges
- $this->_writeNamedRanges($objWriter, $pPHPExcel);
- }
+ // Named ranges
+ if (count($pPHPExcel->getNamedRanges()) > 0) {
+ // Named ranges
+ $this->writeNamedRanges($objWriter, $pPHPExcel);
+ }
- // Other defined names
- $sheetCount = $pPHPExcel->getSheetCount();
- for ($i = 0; $i < $sheetCount; ++$i) {
- // definedName for autoFilter
- $this->_writeDefinedNameForAutofilter($objWriter, $pPHPExcel->getSheet($i), $i);
+ // Other defined names
+ $sheetCount = $pPHPExcel->getSheetCount();
+ for ($i = 0; $i < $sheetCount; ++$i) {
+ // definedName for autoFilter
+ $this->writeDefinedNameForAutofilter($objWriter, $pPHPExcel->getSheet($i), $i);
- // definedName for Print_Titles
- $this->_writeDefinedNameForPrintTitles($objWriter, $pPHPExcel->getSheet($i), $i);
+ // definedName for Print_Titles
+ $this->writeDefinedNameForPrintTitles($objWriter, $pPHPExcel->getSheet($i), $i);
- // definedName for Print_Area
- $this->_writeDefinedNameForPrintArea($objWriter, $pPHPExcel->getSheet($i), $i);
- }
+ // definedName for Print_Area
+ $this->writeDefinedNameForPrintArea($objWriter, $pPHPExcel->getSheet($i), $i);
+ }
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write named ranges
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel $pPHPExcel
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeNamedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel)
- {
- // Loop named ranges
- $namedRanges = $pPHPExcel->getNamedRanges();
- foreach ($namedRanges as $namedRange) {
- $this->_writeDefinedNameForNamedRange($objWriter, $namedRange);
- }
- }
+ /**
+ * Write named ranges
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel $pPHPExcel
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeNamedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel)
+ {
+ // Loop named ranges
+ $namedRanges = $pPHPExcel->getNamedRanges();
+ foreach ($namedRanges as $namedRange) {
+ $this->writeDefinedNameForNamedRange($objWriter, $namedRange);
+ }
+ }
- /**
- * Write Defined Name for named range
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_NamedRange $pNamedRange
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefinedNameForNamedRange(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_NamedRange $pNamedRange)
- {
- // definedName for named range
- $objWriter->startElement('definedName');
- $objWriter->writeAttribute('name', $pNamedRange->getName());
- if ($pNamedRange->getLocalOnly()) {
- $objWriter->writeAttribute('localSheetId', $pNamedRange->getScope()->getParent()->getIndex($pNamedRange->getScope()));
- }
+ /**
+ * Write Defined Name for named range
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_NamedRange $pNamedRange
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefinedNameForNamedRange(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_NamedRange $pNamedRange)
+ {
+ // definedName for named range
+ $objWriter->startElement('definedName');
+ $objWriter->writeAttribute('name', $pNamedRange->getName());
+ if ($pNamedRange->getLocalOnly()) {
+ $objWriter->writeAttribute('localSheetId', $pNamedRange->getScope()->getParent()->getIndex($pNamedRange->getScope()));
+ }
- // Create absolute coordinate and write as raw text
- $range = PHPExcel_Cell::splitRange($pNamedRange->getRange());
- for ($i = 0; $i < count($range); $i++) {
- $range[$i][0] = '\'' . str_replace("'", "''", $pNamedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteReference($range[$i][0]);
- if (isset($range[$i][1])) {
- $range[$i][1] = PHPExcel_Cell::absoluteReference($range[$i][1]);
- }
- }
- $range = PHPExcel_Cell::buildRange($range);
+ // Create absolute coordinate and write as raw text
+ $range = PHPExcel_Cell::splitRange($pNamedRange->getRange());
+ for ($i = 0; $i < count($range); $i++) {
+ $range[$i][0] = '\'' . str_replace("'", "''", $pNamedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteReference($range[$i][0]);
+ if (isset($range[$i][1])) {
+ $range[$i][1] = PHPExcel_Cell::absoluteReference($range[$i][1]);
+ }
+ }
+ $range = PHPExcel_Cell::buildRange($range);
- $objWriter->writeRawData($range);
+ $objWriter->writeRawData($range);
- $objWriter->endElement();
- }
+ $objWriter->endElement();
+ }
- /**
- * Write Defined Name for autoFilter
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet
- * @param int $pSheetId
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefinedNameForAutofilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
- {
- // definedName for autoFilter
- $autoFilterRange = $pSheet->getAutoFilter()->getRange();
- if (!empty($autoFilterRange)) {
- $objWriter->startElement('definedName');
- $objWriter->writeAttribute('name', '_xlnm._FilterDatabase');
- $objWriter->writeAttribute('localSheetId', $pSheetId);
- $objWriter->writeAttribute('hidden', '1');
+ /**
+ * Write Defined Name for autoFilter
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet
+ * @param int $pSheetId
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefinedNameForAutofilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
+ {
+ // definedName for autoFilter
+ $autoFilterRange = $pSheet->getAutoFilter()->getRange();
+ if (!empty($autoFilterRange)) {
+ $objWriter->startElement('definedName');
+ $objWriter->writeAttribute('name', '_xlnm._FilterDatabase');
+ $objWriter->writeAttribute('localSheetId', $pSheetId);
+ $objWriter->writeAttribute('hidden', '1');
- // Create absolute coordinate and write as raw text
- $range = PHPExcel_Cell::splitRange($autoFilterRange);
- $range = $range[0];
- // Strip any worksheet ref so we can make the cell ref absolute
- if (strpos($range[0],'!') !== false) {
- list($ws,$range[0]) = explode('!',$range[0]);
- }
+ // Create absolute coordinate and write as raw text
+ $range = PHPExcel_Cell::splitRange($autoFilterRange);
+ $range = $range[0];
+ // Strip any worksheet ref so we can make the cell ref absolute
+ if (strpos($range[0], '!') !== false) {
+ list($ws, $range[0]) = explode('!', $range[0]);
+ }
- $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]);
- $range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]);
- $range = implode(':', $range);
+ $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]);
+ $range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]);
+ $range = implode(':', $range);
- $objWriter->writeRawData('\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . $range);
+ $objWriter->writeRawData('\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . $range);
- $objWriter->endElement();
- }
- }
+ $objWriter->endElement();
+ }
+ }
- /**
- * Write Defined Name for PrintTitles
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet
- * @param int $pSheetId
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefinedNameForPrintTitles(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
- {
- // definedName for PrintTitles
- if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet() || $pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
- $objWriter->startElement('definedName');
- $objWriter->writeAttribute('name', '_xlnm.Print_Titles');
- $objWriter->writeAttribute('localSheetId', $pSheetId);
+ /**
+ * Write Defined Name for PrintTitles
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet
+ * @param int $pSheetId
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefinedNameForPrintTitles(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
+ {
+ // definedName for PrintTitles
+ if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet() || $pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
+ $objWriter->startElement('definedName');
+ $objWriter->writeAttribute('name', '_xlnm.Print_Titles');
+ $objWriter->writeAttribute('localSheetId', $pSheetId);
- // Setting string
- $settingString = '';
+ // Setting string
+ $settingString = '';
- // Columns to repeat
- if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) {
- $repeat = $pSheet->getPageSetup()->getColumnsToRepeatAtLeft();
+ // Columns to repeat
+ if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) {
+ $repeat = $pSheet->getPageSetup()->getColumnsToRepeatAtLeft();
- $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1];
- }
+ $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1];
+ }
- // Rows to repeat
- if ($pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
- if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) {
- $settingString .= ',';
- }
+ // Rows to repeat
+ if ($pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) {
+ if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) {
+ $settingString .= ',';
+ }
- $repeat = $pSheet->getPageSetup()->getRowsToRepeatAtTop();
+ $repeat = $pSheet->getPageSetup()->getRowsToRepeatAtTop();
- $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1];
- }
+ $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1];
+ }
- $objWriter->writeRawData($settingString);
+ $objWriter->writeRawData($settingString);
- $objWriter->endElement();
- }
- }
+ $objWriter->endElement();
+ }
+ }
- /**
- * Write Defined Name for PrintTitles
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet
- * @param int $pSheetId
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDefinedNameForPrintArea(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
- {
- // definedName for PrintArea
- if ($pSheet->getPageSetup()->isPrintAreaSet()) {
- $objWriter->startElement('definedName');
- $objWriter->writeAttribute('name', '_xlnm.Print_Area');
- $objWriter->writeAttribute('localSheetId', $pSheetId);
+ /**
+ * Write Defined Name for PrintTitles
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet
+ * @param int $pSheetId
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDefinedNameForPrintArea(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0)
+ {
+ // definedName for PrintArea
+ if ($pSheet->getPageSetup()->isPrintAreaSet()) {
+ $objWriter->startElement('definedName');
+ $objWriter->writeAttribute('name', '_xlnm.Print_Area');
+ $objWriter->writeAttribute('localSheetId', $pSheetId);
- // Setting string
- $settingString = '';
+ // Setting string
+ $settingString = '';
- // Print area
- $printArea = PHPExcel_Cell::splitRange($pSheet->getPageSetup()->getPrintArea());
+ // Print area
+ $printArea = PHPExcel_Cell::splitRange($pSheet->getPageSetup()->getPrintArea());
- $chunks = array();
- foreach ($printArea as $printAreaRect) {
- $printAreaRect[0] = PHPExcel_Cell::absoluteReference($printAreaRect[0]);
- $printAreaRect[1] = PHPExcel_Cell::absoluteReference($printAreaRect[1]);
- $chunks[] = '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . implode(':', $printAreaRect);
- }
+ $chunks = array();
+ foreach ($printArea as $printAreaRect) {
+ $printAreaRect[0] = PHPExcel_Cell::absoluteReference($printAreaRect[0]);
+ $printAreaRect[1] = PHPExcel_Cell::absoluteReference($printAreaRect[1]);
+ $chunks[] = '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . implode(':', $printAreaRect);
+ }
- $objWriter->writeRawData(implode(',', $chunks));
+ $objWriter->writeRawData(implode(',', $chunks));
- $objWriter->endElement();
- }
- }
+ $objWriter->endElement();
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Worksheet.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Worksheet.php
index 5cb803e5..c211403e 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Worksheet.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Worksheet.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -19,10 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category PHPExcel
- * @package PHPExcel_Writer_Excel2007
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
- * @version ##VERSION##, ##DATE##
+ * @package PHPExcel_Writer_Excel2007
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @version ##VERSION##, ##DATE##
*/
@@ -30,1191 +30,1190 @@
* PHPExcel_Writer_Excel2007_Worksheet
*
* @category PHPExcel
- * @package PHPExcel_Writer_Excel2007
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @package PHPExcel_Writer_Excel2007
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_WriterPart
{
- /**
- * Write worksheet to XML format
- *
- * @param PHPExcel_Worksheet $pSheet
- * @param string[] $pStringTable
- * @param boolean $includeCharts Flag indicating if we should write charts
- * @return string XML Output
- * @throws PHPExcel_Writer_Exception
- */
- public function writeWorksheet($pSheet = null, $pStringTable = null, $includeCharts = FALSE)
- {
- if (!is_null($pSheet)) {
- // Create XML writer
- $objWriter = null;
- if ($this->getParentWriter()->getUseDiskCaching()) {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
- } else {
- $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
- }
-
- // XML header
- $objWriter->startDocument('1.0','UTF-8','yes');
-
- // Worksheet
- $objWriter->startElement('worksheet');
- $objWriter->writeAttribute('xml:space', 'preserve');
- $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
- $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
-
- // sheetPr
- $this->_writeSheetPr($objWriter, $pSheet);
-
- // Dimension
- $this->_writeDimension($objWriter, $pSheet);
-
- // sheetViews
- $this->_writeSheetViews($objWriter, $pSheet);
-
- // sheetFormatPr
- $this->_writeSheetFormatPr($objWriter, $pSheet);
-
- // cols
- $this->_writeCols($objWriter, $pSheet);
-
- // sheetData
- $this->_writeSheetData($objWriter, $pSheet, $pStringTable);
-
- // sheetProtection
- $this->_writeSheetProtection($objWriter, $pSheet);
-
- // protectedRanges
- $this->_writeProtectedRanges($objWriter, $pSheet);
-
- // autoFilter
- $this->_writeAutoFilter($objWriter, $pSheet);
-
- // mergeCells
- $this->_writeMergeCells($objWriter, $pSheet);
-
- // conditionalFormatting
- $this->_writeConditionalFormatting($objWriter, $pSheet);
-
- // dataValidations
- $this->_writeDataValidations($objWriter, $pSheet);
-
- // hyperlinks
- $this->_writeHyperlinks($objWriter, $pSheet);
-
- // Print options
- $this->_writePrintOptions($objWriter, $pSheet);
-
- // Page margins
- $this->_writePageMargins($objWriter, $pSheet);
-
- // Page setup
- $this->_writePageSetup($objWriter, $pSheet);
-
- // Header / footer
- $this->_writeHeaderFooter($objWriter, $pSheet);
-
- // Breaks
- $this->_writeBreaks($objWriter, $pSheet);
-
- // Drawings and/or Charts
- $this->_writeDrawings($objWriter, $pSheet, $includeCharts);
-
- // LegacyDrawing
- $this->_writeLegacyDrawing($objWriter, $pSheet);
-
- // LegacyDrawingHF
- $this->_writeLegacyDrawingHF($objWriter, $pSheet);
-
- $objWriter->endElement();
-
- // Return
- return $objWriter->getData();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed.");
- }
- }
-
- /**
- * Write SheetPr
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // sheetPr
- $objWriter->startElement('sheetPr');
- //$objWriter->writeAttribute('codeName', $pSheet->getTitle());
- if($pSheet->getParent()->hasMacros()){//if the workbook have macros, we need to have codeName for the sheet
- if($pSheet->hasCodeName()==false){
- $pSheet->setCodeName($pSheet->getTitle());
- }
- $objWriter->writeAttribute('codeName', $pSheet->getCodeName());
- }
- $autoFilterRange = $pSheet->getAutoFilter()->getRange();
- if (!empty($autoFilterRange)) {
- $objWriter->writeAttribute('filterMode', 1);
- $pSheet->getAutoFilter()->showHideRows();
- }
-
- // tabColor
- if ($pSheet->isTabColorSet()) {
- $objWriter->startElement('tabColor');
- $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB());
- $objWriter->endElement();
- }
-
- // outlinePr
- $objWriter->startElement('outlinePr');
- $objWriter->writeAttribute('summaryBelow', ($pSheet->getShowSummaryBelow() ? '1' : '0'));
- $objWriter->writeAttribute('summaryRight', ($pSheet->getShowSummaryRight() ? '1' : '0'));
- $objWriter->endElement();
-
- // pageSetUpPr
- if ($pSheet->getPageSetup()->getFitToPage()) {
- $objWriter->startElement('pageSetUpPr');
- $objWriter->writeAttribute('fitToPage', '1');
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
-
- /**
- * Write Dimension
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDimension(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // dimension
- $objWriter->startElement('dimension');
- $objWriter->writeAttribute('ref', $pSheet->calculateWorksheetDimension());
- $objWriter->endElement();
- }
-
- /**
- * Write SheetViews
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheetViews(PHPExcel_Shared_XMLWriter $objWriter = NULL, PHPExcel_Worksheet $pSheet = NULL)
- {
- // sheetViews
- $objWriter->startElement('sheetViews');
-
- // Sheet selected?
- $sheetSelected = false;
- if ($this->getParentWriter()->getPHPExcel()->getIndex($pSheet) == $this->getParentWriter()->getPHPExcel()->getActiveSheetIndex())
- $sheetSelected = true;
-
-
- // sheetView
- $objWriter->startElement('sheetView');
- $objWriter->writeAttribute('tabSelected', $sheetSelected ? '1' : '0');
- $objWriter->writeAttribute('workbookViewId', '0');
-
- // Zoom scales
- if ($pSheet->getSheetView()->getZoomScale() != 100) {
- $objWriter->writeAttribute('zoomScale', $pSheet->getSheetView()->getZoomScale());
- }
- if ($pSheet->getSheetView()->getZoomScaleNormal() != 100) {
- $objWriter->writeAttribute('zoomScaleNormal', $pSheet->getSheetView()->getZoomScaleNormal());
- }
-
- // View Layout Type
- if ($pSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL) {
- $objWriter->writeAttribute('view', $pSheet->getSheetView()->getView());
- }
-
- // Gridlines
- if ($pSheet->getShowGridlines()) {
- $objWriter->writeAttribute('showGridLines', 'true');
- } else {
- $objWriter->writeAttribute('showGridLines', 'false');
- }
-
- // Row and column headers
- if ($pSheet->getShowRowColHeaders()) {
- $objWriter->writeAttribute('showRowColHeaders', '1');
- } else {
- $objWriter->writeAttribute('showRowColHeaders', '0');
- }
-
- // Right-to-left
- if ($pSheet->getRightToLeft()) {
- $objWriter->writeAttribute('rightToLeft', 'true');
- }
-
- $activeCell = $pSheet->getActiveCell();
-
- // Pane
- $pane = '';
- $topLeftCell = $pSheet->getFreezePane();
- if (($topLeftCell != '') && ($topLeftCell != 'A1')) {
- $activeCell = $topLeftCell;
- // Calculate freeze coordinates
- $xSplit = $ySplit = 0;
-
- list($xSplit, $ySplit) = PHPExcel_Cell::coordinateFromString($topLeftCell);
- $xSplit = PHPExcel_Cell::columnIndexFromString($xSplit);
-
- // pane
- $pane = 'topRight';
- $objWriter->startElement('pane');
- if ($xSplit > 1)
- $objWriter->writeAttribute('xSplit', $xSplit - 1);
- if ($ySplit > 1) {
- $objWriter->writeAttribute('ySplit', $ySplit - 1);
- $pane = ($xSplit > 1) ? 'bottomRight' : 'bottomLeft';
- }
- $objWriter->writeAttribute('topLeftCell', $topLeftCell);
- $objWriter->writeAttribute('activePane', $pane);
- $objWriter->writeAttribute('state', 'frozen');
- $objWriter->endElement();
-
- if (($xSplit > 1) && ($ySplit > 1)) {
- // Write additional selections if more than two panes (ie both an X and a Y split)
- $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'topRight'); $objWriter->endElement();
- $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'bottomLeft'); $objWriter->endElement();
- }
- }
-
- // Selection
-// if ($pane != '') {
- // Only need to write selection element if we have a split pane
- // We cheat a little by over-riding the active cell selection, setting it to the split cell
- $objWriter->startElement('selection');
- if ($pane != '') {
- $objWriter->writeAttribute('pane', $pane);
- }
- $objWriter->writeAttribute('activeCell', $activeCell);
- $objWriter->writeAttribute('sqref', $activeCell);
- $objWriter->endElement();
-// }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
-
- /**
- * Write SheetFormatPr
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheetFormatPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // sheetFormatPr
- $objWriter->startElement('sheetFormatPr');
-
- // Default row height
- if ($pSheet->getDefaultRowDimension()->getRowHeight() >= 0) {
- $objWriter->writeAttribute('customHeight', 'true');
- $objWriter->writeAttribute('defaultRowHeight', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultRowDimension()->getRowHeight()));
- } else {
- $objWriter->writeAttribute('defaultRowHeight', '14.4');
- }
-
- // Set Zero Height row
- if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' ||
- strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true' ) {
- $objWriter->writeAttribute('zeroHeight', '1');
- }
-
- // Default column width
- if ($pSheet->getDefaultColumnDimension()->getWidth() >= 0) {
- $objWriter->writeAttribute('defaultColWidth', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultColumnDimension()->getWidth()));
- }
-
- // Outline level - row
- $outlineLevelRow = 0;
- foreach ($pSheet->getRowDimensions() as $dimension) {
- if ($dimension->getOutlineLevel() > $outlineLevelRow) {
- $outlineLevelRow = $dimension->getOutlineLevel();
- }
- }
- $objWriter->writeAttribute('outlineLevelRow', (int)$outlineLevelRow);
-
- // Outline level - column
- $outlineLevelCol = 0;
- foreach ($pSheet->getColumnDimensions() as $dimension) {
- if ($dimension->getOutlineLevel() > $outlineLevelCol) {
- $outlineLevelCol = $dimension->getOutlineLevel();
- }
- }
- $objWriter->writeAttribute('outlineLevelCol', (int)$outlineLevelCol);
-
- $objWriter->endElement();
- }
-
- /**
- * Write Cols
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCols(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // cols
- if (count($pSheet->getColumnDimensions()) > 0) {
- $objWriter->startElement('cols');
-
- $pSheet->calculateColumnWidths();
-
- // Loop through column dimensions
- foreach ($pSheet->getColumnDimensions() as $colDimension) {
- // col
- $objWriter->startElement('col');
- $objWriter->writeAttribute('min', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex()));
- $objWriter->writeAttribute('max', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex()));
-
- if ($colDimension->getWidth() < 0) {
- // No width set, apply default of 10
- $objWriter->writeAttribute('width', '9.10');
- } else {
- // Width set
- $objWriter->writeAttribute('width', PHPExcel_Shared_String::FormatNumber($colDimension->getWidth()));
- }
-
- // Column visibility
- if ($colDimension->getVisible() == false) {
- $objWriter->writeAttribute('hidden', 'true');
- }
-
- // Auto size?
- if ($colDimension->getAutoSize()) {
- $objWriter->writeAttribute('bestFit', 'true');
- }
-
- // Custom width?
- if ($colDimension->getWidth() != $pSheet->getDefaultColumnDimension()->getWidth()) {
- $objWriter->writeAttribute('customWidth', 'true');
- }
-
- // Collapsed
- if ($colDimension->getCollapsed() == true) {
- $objWriter->writeAttribute('collapsed', 'true');
- }
-
- // Outline level
- if ($colDimension->getOutlineLevel() > 0) {
- $objWriter->writeAttribute('outlineLevel', $colDimension->getOutlineLevel());
- }
-
- // Style
- $objWriter->writeAttribute('style', $colDimension->getXfIndex());
-
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write SheetProtection
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheetProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // sheetProtection
- $objWriter->startElement('sheetProtection');
-
- if ($pSheet->getProtection()->getPassword() != '') {
- $objWriter->writeAttribute('password', $pSheet->getProtection()->getPassword());
- }
-
- $objWriter->writeAttribute('sheet', ($pSheet->getProtection()->getSheet() ? 'true' : 'false'));
- $objWriter->writeAttribute('objects', ($pSheet->getProtection()->getObjects() ? 'true' : 'false'));
- $objWriter->writeAttribute('scenarios', ($pSheet->getProtection()->getScenarios() ? 'true' : 'false'));
- $objWriter->writeAttribute('formatCells', ($pSheet->getProtection()->getFormatCells() ? 'true' : 'false'));
- $objWriter->writeAttribute('formatColumns', ($pSheet->getProtection()->getFormatColumns() ? 'true' : 'false'));
- $objWriter->writeAttribute('formatRows', ($pSheet->getProtection()->getFormatRows() ? 'true' : 'false'));
- $objWriter->writeAttribute('insertColumns', ($pSheet->getProtection()->getInsertColumns() ? 'true' : 'false'));
- $objWriter->writeAttribute('insertRows', ($pSheet->getProtection()->getInsertRows() ? 'true' : 'false'));
- $objWriter->writeAttribute('insertHyperlinks', ($pSheet->getProtection()->getInsertHyperlinks() ? 'true' : 'false'));
- $objWriter->writeAttribute('deleteColumns', ($pSheet->getProtection()->getDeleteColumns() ? 'true' : 'false'));
- $objWriter->writeAttribute('deleteRows', ($pSheet->getProtection()->getDeleteRows() ? 'true' : 'false'));
- $objWriter->writeAttribute('selectLockedCells', ($pSheet->getProtection()->getSelectLockedCells() ? 'true' : 'false'));
- $objWriter->writeAttribute('sort', ($pSheet->getProtection()->getSort() ? 'true' : 'false'));
- $objWriter->writeAttribute('autoFilter', ($pSheet->getProtection()->getAutoFilter() ? 'true' : 'false'));
- $objWriter->writeAttribute('pivotTables', ($pSheet->getProtection()->getPivotTables() ? 'true' : 'false'));
- $objWriter->writeAttribute('selectUnlockedCells', ($pSheet->getProtection()->getSelectUnlockedCells() ? 'true' : 'false'));
- $objWriter->endElement();
- }
-
- /**
- * Write ConditionalFormatting
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeConditionalFormatting(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // Conditional id
- $id = 1;
-
- // Loop through styles in the current worksheet
- foreach ($pSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) {
- foreach ($conditionalStyles as $conditional) {
- // WHY was this again?
- // if ($this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode( $conditional->getHashCode() ) == '') {
- // continue;
- // }
- if ($conditional->getConditionType() != PHPExcel_Style_Conditional::CONDITION_NONE) {
- // conditionalFormatting
- $objWriter->startElement('conditionalFormatting');
- $objWriter->writeAttribute('sqref', $cellCoordinate);
-
- // cfRule
- $objWriter->startElement('cfRule');
- $objWriter->writeAttribute('type', $conditional->getConditionType());
- $objWriter->writeAttribute('dxfId', $this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode( $conditional->getHashCode() ));
- $objWriter->writeAttribute('priority', $id++);
-
- if (($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS
- ||
- $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT)
- && $conditional->getOperatorType() != PHPExcel_Style_Conditional::OPERATOR_NONE) {
- $objWriter->writeAttribute('operator', $conditional->getOperatorType());
- }
-
- if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- && !is_null($conditional->getText())) {
- $objWriter->writeAttribute('text', $conditional->getText());
- }
-
- if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT
- && !is_null($conditional->getText())) {
- $objWriter->writeElement('formula', 'NOT(ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . ')))');
- } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH
- && !is_null($conditional->getText())) {
- $objWriter->writeElement('formula', 'LEFT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"');
- } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_ENDSWITH
- && !is_null($conditional->getText())) {
- $objWriter->writeElement('formula', 'RIGHT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"');
- } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS
- && !is_null($conditional->getText())) {
- $objWriter->writeElement('formula', 'ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . '))');
- } else if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS
- || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
- || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) {
- foreach ($conditional->getConditions() as $formula) {
- // Formula
- $objWriter->writeElement('formula', $formula);
- }
- }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
- }
- }
- }
-
- /**
- * Write DataValidations
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDataValidations(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // Datavalidation collection
- $dataValidationCollection = $pSheet->getDataValidationCollection();
-
- // Write data validations?
- if (!empty($dataValidationCollection)) {
- $objWriter->startElement('dataValidations');
- $objWriter->writeAttribute('count', count($dataValidationCollection));
-
- foreach ($dataValidationCollection as $coordinate => $dv) {
- $objWriter->startElement('dataValidation');
-
- if ($dv->getType() != '') {
- $objWriter->writeAttribute('type', $dv->getType());
- }
-
- if ($dv->getErrorStyle() != '') {
- $objWriter->writeAttribute('errorStyle', $dv->getErrorStyle());
- }
-
- if ($dv->getOperator() != '') {
- $objWriter->writeAttribute('operator', $dv->getOperator());
- }
-
- $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0'));
- $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0'));
- $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0'));
- $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0'));
-
- if ($dv->getErrorTitle() !== '') {
- $objWriter->writeAttribute('errorTitle', $dv->getErrorTitle());
- }
- if ($dv->getError() !== '') {
- $objWriter->writeAttribute('error', $dv->getError());
- }
- if ($dv->getPromptTitle() !== '') {
- $objWriter->writeAttribute('promptTitle', $dv->getPromptTitle());
- }
- if ($dv->getPrompt() !== '') {
- $objWriter->writeAttribute('prompt', $dv->getPrompt());
- }
-
- $objWriter->writeAttribute('sqref', $coordinate);
-
- if ($dv->getFormula1() !== '') {
- $objWriter->writeElement('formula1', $dv->getFormula1());
- }
- if ($dv->getFormula2() !== '') {
- $objWriter->writeElement('formula2', $dv->getFormula2());
- }
-
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write Hyperlinks
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeHyperlinks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // Hyperlink collection
- $hyperlinkCollection = $pSheet->getHyperlinkCollection();
-
- // Relation ID
- $relationId = 1;
-
- // Write hyperlinks?
- if (!empty($hyperlinkCollection)) {
- $objWriter->startElement('hyperlinks');
-
- foreach ($hyperlinkCollection as $coordinate => $hyperlink) {
- $objWriter->startElement('hyperlink');
-
- $objWriter->writeAttribute('ref', $coordinate);
- if (!$hyperlink->isInternal()) {
- $objWriter->writeAttribute('r:id', 'rId_hyperlink_' . $relationId);
- ++$relationId;
- } else {
- $objWriter->writeAttribute('location', str_replace('sheet://', '', $hyperlink->getUrl()));
- }
-
- if ($hyperlink->getTooltip() != '') {
- $objWriter->writeAttribute('tooltip', $hyperlink->getTooltip());
- }
-
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write ProtectedRanges
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeProtectedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- if (count($pSheet->getProtectedCells()) > 0) {
- // protectedRanges
- $objWriter->startElement('protectedRanges');
-
- // Loop protectedRanges
- foreach ($pSheet->getProtectedCells() as $protectedCell => $passwordHash) {
- // protectedRange
- $objWriter->startElement('protectedRange');
- $objWriter->writeAttribute('name', 'p' . md5($protectedCell));
- $objWriter->writeAttribute('sqref', $protectedCell);
- if (!empty($passwordHash)) {
- $objWriter->writeAttribute('password', $passwordHash);
- }
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write MergeCells
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeMergeCells(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- if (count($pSheet->getMergeCells()) > 0) {
- // mergeCells
- $objWriter->startElement('mergeCells');
-
- // Loop mergeCells
- foreach ($pSheet->getMergeCells() as $mergeCell) {
- // mergeCell
- $objWriter->startElement('mergeCell');
- $objWriter->writeAttribute('ref', $mergeCell);
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write PrintOptions
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePrintOptions(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // printOptions
- $objWriter->startElement('printOptions');
-
- $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false'));
- $objWriter->writeAttribute('gridLinesSet', 'true');
-
- if ($pSheet->getPageSetup()->getHorizontalCentered()) {
- $objWriter->writeAttribute('horizontalCentered', 'true');
- }
-
- if ($pSheet->getPageSetup()->getVerticalCentered()) {
- $objWriter->writeAttribute('verticalCentered', 'true');
- }
-
- $objWriter->endElement();
- }
-
- /**
- * Write PageMargins
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePageMargins(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // pageMargins
- $objWriter->startElement('pageMargins');
- $objWriter->writeAttribute('left', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()));
- $objWriter->writeAttribute('right', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()));
- $objWriter->writeAttribute('top', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()));
- $objWriter->writeAttribute('bottom', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()));
- $objWriter->writeAttribute('header', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getHeader()));
- $objWriter->writeAttribute('footer', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getFooter()));
- $objWriter->endElement();
- }
-
- /**
- * Write AutoFilter
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeAutoFilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- $autoFilterRange = $pSheet->getAutoFilter()->getRange();
- if (!empty($autoFilterRange)) {
- // autoFilter
- $objWriter->startElement('autoFilter');
-
- // Strip any worksheet reference from the filter coordinates
- $range = PHPExcel_Cell::splitRange($autoFilterRange);
- $range = $range[0];
- // Strip any worksheet ref
- if (strpos($range[0],'!') !== false) {
- list($ws,$range[0]) = explode('!',$range[0]);
- }
- $range = implode(':', $range);
-
- $objWriter->writeAttribute('ref', str_replace('$','',$range));
-
- $columns = $pSheet->getAutoFilter()->getColumns();
- if (count($columns > 0)) {
- foreach($columns as $columnID => $column) {
- $rules = $column->getRules();
- if (count($rules > 0)) {
- $objWriter->startElement('filterColumn');
- $objWriter->writeAttribute('colId', $pSheet->getAutoFilter()->getColumnOffset($columnID));
-
- $objWriter->startElement( $column->getFilterType());
- if ($column->getJoin() == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND) {
- $objWriter->writeAttribute('and', 1);
- }
-
- foreach ($rules as $rule) {
- if (($column->getFilterType() === PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER) &&
- ($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) &&
- ($rule->getValue() === '')) {
- // Filter rule for Blanks
- $objWriter->writeAttribute('blank', 1);
- } elseif($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER) {
- // Dynamic Filter Rule
- $objWriter->writeAttribute('type', $rule->getGrouping());
- $val = $column->getAttribute('val');
- if ($val !== NULL) {
- $objWriter->writeAttribute('val', $val);
- }
- $maxVal = $column->getAttribute('maxVal');
- if ($maxVal !== NULL) {
- $objWriter->writeAttribute('maxVal', $maxVal);
- }
- } elseif($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER) {
- // Top 10 Filter Rule
- $objWriter->writeAttribute('val', $rule->getValue());
- $objWriter->writeAttribute('percent', (($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0'));
- $objWriter->writeAttribute('top', (($rule->getGrouping() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0'));
- } else {
- // Filter, DateGroupItem or CustomFilter
- $objWriter->startElement($rule->getRuleType());
-
- if ($rule->getOperator() !== PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) {
- $objWriter->writeAttribute('operator', $rule->getOperator());
- }
- if ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP) {
- // Date Group filters
- foreach($rule->getValue() as $key => $value) {
- if ($value > '') $objWriter->writeAttribute($key, $value);
- }
- $objWriter->writeAttribute('dateTimeGrouping', $rule->getGrouping());
- } else {
- $objWriter->writeAttribute('val', $rule->getValue());
- }
-
- $objWriter->endElement();
- }
- }
-
- $objWriter->endElement();
-
- $objWriter->endElement();
- }
- }
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write PageSetup
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writePageSetup(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // pageSetup
- $objWriter->startElement('pageSetup');
- $objWriter->writeAttribute('paperSize', $pSheet->getPageSetup()->getPaperSize());
- $objWriter->writeAttribute('orientation', $pSheet->getPageSetup()->getOrientation());
-
- if (!is_null($pSheet->getPageSetup()->getScale())) {
- $objWriter->writeAttribute('scale', $pSheet->getPageSetup()->getScale());
- }
- if (!is_null($pSheet->getPageSetup()->getFitToHeight())) {
- $objWriter->writeAttribute('fitToHeight', $pSheet->getPageSetup()->getFitToHeight());
- } else {
- $objWriter->writeAttribute('fitToHeight', '0');
- }
- if (!is_null($pSheet->getPageSetup()->getFitToWidth())) {
- $objWriter->writeAttribute('fitToWidth', $pSheet->getPageSetup()->getFitToWidth());
- } else {
- $objWriter->writeAttribute('fitToWidth', '0');
- }
- if (!is_null($pSheet->getPageSetup()->getFirstPageNumber())) {
- $objWriter->writeAttribute('firstPageNumber', $pSheet->getPageSetup()->getFirstPageNumber());
- $objWriter->writeAttribute('useFirstPageNumber', '1');
- }
-
- $objWriter->endElement();
- }
-
- /**
- * Write Header / Footer
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeHeaderFooter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // headerFooter
- $objWriter->startElement('headerFooter');
- $objWriter->writeAttribute('differentOddEven', ($pSheet->getHeaderFooter()->getDifferentOddEven() ? 'true' : 'false'));
- $objWriter->writeAttribute('differentFirst', ($pSheet->getHeaderFooter()->getDifferentFirst() ? 'true' : 'false'));
- $objWriter->writeAttribute('scaleWithDoc', ($pSheet->getHeaderFooter()->getScaleWithDocument() ? 'true' : 'false'));
- $objWriter->writeAttribute('alignWithMargins', ($pSheet->getHeaderFooter()->getAlignWithMargins() ? 'true' : 'false'));
-
- $objWriter->writeElement('oddHeader', $pSheet->getHeaderFooter()->getOddHeader());
- $objWriter->writeElement('oddFooter', $pSheet->getHeaderFooter()->getOddFooter());
- $objWriter->writeElement('evenHeader', $pSheet->getHeaderFooter()->getEvenHeader());
- $objWriter->writeElement('evenFooter', $pSheet->getHeaderFooter()->getEvenFooter());
- $objWriter->writeElement('firstHeader', $pSheet->getHeaderFooter()->getFirstHeader());
- $objWriter->writeElement('firstFooter', $pSheet->getHeaderFooter()->getFirstFooter());
- $objWriter->endElement();
- }
-
- /**
- * Write Breaks
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeBreaks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // Get row and column breaks
- $aRowBreaks = array();
- $aColumnBreaks = array();
- foreach ($pSheet->getBreaks() as $cell => $breakType) {
- if ($breakType == PHPExcel_Worksheet::BREAK_ROW) {
- $aRowBreaks[] = $cell;
- } else if ($breakType == PHPExcel_Worksheet::BREAK_COLUMN) {
- $aColumnBreaks[] = $cell;
- }
- }
-
- // rowBreaks
- if (!empty($aRowBreaks)) {
- $objWriter->startElement('rowBreaks');
- $objWriter->writeAttribute('count', count($aRowBreaks));
- $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks));
-
- foreach ($aRowBreaks as $cell) {
- $coords = PHPExcel_Cell::coordinateFromString($cell);
-
- $objWriter->startElement('brk');
- $objWriter->writeAttribute('id', $coords[1]);
- $objWriter->writeAttribute('man', '1');
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
-
- // Second, write column breaks
- if (!empty($aColumnBreaks)) {
- $objWriter->startElement('colBreaks');
- $objWriter->writeAttribute('count', count($aColumnBreaks));
- $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks));
-
- foreach ($aColumnBreaks as $cell) {
- $coords = PHPExcel_Cell::coordinateFromString($cell);
-
- $objWriter->startElement('brk');
- $objWriter->writeAttribute('id', PHPExcel_Cell::columnIndexFromString($coords[0]) - 1);
- $objWriter->writeAttribute('man', '1');
- $objWriter->endElement();
- }
-
- $objWriter->endElement();
- }
- }
-
- /**
- * Write SheetData
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @param string[] $pStringTable String table
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeSheetData(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pStringTable = null)
- {
- if (is_array($pStringTable)) {
- // Flipped stringtable, for faster index searching
- $aFlippedStringTable = $this->getParentWriter()->getWriterPart('stringtable')->flipStringTable($pStringTable);
-
- // sheetData
- $objWriter->startElement('sheetData');
-
- // Get column count
- $colCount = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn());
-
- // Highest row number
- $highestRow = $pSheet->getHighestRow();
-
- // Loop through cells
- $cellsByRow = array();
- foreach ($pSheet->getCellCollection() as $cellID) {
- $cellAddress = PHPExcel_Cell::coordinateFromString($cellID);
- $cellsByRow[$cellAddress[1]][] = $cellID;
- }
-
- $currentRow = 0;
- while($currentRow++ < $highestRow) {
- // Get row dimension
- $rowDimension = $pSheet->getRowDimension($currentRow);
-
- // Write current row?
- $writeCurrentRow = isset($cellsByRow[$currentRow]) ||
- $rowDimension->getRowHeight() >= 0 ||
- $rowDimension->getVisible() == false ||
- $rowDimension->getCollapsed() == true ||
- $rowDimension->getOutlineLevel() > 0 ||
- $rowDimension->getXfIndex() !== null;
-
- if ($writeCurrentRow) {
- // Start a new row
- $objWriter->startElement('row');
- $objWriter->writeAttribute('r', $currentRow);
- $objWriter->writeAttribute('spans', '1:' . $colCount);
-
- // Row dimensions
- if ($rowDimension->getRowHeight() >= 0) {
- $objWriter->writeAttribute('customHeight', '1');
- $objWriter->writeAttribute('ht', PHPExcel_Shared_String::FormatNumber($rowDimension->getRowHeight()));
- }
-
- // Row visibility
- if ($rowDimension->getVisible() == false) {
- $objWriter->writeAttribute('hidden', 'true');
- }
-
- // Collapsed
- if ($rowDimension->getCollapsed() == true) {
- $objWriter->writeAttribute('collapsed', 'true');
- }
-
- // Outline level
- if ($rowDimension->getOutlineLevel() > 0) {
- $objWriter->writeAttribute('outlineLevel', $rowDimension->getOutlineLevel());
- }
-
- // Style
- if ($rowDimension->getXfIndex() !== null) {
- $objWriter->writeAttribute('s', $rowDimension->getXfIndex());
- $objWriter->writeAttribute('customFormat', '1');
- }
-
- // Write cells
- if (isset($cellsByRow[$currentRow])) {
- foreach($cellsByRow[$currentRow] as $cellAddress) {
- // Write cell
- $this->_writeCell($objWriter, $pSheet, $cellAddress, $pStringTable, $aFlippedStringTable);
- }
- }
-
- // End row
- $objWriter->endElement();
- }
- }
-
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
-
- /**
- * Write Cell
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @param PHPExcel_Cell $pCellAddress Cell Address
- * @param string[] $pStringTable String table
- * @param string[] $pFlippedStringTable String table (flipped), for faster index searching
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeCell(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pCellAddress = null, $pStringTable = null, $pFlippedStringTable = null)
- {
- if (is_array($pStringTable) && is_array($pFlippedStringTable)) {
- // Cell
- $pCell = $pSheet->getCell($pCellAddress);
- $objWriter->startElement('c');
- $objWriter->writeAttribute('r', $pCellAddress);
-
- // Sheet styles
- if ($pCell->getXfIndex() != '') {
- $objWriter->writeAttribute('s', $pCell->getXfIndex());
- }
-
- // If cell value is supplied, write cell value
- $cellValue = $pCell->getValue();
- if (is_object($cellValue) || $cellValue !== '') {
- // Map type
- $mappedType = $pCell->getDataType();
-
- // Write data type depending on its type
- switch (strtolower($mappedType)) {
- case 'inlinestr': // Inline string
- case 's': // String
- case 'b': // Boolean
- $objWriter->writeAttribute('t', $mappedType);
- break;
- case 'f': // Formula
- $calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ?
- $pCell->getCalculatedValue() :
- $cellValue;
- if (is_string($calculatedValue)) {
- $objWriter->writeAttribute('t', 'str');
- }
- break;
- case 'e': // Error
- $objWriter->writeAttribute('t', $mappedType);
- }
-
- // Write data depending on its type
- switch (strtolower($mappedType)) {
- case 'inlinestr': // Inline string
- if (! $cellValue instanceof PHPExcel_RichText) {
- $objWriter->writeElement('t', PHPExcel_Shared_String::ControlCharacterPHP2OOXML( htmlspecialchars($cellValue) ) );
- } else if ($cellValue instanceof PHPExcel_RichText) {
- $objWriter->startElement('is');
- $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $cellValue);
- $objWriter->endElement();
- }
-
- break;
- case 's': // String
- if (! $cellValue instanceof PHPExcel_RichText) {
- if (isset($pFlippedStringTable[$cellValue])) {
- $objWriter->writeElement('v', $pFlippedStringTable[$cellValue]);
- }
- } else if ($cellValue instanceof PHPExcel_RichText) {
- $objWriter->writeElement('v', $pFlippedStringTable[$cellValue->getHashCode()]);
- }
-
- break;
- case 'f': // Formula
- $attributes = $pCell->getFormulaAttributes();
- if($attributes['t'] == 'array') {
- $objWriter->startElement('f');
- $objWriter->writeAttribute('t', 'array');
- $objWriter->writeAttribute('ref', $pCellAddress);
- $objWriter->writeAttribute('aca', '1');
- $objWriter->writeAttribute('ca', '1');
- $objWriter->text(substr($cellValue, 1));
- $objWriter->endElement();
- } else {
- $objWriter->writeElement('f', substr($cellValue, 1));
- }
- if ($this->getParentWriter()->getOffice2003Compatibility() === false) {
- if ($this->getParentWriter()->getPreCalculateFormulas()) {
-// $calculatedValue = $pCell->getCalculatedValue();
- if (!is_array($calculatedValue) && substr($calculatedValue, 0, 1) != '#') {
- $objWriter->writeElement('v', PHPExcel_Shared_String::FormatNumber($calculatedValue));
- } else {
- $objWriter->writeElement('v', '0');
- }
- } else {
- $objWriter->writeElement('v', '0');
- }
- }
- break;
- case 'n': // Numeric
- // force point as decimal separator in case current locale uses comma
- $objWriter->writeElement('v', str_replace(',', '.', $cellValue));
- break;
- case 'b': // Boolean
- $objWriter->writeElement('v', ($cellValue ? '1' : '0'));
- break;
- case 'e': // Error
- if (substr($cellValue, 0, 1) == '=') {
- $objWriter->writeElement('f', substr($cellValue, 1));
- $objWriter->writeElement('v', substr($cellValue, 1));
- } else {
- $objWriter->writeElement('v', $cellValue);
- }
-
- break;
- }
- }
-
- $objWriter->endElement();
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
-
- /**
- * Write Drawings
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @param boolean $includeCharts Flag indicating if we should include drawing details for charts
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeDrawings(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $includeCharts = FALSE)
- {
- $chartCount = ($includeCharts) ? $pSheet->getChartCollection()->count() : 0;
- // If sheet contains drawings, add the relationships
- if (($pSheet->getDrawingCollection()->count() > 0) ||
- ($chartCount > 0)) {
- $objWriter->startElement('drawing');
- $objWriter->writeAttribute('r:id', 'rId1');
- $objWriter->endElement();
- }
- }
-
- /**
- * Write LegacyDrawing
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeLegacyDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // If sheet contains comments, add the relationships
- if (count($pSheet->getComments()) > 0) {
- $objWriter->startElement('legacyDrawing');
- $objWriter->writeAttribute('r:id', 'rId_comments_vml1');
- $objWriter->endElement();
- }
- }
-
- /**
- * Write LegacyDrawingHF
- *
- * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
- * @param PHPExcel_Worksheet $pSheet Worksheet
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeLegacyDrawingHF(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
- {
- // If sheet contains images, add the relationships
- if (count($pSheet->getHeaderFooter()->getImages()) > 0) {
- $objWriter->startElement('legacyDrawingHF');
- $objWriter->writeAttribute('r:id', 'rId_headerfooter_vml1');
- $objWriter->endElement();
- }
- }
+ /**
+ * Write worksheet to XML format
+ *
+ * @param PHPExcel_Worksheet $pSheet
+ * @param string[] $pStringTable
+ * @param boolean $includeCharts Flag indicating if we should write charts
+ * @return string XML Output
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function writeWorksheet($pSheet = null, $pStringTable = null, $includeCharts = false)
+ {
+ if (!is_null($pSheet)) {
+ // Create XML writer
+ $objWriter = null;
+ if ($this->getParentWriter()->getUseDiskCaching()) {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
+ } else {
+ $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);
+ }
+
+ // XML header
+ $objWriter->startDocument('1.0', 'UTF-8', 'yes');
+
+ // Worksheet
+ $objWriter->startElement('worksheet');
+ $objWriter->writeAttribute('xml:space', 'preserve');
+ $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
+ $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
+
+ // sheetPr
+ $this->writeSheetPr($objWriter, $pSheet);
+
+ // Dimension
+ $this->writeDimension($objWriter, $pSheet);
+
+ // sheetViews
+ $this->writeSheetViews($objWriter, $pSheet);
+
+ // sheetFormatPr
+ $this->writeSheetFormatPr($objWriter, $pSheet);
+
+ // cols
+ $this->writeCols($objWriter, $pSheet);
+
+ // sheetData
+ $this->writeSheetData($objWriter, $pSheet, $pStringTable);
+
+ // sheetProtection
+ $this->writeSheetProtection($objWriter, $pSheet);
+
+ // protectedRanges
+ $this->writeProtectedRanges($objWriter, $pSheet);
+
+ // autoFilter
+ $this->writeAutoFilter($objWriter, $pSheet);
+
+ // mergeCells
+ $this->writeMergeCells($objWriter, $pSheet);
+
+ // conditionalFormatting
+ $this->writeConditionalFormatting($objWriter, $pSheet);
+
+ // dataValidations
+ $this->writeDataValidations($objWriter, $pSheet);
+
+ // hyperlinks
+ $this->writeHyperlinks($objWriter, $pSheet);
+
+ // Print options
+ $this->writePrintOptions($objWriter, $pSheet);
+
+ // Page margins
+ $this->writePageMargins($objWriter, $pSheet);
+
+ // Page setup
+ $this->writePageSetup($objWriter, $pSheet);
+
+ // Header / footer
+ $this->writeHeaderFooter($objWriter, $pSheet);
+
+ // Breaks
+ $this->writeBreaks($objWriter, $pSheet);
+
+ // Drawings and/or Charts
+ $this->writeDrawings($objWriter, $pSheet, $includeCharts);
+
+ // LegacyDrawing
+ $this->writeLegacyDrawing($objWriter, $pSheet);
+
+ // LegacyDrawingHF
+ $this->writeLegacyDrawingHF($objWriter, $pSheet);
+
+ $objWriter->endElement();
+
+ // Return
+ return $objWriter->getData();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed.");
+ }
+ }
+
+ /**
+ * Write SheetPr
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // sheetPr
+ $objWriter->startElement('sheetPr');
+ //$objWriter->writeAttribute('codeName', $pSheet->getTitle());
+ if ($pSheet->getParent()->hasMacros()) {//if the workbook have macros, we need to have codeName for the sheet
+ if ($pSheet->hasCodeName()==false) {
+ $pSheet->setCodeName($pSheet->getTitle());
+ }
+ $objWriter->writeAttribute('codeName', $pSheet->getCodeName());
+ }
+ $autoFilterRange = $pSheet->getAutoFilter()->getRange();
+ if (!empty($autoFilterRange)) {
+ $objWriter->writeAttribute('filterMode', 1);
+ $pSheet->getAutoFilter()->showHideRows();
+ }
+
+ // tabColor
+ if ($pSheet->isTabColorSet()) {
+ $objWriter->startElement('tabColor');
+ $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB());
+ $objWriter->endElement();
+ }
+
+ // outlinePr
+ $objWriter->startElement('outlinePr');
+ $objWriter->writeAttribute('summaryBelow', ($pSheet->getShowSummaryBelow() ? '1' : '0'));
+ $objWriter->writeAttribute('summaryRight', ($pSheet->getShowSummaryRight() ? '1' : '0'));
+ $objWriter->endElement();
+
+ // pageSetUpPr
+ if ($pSheet->getPageSetup()->getFitToPage()) {
+ $objWriter->startElement('pageSetUpPr');
+ $objWriter->writeAttribute('fitToPage', '1');
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Dimension
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDimension(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // dimension
+ $objWriter->startElement('dimension');
+ $objWriter->writeAttribute('ref', $pSheet->calculateWorksheetDimension());
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write SheetViews
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheetViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // sheetViews
+ $objWriter->startElement('sheetViews');
+
+ // Sheet selected?
+ $sheetSelected = false;
+ if ($this->getParentWriter()->getPHPExcel()->getIndex($pSheet) == $this->getParentWriter()->getPHPExcel()->getActiveSheetIndex()) {
+ $sheetSelected = true;
+ }
+
+ // sheetView
+ $objWriter->startElement('sheetView');
+ $objWriter->writeAttribute('tabSelected', $sheetSelected ? '1' : '0');
+ $objWriter->writeAttribute('workbookViewId', '0');
+
+ // Zoom scales
+ if ($pSheet->getSheetView()->getZoomScale() != 100) {
+ $objWriter->writeAttribute('zoomScale', $pSheet->getSheetView()->getZoomScale());
+ }
+ if ($pSheet->getSheetView()->getZoomScaleNormal() != 100) {
+ $objWriter->writeAttribute('zoomScaleNormal', $pSheet->getSheetView()->getZoomScaleNormal());
+ }
+
+ // View Layout Type
+ if ($pSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL) {
+ $objWriter->writeAttribute('view', $pSheet->getSheetView()->getView());
+ }
+
+ // Gridlines
+ if ($pSheet->getShowGridlines()) {
+ $objWriter->writeAttribute('showGridLines', 'true');
+ } else {
+ $objWriter->writeAttribute('showGridLines', 'false');
+ }
+
+ // Row and column headers
+ if ($pSheet->getShowRowColHeaders()) {
+ $objWriter->writeAttribute('showRowColHeaders', '1');
+ } else {
+ $objWriter->writeAttribute('showRowColHeaders', '0');
+ }
+
+ // Right-to-left
+ if ($pSheet->getRightToLeft()) {
+ $objWriter->writeAttribute('rightToLeft', 'true');
+ }
+
+ $activeCell = $pSheet->getActiveCell();
+
+ // Pane
+ $pane = '';
+ $topLeftCell = $pSheet->getFreezePane();
+ if (($topLeftCell != '') && ($topLeftCell != 'A1')) {
+ $activeCell = empty($activeCell) ? $topLeftCell : $activeCell;
+ // Calculate freeze coordinates
+ $xSplit = $ySplit = 0;
+
+ list($xSplit, $ySplit) = PHPExcel_Cell::coordinateFromString($topLeftCell);
+ $xSplit = PHPExcel_Cell::columnIndexFromString($xSplit);
+
+ // pane
+ $pane = 'topRight';
+ $objWriter->startElement('pane');
+ if ($xSplit > 1) {
+ $objWriter->writeAttribute('xSplit', $xSplit - 1);
+ }
+ if ($ySplit > 1) {
+ $objWriter->writeAttribute('ySplit', $ySplit - 1);
+ $pane = ($xSplit > 1) ? 'bottomRight' : 'bottomLeft';
+ }
+ $objWriter->writeAttribute('topLeftCell', $topLeftCell);
+ $objWriter->writeAttribute('activePane', $pane);
+ $objWriter->writeAttribute('state', 'frozen');
+ $objWriter->endElement();
+
+ if (($xSplit > 1) && ($ySplit > 1)) {
+ // Write additional selections if more than two panes (ie both an X and a Y split)
+ $objWriter->startElement('selection');
+ $objWriter->writeAttribute('pane', 'topRight');
+ $objWriter->endElement();
+ $objWriter->startElement('selection');
+ $objWriter->writeAttribute('pane', 'bottomLeft');
+ $objWriter->endElement();
+ }
+ }
+
+ // Selection
+// if ($pane != '') {
+ // Only need to write selection element if we have a split pane
+ // We cheat a little by over-riding the active cell selection, setting it to the split cell
+ $objWriter->startElement('selection');
+ if ($pane != '') {
+ $objWriter->writeAttribute('pane', $pane);
+ }
+ $objWriter->writeAttribute('activeCell', $activeCell);
+ $objWriter->writeAttribute('sqref', $activeCell);
+ $objWriter->endElement();
+// }
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write SheetFormatPr
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheetFormatPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // sheetFormatPr
+ $objWriter->startElement('sheetFormatPr');
+
+ // Default row height
+ if ($pSheet->getDefaultRowDimension()->getRowHeight() >= 0) {
+ $objWriter->writeAttribute('customHeight', 'true');
+ $objWriter->writeAttribute('defaultRowHeight', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultRowDimension()->getRowHeight()));
+ } else {
+ $objWriter->writeAttribute('defaultRowHeight', '14.4');
+ }
+
+ // Set Zero Height row
+ if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' ||
+ strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true') {
+ $objWriter->writeAttribute('zeroHeight', '1');
+ }
+
+ // Default column width
+ if ($pSheet->getDefaultColumnDimension()->getWidth() >= 0) {
+ $objWriter->writeAttribute('defaultColWidth', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultColumnDimension()->getWidth()));
+ }
+
+ // Outline level - row
+ $outlineLevelRow = 0;
+ foreach ($pSheet->getRowDimensions() as $dimension) {
+ if ($dimension->getOutlineLevel() > $outlineLevelRow) {
+ $outlineLevelRow = $dimension->getOutlineLevel();
+ }
+ }
+ $objWriter->writeAttribute('outlineLevelRow', (int)$outlineLevelRow);
+
+ // Outline level - column
+ $outlineLevelCol = 0;
+ foreach ($pSheet->getColumnDimensions() as $dimension) {
+ if ($dimension->getOutlineLevel() > $outlineLevelCol) {
+ $outlineLevelCol = $dimension->getOutlineLevel();
+ }
+ }
+ $objWriter->writeAttribute('outlineLevelCol', (int)$outlineLevelCol);
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Cols
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCols(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // cols
+ if (count($pSheet->getColumnDimensions()) > 0) {
+ $objWriter->startElement('cols');
+
+ $pSheet->calculateColumnWidths();
+
+ // Loop through column dimensions
+ foreach ($pSheet->getColumnDimensions() as $colDimension) {
+ // col
+ $objWriter->startElement('col');
+ $objWriter->writeAttribute('min', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex()));
+ $objWriter->writeAttribute('max', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex()));
+
+ if ($colDimension->getWidth() < 0) {
+ // No width set, apply default of 10
+ $objWriter->writeAttribute('width', '9.10');
+ } else {
+ // Width set
+ $objWriter->writeAttribute('width', PHPExcel_Shared_String::FormatNumber($colDimension->getWidth()));
+ }
+
+ // Column visibility
+ if ($colDimension->getVisible() == false) {
+ $objWriter->writeAttribute('hidden', 'true');
+ }
+
+ // Auto size?
+ if ($colDimension->getAutoSize()) {
+ $objWriter->writeAttribute('bestFit', 'true');
+ }
+
+ // Custom width?
+ if ($colDimension->getWidth() != $pSheet->getDefaultColumnDimension()->getWidth()) {
+ $objWriter->writeAttribute('customWidth', 'true');
+ }
+
+ // Collapsed
+ if ($colDimension->getCollapsed() == true) {
+ $objWriter->writeAttribute('collapsed', 'true');
+ }
+
+ // Outline level
+ if ($colDimension->getOutlineLevel() > 0) {
+ $objWriter->writeAttribute('outlineLevel', $colDimension->getOutlineLevel());
+ }
+
+ // Style
+ $objWriter->writeAttribute('style', $colDimension->getXfIndex());
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write SheetProtection
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheetProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // sheetProtection
+ $objWriter->startElement('sheetProtection');
+
+ if ($pSheet->getProtection()->getPassword() != '') {
+ $objWriter->writeAttribute('password', $pSheet->getProtection()->getPassword());
+ }
+
+ $objWriter->writeAttribute('sheet', ($pSheet->getProtection()->getSheet() ? 'true' : 'false'));
+ $objWriter->writeAttribute('objects', ($pSheet->getProtection()->getObjects() ? 'true' : 'false'));
+ $objWriter->writeAttribute('scenarios', ($pSheet->getProtection()->getScenarios() ? 'true' : 'false'));
+ $objWriter->writeAttribute('formatCells', ($pSheet->getProtection()->getFormatCells() ? 'true' : 'false'));
+ $objWriter->writeAttribute('formatColumns', ($pSheet->getProtection()->getFormatColumns() ? 'true' : 'false'));
+ $objWriter->writeAttribute('formatRows', ($pSheet->getProtection()->getFormatRows() ? 'true' : 'false'));
+ $objWriter->writeAttribute('insertColumns', ($pSheet->getProtection()->getInsertColumns() ? 'true' : 'false'));
+ $objWriter->writeAttribute('insertRows', ($pSheet->getProtection()->getInsertRows() ? 'true' : 'false'));
+ $objWriter->writeAttribute('insertHyperlinks', ($pSheet->getProtection()->getInsertHyperlinks() ? 'true' : 'false'));
+ $objWriter->writeAttribute('deleteColumns', ($pSheet->getProtection()->getDeleteColumns() ? 'true' : 'false'));
+ $objWriter->writeAttribute('deleteRows', ($pSheet->getProtection()->getDeleteRows() ? 'true' : 'false'));
+ $objWriter->writeAttribute('selectLockedCells', ($pSheet->getProtection()->getSelectLockedCells() ? 'true' : 'false'));
+ $objWriter->writeAttribute('sort', ($pSheet->getProtection()->getSort() ? 'true' : 'false'));
+ $objWriter->writeAttribute('autoFilter', ($pSheet->getProtection()->getAutoFilter() ? 'true' : 'false'));
+ $objWriter->writeAttribute('pivotTables', ($pSheet->getProtection()->getPivotTables() ? 'true' : 'false'));
+ $objWriter->writeAttribute('selectUnlockedCells', ($pSheet->getProtection()->getSelectUnlockedCells() ? 'true' : 'false'));
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write ConditionalFormatting
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeConditionalFormatting(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // Conditional id
+ $id = 1;
+
+ // Loop through styles in the current worksheet
+ foreach ($pSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) {
+ foreach ($conditionalStyles as $conditional) {
+ // WHY was this again?
+ // if ($this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode($conditional->getHashCode()) == '') {
+ // continue;
+ // }
+ if ($conditional->getConditionType() != PHPExcel_Style_Conditional::CONDITION_NONE) {
+ // conditionalFormatting
+ $objWriter->startElement('conditionalFormatting');
+ $objWriter->writeAttribute('sqref', $cellCoordinate);
+
+ // cfRule
+ $objWriter->startElement('cfRule');
+ $objWriter->writeAttribute('type', $conditional->getConditionType());
+ $objWriter->writeAttribute('dxfId', $this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode($conditional->getHashCode()));
+ $objWriter->writeAttribute('priority', $id++);
+
+ if (($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT)
+ && $conditional->getOperatorType() != PHPExcel_Style_Conditional::OPERATOR_NONE) {
+ $objWriter->writeAttribute('operator', $conditional->getOperatorType());
+ }
+
+ if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ && !is_null($conditional->getText())) {
+ $objWriter->writeAttribute('text', $conditional->getText());
+ }
+
+ if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT
+ && !is_null($conditional->getText())) {
+ $objWriter->writeElement('formula', 'NOT(ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . ')))');
+ } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH
+ && !is_null($conditional->getText())) {
+ $objWriter->writeElement('formula', 'LEFT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"');
+ } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_ENDSWITH
+ && !is_null($conditional->getText())) {
+ $objWriter->writeElement('formula', 'RIGHT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"');
+ } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS
+ && !is_null($conditional->getText())) {
+ $objWriter->writeElement('formula', 'ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . '))');
+ } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS
+ || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT
+ || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) {
+ foreach ($conditional->getConditions() as $formula) {
+ // Formula
+ $objWriter->writeElement('formula', $formula);
+ }
+ }
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+ }
+ }
+ }
+
+ /**
+ * Write DataValidations
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDataValidations(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // Datavalidation collection
+ $dataValidationCollection = $pSheet->getDataValidationCollection();
+
+ // Write data validations?
+ if (!empty($dataValidationCollection)) {
+ $objWriter->startElement('dataValidations');
+ $objWriter->writeAttribute('count', count($dataValidationCollection));
+
+ foreach ($dataValidationCollection as $coordinate => $dv) {
+ $objWriter->startElement('dataValidation');
+
+ if ($dv->getType() != '') {
+ $objWriter->writeAttribute('type', $dv->getType());
+ }
+
+ if ($dv->getErrorStyle() != '') {
+ $objWriter->writeAttribute('errorStyle', $dv->getErrorStyle());
+ }
+
+ if ($dv->getOperator() != '') {
+ $objWriter->writeAttribute('operator', $dv->getOperator());
+ }
+
+ $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0'));
+ $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0'));
+ $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0'));
+ $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0'));
+
+ if ($dv->getErrorTitle() !== '') {
+ $objWriter->writeAttribute('errorTitle', $dv->getErrorTitle());
+ }
+ if ($dv->getError() !== '') {
+ $objWriter->writeAttribute('error', $dv->getError());
+ }
+ if ($dv->getPromptTitle() !== '') {
+ $objWriter->writeAttribute('promptTitle', $dv->getPromptTitle());
+ }
+ if ($dv->getPrompt() !== '') {
+ $objWriter->writeAttribute('prompt', $dv->getPrompt());
+ }
+
+ $objWriter->writeAttribute('sqref', $coordinate);
+
+ if ($dv->getFormula1() !== '') {
+ $objWriter->writeElement('formula1', $dv->getFormula1());
+ }
+ if ($dv->getFormula2() !== '') {
+ $objWriter->writeElement('formula2', $dv->getFormula2());
+ }
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write Hyperlinks
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeHyperlinks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // Hyperlink collection
+ $hyperlinkCollection = $pSheet->getHyperlinkCollection();
+
+ // Relation ID
+ $relationId = 1;
+
+ // Write hyperlinks?
+ if (!empty($hyperlinkCollection)) {
+ $objWriter->startElement('hyperlinks');
+
+ foreach ($hyperlinkCollection as $coordinate => $hyperlink) {
+ $objWriter->startElement('hyperlink');
+
+ $objWriter->writeAttribute('ref', $coordinate);
+ if (!$hyperlink->isInternal()) {
+ $objWriter->writeAttribute('r:id', 'rId_hyperlink_' . $relationId);
+ ++$relationId;
+ } else {
+ $objWriter->writeAttribute('location', str_replace('sheet://', '', $hyperlink->getUrl()));
+ }
+
+ if ($hyperlink->getTooltip() != '') {
+ $objWriter->writeAttribute('tooltip', $hyperlink->getTooltip());
+ }
+
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write ProtectedRanges
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeProtectedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ if (count($pSheet->getProtectedCells()) > 0) {
+ // protectedRanges
+ $objWriter->startElement('protectedRanges');
+
+ // Loop protectedRanges
+ foreach ($pSheet->getProtectedCells() as $protectedCell => $passwordHash) {
+ // protectedRange
+ $objWriter->startElement('protectedRange');
+ $objWriter->writeAttribute('name', 'p' . md5($protectedCell));
+ $objWriter->writeAttribute('sqref', $protectedCell);
+ if (!empty($passwordHash)) {
+ $objWriter->writeAttribute('password', $passwordHash);
+ }
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write MergeCells
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeMergeCells(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ if (count($pSheet->getMergeCells()) > 0) {
+ // mergeCells
+ $objWriter->startElement('mergeCells');
+
+ // Loop mergeCells
+ foreach ($pSheet->getMergeCells() as $mergeCell) {
+ // mergeCell
+ $objWriter->startElement('mergeCell');
+ $objWriter->writeAttribute('ref', $mergeCell);
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write PrintOptions
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePrintOptions(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // printOptions
+ $objWriter->startElement('printOptions');
+
+ $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false'));
+ $objWriter->writeAttribute('gridLinesSet', 'true');
+
+ if ($pSheet->getPageSetup()->getHorizontalCentered()) {
+ $objWriter->writeAttribute('horizontalCentered', 'true');
+ }
+
+ if ($pSheet->getPageSetup()->getVerticalCentered()) {
+ $objWriter->writeAttribute('verticalCentered', 'true');
+ }
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write PageMargins
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePageMargins(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // pageMargins
+ $objWriter->startElement('pageMargins');
+ $objWriter->writeAttribute('left', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()));
+ $objWriter->writeAttribute('right', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()));
+ $objWriter->writeAttribute('top', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()));
+ $objWriter->writeAttribute('bottom', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()));
+ $objWriter->writeAttribute('header', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getHeader()));
+ $objWriter->writeAttribute('footer', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getFooter()));
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write AutoFilter
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeAutoFilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ $autoFilterRange = $pSheet->getAutoFilter()->getRange();
+ if (!empty($autoFilterRange)) {
+ // autoFilter
+ $objWriter->startElement('autoFilter');
+
+ // Strip any worksheet reference from the filter coordinates
+ $range = PHPExcel_Cell::splitRange($autoFilterRange);
+ $range = $range[0];
+ // Strip any worksheet ref
+ if (strpos($range[0], '!') !== false) {
+ list($ws, $range[0]) = explode('!', $range[0]);
+ }
+ $range = implode(':', $range);
+
+ $objWriter->writeAttribute('ref', str_replace('$', '', $range));
+
+ $columns = $pSheet->getAutoFilter()->getColumns();
+ if (count($columns > 0)) {
+ foreach ($columns as $columnID => $column) {
+ $rules = $column->getRules();
+ if (count($rules) > 0) {
+ $objWriter->startElement('filterColumn');
+ $objWriter->writeAttribute('colId', $pSheet->getAutoFilter()->getColumnOffset($columnID));
+
+ $objWriter->startElement($column->getFilterType());
+ if ($column->getJoin() == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND) {
+ $objWriter->writeAttribute('and', 1);
+ }
+
+ foreach ($rules as $rule) {
+ if (($column->getFilterType() === PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER) &&
+ ($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) &&
+ ($rule->getValue() === '')) {
+ // Filter rule for Blanks
+ $objWriter->writeAttribute('blank', 1);
+ } elseif ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER) {
+ // Dynamic Filter Rule
+ $objWriter->writeAttribute('type', $rule->getGrouping());
+ $val = $column->getAttribute('val');
+ if ($val !== null) {
+ $objWriter->writeAttribute('val', $val);
+ }
+ $maxVal = $column->getAttribute('maxVal');
+ if ($maxVal !== null) {
+ $objWriter->writeAttribute('maxVal', $maxVal);
+ }
+ } elseif ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER) {
+ // Top 10 Filter Rule
+ $objWriter->writeAttribute('val', $rule->getValue());
+ $objWriter->writeAttribute('percent', (($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0'));
+ $objWriter->writeAttribute('top', (($rule->getGrouping() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0'));
+ } else {
+ // Filter, DateGroupItem or CustomFilter
+ $objWriter->startElement($rule->getRuleType());
+
+ if ($rule->getOperator() !== PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) {
+ $objWriter->writeAttribute('operator', $rule->getOperator());
+ }
+ if ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP) {
+ // Date Group filters
+ foreach ($rule->getValue() as $key => $value) {
+ if ($value > '') {
+ $objWriter->writeAttribute($key, $value);
+ }
+ }
+ $objWriter->writeAttribute('dateTimeGrouping', $rule->getGrouping());
+ } else {
+ $objWriter->writeAttribute('val', $rule->getValue());
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ $objWriter->endElement();
+
+ $objWriter->endElement();
+ }
+ }
+ }
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write PageSetup
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writePageSetup(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // pageSetup
+ $objWriter->startElement('pageSetup');
+ $objWriter->writeAttribute('paperSize', $pSheet->getPageSetup()->getPaperSize());
+ $objWriter->writeAttribute('orientation', $pSheet->getPageSetup()->getOrientation());
+
+ if (!is_null($pSheet->getPageSetup()->getScale())) {
+ $objWriter->writeAttribute('scale', $pSheet->getPageSetup()->getScale());
+ }
+ if (!is_null($pSheet->getPageSetup()->getFitToHeight())) {
+ $objWriter->writeAttribute('fitToHeight', $pSheet->getPageSetup()->getFitToHeight());
+ } else {
+ $objWriter->writeAttribute('fitToHeight', '0');
+ }
+ if (!is_null($pSheet->getPageSetup()->getFitToWidth())) {
+ $objWriter->writeAttribute('fitToWidth', $pSheet->getPageSetup()->getFitToWidth());
+ } else {
+ $objWriter->writeAttribute('fitToWidth', '0');
+ }
+ if (!is_null($pSheet->getPageSetup()->getFirstPageNumber())) {
+ $objWriter->writeAttribute('firstPageNumber', $pSheet->getPageSetup()->getFirstPageNumber());
+ $objWriter->writeAttribute('useFirstPageNumber', '1');
+ }
+
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Header / Footer
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeHeaderFooter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // headerFooter
+ $objWriter->startElement('headerFooter');
+ $objWriter->writeAttribute('differentOddEven', ($pSheet->getHeaderFooter()->getDifferentOddEven() ? 'true' : 'false'));
+ $objWriter->writeAttribute('differentFirst', ($pSheet->getHeaderFooter()->getDifferentFirst() ? 'true' : 'false'));
+ $objWriter->writeAttribute('scaleWithDoc', ($pSheet->getHeaderFooter()->getScaleWithDocument() ? 'true' : 'false'));
+ $objWriter->writeAttribute('alignWithMargins', ($pSheet->getHeaderFooter()->getAlignWithMargins() ? 'true' : 'false'));
+
+ $objWriter->writeElement('oddHeader', $pSheet->getHeaderFooter()->getOddHeader());
+ $objWriter->writeElement('oddFooter', $pSheet->getHeaderFooter()->getOddFooter());
+ $objWriter->writeElement('evenHeader', $pSheet->getHeaderFooter()->getEvenHeader());
+ $objWriter->writeElement('evenFooter', $pSheet->getHeaderFooter()->getEvenFooter());
+ $objWriter->writeElement('firstHeader', $pSheet->getHeaderFooter()->getFirstHeader());
+ $objWriter->writeElement('firstFooter', $pSheet->getHeaderFooter()->getFirstFooter());
+ $objWriter->endElement();
+ }
+
+ /**
+ * Write Breaks
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeBreaks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // Get row and column breaks
+ $aRowBreaks = array();
+ $aColumnBreaks = array();
+ foreach ($pSheet->getBreaks() as $cell => $breakType) {
+ if ($breakType == PHPExcel_Worksheet::BREAK_ROW) {
+ $aRowBreaks[] = $cell;
+ } elseif ($breakType == PHPExcel_Worksheet::BREAK_COLUMN) {
+ $aColumnBreaks[] = $cell;
+ }
+ }
+
+ // rowBreaks
+ if (!empty($aRowBreaks)) {
+ $objWriter->startElement('rowBreaks');
+ $objWriter->writeAttribute('count', count($aRowBreaks));
+ $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks));
+
+ foreach ($aRowBreaks as $cell) {
+ $coords = PHPExcel_Cell::coordinateFromString($cell);
+
+ $objWriter->startElement('brk');
+ $objWriter->writeAttribute('id', $coords[1]);
+ $objWriter->writeAttribute('man', '1');
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+
+ // Second, write column breaks
+ if (!empty($aColumnBreaks)) {
+ $objWriter->startElement('colBreaks');
+ $objWriter->writeAttribute('count', count($aColumnBreaks));
+ $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks));
+
+ foreach ($aColumnBreaks as $cell) {
+ $coords = PHPExcel_Cell::coordinateFromString($cell);
+
+ $objWriter->startElement('brk');
+ $objWriter->writeAttribute('id', PHPExcel_Cell::columnIndexFromString($coords[0]) - 1);
+ $objWriter->writeAttribute('man', '1');
+ $objWriter->endElement();
+ }
+
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write SheetData
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @param string[] $pStringTable String table
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeSheetData(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pStringTable = null)
+ {
+ if (is_array($pStringTable)) {
+ // Flipped stringtable, for faster index searching
+ $aFlippedStringTable = $this->getParentWriter()->getWriterPart('stringtable')->flipStringTable($pStringTable);
+
+ // sheetData
+ $objWriter->startElement('sheetData');
+
+ // Get column count
+ $colCount = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn());
+
+ // Highest row number
+ $highestRow = $pSheet->getHighestRow();
+
+ // Loop through cells
+ $cellsByRow = array();
+ foreach ($pSheet->getCellCollection() as $cellID) {
+ $cellAddress = PHPExcel_Cell::coordinateFromString($cellID);
+ $cellsByRow[$cellAddress[1]][] = $cellID;
+ }
+
+ $currentRow = 0;
+ while ($currentRow++ < $highestRow) {
+ // Get row dimension
+ $rowDimension = $pSheet->getRowDimension($currentRow);
+
+ // Write current row?
+ $writeCurrentRow = isset($cellsByRow[$currentRow]) || $rowDimension->getRowHeight() >= 0 || $rowDimension->getVisible() == false || $rowDimension->getCollapsed() == true || $rowDimension->getOutlineLevel() > 0 || $rowDimension->getXfIndex() !== null;
+
+ if ($writeCurrentRow) {
+ // Start a new row
+ $objWriter->startElement('row');
+ $objWriter->writeAttribute('r', $currentRow);
+ $objWriter->writeAttribute('spans', '1:' . $colCount);
+
+ // Row dimensions
+ if ($rowDimension->getRowHeight() >= 0) {
+ $objWriter->writeAttribute('customHeight', '1');
+ $objWriter->writeAttribute('ht', PHPExcel_Shared_String::FormatNumber($rowDimension->getRowHeight()));
+ }
+
+ // Row visibility
+ if ($rowDimension->getVisible() == false) {
+ $objWriter->writeAttribute('hidden', 'true');
+ }
+
+ // Collapsed
+ if ($rowDimension->getCollapsed() == true) {
+ $objWriter->writeAttribute('collapsed', 'true');
+ }
+
+ // Outline level
+ if ($rowDimension->getOutlineLevel() > 0) {
+ $objWriter->writeAttribute('outlineLevel', $rowDimension->getOutlineLevel());
+ }
+
+ // Style
+ if ($rowDimension->getXfIndex() !== null) {
+ $objWriter->writeAttribute('s', $rowDimension->getXfIndex());
+ $objWriter->writeAttribute('customFormat', '1');
+ }
+
+ // Write cells
+ if (isset($cellsByRow[$currentRow])) {
+ foreach ($cellsByRow[$currentRow] as $cellAddress) {
+ // Write cell
+ $this->writeCell($objWriter, $pSheet, $cellAddress, $pStringTable, $aFlippedStringTable);
+ }
+ }
+
+ // End row
+ $objWriter->endElement();
+ }
+ }
+
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
+
+ /**
+ * Write Cell
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @param PHPExcel_Cell $pCellAddress Cell Address
+ * @param string[] $pStringTable String table
+ * @param string[] $pFlippedStringTable String table (flipped), for faster index searching
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeCell(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pCellAddress = null, $pStringTable = null, $pFlippedStringTable = null)
+ {
+ if (is_array($pStringTable) && is_array($pFlippedStringTable)) {
+ // Cell
+ $pCell = $pSheet->getCell($pCellAddress);
+ $objWriter->startElement('c');
+ $objWriter->writeAttribute('r', $pCellAddress);
+
+ // Sheet styles
+ if ($pCell->getXfIndex() != '') {
+ $objWriter->writeAttribute('s', $pCell->getXfIndex());
+ }
+
+ // If cell value is supplied, write cell value
+ $cellValue = $pCell->getValue();
+ if (is_object($cellValue) || $cellValue !== '') {
+ // Map type
+ $mappedType = $pCell->getDataType();
+
+ // Write data type depending on its type
+ switch (strtolower($mappedType)) {
+ case 'inlinestr': // Inline string
+ case 's': // String
+ case 'b': // Boolean
+ $objWriter->writeAttribute('t', $mappedType);
+ break;
+ case 'f': // Formula
+ $calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ?
+ $pCell->getCalculatedValue() :
+ $cellValue;
+ if (is_string($calculatedValue)) {
+ $objWriter->writeAttribute('t', 'str');
+ }
+ break;
+ case 'e': // Error
+ $objWriter->writeAttribute('t', $mappedType);
+ }
+
+ // Write data depending on its type
+ switch (strtolower($mappedType)) {
+ case 'inlinestr': // Inline string
+ if (! $cellValue instanceof PHPExcel_RichText) {
+ $objWriter->writeElement('t', PHPExcel_Shared_String::ControlCharacterPHP2OOXML(htmlspecialchars($cellValue)));
+ } elseif ($cellValue instanceof PHPExcel_RichText) {
+ $objWriter->startElement('is');
+ $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $cellValue);
+ $objWriter->endElement();
+ }
+
+ break;
+ case 's': // String
+ if (! $cellValue instanceof PHPExcel_RichText) {
+ if (isset($pFlippedStringTable[$cellValue])) {
+ $objWriter->writeElement('v', $pFlippedStringTable[$cellValue]);
+ }
+ } elseif ($cellValue instanceof PHPExcel_RichText) {
+ $objWriter->writeElement('v', $pFlippedStringTable[$cellValue->getHashCode()]);
+ }
+
+ break;
+ case 'f': // Formula
+ $attributes = $pCell->getFormulaAttributes();
+ if ($attributes['t'] == 'array') {
+ $objWriter->startElement('f');
+ $objWriter->writeAttribute('t', 'array');
+ $objWriter->writeAttribute('ref', $pCellAddress);
+ $objWriter->writeAttribute('aca', '1');
+ $objWriter->writeAttribute('ca', '1');
+ $objWriter->text(substr($cellValue, 1));
+ $objWriter->endElement();
+ } else {
+ $objWriter->writeElement('f', substr($cellValue, 1));
+ }
+ if ($this->getParentWriter()->getOffice2003Compatibility() === false) {
+ if ($this->getParentWriter()->getPreCalculateFormulas()) {
+// $calculatedValue = $pCell->getCalculatedValue();
+ if (!is_array($calculatedValue) && substr($calculatedValue, 0, 1) != '#') {
+ $objWriter->writeElement('v', PHPExcel_Shared_String::FormatNumber($calculatedValue));
+ } else {
+ $objWriter->writeElement('v', '0');
+ }
+ } else {
+ $objWriter->writeElement('v', '0');
+ }
+ }
+ break;
+ case 'n': // Numeric
+ // force point as decimal separator in case current locale uses comma
+ $objWriter->writeElement('v', str_replace(',', '.', $cellValue));
+ break;
+ case 'b': // Boolean
+ $objWriter->writeElement('v', ($cellValue ? '1' : '0'));
+ break;
+ case 'e': // Error
+ if (substr($cellValue, 0, 1) == '=') {
+ $objWriter->writeElement('f', substr($cellValue, 1));
+ $objWriter->writeElement('v', substr($cellValue, 1));
+ } else {
+ $objWriter->writeElement('v', $cellValue);
+ }
+
+ break;
+ }
+ }
+
+ $objWriter->endElement();
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
+
+ /**
+ * Write Drawings
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @param boolean $includeCharts Flag indicating if we should include drawing details for charts
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeDrawings(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $includeCharts = false)
+ {
+ $chartCount = ($includeCharts) ? $pSheet->getChartCollection()->count() : 0;
+ // If sheet contains drawings, add the relationships
+ if (($pSheet->getDrawingCollection()->count() > 0) ||
+ ($chartCount > 0)) {
+ $objWriter->startElement('drawing');
+ $objWriter->writeAttribute('r:id', 'rId1');
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write LegacyDrawing
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeLegacyDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // If sheet contains comments, add the relationships
+ if (count($pSheet->getComments()) > 0) {
+ $objWriter->startElement('legacyDrawing');
+ $objWriter->writeAttribute('r:id', 'rId_comments_vml1');
+ $objWriter->endElement();
+ }
+ }
+
+ /**
+ * Write LegacyDrawingHF
+ *
+ * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer
+ * @param PHPExcel_Worksheet $pSheet Worksheet
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeLegacyDrawingHF(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
+ {
+ // If sheet contains images, add the relationships
+ if (count($pSheet->getHeaderFooter()->getImages()) > 0) {
+ $objWriter->startElement('legacyDrawingHF');
+ $objWriter->writeAttribute('r:id', 'rId_headerfooter_vml1');
+ $objWriter->endElement();
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/WriterPart.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/WriterPart.php
index 68b1124f..806ebe51 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/WriterPart.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/WriterPart.php
@@ -1,8 +1,9 @@
_parentWriter = $pWriter;
- }
+ /**
+ * Set parent IWriter object
+ *
+ * @param PHPExcel_Writer_IWriter $pWriter
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function setParentWriter(PHPExcel_Writer_IWriter $pWriter = null)
+ {
+ $this->parentWriter = $pWriter;
+ }
- /**
- * Get parent IWriter object
- *
- * @return PHPExcel_Writer_IWriter
- * @throws PHPExcel_Writer_Exception
- */
- public function getParentWriter() {
- if (!is_null($this->_parentWriter)) {
- return $this->_parentWriter;
- } else {
- throw new PHPExcel_Writer_Exception("No parent PHPExcel_Writer_IWriter assigned.");
- }
- }
-
- /**
- * Set parent IWriter object
- *
- * @param PHPExcel_Writer_IWriter $pWriter
- * @throws PHPExcel_Writer_Exception
- */
- public function __construct(PHPExcel_Writer_IWriter $pWriter = null) {
- if (!is_null($pWriter)) {
- $this->_parentWriter = $pWriter;
- }
- }
+ /**
+ * Get parent IWriter object
+ *
+ * @return PHPExcel_Writer_IWriter
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function getParentWriter()
+ {
+ if (!is_null($this->parentWriter)) {
+ return $this->parentWriter;
+ } else {
+ throw new PHPExcel_Writer_Exception("No parent PHPExcel_Writer_IWriter assigned.");
+ }
+ }
+ /**
+ * Set parent IWriter object
+ *
+ * @param PHPExcel_Writer_IWriter $pWriter
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function __construct(PHPExcel_Writer_IWriter $pWriter = null)
+ {
+ if (!is_null($pWriter)) {
+ $this->parentWriter = $pWriter;
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php
index 1a990d04..2dede819 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5.php
@@ -1,8 +1,9 @@
_phpExcel = $phpExcel;
-
- $this->_parser = new PHPExcel_Writer_Excel5_Parser();
- }
-
- /**
- * Save PHPExcel to file
- *
- * @param string $pFilename
- * @throws PHPExcel_Writer_Exception
- */
- public function save($pFilename = null) {
-
- // garbage collect
- $this->_phpExcel->garbageCollect();
-
- $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog();
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE);
- $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType();
- PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
-
- // initialize colors array
- $this->_colors = array();
-
- // Initialise workbook writer
- $this->_writerWorkbook = new PHPExcel_Writer_Excel5_Workbook($this->_phpExcel,
- $this->_str_total, $this->_str_unique, $this->_str_table,
- $this->_colors, $this->_parser);
-
- // Initialise worksheet writers
- $countSheets = $this->_phpExcel->getSheetCount();
- for ($i = 0; $i < $countSheets; ++$i) {
- $this->_writerWorksheets[$i] = new PHPExcel_Writer_Excel5_Worksheet($this->_str_total, $this->_str_unique,
- $this->_str_table, $this->_colors,
- $this->_parser,
- $this->_preCalculateFormulas,
- $this->_phpExcel->getSheet($i));
- }
-
- // build Escher objects. Escher objects for workbooks needs to be build before Escher object for workbook.
- $this->_buildWorksheetEschers();
- $this->_buildWorkbookEscher();
-
- // add 15 identical cell style Xfs
- // for now, we use the first cellXf instead of cellStyleXf
- $cellXfCollection = $this->_phpExcel->getCellXfCollection();
- for ($i = 0; $i < 15; ++$i) {
- $this->_writerWorkbook->addXfWriter($cellXfCollection[0], true);
- }
-
- // add all the cell Xfs
- foreach ($this->_phpExcel->getCellXfCollection() as $style) {
- $this->_writerWorkbook->addXfWriter($style, false);
- }
-
- // add fonts from rich text eleemnts
- for ($i = 0; $i < $countSheets; ++$i) {
- foreach ($this->_writerWorksheets[$i]->_phpSheet->getCellCollection() as $cellID) {
- $cell = $this->_writerWorksheets[$i]->_phpSheet->getCell($cellID);
- $cVal = $cell->getValue();
- if ($cVal instanceof PHPExcel_RichText) {
- $elements = $cVal->getRichTextElements();
- foreach ($elements as $element) {
- if ($element instanceof PHPExcel_RichText_Run) {
- $font = $element->getFont();
- $this->_writerWorksheets[$i]->_fntHashIndex[$font->getHashCode()] = $this->_writerWorkbook->_addFont($font);
- }
- }
- }
- }
- }
-
- // initialize OLE file
- $workbookStreamName = 'Workbook';
- $OLE = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs($workbookStreamName));
-
- // Write the worksheet streams before the global workbook stream,
- // because the byte sizes of these are needed in the global workbook stream
- $worksheetSizes = array();
- for ($i = 0; $i < $countSheets; ++$i) {
- $this->_writerWorksheets[$i]->close();
- $worksheetSizes[] = $this->_writerWorksheets[$i]->_datasize;
- }
-
- // add binary data for global workbook stream
- $OLE->append($this->_writerWorkbook->writeWorkbook($worksheetSizes));
-
- // add binary data for sheet streams
- for ($i = 0; $i < $countSheets; ++$i) {
- $OLE->append($this->_writerWorksheets[$i]->getData());
- }
-
- $this->_documentSummaryInformation = $this->_writeDocumentSummaryInformation();
- // initialize OLE Document Summary Information
- if(isset($this->_documentSummaryInformation) && !empty($this->_documentSummaryInformation)){
- $OLE_DocumentSummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'DocumentSummaryInformation'));
- $OLE_DocumentSummaryInformation->append($this->_documentSummaryInformation);
- }
-
- $this->_summaryInformation = $this->_writeSummaryInformation();
- // initialize OLE Summary Information
- if(isset($this->_summaryInformation) && !empty($this->_summaryInformation)){
- $OLE_SummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'SummaryInformation'));
- $OLE_SummaryInformation->append($this->_summaryInformation);
- }
-
- // define OLE Parts
- $arrRootData = array($OLE);
- // initialize OLE Properties file
- if(isset($OLE_SummaryInformation)){
- $arrRootData[] = $OLE_SummaryInformation;
- }
- // initialize OLE Extended Properties file
- if(isset($OLE_DocumentSummaryInformation)){
- $arrRootData[] = $OLE_DocumentSummaryInformation;
- }
-
- $root = new PHPExcel_Shared_OLE_PPS_Root(time(), time(), $arrRootData);
- // save the OLE file
- $res = $root->save($pFilename);
-
- PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType);
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
- }
-
- /**
- * Set temporary storage directory
- *
- * @deprecated
- * @param string $pValue Temporary storage directory
- * @throws PHPExcel_Writer_Exception when directory does not exist
- * @return PHPExcel_Writer_Excel5
- */
- public function setTempDir($pValue = '') {
- return $this;
- }
-
- /**
- * Build the Worksheet Escher objects
- *
- */
- private function _buildWorksheetEschers()
- {
- // 1-based index to BstoreContainer
- $blipIndex = 0;
- $lastReducedSpId = 0;
- $lastSpId = 0;
-
- foreach ($this->_phpExcel->getAllsheets() as $sheet) {
- // sheet index
- $sheetIndex = $sheet->getParent()->getIndex($sheet);
-
- $escher = null;
-
- // check if there are any shapes for this sheet
- $filterRange = $sheet->getAutoFilter()->getRange();
- if (count($sheet->getDrawingCollection()) == 0 && empty($filterRange)) {
- continue;
- }
-
- // create intermediate Escher object
- $escher = new PHPExcel_Shared_Escher();
-
- // dgContainer
- $dgContainer = new PHPExcel_Shared_Escher_DgContainer();
-
- // set the drawing index (we use sheet index + 1)
- $dgId = $sheet->getParent()->getIndex($sheet) + 1;
- $dgContainer->setDgId($dgId);
- $escher->setDgContainer($dgContainer);
-
- // spgrContainer
- $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer();
- $dgContainer->setSpgrContainer($spgrContainer);
-
- // add one shape which is the group shape
- $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
- $spContainer->setSpgr(true);
- $spContainer->setSpType(0);
- $spContainer->setSpId(($sheet->getParent()->getIndex($sheet) + 1) << 10);
- $spgrContainer->addChild($spContainer);
-
- // add the shapes
-
- $countShapes[$sheetIndex] = 0; // count number of shapes (minus group shape), in sheet
-
- foreach ($sheet->getDrawingCollection() as $drawing) {
- ++$blipIndex;
-
- ++$countShapes[$sheetIndex];
-
- // add the shape
- $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
-
- // set the shape type
- $spContainer->setSpType(0x004B);
- // set the shape flag
- $spContainer->setSpFlag(0x02);
-
- // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index)
- $reducedSpId = $countShapes[$sheetIndex];
- $spId = $reducedSpId
- | ($sheet->getParent()->getIndex($sheet) + 1) << 10;
- $spContainer->setSpId($spId);
-
- // keep track of last reducedSpId
- $lastReducedSpId = $reducedSpId;
-
- // keep track of last spId
- $lastSpId = $spId;
-
- // set the BLIP index
- $spContainer->setOPT(0x4104, $blipIndex);
-
- // set coordinates and offsets, client anchor
- $coordinates = $drawing->getCoordinates();
- $offsetX = $drawing->getOffsetX();
- $offsetY = $drawing->getOffsetY();
- $width = $drawing->getWidth();
- $height = $drawing->getHeight();
-
- $twoAnchor = PHPExcel_Shared_Excel5::oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height);
-
- $spContainer->setStartCoordinates($twoAnchor['startCoordinates']);
- $spContainer->setStartOffsetX($twoAnchor['startOffsetX']);
- $spContainer->setStartOffsetY($twoAnchor['startOffsetY']);
- $spContainer->setEndCoordinates($twoAnchor['endCoordinates']);
- $spContainer->setEndOffsetX($twoAnchor['endOffsetX']);
- $spContainer->setEndOffsetY($twoAnchor['endOffsetY']);
-
- $spgrContainer->addChild($spContainer);
- }
-
- // AutoFilters
- if(!empty($filterRange)){
- $rangeBounds = PHPExcel_Cell::rangeBoundaries($filterRange);
- $iNumColStart = $rangeBounds[0][0];
- $iNumColEnd = $rangeBounds[1][0];
-
- $iInc = $iNumColStart;
- while($iInc <= $iNumColEnd){
- ++$countShapes[$sheetIndex];
-
- // create an Drawing Object for the dropdown
- $oDrawing = new PHPExcel_Worksheet_BaseDrawing();
- // get the coordinates of drawing
- $cDrawing = PHPExcel_Cell::stringFromColumnIndex($iInc - 1) . $rangeBounds[0][1];
- $oDrawing->setCoordinates($cDrawing);
- $oDrawing->setWorksheet($sheet);
-
- // add the shape
- $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
- // set the shape type
- $spContainer->setSpType(0x00C9);
- // set the shape flag
- $spContainer->setSpFlag(0x01);
-
- // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index)
- $reducedSpId = $countShapes[$sheetIndex];
- $spId = $reducedSpId
- | ($sheet->getParent()->getIndex($sheet) + 1) << 10;
- $spContainer->setSpId($spId);
-
- // keep track of last reducedSpId
- $lastReducedSpId = $reducedSpId;
-
- // keep track of last spId
- $lastSpId = $spId;
-
- $spContainer->setOPT(0x007F, 0x01040104); // Protection -> fLockAgainstGrouping
- $spContainer->setOPT(0x00BF, 0x00080008); // Text -> fFitTextToShape
- $spContainer->setOPT(0x01BF, 0x00010000); // Fill Style -> fNoFillHitTest
- $spContainer->setOPT(0x01FF, 0x00080000); // Line Style -> fNoLineDrawDash
- $spContainer->setOPT(0x03BF, 0x000A0000); // Group Shape -> fPrint
-
- // set coordinates and offsets, client anchor
- $endCoordinates = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::stringFromColumnIndex($iInc - 1));
- $endCoordinates .= $rangeBounds[0][1] + 1;
-
- $spContainer->setStartCoordinates($cDrawing);
- $spContainer->setStartOffsetX(0);
- $spContainer->setStartOffsetY(0);
- $spContainer->setEndCoordinates($endCoordinates);
- $spContainer->setEndOffsetX(0);
- $spContainer->setEndOffsetY(0);
-
- $spgrContainer->addChild($spContainer);
- $iInc++;
- }
- }
-
- // identifier clusters, used for workbook Escher object
- $this->_IDCLs[$dgId] = $lastReducedSpId;
-
- // set last shape index
- $dgContainer->setLastSpId($lastSpId);
-
- // set the Escher object
- $this->_writerWorksheets[$sheetIndex]->setEscher($escher);
- }
- }
-
- /**
- * Build the Escher object corresponding to the MSODRAWINGGROUP record
- */
- private function _buildWorkbookEscher()
- {
- $escher = null;
-
- // any drawings in this workbook?
- $found = false;
- foreach ($this->_phpExcel->getAllSheets() as $sheet) {
- if (count($sheet->getDrawingCollection()) > 0) {
- $found = true;
- break;
- }
- }
-
- // nothing to do if there are no drawings
- if (!$found) {
- return;
- }
-
- // if we reach here, then there are drawings in the workbook
- $escher = new PHPExcel_Shared_Escher();
-
- // dggContainer
- $dggContainer = new PHPExcel_Shared_Escher_DggContainer();
- $escher->setDggContainer($dggContainer);
-
- // set IDCLs (identifier clusters)
- $dggContainer->setIDCLs($this->_IDCLs);
-
- // this loop is for determining maximum shape identifier of all drawing
- $spIdMax = 0;
- $totalCountShapes = 0;
- $countDrawings = 0;
-
- foreach ($this->_phpExcel->getAllsheets() as $sheet) {
- $sheetCountShapes = 0; // count number of shapes (minus group shape), in sheet
-
- if (count($sheet->getDrawingCollection()) > 0) {
- ++$countDrawings;
-
- foreach ($sheet->getDrawingCollection() as $drawing) {
- ++$sheetCountShapes;
- ++$totalCountShapes;
-
- $spId = $sheetCountShapes
- | ($this->_phpExcel->getIndex($sheet) + 1) << 10;
- $spIdMax = max($spId, $spIdMax);
- }
- }
- }
-
- $dggContainer->setSpIdMax($spIdMax + 1);
- $dggContainer->setCDgSaved($countDrawings);
- $dggContainer->setCSpSaved($totalCountShapes + $countDrawings); // total number of shapes incl. one group shapes per drawing
-
- // bstoreContainer
- $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer();
- $dggContainer->setBstoreContainer($bstoreContainer);
-
- // the BSE's (all the images)
- foreach ($this->_phpExcel->getAllsheets() as $sheet) {
- foreach ($sheet->getDrawingCollection() as $drawing) {
- if ($drawing instanceof PHPExcel_Worksheet_Drawing) {
-
- $filename = $drawing->getPath();
-
- list($imagesx, $imagesy, $imageFormat) = getimagesize($filename);
-
- switch ($imageFormat) {
-
- case 1: // GIF, not supported by BIFF8, we convert to PNG
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
- ob_start();
- imagepng(imagecreatefromgif($filename));
- $blipData = ob_get_contents();
- ob_end_clean();
- break;
-
- case 2: // JPEG
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG;
- $blipData = file_get_contents($filename);
- break;
-
- case 3: // PNG
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
- $blipData = file_get_contents($filename);
- break;
-
- case 6: // Windows DIB (BMP), we convert to PNG
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
- ob_start();
- imagepng(PHPExcel_Shared_Drawing::imagecreatefrombmp($filename));
- $blipData = ob_get_contents();
- ob_end_clean();
- break;
-
- default: continue 2;
-
- }
-
- $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
- $blip->setData($blipData);
-
- $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE();
- $BSE->setBlipType($blipType);
- $BSE->setBlip($blip);
-
- $bstoreContainer->addBSE($BSE);
-
- } else if ($drawing instanceof PHPExcel_Worksheet_MemoryDrawing) {
-
- switch ($drawing->getRenderingFunction()) {
-
- case PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG:
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG;
- $renderingFunction = 'imagejpeg';
- break;
-
- case PHPExcel_Worksheet_MemoryDrawing::RENDERING_GIF:
- case PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG:
- case PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT:
- $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
- $renderingFunction = 'imagepng';
- break;
-
- }
-
- ob_start();
- call_user_func($renderingFunction, $drawing->getImageResource());
- $blipData = ob_get_contents();
- ob_end_clean();
-
- $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
- $blip->setData($blipData);
-
- $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE();
- $BSE->setBlipType($blipType);
- $BSE->setBlip($blip);
-
- $bstoreContainer->addBSE($BSE);
- }
- }
- }
-
- // Set the Escher object
- $this->_writerWorkbook->setEscher($escher);
- }
-
- /**
- * Build the OLE Part for DocumentSummary Information
- * @return string
- */
- private function _writeDocumentSummaryInformation(){
-
- // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark)
- $data = pack('v', 0xFFFE);
- // offset: 2; size: 2;
- $data .= pack('v', 0x0000);
- // offset: 4; size: 2; OS version
- $data .= pack('v', 0x0106);
- // offset: 6; size: 2; OS indicator
- $data .= pack('v', 0x0002);
- // offset: 8; size: 16
- $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00);
- // offset: 24; size: 4; section count
- $data .= pack('V', 0x0001);
-
- // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae
- $data .= pack('vvvvvvvv', 0xD502, 0xD5CD, 0x2E9C, 0x101B, 0x9793, 0x0008, 0x2C2B, 0xAEF9);
- // offset: 44; size: 4; offset of the start
- $data .= pack('V', 0x30);
-
- // SECTION
- $dataSection = array();
- $dataSection_NumProps = 0;
- $dataSection_Summary = '';
- $dataSection_Content = '';
-
- // GKPIDDSI_CODEPAGE: CodePage
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer
- 'data' => array('data' => 1252));
- $dataSection_NumProps++;
-
- // GKPIDDSI_CATEGORY : Category
- if($this->_phpExcel->getProperties()->getCategory()){
- $dataProp = $this->_phpExcel->getProperties()->getCategory();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E),
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // GKPIDDSI_VERSION :Version of the application that wrote the property storage
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x17),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x03),
- 'data' => array('pack' => 'V', 'data' => 0x000C0000));
- $dataSection_NumProps++;
- // GKPIDDSI_SCALE : FALSE
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0B),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x0B),
- 'data' => array('data' => false));
- $dataSection_NumProps++;
- // GKPIDDSI_LINKSDIRTY : True if any of the values for the linked properties have changed outside of the application
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x10),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x0B),
- 'data' => array('data' => false));
- $dataSection_NumProps++;
- // GKPIDDSI_SHAREDOC : FALSE
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x0B),
- 'data' => array('data' => false));
- $dataSection_NumProps++;
- // GKPIDDSI_HYPERLINKSCHANGED : True if any of the values for the _PID_LINKS (hyperlink text) have changed outside of the application
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x16),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x0B),
- 'data' => array('data' => false));
- $dataSection_NumProps++;
-
- // GKPIDDSI_DOCSPARTS
- // MS-OSHARED p75 (2.3.3.2.2.1)
- // Structure is VtVecUnalignedLpstrValue (2.3.3.1.9)
- // cElements
- $dataProp = pack('v', 0x0001);
- $dataProp .= pack('v', 0x0000);
- // array of UnalignedLpstr
- // cch
- $dataProp .= pack('v', 0x000A);
- $dataProp .= pack('v', 0x0000);
- // value
- $dataProp .= 'Worksheet'.chr(0);
-
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x101E),
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
-
- // GKPIDDSI_HEADINGPAIR
- // VtVecHeadingPairValue
- // cElements
- $dataProp = pack('v', 0x0002);
- $dataProp .= pack('v', 0x0000);
- // Array of vtHeadingPair
- // vtUnalignedString - headingString
- // stringType
- $dataProp .= pack('v', 0x001E);
- // padding
- $dataProp .= pack('v', 0x0000);
- // UnalignedLpstr
- // cch
- $dataProp .= pack('v', 0x0013);
- $dataProp .= pack('v', 0x0000);
- // value
- $dataProp .= 'Feuilles de calcul';
- // vtUnalignedString - headingParts
- // wType : 0x0003 = 32 bit signed integer
- $dataProp .= pack('v', 0x0300);
- // padding
- $dataProp .= pack('v', 0x0000);
- // value
- $dataProp .= pack('v', 0x0100);
- $dataProp .= pack('v', 0x0000);
- $dataProp .= pack('v', 0x0000);
- $dataProp .= pack('v', 0x0000);
-
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x100C),
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ /**
+ * PHPExcel object
+ *
+ * @var PHPExcel
+ */
+ private $phpExcel;
+
+ /**
+ * Total number of shared strings in workbook
+ *
+ * @var int
+ */
+ private $strTotal = 0;
+
+ /**
+ * Number of unique shared strings in workbook
+ *
+ * @var int
+ */
+ private $strUnique = 0;
+
+ /**
+ * Array of unique shared strings in workbook
+ *
+ * @var array
+ */
+ private $strTable = array();
+
+ /**
+ * Color cache. Mapping between RGB value and color index.
+ *
+ * @var array
+ */
+ private $colors;
+
+ /**
+ * Formula parser
+ *
+ * @var PHPExcel_Writer_Excel5_Parser
+ */
+ private $parser;
+
+ /**
+ * Identifier clusters for drawings. Used in MSODRAWINGGROUP record.
+ *
+ * @var array
+ */
+ private $IDCLs;
+
+ /**
+ * Basic OLE object summary information
+ *
+ * @var array
+ */
+ private $summaryInformation;
+
+ /**
+ * Extended OLE object document summary information
+ *
+ * @var array
+ */
+ private $documentSummaryInformation;
+
+ /**
+ * Create a new PHPExcel_Writer_Excel5
+ *
+ * @param PHPExcel $phpExcel PHPExcel object
+ */
+ public function __construct(PHPExcel $phpExcel)
+ {
+ $this->phpExcel = $phpExcel;
+
+ $this->parser = new PHPExcel_Writer_Excel5_Parser();
+ }
+
+ /**
+ * Save PHPExcel to file
+ *
+ * @param string $pFilename
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function save($pFilename = null)
+ {
+
+ // garbage collect
+ $this->phpExcel->garbageCollect();
+
+ $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog();
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false);
+ $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType();
+ PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
+
+ // initialize colors array
+ $this->colors = array();
+
+ // Initialise workbook writer
+ $this->writerWorkbook = new PHPExcel_Writer_Excel5_Workbook($this->phpExcel, $this->strTotal, $this->strUnique, $this->strTable, $this->colors, $this->parser);
+
+ // Initialise worksheet writers
+ $countSheets = $this->phpExcel->getSheetCount();
+ for ($i = 0; $i < $countSheets; ++$i) {
+ $this->writerWorksheets[$i] = new PHPExcel_Writer_Excel5_Worksheet($this->strTotal, $this->strUnique, $this->strTable, $this->colors, $this->parser, $this->preCalculateFormulas, $this->phpExcel->getSheet($i));
+ }
+
+ // build Escher objects. Escher objects for workbooks needs to be build before Escher object for workbook.
+ $this->buildWorksheetEschers();
+ $this->buildWorkbookEscher();
+
+ // add 15 identical cell style Xfs
+ // for now, we use the first cellXf instead of cellStyleXf
+ $cellXfCollection = $this->phpExcel->getCellXfCollection();
+ for ($i = 0; $i < 15; ++$i) {
+ $this->writerWorkbook->addXfWriter($cellXfCollection[0], true);
+ }
+
+ // add all the cell Xfs
+ foreach ($this->phpExcel->getCellXfCollection() as $style) {
+ $this->writerWorkbook->addXfWriter($style, false);
+ }
+
+ // add fonts from rich text eleemnts
+ for ($i = 0; $i < $countSheets; ++$i) {
+ foreach ($this->writerWorksheets[$i]->phpSheet->getCellCollection() as $cellID) {
+ $cell = $this->writerWorksheets[$i]->phpSheet->getCell($cellID);
+ $cVal = $cell->getValue();
+ if ($cVal instanceof PHPExcel_RichText) {
+ $elements = $cVal->getRichTextElements();
+ foreach ($elements as $element) {
+ if ($element instanceof PHPExcel_RichText_Run) {
+ $font = $element->getFont();
+ $this->writerWorksheets[$i]->fontHashIndex[$font->getHashCode()] = $this->writerWorkbook->addFont($font);
+ }
+ }
+ }
+ }
+ }
+
+ // initialize OLE file
+ $workbookStreamName = 'Workbook';
+ $OLE = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs($workbookStreamName));
+
+ // Write the worksheet streams before the global workbook stream,
+ // because the byte sizes of these are needed in the global workbook stream
+ $worksheetSizes = array();
+ for ($i = 0; $i < $countSheets; ++$i) {
+ $this->writerWorksheets[$i]->close();
+ $worksheetSizes[] = $this->writerWorksheets[$i]->_datasize;
+ }
+
+ // add binary data for global workbook stream
+ $OLE->append($this->writerWorkbook->writeWorkbook($worksheetSizes));
+
+ // add binary data for sheet streams
+ for ($i = 0; $i < $countSheets; ++$i) {
+ $OLE->append($this->writerWorksheets[$i]->getData());
+ }
+
+ $this->documentSummaryInformation = $this->writeDocumentSummaryInformation();
+ // initialize OLE Document Summary Information
+ if (isset($this->documentSummaryInformation) && !empty($this->documentSummaryInformation)) {
+ $OLE_DocumentSummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'DocumentSummaryInformation'));
+ $OLE_DocumentSummaryInformation->append($this->documentSummaryInformation);
+ }
+
+ $this->summaryInformation = $this->writeSummaryInformation();
+ // initialize OLE Summary Information
+ if (isset($this->summaryInformation) && !empty($this->summaryInformation)) {
+ $OLE_SummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'SummaryInformation'));
+ $OLE_SummaryInformation->append($this->summaryInformation);
+ }
+
+ // define OLE Parts
+ $arrRootData = array($OLE);
+ // initialize OLE Properties file
+ if (isset($OLE_SummaryInformation)) {
+ $arrRootData[] = $OLE_SummaryInformation;
+ }
+ // initialize OLE Extended Properties file
+ if (isset($OLE_DocumentSummaryInformation)) {
+ $arrRootData[] = $OLE_DocumentSummaryInformation;
+ }
+
+ $root = new PHPExcel_Shared_OLE_PPS_Root(time(), time(), $arrRootData);
+ // save the OLE file
+ $res = $root->save($pFilename);
+
+ PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType);
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
+ }
+
+ /**
+ * Set temporary storage directory
+ *
+ * @deprecated
+ * @param string $pValue Temporary storage directory
+ * @throws PHPExcel_Writer_Exception when directory does not exist
+ * @return PHPExcel_Writer_Excel5
+ */
+ public function setTempDir($pValue = '')
+ {
+ return $this;
+ }
+
+ /**
+ * Build the Worksheet Escher objects
+ *
+ */
+ private function buildWorksheetEschers()
+ {
+ // 1-based index to BstoreContainer
+ $blipIndex = 0;
+ $lastReducedSpId = 0;
+ $lastSpId = 0;
+
+ foreach ($this->phpExcel->getAllsheets() as $sheet) {
+ // sheet index
+ $sheetIndex = $sheet->getParent()->getIndex($sheet);
+
+ $escher = null;
+
+ // check if there are any shapes for this sheet
+ $filterRange = $sheet->getAutoFilter()->getRange();
+ if (count($sheet->getDrawingCollection()) == 0 && empty($filterRange)) {
+ continue;
+ }
+
+ // create intermediate Escher object
+ $escher = new PHPExcel_Shared_Escher();
+
+ // dgContainer
+ $dgContainer = new PHPExcel_Shared_Escher_DgContainer();
+
+ // set the drawing index (we use sheet index + 1)
+ $dgId = $sheet->getParent()->getIndex($sheet) + 1;
+ $dgContainer->setDgId($dgId);
+ $escher->setDgContainer($dgContainer);
+
+ // spgrContainer
+ $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer();
+ $dgContainer->setSpgrContainer($spgrContainer);
+
+ // add one shape which is the group shape
+ $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
+ $spContainer->setSpgr(true);
+ $spContainer->setSpType(0);
+ $spContainer->setSpId(($sheet->getParent()->getIndex($sheet) + 1) << 10);
+ $spgrContainer->addChild($spContainer);
+
+ // add the shapes
+
+ $countShapes[$sheetIndex] = 0; // count number of shapes (minus group shape), in sheet
+
+ foreach ($sheet->getDrawingCollection() as $drawing) {
+ ++$blipIndex;
+
+ ++$countShapes[$sheetIndex];
+
+ // add the shape
+ $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
+
+ // set the shape type
+ $spContainer->setSpType(0x004B);
+ // set the shape flag
+ $spContainer->setSpFlag(0x02);
+
+ // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index)
+ $reducedSpId = $countShapes[$sheetIndex];
+ $spId = $reducedSpId
+ | ($sheet->getParent()->getIndex($sheet) + 1) << 10;
+ $spContainer->setSpId($spId);
+
+ // keep track of last reducedSpId
+ $lastReducedSpId = $reducedSpId;
+
+ // keep track of last spId
+ $lastSpId = $spId;
+
+ // set the BLIP index
+ $spContainer->setOPT(0x4104, $blipIndex);
+
+ // set coordinates and offsets, client anchor
+ $coordinates = $drawing->getCoordinates();
+ $offsetX = $drawing->getOffsetX();
+ $offsetY = $drawing->getOffsetY();
+ $width = $drawing->getWidth();
+ $height = $drawing->getHeight();
+
+ $twoAnchor = PHPExcel_Shared_Excel5::oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height);
+
+ $spContainer->setStartCoordinates($twoAnchor['startCoordinates']);
+ $spContainer->setStartOffsetX($twoAnchor['startOffsetX']);
+ $spContainer->setStartOffsetY($twoAnchor['startOffsetY']);
+ $spContainer->setEndCoordinates($twoAnchor['endCoordinates']);
+ $spContainer->setEndOffsetX($twoAnchor['endOffsetX']);
+ $spContainer->setEndOffsetY($twoAnchor['endOffsetY']);
+
+ $spgrContainer->addChild($spContainer);
+ }
+
+ // AutoFilters
+ if (!empty($filterRange)) {
+ $rangeBounds = PHPExcel_Cell::rangeBoundaries($filterRange);
+ $iNumColStart = $rangeBounds[0][0];
+ $iNumColEnd = $rangeBounds[1][0];
+
+ $iInc = $iNumColStart;
+ while ($iInc <= $iNumColEnd) {
+ ++$countShapes[$sheetIndex];
+
+ // create an Drawing Object for the dropdown
+ $oDrawing = new PHPExcel_Worksheet_BaseDrawing();
+ // get the coordinates of drawing
+ $cDrawing = PHPExcel_Cell::stringFromColumnIndex($iInc - 1) . $rangeBounds[0][1];
+ $oDrawing->setCoordinates($cDrawing);
+ $oDrawing->setWorksheet($sheet);
+
+ // add the shape
+ $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer();
+ // set the shape type
+ $spContainer->setSpType(0x00C9);
+ // set the shape flag
+ $spContainer->setSpFlag(0x01);
+
+ // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index)
+ $reducedSpId = $countShapes[$sheetIndex];
+ $spId = $reducedSpId
+ | ($sheet->getParent()->getIndex($sheet) + 1) << 10;
+ $spContainer->setSpId($spId);
+
+ // keep track of last reducedSpId
+ $lastReducedSpId = $reducedSpId;
+
+ // keep track of last spId
+ $lastSpId = $spId;
+
+ $spContainer->setOPT(0x007F, 0x01040104); // Protection -> fLockAgainstGrouping
+ $spContainer->setOPT(0x00BF, 0x00080008); // Text -> fFitTextToShape
+ $spContainer->setOPT(0x01BF, 0x00010000); // Fill Style -> fNoFillHitTest
+ $spContainer->setOPT(0x01FF, 0x00080000); // Line Style -> fNoLineDrawDash
+ $spContainer->setOPT(0x03BF, 0x000A0000); // Group Shape -> fPrint
+
+ // set coordinates and offsets, client anchor
+ $endCoordinates = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::stringFromColumnIndex($iInc - 1));
+ $endCoordinates .= $rangeBounds[0][1] + 1;
+
+ $spContainer->setStartCoordinates($cDrawing);
+ $spContainer->setStartOffsetX(0);
+ $spContainer->setStartOffsetY(0);
+ $spContainer->setEndCoordinates($endCoordinates);
+ $spContainer->setEndOffsetX(0);
+ $spContainer->setEndOffsetY(0);
+
+ $spgrContainer->addChild($spContainer);
+ $iInc++;
+ }
+ }
+
+ // identifier clusters, used for workbook Escher object
+ $this->IDCLs[$dgId] = $lastReducedSpId;
+
+ // set last shape index
+ $dgContainer->setLastSpId($lastSpId);
+
+ // set the Escher object
+ $this->writerWorksheets[$sheetIndex]->setEscher($escher);
+ }
+ }
+
+ /**
+ * Build the Escher object corresponding to the MSODRAWINGGROUP record
+ */
+ private function buildWorkbookEscher()
+ {
+ $escher = null;
+
+ // any drawings in this workbook?
+ $found = false;
+ foreach ($this->phpExcel->getAllSheets() as $sheet) {
+ if (count($sheet->getDrawingCollection()) > 0) {
+ $found = true;
+ break;
+ }
+ }
+
+ // nothing to do if there are no drawings
+ if (!$found) {
+ return;
+ }
+
+ // if we reach here, then there are drawings in the workbook
+ $escher = new PHPExcel_Shared_Escher();
+
+ // dggContainer
+ $dggContainer = new PHPExcel_Shared_Escher_DggContainer();
+ $escher->setDggContainer($dggContainer);
+
+ // set IDCLs (identifier clusters)
+ $dggContainer->setIDCLs($this->IDCLs);
+
+ // this loop is for determining maximum shape identifier of all drawing
+ $spIdMax = 0;
+ $totalCountShapes = 0;
+ $countDrawings = 0;
+
+ foreach ($this->phpExcel->getAllsheets() as $sheet) {
+ $sheetCountShapes = 0; // count number of shapes (minus group shape), in sheet
+
+ if (count($sheet->getDrawingCollection()) > 0) {
+ ++$countDrawings;
+
+ foreach ($sheet->getDrawingCollection() as $drawing) {
+ ++$sheetCountShapes;
+ ++$totalCountShapes;
+
+ $spId = $sheetCountShapes | ($this->phpExcel->getIndex($sheet) + 1) << 10;
+ $spIdMax = max($spId, $spIdMax);
+ }
+ }
+ }
+
+ $dggContainer->setSpIdMax($spIdMax + 1);
+ $dggContainer->setCDgSaved($countDrawings);
+ $dggContainer->setCSpSaved($totalCountShapes + $countDrawings); // total number of shapes incl. one group shapes per drawing
+
+ // bstoreContainer
+ $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer();
+ $dggContainer->setBstoreContainer($bstoreContainer);
+
+ // the BSE's (all the images)
+ foreach ($this->phpExcel->getAllsheets() as $sheet) {
+ foreach ($sheet->getDrawingCollection() as $drawing) {
+ if ($drawing instanceof PHPExcel_Worksheet_Drawing) {
+ $filename = $drawing->getPath();
+
+ list($imagesx, $imagesy, $imageFormat) = getimagesize($filename);
+
+ switch ($imageFormat) {
+ case 1: // GIF, not supported by BIFF8, we convert to PNG
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
+ ob_start();
+ imagepng(imagecreatefromgif($filename));
+ $blipData = ob_get_contents();
+ ob_end_clean();
+ break;
+ case 2: // JPEG
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG;
+ $blipData = file_get_contents($filename);
+ break;
+ case 3: // PNG
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
+ $blipData = file_get_contents($filename);
+ break;
+ case 6: // Windows DIB (BMP), we convert to PNG
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
+ ob_start();
+ imagepng(PHPExcel_Shared_Drawing::imagecreatefrombmp($filename));
+ $blipData = ob_get_contents();
+ ob_end_clean();
+ break;
+ default:
+ continue 2;
+ }
+
+ $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
+ $blip->setData($blipData);
+
+ $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE();
+ $BSE->setBlipType($blipType);
+ $BSE->setBlip($blip);
+
+ $bstoreContainer->addBSE($BSE);
+ } elseif ($drawing instanceof PHPExcel_Worksheet_MemoryDrawing) {
+ switch ($drawing->getRenderingFunction()) {
+ case PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG:
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG;
+ $renderingFunction = 'imagejpeg';
+ break;
+ case PHPExcel_Worksheet_MemoryDrawing::RENDERING_GIF:
+ case PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG:
+ case PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT:
+ $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG;
+ $renderingFunction = 'imagepng';
+ break;
+ }
+
+ ob_start();
+ call_user_func($renderingFunction, $drawing->getImageResource());
+ $blipData = ob_get_contents();
+ ob_end_clean();
+
+ $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip();
+ $blip->setData($blipData);
+
+ $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE();
+ $BSE->setBlipType($blipType);
+ $BSE->setBlip($blip);
+
+ $bstoreContainer->addBSE($BSE);
+ }
+ }
+ }
+
+ // Set the Escher object
+ $this->writerWorkbook->setEscher($escher);
+ }
+
+ /**
+ * Build the OLE Part for DocumentSummary Information
+ * @return string
+ */
+ private function writeDocumentSummaryInformation()
+ {
+ // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark)
+ $data = pack('v', 0xFFFE);
+ // offset: 2; size: 2;
+ $data .= pack('v', 0x0000);
+ // offset: 4; size: 2; OS version
+ $data .= pack('v', 0x0106);
+ // offset: 6; size: 2; OS indicator
+ $data .= pack('v', 0x0002);
+ // offset: 8; size: 16
+ $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00);
+ // offset: 24; size: 4; section count
+ $data .= pack('V', 0x0001);
+
+ // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae
+ $data .= pack('vvvvvvvv', 0xD502, 0xD5CD, 0x2E9C, 0x101B, 0x9793, 0x0008, 0x2C2B, 0xAEF9);
+ // offset: 44; size: 4; offset of the start
+ $data .= pack('V', 0x30);
+
+ // SECTION
+ $dataSection = array();
+ $dataSection_NumProps = 0;
+ $dataSection_Summary = '';
+ $dataSection_Content = '';
+
+ // GKPIDDSI_CODEPAGE: CodePage
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer
+ 'data' => array('data' => 1252));
$dataSection_NumProps++;
- // 4 Section Length
- // 4 Property count
- // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4))
- $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8;
- foreach ($dataSection as $dataProp){
- // Summary
- $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']);
- // Offset
- $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset);
- // DataType
- $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']);
- // Data
- if($dataProp['type']['data'] == 0x02){ // 2 byte signed integer
- $dataSection_Content .= pack('V', $dataProp['data']['data']);
+ // GKPIDDSI_CATEGORY : Category
+ if ($this->phpExcel->getProperties()->getCategory()) {
+ $dataProp = $this->phpExcel->getProperties()->getCategory();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E),
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // GKPIDDSI_VERSION :Version of the application that wrote the property storage
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x17),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x03),
+ 'data' => array('pack' => 'V', 'data' => 0x000C0000));
+ $dataSection_NumProps++;
+ // GKPIDDSI_SCALE : FALSE
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0B),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x0B),
+ 'data' => array('data' => false));
+ $dataSection_NumProps++;
+ // GKPIDDSI_LINKSDIRTY : True if any of the values for the linked properties have changed outside of the application
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x10),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x0B),
+ 'data' => array('data' => false));
+ $dataSection_NumProps++;
+ // GKPIDDSI_SHAREDOC : FALSE
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x0B),
+ 'data' => array('data' => false));
+ $dataSection_NumProps++;
+ // GKPIDDSI_HYPERLINKSCHANGED : True if any of the values for the _PID_LINKS (hyperlink text) have changed outside of the application
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x16),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x0B),
+ 'data' => array('data' => false));
+ $dataSection_NumProps++;
- $dataSection_Content_Offset += 4 + 4;
- }
- elseif($dataProp['type']['data'] == 0x03){ // 4 byte signed integer
- $dataSection_Content .= pack('V', $dataProp['data']['data']);
+ // GKPIDDSI_DOCSPARTS
+ // MS-OSHARED p75 (2.3.3.2.2.1)
+ // Structure is VtVecUnalignedLpstrValue (2.3.3.1.9)
+ // cElements
+ $dataProp = pack('v', 0x0001);
+ $dataProp .= pack('v', 0x0000);
+ // array of UnalignedLpstr
+ // cch
+ $dataProp .= pack('v', 0x000A);
+ $dataProp .= pack('v', 0x0000);
+ // value
+ $dataProp .= 'Worksheet'.chr(0);
- $dataSection_Content_Offset += 4 + 4;
- }
- elseif($dataProp['type']['data'] == 0x0B){ // Boolean
- if($dataProp['data']['data'] == false){
- $dataSection_Content .= pack('V', 0x0000);
- } else {
- $dataSection_Content .= pack('V', 0x0001);
- }
- $dataSection_Content_Offset += 4 + 4;
- }
- elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length
- // Null-terminated string
- $dataProp['data']['data'] .= chr(0);
- $dataProp['data']['length'] += 1;
- // Complete the string with null string for being a %4
- $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4));
- $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT);
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x101E),
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
- $dataSection_Content .= pack('V', $dataProp['data']['length']);
- $dataSection_Content .= $dataProp['data']['data'];
+ // GKPIDDSI_HEADINGPAIR
+ // VtVecHeadingPairValue
+ // cElements
+ $dataProp = pack('v', 0x0002);
+ $dataProp .= pack('v', 0x0000);
+ // Array of vtHeadingPair
+ // vtUnalignedString - headingString
+ // stringType
+ $dataProp .= pack('v', 0x001E);
+ // padding
+ $dataProp .= pack('v', 0x0000);
+ // UnalignedLpstr
+ // cch
+ $dataProp .= pack('v', 0x0013);
+ $dataProp .= pack('v', 0x0000);
+ // value
+ $dataProp .= 'Feuilles de calcul';
+ // vtUnalignedString - headingParts
+ // wType : 0x0003 = 32 bit signed integer
+ $dataProp .= pack('v', 0x0300);
+ // padding
+ $dataProp .= pack('v', 0x0000);
+ // value
+ $dataProp .= pack('v', 0x0100);
+ $dataProp .= pack('v', 0x0000);
+ $dataProp .= pack('v', 0x0000);
+ $dataProp .= pack('v', 0x0000);
- $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']);
- }
- elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
- $dataSection_Content .= $dataProp['data']['data'];
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x100C),
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
- $dataSection_Content_Offset += 4 + 8;
- }
- else {
- // Data Type Not Used at the moment
- $dataSection_Content .= $dataProp['data']['data'];
+ // 4 Section Length
+ // 4 Property count
+ // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4))
+ $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8;
+ foreach ($dataSection as $dataProp) {
+ // Summary
+ $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']);
+ // Offset
+ $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset);
+ // DataType
+ $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']);
+ // Data
+ if ($dataProp['type']['data'] == 0x02) { // 2 byte signed integer
+ $dataSection_Content .= pack('V', $dataProp['data']['data']);
- $dataSection_Content_Offset += 4 + $dataProp['data']['length'];
- }
- }
- // Now $dataSection_Content_Offset contains the size of the content
+ $dataSection_Content_Offset += 4 + 4;
+ } elseif ($dataProp['type']['data'] == 0x03) { // 4 byte signed integer
+ $dataSection_Content .= pack('V', $dataProp['data']['data']);
- // section header
- // offset: $secOffset; size: 4; section length
- // + x Size of the content (summary + content)
- $data .= pack('V', $dataSection_Content_Offset);
- // offset: $secOffset+4; size: 4; property count
- $data .= pack('V', $dataSection_NumProps);
- // Section Summary
- $data .= $dataSection_Summary;
- // Section Content
- $data .= $dataSection_Content;
+ $dataSection_Content_Offset += 4 + 4;
+ } elseif ($dataProp['type']['data'] == 0x0B) { // Boolean
+ if ($dataProp['data']['data'] == false) {
+ $dataSection_Content .= pack('V', 0x0000);
+ } else {
+ $dataSection_Content .= pack('V', 0x0001);
+ }
+ $dataSection_Content_Offset += 4 + 4;
+ } elseif ($dataProp['type']['data'] == 0x1E) { // null-terminated string prepended by dword string length
+ // Null-terminated string
+ $dataProp['data']['data'] .= chr(0);
+ $dataProp['data']['length'] += 1;
+ // Complete the string with null string for being a %4
+ $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4));
+ $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT);
- return $data;
- }
+ $dataSection_Content .= pack('V', $dataProp['data']['length']);
+ $dataSection_Content .= $dataProp['data']['data'];
- /**
- * Build the OLE Part for Summary Information
- * @return string
- */
- private function _writeSummaryInformation(){
- // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark)
- $data = pack('v', 0xFFFE);
- // offset: 2; size: 2;
- $data .= pack('v', 0x0000);
- // offset: 4; size: 2; OS version
- $data .= pack('v', 0x0106);
- // offset: 6; size: 2; OS indicator
- $data .= pack('v', 0x0002);
- // offset: 8; size: 16
- $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00);
- // offset: 24; size: 4; section count
- $data .= pack('V', 0x0001);
+ $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']);
+ } elseif ($dataProp['type']['data'] == 0x40) { // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
+ $dataSection_Content .= $dataProp['data']['data'];
- // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9
- $data .= pack('vvvvvvvv', 0x85E0, 0xF29F, 0x4FF9, 0x1068, 0x91AB, 0x0008, 0x272B, 0xD9B3);
- // offset: 44; size: 4; offset of the start
- $data .= pack('V', 0x30);
+ $dataSection_Content_Offset += 4 + 8;
+ } else {
+ // Data Type Not Used at the moment
+ $dataSection_Content .= $dataProp['data']['data'];
- // SECTION
- $dataSection = array();
- $dataSection_NumProps = 0;
- $dataSection_Summary = '';
- $dataSection_Content = '';
+ $dataSection_Content_Offset += 4 + $dataProp['data']['length'];
+ }
+ }
+ // Now $dataSection_Content_Offset contains the size of the content
- // CodePage : CP-1252
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer
- 'data' => array('data' => 1252));
- $dataSection_NumProps++;
+ // section header
+ // offset: $secOffset; size: 4; section length
+ // + x Size of the content (summary + content)
+ $data .= pack('V', $dataSection_Content_Offset);
+ // offset: $secOffset+4; size: 4; property count
+ $data .= pack('V', $dataSection_NumProps);
+ // Section Summary
+ $data .= $dataSection_Summary;
+ // Section Content
+ $data .= $dataSection_Content;
- // Title
- if($this->_phpExcel->getProperties()->getTitle()){
- $dataProp = $this->_phpExcel->getProperties()->getTitle();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Subject
- if($this->_phpExcel->getProperties()->getSubject()){
- $dataProp = $this->_phpExcel->getProperties()->getSubject();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x03),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Author (Creator)
- if($this->_phpExcel->getProperties()->getCreator()){
- $dataProp = $this->_phpExcel->getProperties()->getCreator();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x04),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Keywords
- if($this->_phpExcel->getProperties()->getKeywords()){
- $dataProp = $this->_phpExcel->getProperties()->getKeywords();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x05),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Comments (Description)
- if($this->_phpExcel->getProperties()->getDescription()){
- $dataProp = $this->_phpExcel->getProperties()->getDescription();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x06),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Last Saved By (LastModifiedBy)
- if($this->_phpExcel->getProperties()->getLastModifiedBy()){
- $dataProp = $this->_phpExcel->getProperties()->getLastModifiedBy();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x08),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
- 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
- $dataSection_NumProps++;
- }
- // Created Date/Time
- if($this->_phpExcel->getProperties()->getCreated()){
- $dataProp = $this->_phpExcel->getProperties()->getCreated();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
- 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp)));
- $dataSection_NumProps++;
- }
- // Modified Date/Time
- if($this->_phpExcel->getProperties()->getModified()){
- $dataProp = $this->_phpExcel->getProperties()->getModified();
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
- 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp)));
- $dataSection_NumProps++;
- }
- // Security
- $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13),
- 'offset' => array('pack' => 'V'),
- 'type' => array('pack' => 'V', 'data' => 0x03), // 4 byte signed integer
- 'data' => array('data' => 0x00));
- $dataSection_NumProps++;
+ return $data;
+ }
+
+ /**
+ * Build the OLE Part for Summary Information
+ * @return string
+ */
+ private function writeSummaryInformation()
+ {
+ // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark)
+ $data = pack('v', 0xFFFE);
+ // offset: 2; size: 2;
+ $data .= pack('v', 0x0000);
+ // offset: 4; size: 2; OS version
+ $data .= pack('v', 0x0106);
+ // offset: 6; size: 2; OS indicator
+ $data .= pack('v', 0x0002);
+ // offset: 8; size: 16
+ $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00);
+ // offset: 24; size: 4; section count
+ $data .= pack('V', 0x0001);
+
+ // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9
+ $data .= pack('vvvvvvvv', 0x85E0, 0xF29F, 0x4FF9, 0x1068, 0x91AB, 0x0008, 0x272B, 0xD9B3);
+ // offset: 44; size: 4; offset of the start
+ $data .= pack('V', 0x30);
+
+ // SECTION
+ $dataSection = array();
+ $dataSection_NumProps = 0;
+ $dataSection_Summary = '';
+ $dataSection_Content = '';
+
+ // CodePage : CP-1252
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer
+ 'data' => array('data' => 1252));
+ $dataSection_NumProps++;
+
+ // Title
+ if ($this->phpExcel->getProperties()->getTitle()) {
+ $dataProp = $this->phpExcel->getProperties()->getTitle();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Subject
+ if ($this->phpExcel->getProperties()->getSubject()) {
+ $dataProp = $this->phpExcel->getProperties()->getSubject();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x03),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Author (Creator)
+ if ($this->phpExcel->getProperties()->getCreator()) {
+ $dataProp = $this->phpExcel->getProperties()->getCreator();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x04),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Keywords
+ if ($this->phpExcel->getProperties()->getKeywords()) {
+ $dataProp = $this->phpExcel->getProperties()->getKeywords();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x05),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Comments (Description)
+ if ($this->phpExcel->getProperties()->getDescription()) {
+ $dataProp = $this->phpExcel->getProperties()->getDescription();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x06),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Last Saved By (LastModifiedBy)
+ if ($this->phpExcel->getProperties()->getLastModifiedBy()) {
+ $dataProp = $this->phpExcel->getProperties()->getLastModifiedBy();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x08),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length
+ 'data' => array('data' => $dataProp, 'length' => strlen($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Created Date/Time
+ if ($this->phpExcel->getProperties()->getCreated()) {
+ $dataProp = $this->phpExcel->getProperties()->getCreated();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
+ 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Modified Date/Time
+ if ($this->phpExcel->getProperties()->getModified()) {
+ $dataProp = $this->phpExcel->getProperties()->getModified();
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
+ 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp)));
+ $dataSection_NumProps++;
+ }
+ // Security
+ $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13),
+ 'offset' => array('pack' => 'V'),
+ 'type' => array('pack' => 'V', 'data' => 0x03), // 4 byte signed integer
+ 'data' => array('data' => 0x00));
+ $dataSection_NumProps++;
- // 4 Section Length
- // 4 Property count
- // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4))
- $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8;
- foreach ($dataSection as $dataProp){
- // Summary
- $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']);
- // Offset
- $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset);
- // DataType
- $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']);
- // Data
- if($dataProp['type']['data'] == 0x02){ // 2 byte signed integer
- $dataSection_Content .= pack('V', $dataProp['data']['data']);
+ // 4 Section Length
+ // 4 Property count
+ // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4))
+ $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8;
+ foreach ($dataSection as $dataProp) {
+ // Summary
+ $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']);
+ // Offset
+ $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset);
+ // DataType
+ $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']);
+ // Data
+ if ($dataProp['type']['data'] == 0x02) { // 2 byte signed integer
+ $dataSection_Content .= pack('V', $dataProp['data']['data']);
- $dataSection_Content_Offset += 4 + 4;
- }
- elseif($dataProp['type']['data'] == 0x03){ // 4 byte signed integer
- $dataSection_Content .= pack('V', $dataProp['data']['data']);
+ $dataSection_Content_Offset += 4 + 4;
+ } elseif ($dataProp['type']['data'] == 0x03) { // 4 byte signed integer
+ $dataSection_Content .= pack('V', $dataProp['data']['data']);
- $dataSection_Content_Offset += 4 + 4;
- }
- elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length
- // Null-terminated string
- $dataProp['data']['data'] .= chr(0);
- $dataProp['data']['length'] += 1;
- // Complete the string with null string for being a %4
- $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4));
- $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT);
+ $dataSection_Content_Offset += 4 + 4;
+ } elseif ($dataProp['type']['data'] == 0x1E) { // null-terminated string prepended by dword string length
+ // Null-terminated string
+ $dataProp['data']['data'] .= chr(0);
+ $dataProp['data']['length'] += 1;
+ // Complete the string with null string for being a %4
+ $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4));
+ $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT);
- $dataSection_Content .= pack('V', $dataProp['data']['length']);
- $dataSection_Content .= $dataProp['data']['data'];
+ $dataSection_Content .= pack('V', $dataProp['data']['length']);
+ $dataSection_Content .= $dataProp['data']['data'];
- $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']);
- }
- elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
- $dataSection_Content .= $dataProp['data']['data'];
+ $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']);
+ } elseif ($dataProp['type']['data'] == 0x40) { // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601)
+ $dataSection_Content .= $dataProp['data']['data'];
- $dataSection_Content_Offset += 4 + 8;
- }
- else {
- // Data Type Not Used at the moment
- }
- }
- // Now $dataSection_Content_Offset contains the size of the content
+ $dataSection_Content_Offset += 4 + 8;
+ } else {
+ // Data Type Not Used at the moment
+ }
+ }
+ // Now $dataSection_Content_Offset contains the size of the content
- // section header
- // offset: $secOffset; size: 4; section length
- // + x Size of the content (summary + content)
- $data .= pack('V', $dataSection_Content_Offset);
- // offset: $secOffset+4; size: 4; property count
- $data .= pack('V', $dataSection_NumProps);
- // Section Summary
- $data .= $dataSection_Summary;
- // Section Content
- $data .= $dataSection_Content;
+ // section header
+ // offset: $secOffset; size: 4; section length
+ // + x Size of the content (summary + content)
+ $data .= pack('V', $dataSection_Content_Offset);
+ // offset: $secOffset+4; size: 4; property count
+ $data .= pack('V', $dataSection_NumProps);
+ // Section Summary
+ $data .= $dataSection_Summary;
+ // Section Content
+ $data .= $dataSection_Content;
- return $data;
- }
+ return $data;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php
index 86201134..a7957523 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/BIFFwriter.php
@@ -1,8 +1,9 @@
little endian, 1 => big endian
- * @var integer
- */
- private static $_byte_order;
+ /**
+ * The byte order of this architecture. 0 => little endian, 1 => big endian
+ * @var integer
+ */
+ private static $byteOrder;
- /**
- * The string containing the data of the BIFF stream
- * @var string
- */
- public $_data;
+ /**
+ * The string containing the data of the BIFF stream
+ * @var string
+ */
+ public $_data;
- /**
- * The size of the data in bytes. Should be the same as strlen($this->_data)
- * @var integer
- */
- public $_datasize;
+ /**
+ * The size of the data in bytes. Should be the same as strlen($this->_data)
+ * @var integer
+ */
+ public $_datasize;
- /**
- * The maximum length for a BIFF record (excluding record header and length field). See _addContinue()
- * @var integer
- * @see _addContinue()
- */
- public $_limit = 8224;
+ /**
+ * The maximum length for a BIFF record (excluding record header and length field). See addContinue()
+ * @var integer
+ * @see addContinue()
+ */
+ private $limit = 8224;
- /**
- * Constructor
- */
- public function __construct()
- {
- $this->_data = '';
- $this->_datasize = 0;
-// $this->_limit = 8224;
- }
+ /**
+ * Constructor
+ */
+ public function __construct()
+ {
+ $this->_data = '';
+ $this->_datasize = 0;
+// $this->limit = 8224;
+ }
- /**
- * Determine the byte order and store it as class data to avoid
- * recalculating it for each call to new().
- *
- * @return int
- */
- public static function getByteOrder()
- {
- if (!isset(self::$_byte_order)) {
- // Check if "pack" gives the required IEEE 64bit float
- $teststr = pack("d", 1.2345);
- $number = pack("C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F);
- if ($number == $teststr) {
- $byte_order = 0; // Little Endian
- } elseif ($number == strrev($teststr)){
- $byte_order = 1; // Big Endian
- } else {
- // Give up. I'll fix this in a later version.
- throw new PHPExcel_Writer_Exception("Required floating point format not supported on this platform.");
- }
- self::$_byte_order = $byte_order;
- }
+ /**
+ * Determine the byte order and store it as class data to avoid
+ * recalculating it for each call to new().
+ *
+ * @return int
+ */
+ public static function getByteOrder()
+ {
+ if (!isset(self::$byteOrder)) {
+ // Check if "pack" gives the required IEEE 64bit float
+ $teststr = pack("d", 1.2345);
+ $number = pack("C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F);
+ if ($number == $teststr) {
+ $byte_order = 0; // Little Endian
+ } elseif ($number == strrev($teststr)) {
+ $byte_order = 1; // Big Endian
+ } else {
+ // Give up. I'll fix this in a later version.
+ throw new PHPExcel_Writer_Exception("Required floating point format not supported on this platform.");
+ }
+ self::$byteOrder = $byte_order;
+ }
- return self::$_byte_order;
- }
+ return self::$byteOrder;
+ }
- /**
- * General storage function
- *
- * @param string $data binary data to append
- * @access private
- */
- function _append($data)
- {
- if (strlen($data) - 4 > $this->_limit) {
- $data = $this->_addContinue($data);
- }
- $this->_data .= $data;
- $this->_datasize += strlen($data);
- }
+ /**
+ * General storage function
+ *
+ * @param string $data binary data to append
+ * @access private
+ */
+ protected function append($data)
+ {
+ if (strlen($data) - 4 > $this->limit) {
+ $data = $this->addContinue($data);
+ }
+ $this->_data .= $data;
+ $this->_datasize += strlen($data);
+ }
- /**
- * General storage function like _append, but returns string instead of modifying $this->_data
- *
- * @param string $data binary data to write
- * @return string
- */
- public function writeData($data)
- {
- if (strlen($data) - 4 > $this->_limit) {
- $data = $this->_addContinue($data);
- }
- $this->_datasize += strlen($data);
+ /**
+ * General storage function like append, but returns string instead of modifying $this->_data
+ *
+ * @param string $data binary data to write
+ * @return string
+ */
+ public function writeData($data)
+ {
+ if (strlen($data) - 4 > $this->limit) {
+ $data = $this->addContinue($data);
+ }
+ $this->_datasize += strlen($data);
- return $data;
- }
+ return $data;
+ }
- /**
- * Writes Excel BOF record to indicate the beginning of a stream or
- * sub-stream in the BIFF file.
- *
- * @param integer $type Type of BIFF file to write: 0x0005 Workbook,
- * 0x0010 Worksheet.
- * @access private
- */
- function _storeBof($type)
- {
- $record = 0x0809; // Record identifier (BIFF5-BIFF8)
- $length = 0x0010;
+ /**
+ * Writes Excel BOF record to indicate the beginning of a stream or
+ * sub-stream in the BIFF file.
+ *
+ * @param integer $type Type of BIFF file to write: 0x0005 Workbook,
+ * 0x0010 Worksheet.
+ * @access private
+ */
+ protected function storeBof($type)
+ {
+ $record = 0x0809; // Record identifier (BIFF5-BIFF8)
+ $length = 0x0010;
- // by inspection of real files, MS Office Excel 2007 writes the following
- $unknown = pack("VV", 0x000100D1, 0x00000406);
+ // by inspection of real files, MS Office Excel 2007 writes the following
+ $unknown = pack("VV", 0x000100D1, 0x00000406);
- $build = 0x0DBB; // Excel 97
- $year = 0x07CC; // Excel 97
+ $build = 0x0DBB; // Excel 97
+ $year = 0x07CC; // Excel 97
- $version = 0x0600; // BIFF8
+ $version = 0x0600; // BIFF8
- $header = pack("vv", $record, $length);
- $data = pack("vvvv", $version, $type, $build, $year);
- $this->_append($header . $data . $unknown);
- }
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvv", $version, $type, $build, $year);
+ $this->append($header . $data . $unknown);
+ }
- /**
- * Writes Excel EOF record to indicate the end of a BIFF stream.
- *
- * @access private
- */
- function _storeEof()
- {
- $record = 0x000A; // Record identifier
- $length = 0x0000; // Number of bytes to follow
+ /**
+ * Writes Excel EOF record to indicate the end of a BIFF stream.
+ *
+ * @access private
+ */
+ protected function storeEof()
+ {
+ $record = 0x000A; // Record identifier
+ $length = 0x0000; // Number of bytes to follow
- $header = pack("vv", $record, $length);
- $this->_append($header);
- }
+ $header = pack("vv", $record, $length);
+ $this->append($header);
+ }
- /**
- * Writes Excel EOF record to indicate the end of a BIFF stream.
- *
- * @access private
- */
- public function writeEof()
- {
- $record = 0x000A; // Record identifier
- $length = 0x0000; // Number of bytes to follow
- $header = pack("vv", $record, $length);
- return $this->writeData($header);
- }
+ /**
+ * Writes Excel EOF record to indicate the end of a BIFF stream.
+ *
+ * @access private
+ */
+ public function writeEof()
+ {
+ $record = 0x000A; // Record identifier
+ $length = 0x0000; // Number of bytes to follow
+ $header = pack("vv", $record, $length);
+ return $this->writeData($header);
+ }
- /**
- * Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In
- * Excel 97 the limit is 8228 bytes. Records that are longer than these limits
- * must be split up into CONTINUE blocks.
- *
- * This function takes a long BIFF record and inserts CONTINUE records as
- * necessary.
- *
- * @param string $data The original binary data to be written
- * @return string A very convenient string of continue blocks
- * @access private
- */
- function _addContinue($data)
- {
- $limit = $this->_limit;
- $record = 0x003C; // Record identifier
+ /**
+ * Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In
+ * Excel 97 the limit is 8228 bytes. Records that are longer than these limits
+ * must be split up into CONTINUE blocks.
+ *
+ * This function takes a long BIFF record and inserts CONTINUE records as
+ * necessary.
+ *
+ * @param string $data The original binary data to be written
+ * @return string A very convenient string of continue blocks
+ * @access private
+ */
+ private function addContinue($data)
+ {
+ $limit = $this->limit;
+ $record = 0x003C; // Record identifier
- // The first 2080/8224 bytes remain intact. However, we have to change
- // the length field of the record.
- $tmp = substr($data, 0, 2) . pack("v", $limit) . substr($data, 4, $limit);
+ // The first 2080/8224 bytes remain intact. However, we have to change
+ // the length field of the record.
+ $tmp = substr($data, 0, 2) . pack("v", $limit) . substr($data, 4, $limit);
- $header = pack("vv", $record, $limit); // Headers for continue records
+ $header = pack("vv", $record, $limit); // Headers for continue records
- // Retrieve chunks of 2080/8224 bytes +4 for the header.
- $data_length = strlen($data);
- for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) {
- $tmp .= $header;
- $tmp .= substr($data, $i, $limit);
- }
+ // Retrieve chunks of 2080/8224 bytes +4 for the header.
+ $data_length = strlen($data);
+ for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) {
+ $tmp .= $header;
+ $tmp .= substr($data, $i, $limit);
+ }
- // Retrieve the last chunk of data
- $header = pack("vv", $record, strlen($data) - $i);
- $tmp .= $header;
- $tmp .= substr($data, $i, strlen($data) - $i);
-
- return $tmp;
- }
+ // Retrieve the last chunk of data
+ $header = pack("vv", $record, strlen($data) - $i);
+ $tmp .= $header;
+ $tmp .= substr($data, $i, strlen($data) - $i);
+ return $tmp;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Escher.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Escher.php
index 92e6a8d8..c37fda9b 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Escher.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Escher.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_Excel5
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,507 +31,493 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_Excel5
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Writer_Excel5_Escher
{
- /**
- * The object we are writing
- */
- private $_object;
-
- /**
- * The written binary data
- */
- private $_data;
-
- /**
- * Shape offsets. Positions in binary stream where a new shape record begins
- *
- * @var array
- */
- private $_spOffsets;
-
- /**
- * Shape types.
- *
- * @var array
- */
- private $_spTypes;
-
- /**
- * Constructor
- *
- * @param mixed
- */
- public function __construct($object)
- {
- $this->_object = $object;
- }
-
- /**
- * Process the object to be written
- */
- public function close()
- {
- // initialize
- $this->_data = '';
-
- switch (get_class($this->_object)) {
-
- case 'PHPExcel_Shared_Escher':
- if ($dggContainer = $this->_object->getDggContainer()) {
- $writer = new PHPExcel_Writer_Excel5_Escher($dggContainer);
- $this->_data = $writer->close();
- } else if ($dgContainer = $this->_object->getDgContainer()) {
- $writer = new PHPExcel_Writer_Excel5_Escher($dgContainer);
- $this->_data = $writer->close();
- $this->_spOffsets = $writer->getSpOffsets();
- $this->_spTypes = $writer->getSpTypes();
- }
- break;
-
- case 'PHPExcel_Shared_Escher_DggContainer':
- // this is a container record
-
- // initialize
- $innerData = '';
-
- // write the dgg
- $recVer = 0x0;
- $recInstance = 0x0000;
- $recType = 0xF006;
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- // dgg data
- $dggData =
- pack('VVVV'
- , $this->_object->getSpIdMax() // maximum shape identifier increased by one
- , $this->_object->getCDgSaved() + 1 // number of file identifier clusters increased by one
- , $this->_object->getCSpSaved()
- , $this->_object->getCDgSaved() // count total number of drawings saved
- );
-
- // add file identifier clusters (one per drawing)
- $IDCLs = $this->_object->getIDCLs();
-
- foreach ($IDCLs as $dgId => $maxReducedSpId) {
- $dggData .= pack('VV', $dgId, $maxReducedSpId + 1);
- }
-
- $header = pack('vvV', $recVerInstance, $recType, strlen($dggData));
- $innerData .= $header . $dggData;
-
- // write the bstoreContainer
- if ($bstoreContainer = $this->_object->getBstoreContainer()) {
- $writer = new PHPExcel_Writer_Excel5_Escher($bstoreContainer);
- $innerData .= $writer->close();
- }
-
- // write the record
- $recVer = 0xF;
- $recInstance = 0x0000;
- $recType = 0xF000;
- $length = strlen($innerData);
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
-
- $this->_data = $header . $innerData;
- break;
-
- case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer':
- // this is a container record
-
- // initialize
- $innerData = '';
-
- // treat the inner data
- if ($BSECollection = $this->_object->getBSECollection()) {
- foreach ($BSECollection as $BSE) {
- $writer = new PHPExcel_Writer_Excel5_Escher($BSE);
- $innerData .= $writer->close();
- }
- }
-
- // write the record
- $recVer = 0xF;
- $recInstance = count($this->_object->getBSECollection());
- $recType = 0xF001;
- $length = strlen($innerData);
+ /**
+ * The object we are writing
+ */
+ private $object;
+
+ /**
+ * The written binary data
+ */
+ private $data;
+
+ /**
+ * Shape offsets. Positions in binary stream where a new shape record begins
+ *
+ * @var array
+ */
+ private $spOffsets;
+
+ /**
+ * Shape types.
+ *
+ * @var array
+ */
+ private $spTypes;
+
+ /**
+ * Constructor
+ *
+ * @param mixed
+ */
+ public function __construct($object)
+ {
+ $this->object = $object;
+ }
+
+ /**
+ * Process the object to be written
+ */
+ public function close()
+ {
+ // initialize
+ $this->data = '';
+
+ switch (get_class($this->object)) {
+ case 'PHPExcel_Shared_Escher':
+ if ($dggContainer = $this->object->getDggContainer()) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($dggContainer);
+ $this->data = $writer->close();
+ } elseif ($dgContainer = $this->object->getDgContainer()) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($dgContainer);
+ $this->data = $writer->close();
+ $this->spOffsets = $writer->getSpOffsets();
+ $this->spTypes = $writer->getSpTypes();
+ }
+ break;
+ case 'PHPExcel_Shared_Escher_DggContainer':
+ // this is a container record
+
+ // initialize
+ $innerData = '';
+
+ // write the dgg
+ $recVer = 0x0;
+ $recInstance = 0x0000;
+ $recType = 0xF006;
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ // dgg data
+ $dggData =
+ pack(
+ 'VVVV',
+ $this->object->getSpIdMax(), // maximum shape identifier increased by one
+ $this->object->getCDgSaved() + 1, // number of file identifier clusters increased by one
+ $this->object->getCSpSaved(),
+ $this->object->getCDgSaved() // count total number of drawings saved
+ );
+
+ // add file identifier clusters (one per drawing)
+ $IDCLs = $this->object->getIDCLs();
+
+ foreach ($IDCLs as $dgId => $maxReducedSpId) {
+ $dggData .= pack('VV', $dgId, $maxReducedSpId + 1);
+ }
+
+ $header = pack('vvV', $recVerInstance, $recType, strlen($dggData));
+ $innerData .= $header . $dggData;
+
+ // write the bstoreContainer
+ if ($bstoreContainer = $this->object->getBstoreContainer()) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($bstoreContainer);
+ $innerData .= $writer->close();
+ }
+
+ // write the record
+ $recVer = 0xF;
+ $recInstance = 0x0000;
+ $recType = 0xF000;
+ $length = strlen($innerData);
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+
+ $this->data = $header . $innerData;
+ break;
+ case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer':
+ // this is a container record
+
+ // initialize
+ $innerData = '';
+
+ // treat the inner data
+ if ($BSECollection = $this->object->getBSECollection()) {
+ foreach ($BSECollection as $BSE) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($BSE);
+ $innerData .= $writer->close();
+ }
+ }
+
+ // write the record
+ $recVer = 0xF;
+ $recInstance = count($this->object->getBSECollection());
+ $recType = 0xF001;
+ $length = strlen($innerData);
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+
+ $this->data = $header . $innerData;
+ break;
+ case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE':
+ // this is a semi-container record
+
+ // initialize
+ $innerData = '';
+
+ // here we treat the inner data
+ if ($blip = $this->object->getBlip()) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($blip);
+ $innerData .= $writer->close();
+ }
+
+ // initialize
+ $data = '';
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ $btWin32 = $this->object->getBlipType();
+ $btMacOS = $this->object->getBlipType();
+ $data .= pack('CC', $btWin32, $btMacOS);
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ $rgbUid = pack('VVVV', 0, 0, 0, 0); // todo
+ $data .= $rgbUid;
- $this->_data = $header . $innerData;
- break;
+ $tag = 0;
+ $size = strlen($innerData);
+ $cRef = 1;
+ $foDelay = 0; //todo
+ $unused1 = 0x0;
+ $cbName = 0x0;
+ $unused2 = 0x0;
+ $unused3 = 0x0;
+ $data .= pack('vVVVCCCC', $tag, $size, $cRef, $foDelay, $unused1, $cbName, $unused2, $unused3);
- case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE':
- // this is a semi-container record
+ $data .= $innerData;
- // initialize
- $innerData = '';
+ // write the record
+ $recVer = 0x2;
+ $recInstance = $this->object->getBlipType();
+ $recType = 0xF007;
+ $length = strlen($data);
- // here we treat the inner data
- if ($blip = $this->_object->getBlip()) {
- $writer = new PHPExcel_Writer_Excel5_Escher($blip);
- $innerData .= $writer->close();
- }
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- // initialize
- $data = '';
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- $btWin32 = $this->_object->getBlipType();
- $btMacOS = $this->_object->getBlipType();
- $data .= pack('CC', $btWin32, $btMacOS);
+ $this->data = $header;
- $rgbUid = pack('VVVV', 0,0,0,0); // todo
- $data .= $rgbUid;
+ $this->data .= $data;
+ break;
+ case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip':
+ // this is an atom record
- $tag = 0;
- $size = strlen($innerData);
- $cRef = 1;
- $foDelay = 0; //todo
- $unused1 = 0x0;
- $cbName = 0x0;
- $unused2 = 0x0;
- $unused3 = 0x0;
- $data .= pack('vVVVCCCC', $tag, $size, $cRef, $foDelay, $unused1, $cbName, $unused2, $unused3);
+ // write the record
+ switch ($this->object->getParent()->getBlipType()) {
+ case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG:
+ // initialize
+ $innerData = '';
- $data .= $innerData;
+ $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo
+ $innerData .= $rgbUid1;
- // write the record
- $recVer = 0x2;
- $recInstance = $this->_object->getBlipType();
- $recType = 0xF007;
- $length = strlen($data);
+ $tag = 0xFF; // todo
+ $innerData .= pack('C', $tag);
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ $innerData .= $this->object->getData();
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ $recVer = 0x0;
+ $recInstance = 0x46A;
+ $recType = 0xF01D;
+ $length = strlen($innerData);
- $this->_data = $header;
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- $this->_data .= $data;
- break;
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip':
- // this is an atom record
+ $this->data = $header;
- // write the record
- switch ($this->_object->getParent()->getBlipType()) {
+ $this->data .= $innerData;
+ break;
- case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG:
- // initialize
- $innerData = '';
+ case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG:
+ // initialize
+ $innerData = '';
- $rgbUid1 = pack('VVVV', 0,0,0,0); // todo
- $innerData .= $rgbUid1;
+ $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo
+ $innerData .= $rgbUid1;
- $tag = 0xFF; // todo
- $innerData .= pack('C', $tag);
+ $tag = 0xFF; // todo
+ $innerData .= pack('C', $tag);
- $innerData .= $this->_object->getData();
+ $innerData .= $this->object->getData();
- $recVer = 0x0;
- $recInstance = 0x46A;
- $recType = 0xF01D;
- $length = strlen($innerData);
+ $recVer = 0x0;
+ $recInstance = 0x6E0;
+ $recType = 0xF01E;
+ $length = strlen($innerData);
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- $this->_data = $header;
+ $this->data = $header;
- $this->_data .= $innerData;
- break;
+ $this->data .= $innerData;
+ break;
+ }
+ break;
+ case 'PHPExcel_Shared_Escher_DgContainer':
+ // this is a container record
- case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG:
- // initialize
- $innerData = '';
+ // initialize
+ $innerData = '';
- $rgbUid1 = pack('VVVV', 0,0,0,0); // todo
- $innerData .= $rgbUid1;
+ // write the dg
+ $recVer = 0x0;
+ $recInstance = $this->object->getDgId();
+ $recType = 0xF008;
+ $length = 8;
- $tag = 0xFF; // todo
- $innerData .= pack('C', $tag);
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- $innerData .= $this->_object->getData();
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- $recVer = 0x0;
- $recInstance = 0x6E0;
- $recType = 0xF01E;
- $length = strlen($innerData);
+ // number of shapes in this drawing (including group shape)
+ $countShapes = count($this->object->getSpgrContainer()->getChildren());
+ $innerData .= $header . pack('VV', $countShapes, $this->object->getLastSpId());
+ //$innerData .= $header . pack('VV', 0, 0);
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ // write the spgrContainer
+ if ($spgrContainer = $this->object->getSpgrContainer()) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($spgrContainer);
+ $innerData .= $writer->close();
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ // get the shape offsets relative to the spgrContainer record
+ $spOffsets = $writer->getSpOffsets();
+ $spTypes = $writer->getSpTypes();
+
+ // save the shape offsets relative to dgContainer
+ foreach ($spOffsets as & $spOffset) {
+ $spOffset += 24; // add length of dgContainer header data (8 bytes) plus dg data (16 bytes)
+ }
- $this->_data = $header;
+ $this->spOffsets = $spOffsets;
+ $this->spTypes = $spTypes;
+ }
- $this->_data .= $innerData;
- break;
+ // write the record
+ $recVer = 0xF;
+ $recInstance = 0x0000;
+ $recType = 0xF002;
+ $length = strlen($innerData);
- }
- break;
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- case 'PHPExcel_Shared_Escher_DgContainer':
- // this is a container record
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- // initialize
- $innerData = '';
+ $this->data = $header . $innerData;
+ break;
+ case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer':
+ // this is a container record
- // write the dg
- $recVer = 0x0;
- $recInstance = $this->_object->getDgId();
- $recType = 0xF008;
- $length = 8;
+ // initialize
+ $innerData = '';
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ // initialize spape offsets
+ $totalSize = 8;
+ $spOffsets = array();
+ $spTypes = array();
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ // treat the inner data
+ foreach ($this->object->getChildren() as $spContainer) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($spContainer);
+ $spData = $writer->close();
+ $innerData .= $spData;
+
+ // save the shape offsets (where new shape records begin)
+ $totalSize += strlen($spData);
+ $spOffsets[] = $totalSize;
+
+ $spTypes = array_merge($spTypes, $writer->getSpTypes());
+ }
- // number of shapes in this drawing (including group shape)
- $countShapes = count($this->_object->getSpgrContainer()->getChildren());
- $innerData .= $header . pack('VV', $countShapes, $this->_object->getLastSpId());
- //$innerData .= $header . pack('VV', 0, 0);
+ // write the record
+ $recVer = 0xF;
+ $recInstance = 0x0000;
+ $recType = 0xF003;
+ $length = strlen($innerData);
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- // write the spgrContainer
- if ($spgrContainer = $this->_object->getSpgrContainer()) {
- $writer = new PHPExcel_Writer_Excel5_Escher($spgrContainer);
- $innerData .= $writer->close();
+ $this->data = $header . $innerData;
+ $this->spOffsets = $spOffsets;
+ $this->spTypes = $spTypes;
+ break;
+ case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer':
+ // initialize
+ $data = '';
+
+ // build the data
+
+ // write group shape record, if necessary?
+ if ($this->object->getSpgr()) {
+ $recVer = 0x1;
+ $recInstance = 0x0000;
+ $recType = 0xF009;
+ $length = 0x00000010;
- // get the shape offsets relative to the spgrContainer record
- $spOffsets = $writer->getSpOffsets();
- $spTypes = $writer->getSpTypes();
-
- // save the shape offsets relative to dgContainer
- foreach ($spOffsets as & $spOffset) {
- $spOffset += 24; // add length of dgContainer header data (8 bytes) plus dg data (16 bytes)
- }
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+
+ $data .= $header . pack('VVVV', 0, 0, 0, 0);
+ }
+ $this->spTypes[] = ($this->object->getSpType());
- $this->_spOffsets = $spOffsets;
- $this->_spTypes = $spTypes;
- }
+ // write the shape record
+ $recVer = 0x2;
+ $recInstance = $this->object->getSpType(); // shape type
+ $recType = 0xF00A;
+ $length = 0x00000008;
- // write the record
- $recVer = 0xF;
- $recInstance = 0x0000;
- $recType = 0xF002;
- $length = strlen($innerData);
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ $data .= $header . pack('VV', $this->object->getSpId(), $this->object->getSpgr() ? 0x0005 : 0x0A00);
- $this->_data = $header . $innerData;
- break;
- case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer':
- // this is a container record
+ // the options
+ if ($this->object->getOPTCollection()) {
+ $optData = '';
+
+ $recVer = 0x3;
+ $recInstance = count($this->object->getOPTCollection());
+ $recType = 0xF00B;
+ foreach ($this->object->getOPTCollection() as $property => $value) {
+ $optData .= pack('vV', $property, $value);
+ }
+ $length = strlen($optData);
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
+
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+ $data .= $header . $optData;
+ }
+
+ // the client anchor
+ if ($this->object->getStartCoordinates()) {
+ $clientAnchorData = '';
+
+ $recVer = 0x0;
+ $recInstance = 0x0;
+ $recType = 0xF010;
+
+ // start coordinates
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($this->object->getStartCoordinates());
+ $c1 = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ $r1 = $row - 1;
+
+ // start offsetX
+ $startOffsetX = $this->object->getStartOffsetX();
+
+ // start offsetY
+ $startOffsetY = $this->object->getStartOffsetY();
+
+ // end coordinates
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($this->object->getEndCoordinates());
+ $c2 = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ $r2 = $row - 1;
+
+ // end offsetX
+ $endOffsetX = $this->object->getEndOffsetX();
+
+ // end offsetY
+ $endOffsetY = $this->object->getEndOffsetY();
+
+ $clientAnchorData = pack('vvvvvvvvv', $this->object->getSpFlag(), $c1, $startOffsetX, $r1, $startOffsetY, $c2, $endOffsetX, $r2, $endOffsetY);
+
+ $length = strlen($clientAnchorData);
- // initialize
- $innerData = '';
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- // initialize spape offsets
- $totalSize = 8;
- $spOffsets = array();
- $spTypes = array();
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+ $data .= $header . $clientAnchorData;
+ }
- // treat the inner data
- foreach ($this->_object->getChildren() as $spContainer) {
- $writer = new PHPExcel_Writer_Excel5_Escher($spContainer);
- $spData = $writer->close();
- $innerData .= $spData;
+ // the client data, just empty for now
+ if (!$this->object->getSpgr()) {
+ $clientDataData = '';
- // save the shape offsets (where new shape records begin)
- $totalSize += strlen($spData);
- $spOffsets[] = $totalSize;
-
- $spTypes = array_merge($spTypes, $writer->getSpTypes());
- }
+ $recVer = 0x0;
+ $recInstance = 0x0;
+ $recType = 0xF011;
- // write the record
- $recVer = 0xF;
- $recInstance = 0x0000;
- $recType = 0xF003;
- $length = strlen($innerData);
+ $length = strlen($clientDataData);
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- $header = pack('vvV', $recVerInstance, $recType, $length);
+ $header = pack('vvV', $recVerInstance, $recType, $length);
+ $data .= $header . $clientDataData;
+ }
- $this->_data = $header . $innerData;
- $this->_spOffsets = $spOffsets;
- $this->_spTypes = $spTypes;
- break;
+ // write the record
+ $recVer = 0xF;
+ $recInstance = 0x0000;
+ $recType = 0xF004;
+ $length = strlen($data);
+
+ $recVerInstance = $recVer;
+ $recVerInstance |= $recInstance << 4;
- case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer':
- // initialize
- $data = '';
+ $header = pack('vvV', $recVerInstance, $recType, $length);
- // build the data
+ $this->data = $header . $data;
+ break;
+ }
- // write group shape record, if necessary?
- if ($this->_object->getSpgr()) {
- $recVer = 0x1;
- $recInstance = 0x0000;
- $recType = 0xF009;
- $length = 0x00000010;
+ return $this->data;
+ }
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
-
- $data .= $header . pack('VVVV', 0,0,0,0);
- }
- $this->_spTypes[] = ($this->_object->getSpType());
-
- // write the shape record
- $recVer = 0x2;
- $recInstance = $this->_object->getSpType(); // shape type
- $recType = 0xF00A;
- $length = 0x00000008;
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
-
- $data .= $header . pack('VV', $this->_object->getSpId(), $this->_object->getSpgr() ? 0x0005 : 0x0A00);
-
-
- // the options
- if ($this->_object->getOPTCollection()) {
- $optData = '';
-
- $recVer = 0x3;
- $recInstance = count($this->_object->getOPTCollection());
- $recType = 0xF00B;
- foreach ($this->_object->getOPTCollection() as $property => $value) {
- $optData .= pack('vV', $property, $value);
- }
- $length = strlen($optData);
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
- $data .= $header . $optData;
- }
-
- // the client anchor
- if ($this->_object->getStartCoordinates()) {
- $clientAnchorData = '';
-
- $recVer = 0x0;
- $recInstance = 0x0;
- $recType = 0xF010;
-
- // start coordinates
- list($column, $row) = PHPExcel_Cell::coordinateFromString($this->_object->getStartCoordinates());
- $c1 = PHPExcel_Cell::columnIndexFromString($column) - 1;
- $r1 = $row - 1;
-
- // start offsetX
- $startOffsetX = $this->_object->getStartOffsetX();
-
- // start offsetY
- $startOffsetY = $this->_object->getStartOffsetY();
-
- // end coordinates
- list($column, $row) = PHPExcel_Cell::coordinateFromString($this->_object->getEndCoordinates());
- $c2 = PHPExcel_Cell::columnIndexFromString($column) - 1;
- $r2 = $row - 1;
-
- // end offsetX
- $endOffsetX = $this->_object->getEndOffsetX();
-
- // end offsetY
- $endOffsetY = $this->_object->getEndOffsetY();
-
- $clientAnchorData = pack('vvvvvvvvv', $this->_object->getSpFlag(),
- $c1, $startOffsetX, $r1, $startOffsetY,
- $c2, $endOffsetX, $r2, $endOffsetY);
-
- $length = strlen($clientAnchorData);
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
- $data .= $header . $clientAnchorData;
- }
-
- // the client data, just empty for now
- if (!$this->_object->getSpgr()) {
- $clientDataData = '';
-
- $recVer = 0x0;
- $recInstance = 0x0;
- $recType = 0xF011;
-
- $length = strlen($clientDataData);
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
- $data .= $header . $clientDataData;
- }
-
- // write the record
- $recVer = 0xF;
- $recInstance = 0x0000;
- $recType = 0xF004;
- $length = strlen($data);
-
- $recVerInstance = $recVer;
- $recVerInstance |= $recInstance << 4;
-
- $header = pack('vvV', $recVerInstance, $recType, $length);
-
- $this->_data = $header . $data;
- break;
-
- }
-
- return $this->_data;
- }
-
- /**
- * Gets the shape offsets
- *
- * @return array
- */
- public function getSpOffsets()
- {
- return $this->_spOffsets;
- }
-
- /**
- * Gets the shape types
- *
- * @return array
- */
- public function getSpTypes()
- {
- return $this->_spTypes;
- }
-
-
+ /**
+ * Gets the shape offsets
+ *
+ * @return array
+ */
+ public function getSpOffsets()
+ {
+ return $this->spOffsets;
+ }
+
+ /**
+ * Gets the shape types
+ *
+ * @return array
+ */
+ public function getSpTypes()
+ {
+ return $this->spTypes;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php
index 0df19438..ed85ff45 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Font.php
@@ -1,8 +1,9 @@
_colorIndex = 0x7FFF;
- $this->_font = $font;
- }
+ /**
+ * Constructor
+ *
+ * @param PHPExcel_Style_Font $font
+ */
+ public function __construct(PHPExcel_Style_Font $font = null)
+ {
+ $this->colorIndex = 0x7FFF;
+ $this->font = $font;
+ }
- /**
- * Set the color index
- *
- * @param int $colorIndex
- */
- public function setColorIndex($colorIndex)
- {
- $this->_colorIndex = $colorIndex;
- }
+ /**
+ * Set the color index
+ *
+ * @param int $colorIndex
+ */
+ public function setColorIndex($colorIndex)
+ {
+ $this->colorIndex = $colorIndex;
+ }
- /**
- * Get font record data
- *
- * @return string
- */
- public function writeFont()
- {
- $font_outline = 0;
- $font_shadow = 0;
+ /**
+ * Get font record data
+ *
+ * @return string
+ */
+ public function writeFont()
+ {
+ $font_outline = 0;
+ $font_shadow = 0;
- $icv = $this->_colorIndex; // Index to color palette
- if ($this->_font->getSuperScript()) {
- $sss = 1;
- } else if ($this->_font->getSubScript()) {
- $sss = 2;
- } else {
- $sss = 0;
- }
- $bFamily = 0; // Font family
- $bCharSet = PHPExcel_Shared_Font::getCharsetFromFontName($this->_font->getName()); // Character set
+ $icv = $this->colorIndex; // Index to color palette
+ if ($this->font->getSuperScript()) {
+ $sss = 1;
+ } elseif ($this->font->getSubScript()) {
+ $sss = 2;
+ } else {
+ $sss = 0;
+ }
+ $bFamily = 0; // Font family
+ $bCharSet = PHPExcel_Shared_Font::getCharsetFromFontName($this->font->getName()); // Character set
- $record = 0x31; // Record identifier
- $reserved = 0x00; // Reserved
- $grbit = 0x00; // Font attributes
- if ($this->_font->getItalic()) {
- $grbit |= 0x02;
- }
- if ($this->_font->getStrikethrough()) {
- $grbit |= 0x08;
- }
- if ($font_outline) {
- $grbit |= 0x10;
- }
- if ($font_shadow) {
- $grbit |= 0x20;
- }
+ $record = 0x31; // Record identifier
+ $reserved = 0x00; // Reserved
+ $grbit = 0x00; // Font attributes
+ if ($this->font->getItalic()) {
+ $grbit |= 0x02;
+ }
+ if ($this->font->getStrikethrough()) {
+ $grbit |= 0x08;
+ }
+ if ($font_outline) {
+ $grbit |= 0x10;
+ }
+ if ($font_shadow) {
+ $grbit |= 0x20;
+ }
- $data = pack("vvvvvCCCC",
- $this->_font->getSize() * 20, // Fontsize (in twips)
- $grbit,
- $icv, // Colour
- self::_mapBold($this->_font->getBold()), // Font weight
- $sss, // Superscript/Subscript
- self::_mapUnderline($this->_font->getUnderline()),
- $bFamily,
- $bCharSet,
- $reserved
- );
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($this->_font->getName());
+ $data = pack(
+ "vvvvvCCCC",
+ // Fontsize (in twips)
+ $this->font->getSize() * 20,
+ $grbit,
+ // Colour
+ $icv,
+ // Font weight
+ self::mapBold($this->font->getBold()),
+ // Superscript/Subscript
+ $sss,
+ self::mapUnderline($this->font->getUnderline()),
+ $bFamily,
+ $bCharSet,
+ $reserved
+ );
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($this->font->getName());
- $length = strlen($data);
- $header = pack("vv", $record, $length);
+ $length = strlen($data);
+ $header = pack("vv", $record, $length);
- return($header . $data);
- }
+ return($header . $data);
+ }
- /**
- * Map to BIFF5-BIFF8 codes for bold
- *
- * @param boolean $bold
- * @return int
- */
- private static function _mapBold($bold) {
- if ($bold) {
- return 0x2BC; // 700 = Bold font weight
- }
- return 0x190; // 400 = Normal font weight
- }
+ /**
+ * Map to BIFF5-BIFF8 codes for bold
+ *
+ * @param boolean $bold
+ * @return int
+ */
+ private static function mapBold($bold)
+ {
+ if ($bold) {
+ return 0x2BC; // 700 = Bold font weight
+ }
+ return 0x190; // 400 = Normal font weight
+ }
- /**
- * Map of BIFF2-BIFF8 codes for underline styles
- * @static array of int
- *
- */
- private static $_mapUnderline = array( PHPExcel_Style_Font::UNDERLINE_NONE => 0x00,
- PHPExcel_Style_Font::UNDERLINE_SINGLE => 0x01,
- PHPExcel_Style_Font::UNDERLINE_DOUBLE => 0x02,
- PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING => 0x21,
- PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING => 0x22,
- );
- /**
- * Map underline
- *
- * @param string
- * @return int
- */
- private static function _mapUnderline($underline) {
- if (isset(self::$_mapUnderline[$underline]))
- return self::$_mapUnderline[$underline];
- return 0x00;
- }
+ /**
+ * Map of BIFF2-BIFF8 codes for underline styles
+ * @static array of int
+ *
+ */
+ private static $mapUnderline = array(
+ PHPExcel_Style_Font::UNDERLINE_NONE => 0x00,
+ PHPExcel_Style_Font::UNDERLINE_SINGLE => 0x01,
+ PHPExcel_Style_Font::UNDERLINE_DOUBLE => 0x02,
+ PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING => 0x21,
+ PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING => 0x22,
+ );
+ /**
+ * Map underline
+ *
+ * @param string
+ * @return int
+ */
+ private static function mapUnderline($underline)
+ {
+ if (isset(self::$mapUnderline[$underline])) {
+ return self::$mapUnderline[$underline];
+ }
+ return 0x00;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
index bc6ddb13..0cf1c1d6 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
@@ -1,8 +1,9 @@
=,;#()"{}
- const REGEX_SHEET_TITLE_UNQUOTED = '[^\*\:\/\\\\\?\[\]\+\-\% \\\'\^\&\<\>\=\,\;\#\(\)\"\{\}]+';
+ /** Constants */
+ // Sheet title in unquoted form
+ // Invalid sheet title characters cannot occur in the sheet title:
+ // *:/\?[]
+ // Moreover, there are valid sheet title characters that cannot occur in unquoted form (there may be more?)
+ // +-% '^&<>=,;#()"{}
+ const REGEX_SHEET_TITLE_UNQUOTED = '[^\*\:\/\\\\\?\[\]\+\-\% \\\'\^\&\<\>\=\,\;\#\(\)\"\{\}]+';
- // Sheet title in quoted form (without surrounding quotes)
- // Invalid sheet title characters cannot occur in the sheet title:
- // *:/\?[] (usual invalid sheet title characters)
- // Single quote is represented as a pair ''
- const REGEX_SHEET_TITLE_QUOTED = '(([^\*\:\/\\\\\?\[\]\\\'])+|(\\\'\\\')+)+';
+ // Sheet title in quoted form (without surrounding quotes)
+ // Invalid sheet title characters cannot occur in the sheet title:
+ // *:/\?[] (usual invalid sheet title characters)
+ // Single quote is represented as a pair ''
+ const REGEX_SHEET_TITLE_QUOTED = '(([^\*\:\/\\\\\?\[\]\\\'])+|(\\\'\\\')+)+';
- /**
- * The index of the character we are currently looking at
- * @var integer
- */
- public $_current_char;
+ /**
+ * The index of the character we are currently looking at
+ * @var integer
+ */
+ public $currentCharacter;
- /**
- * The token we are working on.
- * @var string
- */
- public $_current_token;
+ /**
+ * The token we are working on.
+ * @var string
+ */
+ public $currentToken;
- /**
- * The formula to parse
- * @var string
- */
- public $_formula;
+ /**
+ * The formula to parse
+ * @var string
+ */
+ private $formula;
- /**
- * The character ahead of the current char
- * @var string
- */
- public $_lookahead;
+ /**
+ * The character ahead of the current char
+ * @var string
+ */
+ public $lookAhead;
- /**
- * The parse tree to be generated
- * @var string
- */
- public $_parse_tree;
+ /**
+ * The parse tree to be generated
+ * @var string
+ */
+ private $parseTree;
- /**
- * Array of external sheets
- * @var array
- */
- public $_ext_sheets;
+ /**
+ * Array of external sheets
+ * @var array
+ */
+ private $externalSheets;
- /**
- * Array of sheet references in the form of REF structures
- * @var array
- */
- public $_references;
+ /**
+ * Array of sheet references in the form of REF structures
+ * @var array
+ */
+ public $references;
- /**
- * The class constructor
- *
- */
- public function __construct()
- {
- $this->_current_char = 0;
- $this->_current_token = ''; // The token we are working on.
- $this->_formula = ''; // The formula to parse.
- $this->_lookahead = ''; // The character ahead of the current char.
- $this->_parse_tree = ''; // The parse tree to be generated.
- $this->_initializeHashes(); // Initialize the hashes: ptg's and function's ptg's
- $this->_ext_sheets = array();
- $this->_references = array();
- }
+ /**
+ * The class constructor
+ *
+ */
+ public function __construct()
+ {
+ $this->currentCharacter = 0;
+ $this->currentToken = ''; // The token we are working on.
+ $this->formula = ''; // The formula to parse.
+ $this->lookAhead = ''; // The character ahead of the current char.
+ $this->parseTree = ''; // The parse tree to be generated.
+ $this->initializeHashes(); // Initialize the hashes: ptg's and function's ptg's
+ $this->externalSheets = array();
+ $this->references = array();
+ }
- /**
- * Initialize the ptg and function hashes.
- *
- * @access private
- */
- function _initializeHashes()
- {
- // The Excel ptg indices
- $this->ptg = array(
- 'ptgExp' => 0x01,
- 'ptgTbl' => 0x02,
- 'ptgAdd' => 0x03,
- 'ptgSub' => 0x04,
- 'ptgMul' => 0x05,
- 'ptgDiv' => 0x06,
- 'ptgPower' => 0x07,
- 'ptgConcat' => 0x08,
- 'ptgLT' => 0x09,
- 'ptgLE' => 0x0A,
- 'ptgEQ' => 0x0B,
- 'ptgGE' => 0x0C,
- 'ptgGT' => 0x0D,
- 'ptgNE' => 0x0E,
- 'ptgIsect' => 0x0F,
- 'ptgUnion' => 0x10,
- 'ptgRange' => 0x11,
- 'ptgUplus' => 0x12,
- 'ptgUminus' => 0x13,
- 'ptgPercent' => 0x14,
- 'ptgParen' => 0x15,
- 'ptgMissArg' => 0x16,
- 'ptgStr' => 0x17,
- 'ptgAttr' => 0x19,
- 'ptgSheet' => 0x1A,
- 'ptgEndSheet' => 0x1B,
- 'ptgErr' => 0x1C,
- 'ptgBool' => 0x1D,
- 'ptgInt' => 0x1E,
- 'ptgNum' => 0x1F,
- 'ptgArray' => 0x20,
- 'ptgFunc' => 0x21,
- 'ptgFuncVar' => 0x22,
- 'ptgName' => 0x23,
- 'ptgRef' => 0x24,
- 'ptgArea' => 0x25,
- 'ptgMemArea' => 0x26,
- 'ptgMemErr' => 0x27,
- 'ptgMemNoMem' => 0x28,
- 'ptgMemFunc' => 0x29,
- 'ptgRefErr' => 0x2A,
- 'ptgAreaErr' => 0x2B,
- 'ptgRefN' => 0x2C,
- 'ptgAreaN' => 0x2D,
- 'ptgMemAreaN' => 0x2E,
- 'ptgMemNoMemN' => 0x2F,
- 'ptgNameX' => 0x39,
- 'ptgRef3d' => 0x3A,
- 'ptgArea3d' => 0x3B,
- 'ptgRefErr3d' => 0x3C,
- 'ptgAreaErr3d' => 0x3D,
- 'ptgArrayV' => 0x40,
- 'ptgFuncV' => 0x41,
- 'ptgFuncVarV' => 0x42,
- 'ptgNameV' => 0x43,
- 'ptgRefV' => 0x44,
- 'ptgAreaV' => 0x45,
- 'ptgMemAreaV' => 0x46,
- 'ptgMemErrV' => 0x47,
- 'ptgMemNoMemV' => 0x48,
- 'ptgMemFuncV' => 0x49,
- 'ptgRefErrV' => 0x4A,
- 'ptgAreaErrV' => 0x4B,
- 'ptgRefNV' => 0x4C,
- 'ptgAreaNV' => 0x4D,
- 'ptgMemAreaNV' => 0x4E,
- 'ptgMemNoMemN' => 0x4F,
- 'ptgFuncCEV' => 0x58,
- 'ptgNameXV' => 0x59,
- 'ptgRef3dV' => 0x5A,
- 'ptgArea3dV' => 0x5B,
- 'ptgRefErr3dV' => 0x5C,
- 'ptgAreaErr3d' => 0x5D,
- 'ptgArrayA' => 0x60,
- 'ptgFuncA' => 0x61,
- 'ptgFuncVarA' => 0x62,
- 'ptgNameA' => 0x63,
- 'ptgRefA' => 0x64,
- 'ptgAreaA' => 0x65,
- 'ptgMemAreaA' => 0x66,
- 'ptgMemErrA' => 0x67,
- 'ptgMemNoMemA' => 0x68,
- 'ptgMemFuncA' => 0x69,
- 'ptgRefErrA' => 0x6A,
- 'ptgAreaErrA' => 0x6B,
- 'ptgRefNA' => 0x6C,
- 'ptgAreaNA' => 0x6D,
- 'ptgMemAreaNA' => 0x6E,
- 'ptgMemNoMemN' => 0x6F,
- 'ptgFuncCEA' => 0x78,
- 'ptgNameXA' => 0x79,
- 'ptgRef3dA' => 0x7A,
- 'ptgArea3dA' => 0x7B,
- 'ptgRefErr3dA' => 0x7C,
- 'ptgAreaErr3d' => 0x7D
- );
+ /**
+ * Initialize the ptg and function hashes.
+ *
+ * @access private
+ */
+ private function initializeHashes()
+ {
+ // The Excel ptg indices
+ $this->ptg = array(
+ 'ptgExp' => 0x01,
+ 'ptgTbl' => 0x02,
+ 'ptgAdd' => 0x03,
+ 'ptgSub' => 0x04,
+ 'ptgMul' => 0x05,
+ 'ptgDiv' => 0x06,
+ 'ptgPower' => 0x07,
+ 'ptgConcat' => 0x08,
+ 'ptgLT' => 0x09,
+ 'ptgLE' => 0x0A,
+ 'ptgEQ' => 0x0B,
+ 'ptgGE' => 0x0C,
+ 'ptgGT' => 0x0D,
+ 'ptgNE' => 0x0E,
+ 'ptgIsect' => 0x0F,
+ 'ptgUnion' => 0x10,
+ 'ptgRange' => 0x11,
+ 'ptgUplus' => 0x12,
+ 'ptgUminus' => 0x13,
+ 'ptgPercent' => 0x14,
+ 'ptgParen' => 0x15,
+ 'ptgMissArg' => 0x16,
+ 'ptgStr' => 0x17,
+ 'ptgAttr' => 0x19,
+ 'ptgSheet' => 0x1A,
+ 'ptgEndSheet' => 0x1B,
+ 'ptgErr' => 0x1C,
+ 'ptgBool' => 0x1D,
+ 'ptgInt' => 0x1E,
+ 'ptgNum' => 0x1F,
+ 'ptgArray' => 0x20,
+ 'ptgFunc' => 0x21,
+ 'ptgFuncVar' => 0x22,
+ 'ptgName' => 0x23,
+ 'ptgRef' => 0x24,
+ 'ptgArea' => 0x25,
+ 'ptgMemArea' => 0x26,
+ 'ptgMemErr' => 0x27,
+ 'ptgMemNoMem' => 0x28,
+ 'ptgMemFunc' => 0x29,
+ 'ptgRefErr' => 0x2A,
+ 'ptgAreaErr' => 0x2B,
+ 'ptgRefN' => 0x2C,
+ 'ptgAreaN' => 0x2D,
+ 'ptgMemAreaN' => 0x2E,
+ 'ptgMemNoMemN' => 0x2F,
+ 'ptgNameX' => 0x39,
+ 'ptgRef3d' => 0x3A,
+ 'ptgArea3d' => 0x3B,
+ 'ptgRefErr3d' => 0x3C,
+ 'ptgAreaErr3d' => 0x3D,
+ 'ptgArrayV' => 0x40,
+ 'ptgFuncV' => 0x41,
+ 'ptgFuncVarV' => 0x42,
+ 'ptgNameV' => 0x43,
+ 'ptgRefV' => 0x44,
+ 'ptgAreaV' => 0x45,
+ 'ptgMemAreaV' => 0x46,
+ 'ptgMemErrV' => 0x47,
+ 'ptgMemNoMemV' => 0x48,
+ 'ptgMemFuncV' => 0x49,
+ 'ptgRefErrV' => 0x4A,
+ 'ptgAreaErrV' => 0x4B,
+ 'ptgRefNV' => 0x4C,
+ 'ptgAreaNV' => 0x4D,
+ 'ptgMemAreaNV' => 0x4E,
+ 'ptgMemNoMemN' => 0x4F,
+ 'ptgFuncCEV' => 0x58,
+ 'ptgNameXV' => 0x59,
+ 'ptgRef3dV' => 0x5A,
+ 'ptgArea3dV' => 0x5B,
+ 'ptgRefErr3dV' => 0x5C,
+ 'ptgAreaErr3d' => 0x5D,
+ 'ptgArrayA' => 0x60,
+ 'ptgFuncA' => 0x61,
+ 'ptgFuncVarA' => 0x62,
+ 'ptgNameA' => 0x63,
+ 'ptgRefA' => 0x64,
+ 'ptgAreaA' => 0x65,
+ 'ptgMemAreaA' => 0x66,
+ 'ptgMemErrA' => 0x67,
+ 'ptgMemNoMemA' => 0x68,
+ 'ptgMemFuncA' => 0x69,
+ 'ptgRefErrA' => 0x6A,
+ 'ptgAreaErrA' => 0x6B,
+ 'ptgRefNA' => 0x6C,
+ 'ptgAreaNA' => 0x6D,
+ 'ptgMemAreaNA' => 0x6E,
+ 'ptgMemNoMemN' => 0x6F,
+ 'ptgFuncCEA' => 0x78,
+ 'ptgNameXA' => 0x79,
+ 'ptgRef3dA' => 0x7A,
+ 'ptgArea3dA' => 0x7B,
+ 'ptgRefErr3dA' => 0x7C,
+ 'ptgAreaErr3d' => 0x7D
+ );
- // Thanks to Michael Meeks and Gnumeric for the initial arg values.
- //
- // The following hash was generated by "function_locale.pl" in the distro.
- // Refer to function_locale.pl for non-English function names.
- //
- // The array elements are as follow:
- // ptg: The Excel function ptg code.
- // args: The number of arguments that the function takes:
- // >=0 is a fixed number of arguments.
- // -1 is a variable number of arguments.
- // class: The reference, value or array class of the function args.
- // vol: The function is volatile.
- //
- $this->_functions = array(
- // function ptg args class vol
- 'COUNT' => array( 0, -1, 0, 0 ),
- 'IF' => array( 1, -1, 1, 0 ),
- 'ISNA' => array( 2, 1, 1, 0 ),
- 'ISERROR' => array( 3, 1, 1, 0 ),
- 'SUM' => array( 4, -1, 0, 0 ),
- 'AVERAGE' => array( 5, -1, 0, 0 ),
- 'MIN' => array( 6, -1, 0, 0 ),
- 'MAX' => array( 7, -1, 0, 0 ),
- 'ROW' => array( 8, -1, 0, 0 ),
- 'COLUMN' => array( 9, -1, 0, 0 ),
- 'NA' => array( 10, 0, 0, 0 ),
- 'NPV' => array( 11, -1, 1, 0 ),
- 'STDEV' => array( 12, -1, 0, 0 ),
- 'DOLLAR' => array( 13, -1, 1, 0 ),
- 'FIXED' => array( 14, -1, 1, 0 ),
- 'SIN' => array( 15, 1, 1, 0 ),
- 'COS' => array( 16, 1, 1, 0 ),
- 'TAN' => array( 17, 1, 1, 0 ),
- 'ATAN' => array( 18, 1, 1, 0 ),
- 'PI' => array( 19, 0, 1, 0 ),
- 'SQRT' => array( 20, 1, 1, 0 ),
- 'EXP' => array( 21, 1, 1, 0 ),
- 'LN' => array( 22, 1, 1, 0 ),
- 'LOG10' => array( 23, 1, 1, 0 ),
- 'ABS' => array( 24, 1, 1, 0 ),
- 'INT' => array( 25, 1, 1, 0 ),
- 'SIGN' => array( 26, 1, 1, 0 ),
- 'ROUND' => array( 27, 2, 1, 0 ),
- 'LOOKUP' => array( 28, -1, 0, 0 ),
- 'INDEX' => array( 29, -1, 0, 1 ),
- 'REPT' => array( 30, 2, 1, 0 ),
- 'MID' => array( 31, 3, 1, 0 ),
- 'LEN' => array( 32, 1, 1, 0 ),
- 'VALUE' => array( 33, 1, 1, 0 ),
- 'TRUE' => array( 34, 0, 1, 0 ),
- 'FALSE' => array( 35, 0, 1, 0 ),
- 'AND' => array( 36, -1, 0, 0 ),
- 'OR' => array( 37, -1, 0, 0 ),
- 'NOT' => array( 38, 1, 1, 0 ),
- 'MOD' => array( 39, 2, 1, 0 ),
- 'DCOUNT' => array( 40, 3, 0, 0 ),
- 'DSUM' => array( 41, 3, 0, 0 ),
- 'DAVERAGE' => array( 42, 3, 0, 0 ),
- 'DMIN' => array( 43, 3, 0, 0 ),
- 'DMAX' => array( 44, 3, 0, 0 ),
- 'DSTDEV' => array( 45, 3, 0, 0 ),
- 'VAR' => array( 46, -1, 0, 0 ),
- 'DVAR' => array( 47, 3, 0, 0 ),
- 'TEXT' => array( 48, 2, 1, 0 ),
- 'LINEST' => array( 49, -1, 0, 0 ),
- 'TREND' => array( 50, -1, 0, 0 ),
- 'LOGEST' => array( 51, -1, 0, 0 ),
- 'GROWTH' => array( 52, -1, 0, 0 ),
- 'PV' => array( 56, -1, 1, 0 ),
- 'FV' => array( 57, -1, 1, 0 ),
- 'NPER' => array( 58, -1, 1, 0 ),
- 'PMT' => array( 59, -1, 1, 0 ),
- 'RATE' => array( 60, -1, 1, 0 ),
- 'MIRR' => array( 61, 3, 0, 0 ),
- 'IRR' => array( 62, -1, 0, 0 ),
- 'RAND' => array( 63, 0, 1, 1 ),
- 'MATCH' => array( 64, -1, 0, 0 ),
- 'DATE' => array( 65, 3, 1, 0 ),
- 'TIME' => array( 66, 3, 1, 0 ),
- 'DAY' => array( 67, 1, 1, 0 ),
- 'MONTH' => array( 68, 1, 1, 0 ),
- 'YEAR' => array( 69, 1, 1, 0 ),
- 'WEEKDAY' => array( 70, -1, 1, 0 ),
- 'HOUR' => array( 71, 1, 1, 0 ),
- 'MINUTE' => array( 72, 1, 1, 0 ),
- 'SECOND' => array( 73, 1, 1, 0 ),
- 'NOW' => array( 74, 0, 1, 1 ),
- 'AREAS' => array( 75, 1, 0, 1 ),
- 'ROWS' => array( 76, 1, 0, 1 ),
- 'COLUMNS' => array( 77, 1, 0, 1 ),
- 'OFFSET' => array( 78, -1, 0, 1 ),
- 'SEARCH' => array( 82, -1, 1, 0 ),
- 'TRANSPOSE' => array( 83, 1, 1, 0 ),
- 'TYPE' => array( 86, 1, 1, 0 ),
- 'ATAN2' => array( 97, 2, 1, 0 ),
- 'ASIN' => array( 98, 1, 1, 0 ),
- 'ACOS' => array( 99, 1, 1, 0 ),
- 'CHOOSE' => array( 100, -1, 1, 0 ),
- 'HLOOKUP' => array( 101, -1, 0, 0 ),
- 'VLOOKUP' => array( 102, -1, 0, 0 ),
- 'ISREF' => array( 105, 1, 0, 0 ),
- 'LOG' => array( 109, -1, 1, 0 ),
- 'CHAR' => array( 111, 1, 1, 0 ),
- 'LOWER' => array( 112, 1, 1, 0 ),
- 'UPPER' => array( 113, 1, 1, 0 ),
- 'PROPER' => array( 114, 1, 1, 0 ),
- 'LEFT' => array( 115, -1, 1, 0 ),
- 'RIGHT' => array( 116, -1, 1, 0 ),
- 'EXACT' => array( 117, 2, 1, 0 ),
- 'TRIM' => array( 118, 1, 1, 0 ),
- 'REPLACE' => array( 119, 4, 1, 0 ),
- 'SUBSTITUTE' => array( 120, -1, 1, 0 ),
- 'CODE' => array( 121, 1, 1, 0 ),
- 'FIND' => array( 124, -1, 1, 0 ),
- 'CELL' => array( 125, -1, 0, 1 ),
- 'ISERR' => array( 126, 1, 1, 0 ),
- 'ISTEXT' => array( 127, 1, 1, 0 ),
- 'ISNUMBER' => array( 128, 1, 1, 0 ),
- 'ISBLANK' => array( 129, 1, 1, 0 ),
- 'T' => array( 130, 1, 0, 0 ),
- 'N' => array( 131, 1, 0, 0 ),
- 'DATEVALUE' => array( 140, 1, 1, 0 ),
- 'TIMEVALUE' => array( 141, 1, 1, 0 ),
- 'SLN' => array( 142, 3, 1, 0 ),
- 'SYD' => array( 143, 4, 1, 0 ),
- 'DDB' => array( 144, -1, 1, 0 ),
- 'INDIRECT' => array( 148, -1, 1, 1 ),
- 'CALL' => array( 150, -1, 1, 0 ),
- 'CLEAN' => array( 162, 1, 1, 0 ),
- 'MDETERM' => array( 163, 1, 2, 0 ),
- 'MINVERSE' => array( 164, 1, 2, 0 ),
- 'MMULT' => array( 165, 2, 2, 0 ),
- 'IPMT' => array( 167, -1, 1, 0 ),
- 'PPMT' => array( 168, -1, 1, 0 ),
- 'COUNTA' => array( 169, -1, 0, 0 ),
- 'PRODUCT' => array( 183, -1, 0, 0 ),
- 'FACT' => array( 184, 1, 1, 0 ),
- 'DPRODUCT' => array( 189, 3, 0, 0 ),
- 'ISNONTEXT' => array( 190, 1, 1, 0 ),
- 'STDEVP' => array( 193, -1, 0, 0 ),
- 'VARP' => array( 194, -1, 0, 0 ),
- 'DSTDEVP' => array( 195, 3, 0, 0 ),
- 'DVARP' => array( 196, 3, 0, 0 ),
- 'TRUNC' => array( 197, -1, 1, 0 ),
- 'ISLOGICAL' => array( 198, 1, 1, 0 ),
- 'DCOUNTA' => array( 199, 3, 0, 0 ),
- 'USDOLLAR' => array( 204, -1, 1, 0 ),
- 'FINDB' => array( 205, -1, 1, 0 ),
- 'SEARCHB' => array( 206, -1, 1, 0 ),
- 'REPLACEB' => array( 207, 4, 1, 0 ),
- 'LEFTB' => array( 208, -1, 1, 0 ),
- 'RIGHTB' => array( 209, -1, 1, 0 ),
- 'MIDB' => array( 210, 3, 1, 0 ),
- 'LENB' => array( 211, 1, 1, 0 ),
- 'ROUNDUP' => array( 212, 2, 1, 0 ),
- 'ROUNDDOWN' => array( 213, 2, 1, 0 ),
- 'ASC' => array( 214, 1, 1, 0 ),
- 'DBCS' => array( 215, 1, 1, 0 ),
- 'RANK' => array( 216, -1, 0, 0 ),
- 'ADDRESS' => array( 219, -1, 1, 0 ),
- 'DAYS360' => array( 220, -1, 1, 0 ),
- 'TODAY' => array( 221, 0, 1, 1 ),
- 'VDB' => array( 222, -1, 1, 0 ),
- 'MEDIAN' => array( 227, -1, 0, 0 ),
- 'SUMPRODUCT' => array( 228, -1, 2, 0 ),
- 'SINH' => array( 229, 1, 1, 0 ),
- 'COSH' => array( 230, 1, 1, 0 ),
- 'TANH' => array( 231, 1, 1, 0 ),
- 'ASINH' => array( 232, 1, 1, 0 ),
- 'ACOSH' => array( 233, 1, 1, 0 ),
- 'ATANH' => array( 234, 1, 1, 0 ),
- 'DGET' => array( 235, 3, 0, 0 ),
- 'INFO' => array( 244, 1, 1, 1 ),
- 'DB' => array( 247, -1, 1, 0 ),
- 'FREQUENCY' => array( 252, 2, 0, 0 ),
- 'ERROR.TYPE' => array( 261, 1, 1, 0 ),
- 'REGISTER.ID' => array( 267, -1, 1, 0 ),
- 'AVEDEV' => array( 269, -1, 0, 0 ),
- 'BETADIST' => array( 270, -1, 1, 0 ),
- 'GAMMALN' => array( 271, 1, 1, 0 ),
- 'BETAINV' => array( 272, -1, 1, 0 ),
- 'BINOMDIST' => array( 273, 4, 1, 0 ),
- 'CHIDIST' => array( 274, 2, 1, 0 ),
- 'CHIINV' => array( 275, 2, 1, 0 ),
- 'COMBIN' => array( 276, 2, 1, 0 ),
- 'CONFIDENCE' => array( 277, 3, 1, 0 ),
- 'CRITBINOM' => array( 278, 3, 1, 0 ),
- 'EVEN' => array( 279, 1, 1, 0 ),
- 'EXPONDIST' => array( 280, 3, 1, 0 ),
- 'FDIST' => array( 281, 3, 1, 0 ),
- 'FINV' => array( 282, 3, 1, 0 ),
- 'FISHER' => array( 283, 1, 1, 0 ),
- 'FISHERINV' => array( 284, 1, 1, 0 ),
- 'FLOOR' => array( 285, 2, 1, 0 ),
- 'GAMMADIST' => array( 286, 4, 1, 0 ),
- 'GAMMAINV' => array( 287, 3, 1, 0 ),
- 'CEILING' => array( 288, 2, 1, 0 ),
- 'HYPGEOMDIST' => array( 289, 4, 1, 0 ),
- 'LOGNORMDIST' => array( 290, 3, 1, 0 ),
- 'LOGINV' => array( 291, 3, 1, 0 ),
- 'NEGBINOMDIST' => array( 292, 3, 1, 0 ),
- 'NORMDIST' => array( 293, 4, 1, 0 ),
- 'NORMSDIST' => array( 294, 1, 1, 0 ),
- 'NORMINV' => array( 295, 3, 1, 0 ),
- 'NORMSINV' => array( 296, 1, 1, 0 ),
- 'STANDARDIZE' => array( 297, 3, 1, 0 ),
- 'ODD' => array( 298, 1, 1, 0 ),
- 'PERMUT' => array( 299, 2, 1, 0 ),
- 'POISSON' => array( 300, 3, 1, 0 ),
- 'TDIST' => array( 301, 3, 1, 0 ),
- 'WEIBULL' => array( 302, 4, 1, 0 ),
- 'SUMXMY2' => array( 303, 2, 2, 0 ),
- 'SUMX2MY2' => array( 304, 2, 2, 0 ),
- 'SUMX2PY2' => array( 305, 2, 2, 0 ),
- 'CHITEST' => array( 306, 2, 2, 0 ),
- 'CORREL' => array( 307, 2, 2, 0 ),
- 'COVAR' => array( 308, 2, 2, 0 ),
- 'FORECAST' => array( 309, 3, 2, 0 ),
- 'FTEST' => array( 310, 2, 2, 0 ),
- 'INTERCEPT' => array( 311, 2, 2, 0 ),
- 'PEARSON' => array( 312, 2, 2, 0 ),
- 'RSQ' => array( 313, 2, 2, 0 ),
- 'STEYX' => array( 314, 2, 2, 0 ),
- 'SLOPE' => array( 315, 2, 2, 0 ),
- 'TTEST' => array( 316, 4, 2, 0 ),
- 'PROB' => array( 317, -1, 2, 0 ),
- 'DEVSQ' => array( 318, -1, 0, 0 ),
- 'GEOMEAN' => array( 319, -1, 0, 0 ),
- 'HARMEAN' => array( 320, -1, 0, 0 ),
- 'SUMSQ' => array( 321, -1, 0, 0 ),
- 'KURT' => array( 322, -1, 0, 0 ),
- 'SKEW' => array( 323, -1, 0, 0 ),
- 'ZTEST' => array( 324, -1, 0, 0 ),
- 'LARGE' => array( 325, 2, 0, 0 ),
- 'SMALL' => array( 326, 2, 0, 0 ),
- 'QUARTILE' => array( 327, 2, 0, 0 ),
- 'PERCENTILE' => array( 328, 2, 0, 0 ),
- 'PERCENTRANK' => array( 329, -1, 0, 0 ),
- 'MODE' => array( 330, -1, 2, 0 ),
- 'TRIMMEAN' => array( 331, 2, 0, 0 ),
- 'TINV' => array( 332, 2, 1, 0 ),
- 'CONCATENATE' => array( 336, -1, 1, 0 ),
- 'POWER' => array( 337, 2, 1, 0 ),
- 'RADIANS' => array( 342, 1, 1, 0 ),
- 'DEGREES' => array( 343, 1, 1, 0 ),
- 'SUBTOTAL' => array( 344, -1, 0, 0 ),
- 'SUMIF' => array( 345, -1, 0, 0 ),
- 'COUNTIF' => array( 346, 2, 0, 0 ),
- 'COUNTBLANK' => array( 347, 1, 0, 0 ),
- 'ISPMT' => array( 350, 4, 1, 0 ),
- 'DATEDIF' => array( 351, 3, 1, 0 ),
- 'DATESTRING' => array( 352, 1, 1, 0 ),
- 'NUMBERSTRING' => array( 353, 2, 1, 0 ),
- 'ROMAN' => array( 354, -1, 1, 0 ),
- 'GETPIVOTDATA' => array( 358, -1, 0, 0 ),
- 'HYPERLINK' => array( 359, -1, 1, 0 ),
- 'PHONETIC' => array( 360, 1, 0, 0 ),
- 'AVERAGEA' => array( 361, -1, 0, 0 ),
- 'MAXA' => array( 362, -1, 0, 0 ),
- 'MINA' => array( 363, -1, 0, 0 ),
- 'STDEVPA' => array( 364, -1, 0, 0 ),
- 'VARPA' => array( 365, -1, 0, 0 ),
- 'STDEVA' => array( 366, -1, 0, 0 ),
- 'VARA' => array( 367, -1, 0, 0 ),
- 'BAHTTEXT' => array( 368, 1, 0, 0 ),
- );
- }
+ // Thanks to Michael Meeks and Gnumeric for the initial arg values.
+ //
+ // The following hash was generated by "function_locale.pl" in the distro.
+ // Refer to function_locale.pl for non-English function names.
+ //
+ // The array elements are as follow:
+ // ptg: The Excel function ptg code.
+ // args: The number of arguments that the function takes:
+ // >=0 is a fixed number of arguments.
+ // -1 is a variable number of arguments.
+ // class: The reference, value or array class of the function args.
+ // vol: The function is volatile.
+ //
+ $this->functions = array(
+ // function ptg args class vol
+ 'COUNT' => array( 0, -1, 0, 0 ),
+ 'IF' => array( 1, -1, 1, 0 ),
+ 'ISNA' => array( 2, 1, 1, 0 ),
+ 'ISERROR' => array( 3, 1, 1, 0 ),
+ 'SUM' => array( 4, -1, 0, 0 ),
+ 'AVERAGE' => array( 5, -1, 0, 0 ),
+ 'MIN' => array( 6, -1, 0, 0 ),
+ 'MAX' => array( 7, -1, 0, 0 ),
+ 'ROW' => array( 8, -1, 0, 0 ),
+ 'COLUMN' => array( 9, -1, 0, 0 ),
+ 'NA' => array( 10, 0, 0, 0 ),
+ 'NPV' => array( 11, -1, 1, 0 ),
+ 'STDEV' => array( 12, -1, 0, 0 ),
+ 'DOLLAR' => array( 13, -1, 1, 0 ),
+ 'FIXED' => array( 14, -1, 1, 0 ),
+ 'SIN' => array( 15, 1, 1, 0 ),
+ 'COS' => array( 16, 1, 1, 0 ),
+ 'TAN' => array( 17, 1, 1, 0 ),
+ 'ATAN' => array( 18, 1, 1, 0 ),
+ 'PI' => array( 19, 0, 1, 0 ),
+ 'SQRT' => array( 20, 1, 1, 0 ),
+ 'EXP' => array( 21, 1, 1, 0 ),
+ 'LN' => array( 22, 1, 1, 0 ),
+ 'LOG10' => array( 23, 1, 1, 0 ),
+ 'ABS' => array( 24, 1, 1, 0 ),
+ 'INT' => array( 25, 1, 1, 0 ),
+ 'SIGN' => array( 26, 1, 1, 0 ),
+ 'ROUND' => array( 27, 2, 1, 0 ),
+ 'LOOKUP' => array( 28, -1, 0, 0 ),
+ 'INDEX' => array( 29, -1, 0, 1 ),
+ 'REPT' => array( 30, 2, 1, 0 ),
+ 'MID' => array( 31, 3, 1, 0 ),
+ 'LEN' => array( 32, 1, 1, 0 ),
+ 'VALUE' => array( 33, 1, 1, 0 ),
+ 'TRUE' => array( 34, 0, 1, 0 ),
+ 'FALSE' => array( 35, 0, 1, 0 ),
+ 'AND' => array( 36, -1, 0, 0 ),
+ 'OR' => array( 37, -1, 0, 0 ),
+ 'NOT' => array( 38, 1, 1, 0 ),
+ 'MOD' => array( 39, 2, 1, 0 ),
+ 'DCOUNT' => array( 40, 3, 0, 0 ),
+ 'DSUM' => array( 41, 3, 0, 0 ),
+ 'DAVERAGE' => array( 42, 3, 0, 0 ),
+ 'DMIN' => array( 43, 3, 0, 0 ),
+ 'DMAX' => array( 44, 3, 0, 0 ),
+ 'DSTDEV' => array( 45, 3, 0, 0 ),
+ 'VAR' => array( 46, -1, 0, 0 ),
+ 'DVAR' => array( 47, 3, 0, 0 ),
+ 'TEXT' => array( 48, 2, 1, 0 ),
+ 'LINEST' => array( 49, -1, 0, 0 ),
+ 'TREND' => array( 50, -1, 0, 0 ),
+ 'LOGEST' => array( 51, -1, 0, 0 ),
+ 'GROWTH' => array( 52, -1, 0, 0 ),
+ 'PV' => array( 56, -1, 1, 0 ),
+ 'FV' => array( 57, -1, 1, 0 ),
+ 'NPER' => array( 58, -1, 1, 0 ),
+ 'PMT' => array( 59, -1, 1, 0 ),
+ 'RATE' => array( 60, -1, 1, 0 ),
+ 'MIRR' => array( 61, 3, 0, 0 ),
+ 'IRR' => array( 62, -1, 0, 0 ),
+ 'RAND' => array( 63, 0, 1, 1 ),
+ 'MATCH' => array( 64, -1, 0, 0 ),
+ 'DATE' => array( 65, 3, 1, 0 ),
+ 'TIME' => array( 66, 3, 1, 0 ),
+ 'DAY' => array( 67, 1, 1, 0 ),
+ 'MONTH' => array( 68, 1, 1, 0 ),
+ 'YEAR' => array( 69, 1, 1, 0 ),
+ 'WEEKDAY' => array( 70, -1, 1, 0 ),
+ 'HOUR' => array( 71, 1, 1, 0 ),
+ 'MINUTE' => array( 72, 1, 1, 0 ),
+ 'SECOND' => array( 73, 1, 1, 0 ),
+ 'NOW' => array( 74, 0, 1, 1 ),
+ 'AREAS' => array( 75, 1, 0, 1 ),
+ 'ROWS' => array( 76, 1, 0, 1 ),
+ 'COLUMNS' => array( 77, 1, 0, 1 ),
+ 'OFFSET' => array( 78, -1, 0, 1 ),
+ 'SEARCH' => array( 82, -1, 1, 0 ),
+ 'TRANSPOSE' => array( 83, 1, 1, 0 ),
+ 'TYPE' => array( 86, 1, 1, 0 ),
+ 'ATAN2' => array( 97, 2, 1, 0 ),
+ 'ASIN' => array( 98, 1, 1, 0 ),
+ 'ACOS' => array( 99, 1, 1, 0 ),
+ 'CHOOSE' => array( 100, -1, 1, 0 ),
+ 'HLOOKUP' => array( 101, -1, 0, 0 ),
+ 'VLOOKUP' => array( 102, -1, 0, 0 ),
+ 'ISREF' => array( 105, 1, 0, 0 ),
+ 'LOG' => array( 109, -1, 1, 0 ),
+ 'CHAR' => array( 111, 1, 1, 0 ),
+ 'LOWER' => array( 112, 1, 1, 0 ),
+ 'UPPER' => array( 113, 1, 1, 0 ),
+ 'PROPER' => array( 114, 1, 1, 0 ),
+ 'LEFT' => array( 115, -1, 1, 0 ),
+ 'RIGHT' => array( 116, -1, 1, 0 ),
+ 'EXACT' => array( 117, 2, 1, 0 ),
+ 'TRIM' => array( 118, 1, 1, 0 ),
+ 'REPLACE' => array( 119, 4, 1, 0 ),
+ 'SUBSTITUTE' => array( 120, -1, 1, 0 ),
+ 'CODE' => array( 121, 1, 1, 0 ),
+ 'FIND' => array( 124, -1, 1, 0 ),
+ 'CELL' => array( 125, -1, 0, 1 ),
+ 'ISERR' => array( 126, 1, 1, 0 ),
+ 'ISTEXT' => array( 127, 1, 1, 0 ),
+ 'ISNUMBER' => array( 128, 1, 1, 0 ),
+ 'ISBLANK' => array( 129, 1, 1, 0 ),
+ 'T' => array( 130, 1, 0, 0 ),
+ 'N' => array( 131, 1, 0, 0 ),
+ 'DATEVALUE' => array( 140, 1, 1, 0 ),
+ 'TIMEVALUE' => array( 141, 1, 1, 0 ),
+ 'SLN' => array( 142, 3, 1, 0 ),
+ 'SYD' => array( 143, 4, 1, 0 ),
+ 'DDB' => array( 144, -1, 1, 0 ),
+ 'INDIRECT' => array( 148, -1, 1, 1 ),
+ 'CALL' => array( 150, -1, 1, 0 ),
+ 'CLEAN' => array( 162, 1, 1, 0 ),
+ 'MDETERM' => array( 163, 1, 2, 0 ),
+ 'MINVERSE' => array( 164, 1, 2, 0 ),
+ 'MMULT' => array( 165, 2, 2, 0 ),
+ 'IPMT' => array( 167, -1, 1, 0 ),
+ 'PPMT' => array( 168, -1, 1, 0 ),
+ 'COUNTA' => array( 169, -1, 0, 0 ),
+ 'PRODUCT' => array( 183, -1, 0, 0 ),
+ 'FACT' => array( 184, 1, 1, 0 ),
+ 'DPRODUCT' => array( 189, 3, 0, 0 ),
+ 'ISNONTEXT' => array( 190, 1, 1, 0 ),
+ 'STDEVP' => array( 193, -1, 0, 0 ),
+ 'VARP' => array( 194, -1, 0, 0 ),
+ 'DSTDEVP' => array( 195, 3, 0, 0 ),
+ 'DVARP' => array( 196, 3, 0, 0 ),
+ 'TRUNC' => array( 197, -1, 1, 0 ),
+ 'ISLOGICAL' => array( 198, 1, 1, 0 ),
+ 'DCOUNTA' => array( 199, 3, 0, 0 ),
+ 'USDOLLAR' => array( 204, -1, 1, 0 ),
+ 'FINDB' => array( 205, -1, 1, 0 ),
+ 'SEARCHB' => array( 206, -1, 1, 0 ),
+ 'REPLACEB' => array( 207, 4, 1, 0 ),
+ 'LEFTB' => array( 208, -1, 1, 0 ),
+ 'RIGHTB' => array( 209, -1, 1, 0 ),
+ 'MIDB' => array( 210, 3, 1, 0 ),
+ 'LENB' => array( 211, 1, 1, 0 ),
+ 'ROUNDUP' => array( 212, 2, 1, 0 ),
+ 'ROUNDDOWN' => array( 213, 2, 1, 0 ),
+ 'ASC' => array( 214, 1, 1, 0 ),
+ 'DBCS' => array( 215, 1, 1, 0 ),
+ 'RANK' => array( 216, -1, 0, 0 ),
+ 'ADDRESS' => array( 219, -1, 1, 0 ),
+ 'DAYS360' => array( 220, -1, 1, 0 ),
+ 'TODAY' => array( 221, 0, 1, 1 ),
+ 'VDB' => array( 222, -1, 1, 0 ),
+ 'MEDIAN' => array( 227, -1, 0, 0 ),
+ 'SUMPRODUCT' => array( 228, -1, 2, 0 ),
+ 'SINH' => array( 229, 1, 1, 0 ),
+ 'COSH' => array( 230, 1, 1, 0 ),
+ 'TANH' => array( 231, 1, 1, 0 ),
+ 'ASINH' => array( 232, 1, 1, 0 ),
+ 'ACOSH' => array( 233, 1, 1, 0 ),
+ 'ATANH' => array( 234, 1, 1, 0 ),
+ 'DGET' => array( 235, 3, 0, 0 ),
+ 'INFO' => array( 244, 1, 1, 1 ),
+ 'DB' => array( 247, -1, 1, 0 ),
+ 'FREQUENCY' => array( 252, 2, 0, 0 ),
+ 'ERROR.TYPE' => array( 261, 1, 1, 0 ),
+ 'REGISTER.ID' => array( 267, -1, 1, 0 ),
+ 'AVEDEV' => array( 269, -1, 0, 0 ),
+ 'BETADIST' => array( 270, -1, 1, 0 ),
+ 'GAMMALN' => array( 271, 1, 1, 0 ),
+ 'BETAINV' => array( 272, -1, 1, 0 ),
+ 'BINOMDIST' => array( 273, 4, 1, 0 ),
+ 'CHIDIST' => array( 274, 2, 1, 0 ),
+ 'CHIINV' => array( 275, 2, 1, 0 ),
+ 'COMBIN' => array( 276, 2, 1, 0 ),
+ 'CONFIDENCE' => array( 277, 3, 1, 0 ),
+ 'CRITBINOM' => array( 278, 3, 1, 0 ),
+ 'EVEN' => array( 279, 1, 1, 0 ),
+ 'EXPONDIST' => array( 280, 3, 1, 0 ),
+ 'FDIST' => array( 281, 3, 1, 0 ),
+ 'FINV' => array( 282, 3, 1, 0 ),
+ 'FISHER' => array( 283, 1, 1, 0 ),
+ 'FISHERINV' => array( 284, 1, 1, 0 ),
+ 'FLOOR' => array( 285, 2, 1, 0 ),
+ 'GAMMADIST' => array( 286, 4, 1, 0 ),
+ 'GAMMAINV' => array( 287, 3, 1, 0 ),
+ 'CEILING' => array( 288, 2, 1, 0 ),
+ 'HYPGEOMDIST' => array( 289, 4, 1, 0 ),
+ 'LOGNORMDIST' => array( 290, 3, 1, 0 ),
+ 'LOGINV' => array( 291, 3, 1, 0 ),
+ 'NEGBINOMDIST' => array( 292, 3, 1, 0 ),
+ 'NORMDIST' => array( 293, 4, 1, 0 ),
+ 'NORMSDIST' => array( 294, 1, 1, 0 ),
+ 'NORMINV' => array( 295, 3, 1, 0 ),
+ 'NORMSINV' => array( 296, 1, 1, 0 ),
+ 'STANDARDIZE' => array( 297, 3, 1, 0 ),
+ 'ODD' => array( 298, 1, 1, 0 ),
+ 'PERMUT' => array( 299, 2, 1, 0 ),
+ 'POISSON' => array( 300, 3, 1, 0 ),
+ 'TDIST' => array( 301, 3, 1, 0 ),
+ 'WEIBULL' => array( 302, 4, 1, 0 ),
+ 'SUMXMY2' => array( 303, 2, 2, 0 ),
+ 'SUMX2MY2' => array( 304, 2, 2, 0 ),
+ 'SUMX2PY2' => array( 305, 2, 2, 0 ),
+ 'CHITEST' => array( 306, 2, 2, 0 ),
+ 'CORREL' => array( 307, 2, 2, 0 ),
+ 'COVAR' => array( 308, 2, 2, 0 ),
+ 'FORECAST' => array( 309, 3, 2, 0 ),
+ 'FTEST' => array( 310, 2, 2, 0 ),
+ 'INTERCEPT' => array( 311, 2, 2, 0 ),
+ 'PEARSON' => array( 312, 2, 2, 0 ),
+ 'RSQ' => array( 313, 2, 2, 0 ),
+ 'STEYX' => array( 314, 2, 2, 0 ),
+ 'SLOPE' => array( 315, 2, 2, 0 ),
+ 'TTEST' => array( 316, 4, 2, 0 ),
+ 'PROB' => array( 317, -1, 2, 0 ),
+ 'DEVSQ' => array( 318, -1, 0, 0 ),
+ 'GEOMEAN' => array( 319, -1, 0, 0 ),
+ 'HARMEAN' => array( 320, -1, 0, 0 ),
+ 'SUMSQ' => array( 321, -1, 0, 0 ),
+ 'KURT' => array( 322, -1, 0, 0 ),
+ 'SKEW' => array( 323, -1, 0, 0 ),
+ 'ZTEST' => array( 324, -1, 0, 0 ),
+ 'LARGE' => array( 325, 2, 0, 0 ),
+ 'SMALL' => array( 326, 2, 0, 0 ),
+ 'QUARTILE' => array( 327, 2, 0, 0 ),
+ 'PERCENTILE' => array( 328, 2, 0, 0 ),
+ 'PERCENTRANK' => array( 329, -1, 0, 0 ),
+ 'MODE' => array( 330, -1, 2, 0 ),
+ 'TRIMMEAN' => array( 331, 2, 0, 0 ),
+ 'TINV' => array( 332, 2, 1, 0 ),
+ 'CONCATENATE' => array( 336, -1, 1, 0 ),
+ 'POWER' => array( 337, 2, 1, 0 ),
+ 'RADIANS' => array( 342, 1, 1, 0 ),
+ 'DEGREES' => array( 343, 1, 1, 0 ),
+ 'SUBTOTAL' => array( 344, -1, 0, 0 ),
+ 'SUMIF' => array( 345, -1, 0, 0 ),
+ 'COUNTIF' => array( 346, 2, 0, 0 ),
+ 'COUNTBLANK' => array( 347, 1, 0, 0 ),
+ 'ISPMT' => array( 350, 4, 1, 0 ),
+ 'DATEDIF' => array( 351, 3, 1, 0 ),
+ 'DATESTRING' => array( 352, 1, 1, 0 ),
+ 'NUMBERSTRING' => array( 353, 2, 1, 0 ),
+ 'ROMAN' => array( 354, -1, 1, 0 ),
+ 'GETPIVOTDATA' => array( 358, -1, 0, 0 ),
+ 'HYPERLINK' => array( 359, -1, 1, 0 ),
+ 'PHONETIC' => array( 360, 1, 0, 0 ),
+ 'AVERAGEA' => array( 361, -1, 0, 0 ),
+ 'MAXA' => array( 362, -1, 0, 0 ),
+ 'MINA' => array( 363, -1, 0, 0 ),
+ 'STDEVPA' => array( 364, -1, 0, 0 ),
+ 'VARPA' => array( 365, -1, 0, 0 ),
+ 'STDEVA' => array( 366, -1, 0, 0 ),
+ 'VARA' => array( 367, -1, 0, 0 ),
+ 'BAHTTEXT' => array( 368, 1, 0, 0 ),
+ );
+ }
- /**
- * Convert a token to the proper ptg value.
- *
- * @access private
- * @param mixed $token The token to convert.
- * @return mixed the converted token on success
- */
- function _convert($token)
- {
- if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token)) {
- return $this->_convertString($token);
+ /**
+ * Convert a token to the proper ptg value.
+ *
+ * @access private
+ * @param mixed $token The token to convert.
+ * @return mixed the converted token on success
+ */
+ private function convert($token)
+ {
+ if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token)) {
+ return $this->convertString($token);
- } elseif (is_numeric($token)) {
- return $this->_convertNumber($token);
+ } elseif (is_numeric($token)) {
+ return $this->convertNumber($token);
- // match references like A1 or $A$1
- } elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/',$token)) {
- return $this->_convertRef2d($token);
+ // match references like A1 or $A$1
+ } elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/', $token)) {
+ return $this->convertRef2d($token);
- // match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1
- } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) {
- return $this->_convertRef3d($token);
+ // match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) {
+ return $this->convertRef3d($token);
- // match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1
- } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u",$token)) {
- return $this->_convertRef3d($token);
+ // match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) {
+ return $this->convertRef3d($token);
- // match ranges like A1:B2 or $A$1:$B$2
- } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) {
- return $this->_convertRange2d($token);
+ // match ranges like A1:B2 or $A$1:$B$2
+ } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) {
+ return $this->convertRange2d($token);
- // match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2
- } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) {
- return $this->_convertRange3d($token);
+ // match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) {
+ return $this->convertRange3d($token);
- // match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2
- } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u",$token)) {
- return $this->_convertRange3d($token);
+ // match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) {
+ return $this->convertRange3d($token);
- // operators (including parentheses)
- } elseif (isset($this->ptg[$token])) {
- return pack("C", $this->ptg[$token]);
+ // operators (including parentheses)
+ } elseif (isset($this->ptg[$token])) {
+ return pack("C", $this->ptg[$token]);
// match error codes
- } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') {
- return $this->_convertError($token);
+ } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') {
+ return $this->convertError($token);
- // commented so argument number can be processed correctly. See toReversePolish().
- /*elseif (preg_match("/[A-Z0-9\xc0-\xdc\.]+/",$token))
- {
- return($this->_convertFunction($token,$this->_func_args));
- }*/
+ // commented so argument number can be processed correctly. See toReversePolish().
+ /*elseif (preg_match("/[A-Z0-9\xc0-\xdc\.]+/", $token))
+ {
+ return($this->convertFunction($token, $this->_func_args));
+ }*/
- // if it's an argument, ignore the token (the argument remains)
- } elseif ($token == 'arg') {
- return '';
- }
+ // if it's an argument, ignore the token (the argument remains)
+ } elseif ($token == 'arg') {
+ return '';
+ }
- // TODO: use real error codes
- throw new PHPExcel_Writer_Exception("Unknown token $token");
- }
+ // TODO: use real error codes
+ throw new PHPExcel_Writer_Exception("Unknown token $token");
+ }
- /**
- * Convert a number token to ptgInt or ptgNum
- *
- * @access private
- * @param mixed $num an integer or double for conversion to its ptg value
- */
- function _convertNumber($num)
- {
- // Integer in the range 0..2**16-1
- if ((preg_match("/^\d+$/", $num)) and ($num <= 65535)) {
- return pack("Cv", $this->ptg['ptgInt'], $num);
- } else { // A float
- if (PHPExcel_Writer_Excel5_BIFFwriter::getByteOrder()) { // if it's Big Endian
- $num = strrev($num);
- }
- return pack("Cd", $this->ptg['ptgNum'], $num);
- }
- }
+ /**
+ * Convert a number token to ptgInt or ptgNum
+ *
+ * @access private
+ * @param mixed $num an integer or double for conversion to its ptg value
+ */
+ private function convertNumber($num)
+ {
+ // Integer in the range 0..2**16-1
+ if ((preg_match("/^\d+$/", $num)) and ($num <= 65535)) {
+ return pack("Cv", $this->ptg['ptgInt'], $num);
+ } else { // A float
+ if (PHPExcel_Writer_Excel5_BIFFwriter::getByteOrder()) { // if it's Big Endian
+ $num = strrev($num);
+ }
+ return pack("Cd", $this->ptg['ptgNum'], $num);
+ }
+ }
- /**
- * Convert a string token to ptgStr
- *
- * @access private
- * @param string $string A string for conversion to its ptg value.
- * @return mixed the converted token on success
- */
- function _convertString($string)
- {
- // chop away beggining and ending quotes
- $string = substr($string, 1, strlen($string) - 2);
- if (strlen($string) > 255) {
- throw new PHPExcel_Writer_Exception("String is too long");
- }
+ /**
+ * Convert a string token to ptgStr
+ *
+ * @access private
+ * @param string $string A string for conversion to its ptg value.
+ * @return mixed the converted token on success
+ */
+ private function convertString($string)
+ {
+ // chop away beggining and ending quotes
+ $string = substr($string, 1, strlen($string) - 2);
+ if (strlen($string) > 255) {
+ throw new PHPExcel_Writer_Exception("String is too long");
+ }
- return pack('C', $this->ptg['ptgStr']) . PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($string);
- }
+ return pack('C', $this->ptg['ptgStr']) . PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($string);
+ }
- /**
- * Convert a function to a ptgFunc or ptgFuncVarV depending on the number of
- * args that it takes.
- *
- * @access private
- * @param string $token The name of the function for convertion to ptg value.
- * @param integer $num_args The number of arguments the function receives.
- * @return string The packed ptg for the function
- */
- function _convertFunction($token, $num_args)
- {
- $args = $this->_functions[$token][1];
-// $volatile = $this->_functions[$token][3];
+ /**
+ * Convert a function to a ptgFunc or ptgFuncVarV depending on the number of
+ * args that it takes.
+ *
+ * @access private
+ * @param string $token The name of the function for convertion to ptg value.
+ * @param integer $num_args The number of arguments the function receives.
+ * @return string The packed ptg for the function
+ */
+ private function convertFunction($token, $num_args)
+ {
+ $args = $this->functions[$token][1];
+// $volatile = $this->functions[$token][3];
- // Fixed number of args eg. TIME($i,$j,$k).
- if ($args >= 0) {
- return pack("Cv", $this->ptg['ptgFuncV'], $this->_functions[$token][0]);
- }
- // Variable number of args eg. SUM($i,$j,$k, ..).
- if ($args == -1) {
- return pack("CCv", $this->ptg['ptgFuncVarV'], $num_args, $this->_functions[$token][0]);
- }
- }
+ // Fixed number of args eg. TIME($i, $j, $k).
+ if ($args >= 0) {
+ return pack("Cv", $this->ptg['ptgFuncV'], $this->functions[$token][0]);
+ }
+ // Variable number of args eg. SUM($i, $j, $k, ..).
+ if ($args == -1) {
+ return pack("CCv", $this->ptg['ptgFuncVarV'], $num_args, $this->functions[$token][0]);
+ }
+ }
- /**
- * Convert an Excel range such as A1:D4 to a ptgRefV.
- *
- * @access private
- * @param string $range An Excel range in the A1:A2
- * @param int $class
- */
- function _convertRange2d($range, $class=0)
- {
+ /**
+ * Convert an Excel range such as A1:D4 to a ptgRefV.
+ *
+ * @access private
+ * @param string $range An Excel range in the A1:A2
+ * @param int $class
+ */
+ private function convertRange2d($range, $class = 0)
+ {
- // TODO: possible class value 0,1,2 check Formula.pm
- // Split the range into 2 cell refs
- if (preg_match('/^(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)\:(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)$/', $range)) {
- list($cell1, $cell2) = explode(':', $range);
- } else {
- // TODO: use real error codes
- throw new PHPExcel_Writer_Exception("Unknown range separator");
- }
+ // TODO: possible class value 0,1,2 check Formula.pm
+ // Split the range into 2 cell refs
+ if (preg_match('/^(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)\:(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)$/', $range)) {
+ list($cell1, $cell2) = explode(':', $range);
+ } else {
+ // TODO: use real error codes
+ throw new PHPExcel_Writer_Exception("Unknown range separator");
+ }
- // Convert the cell references
- list($row1, $col1) = $this->_cellToPackedRowcol($cell1);
- list($row2, $col2) = $this->_cellToPackedRowcol($cell2);
+ // Convert the cell references
+ list($row1, $col1) = $this->cellToPackedRowcol($cell1);
+ list($row2, $col2) = $this->cellToPackedRowcol($cell2);
- // The ptg value depends on the class of the ptg.
- if ($class == 0) {
- $ptgArea = pack("C", $this->ptg['ptgArea']);
- } elseif ($class == 1) {
- $ptgArea = pack("C", $this->ptg['ptgAreaV']);
- } elseif ($class == 2) {
- $ptgArea = pack("C", $this->ptg['ptgAreaA']);
- } else {
- // TODO: use real error codes
- throw new PHPExcel_Writer_Exception("Unknown class $class");
- }
- return $ptgArea . $row1 . $row2 . $col1. $col2;
- }
+ // The ptg value depends on the class of the ptg.
+ if ($class == 0) {
+ $ptgArea = pack("C", $this->ptg['ptgArea']);
+ } elseif ($class == 1) {
+ $ptgArea = pack("C", $this->ptg['ptgAreaV']);
+ } elseif ($class == 2) {
+ $ptgArea = pack("C", $this->ptg['ptgAreaA']);
+ } else {
+ // TODO: use real error codes
+ throw new PHPExcel_Writer_Exception("Unknown class $class");
+ }
+ return $ptgArea . $row1 . $row2 . $col1. $col2;
+ }
- /**
- * Convert an Excel 3d range such as "Sheet1!A1:D4" or "Sheet1:Sheet2!A1:D4" to
- * a ptgArea3d.
- *
- * @access private
- * @param string $token An Excel range in the Sheet1!A1:A2 format.
- * @return mixed The packed ptgArea3d token on success.
- */
- function _convertRange3d($token)
- {
-// $class = 0; // formulas like Sheet1!$A$1:$A$2 in list type data validation need this class (0x3B)
+ /**
+ * Convert an Excel 3d range such as "Sheet1!A1:D4" or "Sheet1:Sheet2!A1:D4" to
+ * a ptgArea3d.
+ *
+ * @access private
+ * @param string $token An Excel range in the Sheet1!A1:A2 format.
+ * @return mixed The packed ptgArea3d token on success.
+ */
+ private function convertRange3d($token)
+ {
+// $class = 0; // formulas like Sheet1!$A$1:$A$2 in list type data validation need this class (0x3B)
- // Split the ref at the ! symbol
- list($ext_ref, $range) = explode('!', $token);
+ // Split the ref at the ! symbol
+ list($ext_ref, $range) = explode('!', $token);
- // Convert the external reference part (different for BIFF8)
- $ext_ref = $this->_getRefIndex($ext_ref);
+ // Convert the external reference part (different for BIFF8)
+ $ext_ref = $this->getRefIndex($ext_ref);
- // Split the range into 2 cell refs
- list($cell1, $cell2) = explode(':', $range);
+ // Split the range into 2 cell refs
+ list($cell1, $cell2) = explode(':', $range);
- // Convert the cell references
- if (preg_match("/^(\\$)?[A-Ia-i]?[A-Za-z](\\$)?(\d+)$/", $cell1)) {
- list($row1, $col1) = $this->_cellToPackedRowcol($cell1);
- list($row2, $col2) = $this->_cellToPackedRowcol($cell2);
- } else { // It's a rows range (like 26:27)
- list($row1, $col1, $row2, $col2) = $this->_rangeToPackedRange($cell1.':'.$cell2);
- }
+ // Convert the cell references
+ if (preg_match("/^(\\$)?[A-Ia-i]?[A-Za-z](\\$)?(\d+)$/", $cell1)) {
+ list($row1, $col1) = $this->cellToPackedRowcol($cell1);
+ list($row2, $col2) = $this->cellToPackedRowcol($cell2);
+ } else { // It's a rows range (like 26:27)
+ list($row1, $col1, $row2, $col2) = $this->rangeToPackedRange($cell1.':'.$cell2);
+ }
- // The ptg value depends on the class of the ptg.
-// if ($class == 0) {
- $ptgArea = pack("C", $this->ptg['ptgArea3d']);
-// } elseif ($class == 1) {
-// $ptgArea = pack("C", $this->ptg['ptgArea3dV']);
-// } elseif ($class == 2) {
-// $ptgArea = pack("C", $this->ptg['ptgArea3dA']);
-// } else {
-// throw new PHPExcel_Writer_Exception("Unknown class $class");
-// }
+ // The ptg value depends on the class of the ptg.
+// if ($class == 0) {
+ $ptgArea = pack("C", $this->ptg['ptgArea3d']);
+// } elseif ($class == 1) {
+// $ptgArea = pack("C", $this->ptg['ptgArea3dV']);
+// } elseif ($class == 2) {
+// $ptgArea = pack("C", $this->ptg['ptgArea3dA']);
+// } else {
+// throw new PHPExcel_Writer_Exception("Unknown class $class");
+// }
- return $ptgArea . $ext_ref . $row1 . $row2 . $col1. $col2;
- }
+ return $ptgArea . $ext_ref . $row1 . $row2 . $col1. $col2;
+ }
- /**
- * Convert an Excel reference such as A1, $B2, C$3 or $D$4 to a ptgRefV.
- *
- * @access private
- * @param string $cell An Excel cell reference
- * @return string The cell in packed() format with the corresponding ptg
- */
- function _convertRef2d($cell)
- {
-// $class = 2; // as far as I know, this is magick.
+ /**
+ * Convert an Excel reference such as A1, $B2, C$3 or $D$4 to a ptgRefV.
+ *
+ * @access private
+ * @param string $cell An Excel cell reference
+ * @return string The cell in packed() format with the corresponding ptg
+ */
+ private function convertRef2d($cell)
+ {
+// $class = 2; // as far as I know, this is magick.
- // Convert the cell reference
- $cell_array = $this->_cellToPackedRowcol($cell);
- list($row, $col) = $cell_array;
+ // Convert the cell reference
+ $cell_array = $this->cellToPackedRowcol($cell);
+ list($row, $col) = $cell_array;
- // The ptg value depends on the class of the ptg.
-// if ($class == 0) {
-// $ptgRef = pack("C", $this->ptg['ptgRef']);
-// } elseif ($class == 1) {
-// $ptgRef = pack("C", $this->ptg['ptgRefV']);
-// } elseif ($class == 2) {
- $ptgRef = pack("C", $this->ptg['ptgRefA']);
-// } else {
-// // TODO: use real error codes
-// throw new PHPExcel_Writer_Exception("Unknown class $class");
-// }
- return $ptgRef.$row.$col;
- }
+ // The ptg value depends on the class of the ptg.
+// if ($class == 0) {
+// $ptgRef = pack("C", $this->ptg['ptgRef']);
+// } elseif ($class == 1) {
+// $ptgRef = pack("C", $this->ptg['ptgRefV']);
+// } elseif ($class == 2) {
+ $ptgRef = pack("C", $this->ptg['ptgRefA']);
+// } else {
+// // TODO: use real error codes
+// throw new PHPExcel_Writer_Exception("Unknown class $class");
+// }
+ return $ptgRef.$row.$col;
+ }
- /**
- * Convert an Excel 3d reference such as "Sheet1!A1" or "Sheet1:Sheet2!A1" to a
- * ptgRef3d.
- *
- * @access private
- * @param string $cell An Excel cell reference
- * @return mixed The packed ptgRef3d token on success.
- */
- function _convertRef3d($cell)
- {
-// $class = 2; // as far as I know, this is magick.
+ /**
+ * Convert an Excel 3d reference such as "Sheet1!A1" or "Sheet1:Sheet2!A1" to a
+ * ptgRef3d.
+ *
+ * @access private
+ * @param string $cell An Excel cell reference
+ * @return mixed The packed ptgRef3d token on success.
+ */
+ private function convertRef3d($cell)
+ {
+// $class = 2; // as far as I know, this is magick.
- // Split the ref at the ! symbol
- list($ext_ref, $cell) = explode('!', $cell);
+ // Split the ref at the ! symbol
+ list($ext_ref, $cell) = explode('!', $cell);
- // Convert the external reference part (different for BIFF8)
- $ext_ref = $this->_getRefIndex($ext_ref);
+ // Convert the external reference part (different for BIFF8)
+ $ext_ref = $this->getRefIndex($ext_ref);
- // Convert the cell reference part
- list($row, $col) = $this->_cellToPackedRowcol($cell);
+ // Convert the cell reference part
+ list($row, $col) = $this->cellToPackedRowcol($cell);
- // The ptg value depends on the class of the ptg.
-// if ($class == 0) {
-// $ptgRef = pack("C", $this->ptg['ptgRef3d']);
-// } elseif ($class == 1) {
-// $ptgRef = pack("C", $this->ptg['ptgRef3dV']);
-// } elseif ($class == 2) {
- $ptgRef = pack("C", $this->ptg['ptgRef3dA']);
-// } else {
-// throw new PHPExcel_Writer_Exception("Unknown class $class");
-// }
+ // The ptg value depends on the class of the ptg.
+// if ($class == 0) {
+// $ptgRef = pack("C", $this->ptg['ptgRef3d']);
+// } elseif ($class == 1) {
+// $ptgRef = pack("C", $this->ptg['ptgRef3dV']);
+// } elseif ($class == 2) {
+ $ptgRef = pack("C", $this->ptg['ptgRef3dA']);
+// } else {
+// throw new PHPExcel_Writer_Exception("Unknown class $class");
+// }
- return $ptgRef . $ext_ref. $row . $col;
- }
+ return $ptgRef . $ext_ref. $row . $col;
+ }
/**
* Convert an error code to a ptgErr
*
- * @access private
- * @param string $errorCode The error code for conversion to its ptg value
- * @return string The error code ptgErr
+ * @access private
+ * @param string $errorCode The error code for conversion to its ptg value
+ * @return string The error code ptgErr
*/
- function _convertError($errorCode)
+ private function convertError($errorCode)
{
- switch ($errorCode) {
- case '#NULL!': return pack("C", 0x00);
- case '#DIV/0!': return pack("C", 0x07);
- case '#VALUE!': return pack("C", 0x0F);
- case '#REF!': return pack("C", 0x17);
- case '#NAME?': return pack("C", 0x1D);
- case '#NUM!': return pack("C", 0x24);
- case '#N/A': return pack("C", 0x2A);
- }
- return pack("C", 0xFF);
+ switch ($errorCode) {
+ case '#NULL!':
+ return pack("C", 0x00);
+ case '#DIV/0!':
+ return pack("C", 0x07);
+ case '#VALUE!':
+ return pack("C", 0x0F);
+ case '#REF!':
+ return pack("C", 0x17);
+ case '#NAME?':
+ return pack("C", 0x1D);
+ case '#NUM!':
+ return pack("C", 0x24);
+ case '#N/A':
+ return pack("C", 0x2A);
+ }
+ return pack("C", 0xFF);
}
- /**
- * Convert the sheet name part of an external reference, for example "Sheet1" or
- * "Sheet1:Sheet2", to a packed structure.
- *
- * @access private
- * @param string $ext_ref The name of the external reference
- * @return string The reference index in packed() format
- */
- function _packExtRef($ext_ref)
- {
- $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any.
- $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any.
+ /**
+ * Convert the sheet name part of an external reference, for example "Sheet1" or
+ * "Sheet1:Sheet2", to a packed structure.
+ *
+ * @access private
+ * @param string $ext_ref The name of the external reference
+ * @return string The reference index in packed() format
+ */
+ private function packExtRef($ext_ref)
+ {
+ $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any.
+ $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any.
- // Check if there is a sheet range eg., Sheet1:Sheet2.
- if (preg_match("/:/", $ext_ref)) {
- list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
+ // Check if there is a sheet range eg., Sheet1:Sheet2.
+ if (preg_match("/:/", $ext_ref)) {
+ list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
- $sheet1 = $this->_getSheetIndex($sheet_name1);
- if ($sheet1 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula");
- }
- $sheet2 = $this->_getSheetIndex($sheet_name2);
- if ($sheet2 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula");
- }
+ $sheet1 = $this->getSheetIndex($sheet_name1);
+ if ($sheet1 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula");
+ }
+ $sheet2 = $this->getSheetIndex($sheet_name2);
+ if ($sheet2 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula");
+ }
- // Reverse max and min sheet numbers if necessary
- if ($sheet1 > $sheet2) {
- list($sheet1, $sheet2) = array($sheet2, $sheet1);
- }
- } else { // Single sheet name only.
- $sheet1 = $this->_getSheetIndex($ext_ref);
- if ($sheet1 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula");
- }
- $sheet2 = $sheet1;
- }
+ // Reverse max and min sheet numbers if necessary
+ if ($sheet1 > $sheet2) {
+ list($sheet1, $sheet2) = array($sheet2, $sheet1);
+ }
+ } else { // Single sheet name only.
+ $sheet1 = $this->getSheetIndex($ext_ref);
+ if ($sheet1 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula");
+ }
+ $sheet2 = $sheet1;
+ }
- // References are stored relative to 0xFFFF.
- $offset = -1 - $sheet1;
+ // References are stored relative to 0xFFFF.
+ $offset = -1 - $sheet1;
- return pack('vdvv', $offset, 0x00, $sheet1, $sheet2);
- }
+ return pack('vdvv', $offset, 0x00, $sheet1, $sheet2);
+ }
- /**
- * Look up the REF index that corresponds to an external sheet name
- * (or range). If it doesn't exist yet add it to the workbook's references
- * array. It assumes all sheet names given must exist.
- *
- * @access private
- * @param string $ext_ref The name of the external reference
- * @return mixed The reference index in packed() format on success
- */
- function _getRefIndex($ext_ref)
- {
- $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any.
- $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any.
- $ext_ref = str_replace('\'\'', '\'', $ext_ref); // Replace escaped '' with '
+ /**
+ * Look up the REF index that corresponds to an external sheet name
+ * (or range). If it doesn't exist yet add it to the workbook's references
+ * array. It assumes all sheet names given must exist.
+ *
+ * @access private
+ * @param string $ext_ref The name of the external reference
+ * @return mixed The reference index in packed() format on success
+ */
+ private function getRefIndex($ext_ref)
+ {
+ $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any.
+ $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any.
+ $ext_ref = str_replace('\'\'', '\'', $ext_ref); // Replace escaped '' with '
- // Check if there is a sheet range eg., Sheet1:Sheet2.
- if (preg_match("/:/", $ext_ref)) {
- list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
+ // Check if there is a sheet range eg., Sheet1:Sheet2.
+ if (preg_match("/:/", $ext_ref)) {
+ list($sheet_name1, $sheet_name2) = explode(':', $ext_ref);
- $sheet1 = $this->_getSheetIndex($sheet_name1);
- if ($sheet1 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula");
- }
- $sheet2 = $this->_getSheetIndex($sheet_name2);
- if ($sheet2 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula");
- }
+ $sheet1 = $this->getSheetIndex($sheet_name1);
+ if ($sheet1 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula");
+ }
+ $sheet2 = $this->getSheetIndex($sheet_name2);
+ if ($sheet2 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula");
+ }
- // Reverse max and min sheet numbers if necessary
- if ($sheet1 > $sheet2) {
- list($sheet1, $sheet2) = array($sheet2, $sheet1);
- }
- } else { // Single sheet name only.
- $sheet1 = $this->_getSheetIndex($ext_ref);
- if ($sheet1 == -1) {
- throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula");
- }
- $sheet2 = $sheet1;
- }
+ // Reverse max and min sheet numbers if necessary
+ if ($sheet1 > $sheet2) {
+ list($sheet1, $sheet2) = array($sheet2, $sheet1);
+ }
+ } else { // Single sheet name only.
+ $sheet1 = $this->getSheetIndex($ext_ref);
+ if ($sheet1 == -1) {
+ throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula");
+ }
+ $sheet2 = $sheet1;
+ }
- // assume all references belong to this document
- $supbook_index = 0x00;
- $ref = pack('vvv', $supbook_index, $sheet1, $sheet2);
- $total_references = count($this->_references);
- $index = -1;
- for ($i = 0; $i < $total_references; ++$i) {
- if ($ref == $this->_references[$i]) {
- $index = $i;
- break;
- }
- }
- // if REF was not found add it to references array
- if ($index == -1) {
- $this->_references[$total_references] = $ref;
- $index = $total_references;
- }
+ // assume all references belong to this document
+ $supbook_index = 0x00;
+ $ref = pack('vvv', $supbook_index, $sheet1, $sheet2);
+ $totalreferences = count($this->references);
+ $index = -1;
+ for ($i = 0; $i < $totalreferences; ++$i) {
+ if ($ref == $this->references[$i]) {
+ $index = $i;
+ break;
+ }
+ }
+ // if REF was not found add it to references array
+ if ($index == -1) {
+ $this->references[$totalreferences] = $ref;
+ $index = $totalreferences;
+ }
- return pack('v', $index);
- }
+ return pack('v', $index);
+ }
- /**
- * Look up the index that corresponds to an external sheet name. The hash of
- * sheet names is updated by the addworksheet() method of the
- * PHPExcel_Writer_Excel5_Workbook class.
- *
- * @access private
- * @param string $sheet_name Sheet name
- * @return integer The sheet index, -1 if the sheet was not found
- */
- function _getSheetIndex($sheet_name)
- {
- if (!isset($this->_ext_sheets[$sheet_name])) {
- return -1;
- } else {
- return $this->_ext_sheets[$sheet_name];
- }
- }
+ /**
+ * Look up the index that corresponds to an external sheet name. The hash of
+ * sheet names is updated by the addworksheet() method of the
+ * PHPExcel_Writer_Excel5_Workbook class.
+ *
+ * @access private
+ * @param string $sheet_name Sheet name
+ * @return integer The sheet index, -1 if the sheet was not found
+ */
+ private function getSheetIndex($sheet_name)
+ {
+ if (!isset($this->externalSheets[$sheet_name])) {
+ return -1;
+ } else {
+ return $this->externalSheets[$sheet_name];
+ }
+ }
- /**
- * This method is used to update the array of sheet names. It is
- * called by the addWorksheet() method of the
- * PHPExcel_Writer_Excel5_Workbook class.
- *
- * @access public
- * @see PHPExcel_Writer_Excel5_Workbook::addWorksheet()
- * @param string $name The name of the worksheet being added
- * @param integer $index The index of the worksheet being added
- */
- function setExtSheet($name, $index)
- {
- $this->_ext_sheets[$name] = $index;
- }
+ /**
+ * This method is used to update the array of sheet names. It is
+ * called by the addWorksheet() method of the
+ * PHPExcel_Writer_Excel5_Workbook class.
+ *
+ * @access public
+ * @see PHPExcel_Writer_Excel5_Workbook::addWorksheet()
+ * @param string $name The name of the worksheet being added
+ * @param integer $index The index of the worksheet being added
+ */
+ public function setExtSheet($name, $index)
+ {
+ $this->externalSheets[$name] = $index;
+ }
- /**
- * pack() row and column into the required 3 or 4 byte format.
- *
- * @access private
- * @param string $cell The Excel cell reference to be packed
- * @return array Array containing the row and column in packed() format
- */
- function _cellToPackedRowcol($cell)
- {
- $cell = strtoupper($cell);
- list($row, $col, $row_rel, $col_rel) = $this->_cellToRowcol($cell);
- if ($col >= 256) {
- throw new PHPExcel_Writer_Exception("Column in: $cell greater than 255");
- }
- if ($row >= 65536) {
- throw new PHPExcel_Writer_Exception("Row in: $cell greater than 65536 ");
- }
+ /**
+ * pack() row and column into the required 3 or 4 byte format.
+ *
+ * @access private
+ * @param string $cell The Excel cell reference to be packed
+ * @return array Array containing the row and column in packed() format
+ */
+ private function cellToPackedRowcol($cell)
+ {
+ $cell = strtoupper($cell);
+ list($row, $col, $row_rel, $col_rel) = $this->cellToRowcol($cell);
+ if ($col >= 256) {
+ throw new PHPExcel_Writer_Exception("Column in: $cell greater than 255");
+ }
+ if ($row >= 65536) {
+ throw new PHPExcel_Writer_Exception("Row in: $cell greater than 65536 ");
+ }
- // Set the high bits to indicate if row or col are relative.
- $col |= $col_rel << 14;
- $col |= $row_rel << 15;
- $col = pack('v', $col);
+ // Set the high bits to indicate if row or col are relative.
+ $col |= $col_rel << 14;
+ $col |= $row_rel << 15;
+ $col = pack('v', $col);
- $row = pack('v', $row);
+ $row = pack('v', $row);
- return array($row, $col);
- }
+ return array($row, $col);
+ }
- /**
- * pack() row range into the required 3 or 4 byte format.
- * Just using maximum col/rows, which is probably not the correct solution
- *
- * @access private
- * @param string $range The Excel range to be packed
- * @return array Array containing (row1,col1,row2,col2) in packed() format
- */
- function _rangeToPackedRange($range)
- {
- preg_match('/(\$)?(\d+)\:(\$)?(\d+)/', $range, $match);
- // return absolute rows if there is a $ in the ref
- $row1_rel = empty($match[1]) ? 1 : 0;
- $row1 = $match[2];
- $row2_rel = empty($match[3]) ? 1 : 0;
- $row2 = $match[4];
- // Convert 1-index to zero-index
- --$row1;
- --$row2;
- // Trick poor inocent Excel
- $col1 = 0;
- $col2 = 65535; // FIXME: maximum possible value for Excel 5 (change this!!!)
+ /**
+ * pack() row range into the required 3 or 4 byte format.
+ * Just using maximum col/rows, which is probably not the correct solution
+ *
+ * @access private
+ * @param string $range The Excel range to be packed
+ * @return array Array containing (row1,col1,row2,col2) in packed() format
+ */
+ private function rangeToPackedRange($range)
+ {
+ preg_match('/(\$)?(\d+)\:(\$)?(\d+)/', $range, $match);
+ // return absolute rows if there is a $ in the ref
+ $row1_rel = empty($match[1]) ? 1 : 0;
+ $row1 = $match[2];
+ $row2_rel = empty($match[3]) ? 1 : 0;
+ $row2 = $match[4];
+ // Convert 1-index to zero-index
+ --$row1;
+ --$row2;
+ // Trick poor inocent Excel
+ $col1 = 0;
+ $col2 = 65535; // FIXME: maximum possible value for Excel 5 (change this!!!)
- // FIXME: this changes for BIFF8
- if (($row1 >= 65536) or ($row2 >= 65536)) {
- throw new PHPExcel_Writer_Exception("Row in: $range greater than 65536 ");
- }
+ // FIXME: this changes for BIFF8
+ if (($row1 >= 65536) or ($row2 >= 65536)) {
+ throw new PHPExcel_Writer_Exception("Row in: $range greater than 65536 ");
+ }
- // Set the high bits to indicate if rows are relative.
- $col1 |= $row1_rel << 15;
- $col2 |= $row2_rel << 15;
- $col1 = pack('v', $col1);
- $col2 = pack('v', $col2);
+ // Set the high bits to indicate if rows are relative.
+ $col1 |= $row1_rel << 15;
+ $col2 |= $row2_rel << 15;
+ $col1 = pack('v', $col1);
+ $col2 = pack('v', $col2);
- $row1 = pack('v', $row1);
- $row2 = pack('v', $row2);
+ $row1 = pack('v', $row1);
+ $row2 = pack('v', $row2);
- return array($row1, $col1, $row2, $col2);
- }
+ return array($row1, $col1, $row2, $col2);
+ }
- /**
- * Convert an Excel cell reference such as A1 or $B2 or C$3 or $D$4 to a zero
- * indexed row and column number. Also returns two (0,1) values to indicate
- * whether the row or column are relative references.
- *
- * @access private
- * @param string $cell The Excel cell reference in A1 format.
- * @return array
- */
- function _cellToRowcol($cell)
- {
- preg_match('/(\$)?([A-I]?[A-Z])(\$)?(\d+)/',$cell,$match);
- // return absolute column if there is a $ in the ref
- $col_rel = empty($match[1]) ? 1 : 0;
- $col_ref = $match[2];
- $row_rel = empty($match[3]) ? 1 : 0;
- $row = $match[4];
+ /**
+ * Convert an Excel cell reference such as A1 or $B2 or C$3 or $D$4 to a zero
+ * indexed row and column number. Also returns two (0,1) values to indicate
+ * whether the row or column are relative references.
+ *
+ * @access private
+ * @param string $cell The Excel cell reference in A1 format.
+ * @return array
+ */
+ private function cellToRowcol($cell)
+ {
+ preg_match('/(\$)?([A-I]?[A-Z])(\$)?(\d+)/', $cell, $match);
+ // return absolute column if there is a $ in the ref
+ $col_rel = empty($match[1]) ? 1 : 0;
+ $col_ref = $match[2];
+ $row_rel = empty($match[3]) ? 1 : 0;
+ $row = $match[4];
- // Convert base26 column string to a number.
- $expn = strlen($col_ref) - 1;
- $col = 0;
- $col_ref_length = strlen($col_ref);
- for ($i = 0; $i < $col_ref_length; ++$i) {
- $col += (ord($col_ref{$i}) - 64) * pow(26, $expn);
- --$expn;
- }
+ // Convert base26 column string to a number.
+ $expn = strlen($col_ref) - 1;
+ $col = 0;
+ $col_ref_length = strlen($col_ref);
+ for ($i = 0; $i < $col_ref_length; ++$i) {
+ $col += (ord($col_ref{$i}) - 64) * pow(26, $expn);
+ --$expn;
+ }
- // Convert 1-index to zero-index
- --$row;
- --$col;
+ // Convert 1-index to zero-index
+ --$row;
+ --$col;
- return array($row, $col, $row_rel, $col_rel);
- }
+ return array($row, $col, $row_rel, $col_rel);
+ }
- /**
- * Advance to the next valid token.
- *
- * @access private
- */
- function _advance()
- {
- $i = $this->_current_char;
- $formula_length = strlen($this->_formula);
- // eat up white spaces
- if ($i < $formula_length) {
- while ($this->_formula{$i} == " ") {
- ++$i;
- }
+ /**
+ * Advance to the next valid token.
+ *
+ * @access private
+ */
+ private function advance()
+ {
+ $i = $this->currentCharacter;
+ $formula_length = strlen($this->formula);
+ // eat up white spaces
+ if ($i < $formula_length) {
+ while ($this->formula{$i} == " ") {
+ ++$i;
+ }
- if ($i < ($formula_length - 1)) {
- $this->_lookahead = $this->_formula{$i+1};
- }
- $token = '';
- }
+ if ($i < ($formula_length - 1)) {
+ $this->lookAhead = $this->formula{$i+1};
+ }
+ $token = '';
+ }
- while ($i < $formula_length) {
- $token .= $this->_formula{$i};
+ while ($i < $formula_length) {
+ $token .= $this->formula{$i};
- if ($i < ($formula_length - 1)) {
- $this->_lookahead = $this->_formula{$i+1};
- } else {
- $this->_lookahead = '';
- }
+ if ($i < ($formula_length - 1)) {
+ $this->lookAhead = $this->formula{$i+1};
+ } else {
+ $this->lookAhead = '';
+ }
- if ($this->_match($token) != '') {
- //if ($i < strlen($this->_formula) - 1) {
- // $this->_lookahead = $this->_formula{$i+1};
- //}
- $this->_current_char = $i + 1;
- $this->_current_token = $token;
- return 1;
- }
+ if ($this->match($token) != '') {
+ //if ($i < strlen($this->formula) - 1) {
+ // $this->lookAhead = $this->formula{$i+1};
+ //}
+ $this->currentCharacter = $i + 1;
+ $this->currentToken = $token;
+ return 1;
+ }
- if ($i < ($formula_length - 2)) {
- $this->_lookahead = $this->_formula{$i+2};
- } else { // if we run out of characters _lookahead becomes empty
- $this->_lookahead = '';
- }
- ++$i;
- }
- //die("Lexical error ".$this->_current_char);
- }
+ if ($i < ($formula_length - 2)) {
+ $this->lookAhead = $this->formula{$i+2};
+ } else { // if we run out of characters lookAhead becomes empty
+ $this->lookAhead = '';
+ }
+ ++$i;
+ }
+ //die("Lexical error ".$this->currentCharacter);
+ }
- /**
- * Checks if it's a valid token.
- *
- * @access private
- * @param mixed $token The token to check.
- * @return mixed The checked token or false on failure
- */
- function _match($token)
- {
- switch($token) {
- case "+":
- case "-":
- case "*":
- case "/":
- case "(":
- case ")":
- case ",":
- case ";":
- case ">=":
- case "<=":
- case "=":
- case "<>":
- case "^":
- case "&":
- case "%":
- return $token;
- break;
- case ">":
- if ($this->_lookahead == '=') { // it's a GE token
- break;
- }
- return $token;
- break;
- case "<":
- // it's a LE or a NE token
- if (($this->_lookahead == '=') or ($this->_lookahead == '>')) {
- break;
- }
- return $token;
- break;
- default:
- // if it's a reference A1 or $A$1 or $A1 or A$1
- if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$token) and
- !preg_match("/[0-9]/",$this->_lookahead) and
- ($this->_lookahead != ':') and ($this->_lookahead != '.') and
- ($this->_lookahead != '!'))
- {
- return $token;
- }
- // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1)
- elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$token) and
- !preg_match("/[0-9]/",$this->_lookahead) and
- ($this->_lookahead != ':') and ($this->_lookahead != '.'))
- {
- return $token;
- }
- // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1)
- elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$token) and
- !preg_match("/[0-9]/",$this->_lookahead) and
- ($this->_lookahead != ':') and ($this->_lookahead != '.'))
- {
- return $token;
- }
- // if it's a range A1:A2 or $A$1:$A$2
- elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $token) and
- !preg_match("/[0-9]/",$this->_lookahead))
- {
- return $token;
- }
- // If it's an external range like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2
- elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$token) and
- !preg_match("/[0-9]/",$this->_lookahead))
- {
- return $token;
- }
- // If it's an external range like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2
- elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$token) and
- !preg_match("/[0-9]/",$this->_lookahead))
- {
- return $token;
- }
- // If it's a number (check that it's not a sheet name or range)
- elseif (is_numeric($token) and
- (!is_numeric($token.$this->_lookahead) or ($this->_lookahead == '')) and
- ($this->_lookahead != '!') and ($this->_lookahead != ':'))
- {
- return $token;
- }
- // If it's a string (of maximum 255 characters)
- elseif (preg_match("/\"([^\"]|\"\"){0,255}\"/",$token) and $this->_lookahead != '"' and (substr_count($token, '"')%2 == 0))
- {
- return $token;
- }
- // If it's an error code
- elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A')
- {
- return $token;
- }
- // if it's a function call
- elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$token) and ($this->_lookahead == "("))
- {
- return $token;
- }
- // It's an argument of some description (e.g. a named range),
- // precise nature yet to be determined
- elseif(substr($token,-1) == ')') {
- return $token;
- }
- return '';
- }
- }
+ /**
+ * Checks if it's a valid token.
+ *
+ * @access private
+ * @param mixed $token The token to check.
+ * @return mixed The checked token or false on failure
+ */
+ private function match($token)
+ {
+ switch ($token) {
+ case "+":
+ case "-":
+ case "*":
+ case "/":
+ case "(":
+ case ")":
+ case ",":
+ case ";":
+ case ">=":
+ case "<=":
+ case "=":
+ case "<>":
+ case "^":
+ case "&":
+ case "%":
+ return $token;
+ break;
+ case ">":
+ if ($this->lookAhead == '=') { // it's a GE token
+ break;
+ }
+ return $token;
+ break;
+ case "<":
+ // it's a LE or a NE token
+ if (($this->lookAhead == '=') or ($this->lookAhead == '>')) {
+ break;
+ }
+ return $token;
+ break;
+ default:
+ // if it's a reference A1 or $A$1 or $A1 or A$1
+ if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/', $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.') and ($this->lookAhead != '!')) {
+ return $token;
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) {
+ // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1)
+ return $token;
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) {
+ // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1)
+ return $token;
+ } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $token) && !preg_match("/[0-9]/", $this->lookAhead)) {
+ // if it's a range A1:A2 or $A$1:$A$2
+ return $token;
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead)) {
+ // If it's an external range like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2
+ return $token;
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead)) {
+ // If it's an external range like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2
+ return $token;
+ } elseif (is_numeric($token) and (!is_numeric($token.$this->lookAhead) or ($this->lookAhead == '')) and ($this->lookAhead != '!') and ($this->lookAhead != ':')) {
+ // If it's a number (check that it's not a sheet name or range)
+ return $token;
+ } elseif (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token) and $this->lookAhead != '"' and (substr_count($token, '"')%2 == 0)) {
+ // If it's a string (of maximum 255 characters)
+ return $token;
+ } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') {
+ // If it's an error code
+ return $token;
+ } elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i", $token) and ($this->lookAhead == "(")) {
+ // if it's a function call
+ return $token;
+ } elseif (substr($token, -1) == ')') {
+ // It's an argument of some description (e.g. a named range),
+ // precise nature yet to be determined
+ return $token;
+ }
+ return '';
+ }
+ }
- /**
- * The parsing method. It parses a formula.
- *
- * @access public
- * @param string $formula The formula to parse, without the initial equal
- * sign (=).
- * @return mixed true on success
- */
- function parse($formula)
- {
- $this->_current_char = 0;
- $this->_formula = $formula;
- $this->_lookahead = isset($formula{1}) ? $formula{1} : '';
- $this->_advance();
- $this->_parse_tree = $this->_condition();
- return true;
- }
+ /**
+ * The parsing method. It parses a formula.
+ *
+ * @access public
+ * @param string $formula The formula to parse, without the initial equal
+ * sign (=).
+ * @return mixed true on success
+ */
+ public function parse($formula)
+ {
+ $this->currentCharacter = 0;
+ $this->formula = $formula;
+ $this->lookAhead = isset($formula{1}) ? $formula{1} : '';
+ $this->advance();
+ $this->parseTree = $this->condition();
+ return true;
+ }
- /**
- * It parses a condition. It assumes the following rule:
- * Cond -> Expr [(">" | "<") Expr]
- *
- * @access private
- * @return mixed The parsed ptg'd tree on success
- */
- function _condition()
- {
- $result = $this->_expression();
- if ($this->_current_token == "<") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgLT', $result, $result2);
- } elseif ($this->_current_token == ">") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgGT', $result, $result2);
- } elseif ($this->_current_token == "<=") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgLE', $result, $result2);
- } elseif ($this->_current_token == ">=") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgGE', $result, $result2);
- } elseif ($this->_current_token == "=") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgEQ', $result, $result2);
- } elseif ($this->_current_token == "<>") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgNE', $result, $result2);
- } elseif ($this->_current_token == "&") {
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgConcat', $result, $result2);
- }
- return $result;
- }
+ /**
+ * It parses a condition. It assumes the following rule:
+ * Cond -> Expr [(">" | "<") Expr]
+ *
+ * @access private
+ * @return mixed The parsed ptg'd tree on success
+ */
+ private function condition()
+ {
+ $result = $this->expression();
+ if ($this->currentToken == "<") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgLT', $result, $result2);
+ } elseif ($this->currentToken == ">") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgGT', $result, $result2);
+ } elseif ($this->currentToken == "<=") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgLE', $result, $result2);
+ } elseif ($this->currentToken == ">=") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgGE', $result, $result2);
+ } elseif ($this->currentToken == "=") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgEQ', $result, $result2);
+ } elseif ($this->currentToken == "<>") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgNE', $result, $result2);
+ } elseif ($this->currentToken == "&") {
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgConcat', $result, $result2);
+ }
+ return $result;
+ }
- /**
- * It parses a expression. It assumes the following rule:
- * Expr -> Term [("+" | "-") Term]
- * -> "string"
- * -> "-" Term : Negative value
- * -> "+" Term : Positive value
- * -> Error code
- *
- * @access private
- * @return mixed The parsed ptg'd tree on success
- */
- function _expression()
- {
- // If it's a string return a string node
- if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $this->_current_token)) {
- $tmp = str_replace('""', '"', $this->_current_token);
- if (($tmp == '"') || ($tmp == '')) $tmp = '""'; // Trap for "" that has been used for an empty string
- $result = $this->_createTree($tmp, '', '');
- $this->_advance();
- return $result;
+ /**
+ * It parses a expression. It assumes the following rule:
+ * Expr -> Term [("+" | "-") Term]
+ * -> "string"
+ * -> "-" Term : Negative value
+ * -> "+" Term : Positive value
+ * -> Error code
+ *
+ * @access private
+ * @return mixed The parsed ptg'd tree on success
+ */
+ private function expression()
+ {
+ // If it's a string return a string node
+ if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $this->currentToken)) {
+ $tmp = str_replace('""', '"', $this->currentToken);
+ if (($tmp == '"') || ($tmp == '')) {
+ // Trap for "" that has been used for an empty string
+ $tmp = '""';
+ }
+ $result = $this->createTree($tmp, '', '');
+ $this->advance();
+ return $result;
// If it's an error code
- } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $this->_current_token) or $this->_current_token == '#N/A'){
- $result = $this->_createTree($this->_current_token, 'ptgErr', '');
- $this->_advance();
- return $result;
- // If it's a negative value
- } elseif ($this->_current_token == "-") {
- // catch "-" Term
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgUminus', $result2, '');
- return $result;
+ } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $this->currentToken) or $this->currentToken == '#N/A') {
+ $result = $this->createTree($this->currentToken, 'ptgErr', '');
+ $this->advance();
+ return $result;
+ // If it's a negative value
+ } elseif ($this->currentToken == "-") {
+ // catch "-" Term
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgUminus', $result2, '');
+ return $result;
// If it's a positive value
- } elseif ($this->_current_token == "+") {
- // catch "+" Term
- $this->_advance();
- $result2 = $this->_expression();
- $result = $this->_createTree('ptgUplus', $result2, '');
- return $result;
- }
- $result = $this->_term();
- while (($this->_current_token == "+") or
- ($this->_current_token == "-") or
- ($this->_current_token == "^")) {
- /**/
- if ($this->_current_token == "+") {
- $this->_advance();
- $result2 = $this->_term();
- $result = $this->_createTree('ptgAdd', $result, $result2);
- } elseif ($this->_current_token == "-") {
- $this->_advance();
- $result2 = $this->_term();
- $result = $this->_createTree('ptgSub', $result, $result2);
- } else {
- $this->_advance();
- $result2 = $this->_term();
- $result = $this->_createTree('ptgPower', $result, $result2);
- }
- }
- return $result;
- }
+ } elseif ($this->currentToken == "+") {
+ // catch "+" Term
+ $this->advance();
+ $result2 = $this->expression();
+ $result = $this->createTree('ptgUplus', $result2, '');
+ return $result;
+ }
+ $result = $this->term();
+ while (($this->currentToken == "+") or
+ ($this->currentToken == "-") or
+ ($this->currentToken == "^")) {
+ /**/
+ if ($this->currentToken == "+") {
+ $this->advance();
+ $result2 = $this->term();
+ $result = $this->createTree('ptgAdd', $result, $result2);
+ } elseif ($this->currentToken == "-") {
+ $this->advance();
+ $result2 = $this->term();
+ $result = $this->createTree('ptgSub', $result, $result2);
+ } else {
+ $this->advance();
+ $result2 = $this->term();
+ $result = $this->createTree('ptgPower', $result, $result2);
+ }
+ }
+ return $result;
+ }
- /**
- * This function just introduces a ptgParen element in the tree, so that Excel
- * doesn't get confused when working with a parenthesized formula afterwards.
- *
- * @access private
- * @see _fact()
- * @return array The parsed ptg'd tree
- */
- function _parenthesizedExpression()
- {
- $result = $this->_createTree('ptgParen', $this->_expression(), '');
- return $result;
- }
+ /**
+ * This function just introduces a ptgParen element in the tree, so that Excel
+ * doesn't get confused when working with a parenthesized formula afterwards.
+ *
+ * @access private
+ * @see fact()
+ * @return array The parsed ptg'd tree
+ */
+ private function parenthesizedExpression()
+ {
+ $result = $this->createTree('ptgParen', $this->expression(), '');
+ return $result;
+ }
- /**
- * It parses a term. It assumes the following rule:
- * Term -> Fact [("*" | "/") Fact]
- *
- * @access private
- * @return mixed The parsed ptg'd tree on success
- */
- function _term()
- {
- $result = $this->_fact();
- while (($this->_current_token == "*") or
- ($this->_current_token == "/")) {
- /**/
- if ($this->_current_token == "*") {
- $this->_advance();
- $result2 = $this->_fact();
- $result = $this->_createTree('ptgMul', $result, $result2);
- } else {
- $this->_advance();
- $result2 = $this->_fact();
- $result = $this->_createTree('ptgDiv', $result, $result2);
- }
- }
- return $result;
- }
+ /**
+ * It parses a term. It assumes the following rule:
+ * Term -> Fact [("*" | "/") Fact]
+ *
+ * @access private
+ * @return mixed The parsed ptg'd tree on success
+ */
+ private function term()
+ {
+ $result = $this->fact();
+ while (($this->currentToken == "*") or
+ ($this->currentToken == "/")) {
+ /**/
+ if ($this->currentToken == "*") {
+ $this->advance();
+ $result2 = $this->fact();
+ $result = $this->createTree('ptgMul', $result, $result2);
+ } else {
+ $this->advance();
+ $result2 = $this->fact();
+ $result = $this->createTree('ptgDiv', $result, $result2);
+ }
+ }
+ return $result;
+ }
- /**
- * It parses a factor. It assumes the following rule:
- * Fact -> ( Expr )
- * | CellRef
- * | CellRange
- * | Number
- * | Function
- *
- * @access private
- * @return mixed The parsed ptg'd tree on success
- */
- function _fact()
- {
- if ($this->_current_token == "(") {
- $this->_advance(); // eat the "("
- $result = $this->_parenthesizedExpression();
- if ($this->_current_token != ")") {
- throw new PHPExcel_Writer_Exception("')' token expected.");
- }
- $this->_advance(); // eat the ")"
- return $result;
- }
- // if it's a reference
- if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$this->_current_token))
- {
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1)
- elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$this->_current_token))
- {
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1)
- elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u",$this->_current_token))
- {
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // if it's a range A1:B2 or $A$1:$B$2
- elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/',$this->_current_token) or
- preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+\.\.(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/',$this->_current_token))
- {
- // must be an error?
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // If it's an external range (Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2)
- elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$this->_current_token))
- {
- // must be an error?
- //$result = $this->_current_token;
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // If it's an external range ('Sheet1'!A1:B2 or 'Sheet1'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1'!$A$1:$B$2)
- elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u",$this->_current_token))
- {
- // must be an error?
- //$result = $this->_current_token;
- $result = $this->_createTree($this->_current_token, '', '');
- $this->_advance();
- return $result;
- }
- // If it's a number or a percent
- elseif (is_numeric($this->_current_token))
- {
- if($this->_lookahead == '%'){
- $result = $this->_createTree('ptgPercent', $this->_current_token, '');
- $this->_advance(); // Skip the percentage operator once we've pre-built that tree
- } else {
- $result = $this->_createTree($this->_current_token, '', '');
- }
- $this->_advance();
- return $result;
- }
- // if it's a function call
- elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$this->_current_token))
- {
- $result = $this->_func();
- return $result;
- }
- throw new PHPExcel_Writer_Exception("Syntax error: ".$this->_current_token.
- ", lookahead: ".$this->_lookahead.
- ", current char: ".$this->_current_char);
- }
+ /**
+ * It parses a factor. It assumes the following rule:
+ * Fact -> ( Expr )
+ * | CellRef
+ * | CellRange
+ * | Number
+ * | Function
+ *
+ * @access private
+ * @return mixed The parsed ptg'd tree on success
+ */
+ private function fact()
+ {
+ if ($this->currentToken == "(") {
+ $this->advance(); // eat the "("
+ $result = $this->parenthesizedExpression();
+ if ($this->currentToken != ")") {
+ throw new PHPExcel_Writer_Exception("')' token expected.");
+ }
+ $this->advance(); // eat the ")"
+ return $result;
+ }
+ // if it's a reference
+ if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/', $this->currentToken)) {
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) {
+ // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1)
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) {
+ // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1)
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $this->currentToken) or
+ preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+\.\.(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $this->currentToken)) {
+ // if it's a range A1:B2 or $A$1:$B$2
+ // must be an error?
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) {
+ // If it's an external range (Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2)
+ // must be an error?
+ //$result = $this->currentToken;
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) {
+ // If it's an external range ('Sheet1'!A1:B2 or 'Sheet1'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1'!$A$1:$B$2)
+ // must be an error?
+ //$result = $this->currentToken;
+ $result = $this->createTree($this->currentToken, '', '');
+ $this->advance();
+ return $result;
+ } elseif (is_numeric($this->currentToken)) {
+ // If it's a number or a percent
+ if ($this->lookAhead == '%') {
+ $result = $this->createTree('ptgPercent', $this->currentToken, '');
+ $this->advance(); // Skip the percentage operator once we've pre-built that tree
+ } else {
+ $result = $this->createTree($this->currentToken, '', '');
+ }
+ $this->advance();
+ return $result;
+ } elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i", $this->currentToken)) {
+ // if it's a function call
+ $result = $this->func();
+ return $result;
+ }
+ throw new PHPExcel_Writer_Exception("Syntax error: ".$this->currentToken.", lookahead: ".$this->lookAhead.", current char: ".$this->currentCharacter);
+ }
- /**
- * It parses a function call. It assumes the following rule:
- * Func -> ( Expr [,Expr]* )
- *
- * @access private
- * @return mixed The parsed ptg'd tree on success
- */
- function _func()
- {
- $num_args = 0; // number of arguments received
- $function = strtoupper($this->_current_token);
- $result = ''; // initialize result
- $this->_advance();
- $this->_advance(); // eat the "("
- while ($this->_current_token != ')') {
- /**/
- if ($num_args > 0) {
- if ($this->_current_token == "," or
- $this->_current_token == ";")
- {
- $this->_advance(); // eat the "," or ";"
- } else {
- throw new PHPExcel_Writer_Exception("Syntax error: comma expected in ".
- "function $function, arg #{$num_args}");
- }
- $result2 = $this->_condition();
- $result = $this->_createTree('arg', $result, $result2);
- } else { // first argument
- $result2 = $this->_condition();
- $result = $this->_createTree('arg', '', $result2);
- }
- ++$num_args;
- }
- if (!isset($this->_functions[$function])) {
- throw new PHPExcel_Writer_Exception("Function $function() doesn't exist");
- }
- $args = $this->_functions[$function][1];
- // If fixed number of args eg. TIME($i,$j,$k). Check that the number of args is valid.
- if (($args >= 0) and ($args != $num_args)) {
- throw new PHPExcel_Writer_Exception("Incorrect number of arguments in function $function() ");
- }
+ /**
+ * It parses a function call. It assumes the following rule:
+ * Func -> ( Expr [,Expr]* )
+ *
+ * @access private
+ * @return mixed The parsed ptg'd tree on success
+ */
+ private function func()
+ {
+ $num_args = 0; // number of arguments received
+ $function = strtoupper($this->currentToken);
+ $result = ''; // initialize result
+ $this->advance();
+ $this->advance(); // eat the "("
+ while ($this->currentToken != ')') {
+ /**/
+ if ($num_args > 0) {
+ if ($this->currentToken == "," || $this->currentToken == ";") {
+ $this->advance(); // eat the "," or ";"
+ } else {
+ throw new PHPExcel_Writer_Exception("Syntax error: comma expected in function $function, arg #{$num_args}");
+ }
+ $result2 = $this->condition();
+ $result = $this->createTree('arg', $result, $result2);
+ } else { // first argument
+ $result2 = $this->condition();
+ $result = $this->createTree('arg', '', $result2);
+ }
+ ++$num_args;
+ }
+ if (!isset($this->functions[$function])) {
+ throw new PHPExcel_Writer_Exception("Function $function() doesn't exist");
+ }
+ $args = $this->functions[$function][1];
+ // If fixed number of args eg. TIME($i, $j, $k). Check that the number of args is valid.
+ if (($args >= 0) and ($args != $num_args)) {
+ throw new PHPExcel_Writer_Exception("Incorrect number of arguments in function $function() ");
+ }
- $result = $this->_createTree($function, $result, $num_args);
- $this->_advance(); // eat the ")"
- return $result;
- }
+ $result = $this->createTree($function, $result, $num_args);
+ $this->advance(); // eat the ")"
+ return $result;
+ }
- /**
- * Creates a tree. In fact an array which may have one or two arrays (sub-trees)
- * as elements.
- *
- * @access private
- * @param mixed $value The value of this node.
- * @param mixed $left The left array (sub-tree) or a final node.
- * @param mixed $right The right array (sub-tree) or a final node.
- * @return array A tree
- */
- function _createTree($value, $left, $right)
- {
- return array('value' => $value, 'left' => $left, 'right' => $right);
- }
+ /**
+ * Creates a tree. In fact an array which may have one or two arrays (sub-trees)
+ * as elements.
+ *
+ * @access private
+ * @param mixed $value The value of this node.
+ * @param mixed $left The left array (sub-tree) or a final node.
+ * @param mixed $right The right array (sub-tree) or a final node.
+ * @return array A tree
+ */
+ private function createTree($value, $left, $right)
+ {
+ return array('value' => $value, 'left' => $left, 'right' => $right);
+ }
- /**
- * Builds a string containing the tree in reverse polish notation (What you
- * would use in a HP calculator stack).
- * The following tree:
- *
- * +
- * / \
- * 2 3
- *
- * produces: "23+"
- *
- * The following tree:
- *
- * +
- * / \
- * 3 *
- * / \
- * 6 A1
- *
- * produces: "36A1*+"
- *
- * In fact all operands, functions, references, etc... are written as ptg's
- *
- * @access public
- * @param array $tree The optional tree to convert.
- * @return string The tree in reverse polish notation
- */
- function toReversePolish($tree = array())
- {
- $polish = ""; // the string we are going to return
- if (empty($tree)) { // If it's the first call use _parse_tree
- $tree = $this->_parse_tree;
- }
-
- if (is_array($tree['left'])) {
- $converted_tree = $this->toReversePolish($tree['left']);
- $polish .= $converted_tree;
- } elseif ($tree['left'] != '') { // It's a final node
- $converted_tree = $this->_convert($tree['left']);
- $polish .= $converted_tree;
- }
- if (is_array($tree['right'])) {
- $converted_tree = $this->toReversePolish($tree['right']);
- $polish .= $converted_tree;
- } elseif ($tree['right'] != '') { // It's a final node
- $converted_tree = $this->_convert($tree['right']);
- $polish .= $converted_tree;
- }
- // if it's a function convert it here (so we can set it's arguments)
- if (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/",$tree['value']) and
- !preg_match('/^([A-Ia-i]?[A-Za-z])(\d+)$/',$tree['value']) and
- !preg_match("/^[A-Ia-i]?[A-Za-z](\d+)\.\.[A-Ia-i]?[A-Za-z](\d+)$/",$tree['value']) and
- !is_numeric($tree['value']) and
- !isset($this->ptg[$tree['value']]))
- {
- // left subtree for a function is always an array.
- if ($tree['left'] != '') {
- $left_tree = $this->toReversePolish($tree['left']);
- } else {
- $left_tree = '';
- }
- // add it's left subtree and return.
- return $left_tree.$this->_convertFunction($tree['value'], $tree['right']);
- } else {
- $converted_tree = $this->_convert($tree['value']);
- }
- $polish .= $converted_tree;
- return $polish;
- }
+ /**
+ * Builds a string containing the tree in reverse polish notation (What you
+ * would use in a HP calculator stack).
+ * The following tree:
+ *
+ * +
+ * / \
+ * 2 3
+ *
+ * produces: "23+"
+ *
+ * The following tree:
+ *
+ * +
+ * / \
+ * 3 *
+ * / \
+ * 6 A1
+ *
+ * produces: "36A1*+"
+ *
+ * In fact all operands, functions, references, etc... are written as ptg's
+ *
+ * @access public
+ * @param array $tree The optional tree to convert.
+ * @return string The tree in reverse polish notation
+ */
+ public function toReversePolish($tree = array())
+ {
+ $polish = ""; // the string we are going to return
+ if (empty($tree)) { // If it's the first call use parseTree
+ $tree = $this->parseTree;
+ }
+ if (is_array($tree['left'])) {
+ $converted_tree = $this->toReversePolish($tree['left']);
+ $polish .= $converted_tree;
+ } elseif ($tree['left'] != '') { // It's a final node
+ $converted_tree = $this->convert($tree['left']);
+ $polish .= $converted_tree;
+ }
+ if (is_array($tree['right'])) {
+ $converted_tree = $this->toReversePolish($tree['right']);
+ $polish .= $converted_tree;
+ } elseif ($tree['right'] != '') { // It's a final node
+ $converted_tree = $this->convert($tree['right']);
+ $polish .= $converted_tree;
+ }
+ // if it's a function convert it here (so we can set it's arguments)
+ if (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/", $tree['value']) and
+ !preg_match('/^([A-Ia-i]?[A-Za-z])(\d+)$/', $tree['value']) and
+ !preg_match("/^[A-Ia-i]?[A-Za-z](\d+)\.\.[A-Ia-i]?[A-Za-z](\d+)$/", $tree['value']) and
+ !is_numeric($tree['value']) and
+ !isset($this->ptg[$tree['value']])) {
+ // left subtree for a function is always an array.
+ if ($tree['left'] != '') {
+ $left_tree = $this->toReversePolish($tree['left']);
+ } else {
+ $left_tree = '';
+ }
+ // add it's left subtree and return.
+ return $left_tree.$this->convertFunction($tree['value'], $tree['right']);
+ } else {
+ $converted_tree = $this->convert($tree['value']);
+ }
+ $polish .= $converted_tree;
+ return $polish;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php
index ecfac5dc..8b068437 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Workbook.php
@@ -1,8 +1,9 @@
index in workbook
- *
- * @var array
- */
- private $_addedFonts = array();
-
- /**
- * Shared number formats
- *
- * @var array
- */
- private $_numberFormats = array();
-
- /**
- * Added number formats. Maps from numberFormat's hash => index in workbook
- *
- * @var array
- */
- private $_addedNumberFormats = array();
-
- /**
- * Sizes of the binary worksheet streams
- *
- * @var array
- */
- private $_worksheetSizes = array();
-
- /**
- * Offsets of the binary worksheet streams relative to the start of the global workbook stream
- *
- * @var array
- */
- private $_worksheetOffsets = array();
-
- /**
- * Total number of shared strings in workbook
- *
- * @var int
- */
- private $_str_total;
-
- /**
- * Number of unique shared strings in workbook
- *
- * @var int
- */
- private $_str_unique;
-
- /**
- * Array of unique shared strings in workbook
- *
- * @var array
- */
- private $_str_table;
-
- /**
- * Color cache
- */
- private $_colors;
-
- /**
- * Escher object corresponding to MSODRAWINGGROUP
- *
- * @var PHPExcel_Shared_Escher
- */
- private $_escher;
-
-
- /**
- * Class constructor
- *
- * @param PHPExcel $phpExcel The Workbook
- * @param int &$str_total Total number of strings
- * @param int &$str_unique Total number of unique strings
- * @param array &$str_table String Table
- * @param array &$colors Colour Table
- * @param mixed $parser The formula parser created for the Workbook
- */
- public function __construct(PHPExcel $phpExcel = null,
- &$str_total, &$str_unique, &$str_table, &$colors,
- $parser )
- {
- // It needs to call its parent's constructor explicitly
- parent::__construct();
-
- $this->_parser = $parser;
- $this->_biffsize = 0;
- $this->_palette = array();
- $this->_country_code = -1;
-
- $this->_str_total = &$str_total;
- $this->_str_unique = &$str_unique;
- $this->_str_table = &$str_table;
- $this->_colors = &$colors;
- $this->_setPaletteXl97();
-
- $this->_phpExcel = $phpExcel;
-
- // set BIFFwriter limit for CONTINUE records
- // $this->_limit = 8224;
- $this->_codepage = 0x04B0;
-
- // Add empty sheets and Build color cache
- $countSheets = $phpExcel->getSheetCount();
- for ($i = 0; $i < $countSheets; ++$i) {
- $phpSheet = $phpExcel->getSheet($i);
-
- $this->_parser->setExtSheet($phpSheet->getTitle(), $i); // Register worksheet name with parser
-
- $supbook_index = 0x00;
- $ref = pack('vvv', $supbook_index, $i, $i);
- $this->_parser->_references[] = $ref; // Register reference with parser
-
- // Sheet tab colors?
- if ($phpSheet->isTabColorSet()) {
- $this->_addColor($phpSheet->getTabColor()->getRGB());
- }
- }
-
- }
-
- /**
- * Add a new XF writer
- *
- * @param PHPExcel_Style
- * @param boolean Is it a style XF?
- * @return int Index to XF record
- */
- public function addXfWriter($style, $isStyleXf = false)
- {
- $xfWriter = new PHPExcel_Writer_Excel5_Xf($style);
- $xfWriter->setIsStyleXf($isStyleXf);
-
- // Add the font if not already added
- $fontIndex = $this->_addFont($style->getFont());
-
- // Assign the font index to the xf record
- $xfWriter->setFontIndex($fontIndex);
-
- // Background colors, best to treat these after the font so black will come after white in custom palette
- $xfWriter->setFgColor($this->_addColor($style->getFill()->getStartColor()->getRGB()));
- $xfWriter->setBgColor($this->_addColor($style->getFill()->getEndColor()->getRGB()));
- $xfWriter->setBottomColor($this->_addColor($style->getBorders()->getBottom()->getColor()->getRGB()));
- $xfWriter->setTopColor($this->_addColor($style->getBorders()->getTop()->getColor()->getRGB()));
- $xfWriter->setRightColor($this->_addColor($style->getBorders()->getRight()->getColor()->getRGB()));
- $xfWriter->setLeftColor($this->_addColor($style->getBorders()->getLeft()->getColor()->getRGB()));
- $xfWriter->setDiagColor($this->_addColor($style->getBorders()->getDiagonal()->getColor()->getRGB()));
-
- // Add the number format if it is not a built-in one and not already added
- if ($style->getNumberFormat()->getBuiltInFormatCode() === false) {
- $numberFormatHashCode = $style->getNumberFormat()->getHashCode();
-
- if (isset($this->_addedNumberFormats[$numberFormatHashCode])) {
- $numberFormatIndex = $this->_addedNumberFormats[$numberFormatHashCode];
- } else {
- $numberFormatIndex = 164 + count($this->_numberFormats);
- $this->_numberFormats[$numberFormatIndex] = $style->getNumberFormat();
- $this->_addedNumberFormats[$numberFormatHashCode] = $numberFormatIndex;
- }
- } else {
- $numberFormatIndex = (int) $style->getNumberFormat()->getBuiltInFormatCode();
- }
-
- // Assign the number format index to xf record
- $xfWriter->setNumberFormatIndex($numberFormatIndex);
-
- $this->_xfWriters[] = $xfWriter;
-
- $xfIndex = count($this->_xfWriters) - 1;
- return $xfIndex;
- }
-
- /**
- * Add a font to added fonts
- *
- * @param PHPExcel_Style_Font $font
- * @return int Index to FONT record
- */
- public function _addFont(PHPExcel_Style_Font $font)
- {
- $fontHashCode = $font->getHashCode();
- if(isset($this->_addedFonts[$fontHashCode])){
- $fontIndex = $this->_addedFonts[$fontHashCode];
- } else {
- $countFonts = count($this->_fontWriters);
- $fontIndex = ($countFonts < 4) ? $countFonts : $countFonts + 1;
-
- $fontWriter = new PHPExcel_Writer_Excel5_Font($font);
- $fontWriter->setColorIndex($this->_addColor($font->getColor()->getRGB()));
- $this->_fontWriters[] = $fontWriter;
-
- $this->_addedFonts[$fontHashCode] = $fontIndex;
- }
- return $fontIndex;
- }
-
- /**
- * Alter color palette adding a custom color
- *
- * @param string $rgb E.g. 'FF00AA'
- * @return int Color index
- */
- private function _addColor($rgb) {
- if (!isset($this->_colors[$rgb])) {
- if (count($this->_colors) < 57) {
- // then we add a custom color altering the palette
- $colorIndex = 8 + count($this->_colors);
- $this->_palette[$colorIndex] =
- array(
- hexdec(substr($rgb, 0, 2)),
- hexdec(substr($rgb, 2, 2)),
- hexdec(substr($rgb, 4)),
- 0
- );
- $this->_colors[$rgb] = $colorIndex;
- } else {
- // no room for more custom colors, just map to black
- $colorIndex = 0;
- }
- } else {
- // fetch already added custom color
- $colorIndex = $this->_colors[$rgb];
- }
-
- return $colorIndex;
- }
-
- /**
- * Sets the colour palette to the Excel 97+ default.
- *
- * @access private
- */
- function _setPaletteXl97()
- {
- $this->_palette = array(
- 0x08 => array(0x00, 0x00, 0x00, 0x00),
- 0x09 => array(0xff, 0xff, 0xff, 0x00),
- 0x0A => array(0xff, 0x00, 0x00, 0x00),
- 0x0B => array(0x00, 0xff, 0x00, 0x00),
- 0x0C => array(0x00, 0x00, 0xff, 0x00),
- 0x0D => array(0xff, 0xff, 0x00, 0x00),
- 0x0E => array(0xff, 0x00, 0xff, 0x00),
- 0x0F => array(0x00, 0xff, 0xff, 0x00),
- 0x10 => array(0x80, 0x00, 0x00, 0x00),
- 0x11 => array(0x00, 0x80, 0x00, 0x00),
- 0x12 => array(0x00, 0x00, 0x80, 0x00),
- 0x13 => array(0x80, 0x80, 0x00, 0x00),
- 0x14 => array(0x80, 0x00, 0x80, 0x00),
- 0x15 => array(0x00, 0x80, 0x80, 0x00),
- 0x16 => array(0xc0, 0xc0, 0xc0, 0x00),
- 0x17 => array(0x80, 0x80, 0x80, 0x00),
- 0x18 => array(0x99, 0x99, 0xff, 0x00),
- 0x19 => array(0x99, 0x33, 0x66, 0x00),
- 0x1A => array(0xff, 0xff, 0xcc, 0x00),
- 0x1B => array(0xcc, 0xff, 0xff, 0x00),
- 0x1C => array(0x66, 0x00, 0x66, 0x00),
- 0x1D => array(0xff, 0x80, 0x80, 0x00),
- 0x1E => array(0x00, 0x66, 0xcc, 0x00),
- 0x1F => array(0xcc, 0xcc, 0xff, 0x00),
- 0x20 => array(0x00, 0x00, 0x80, 0x00),
- 0x21 => array(0xff, 0x00, 0xff, 0x00),
- 0x22 => array(0xff, 0xff, 0x00, 0x00),
- 0x23 => array(0x00, 0xff, 0xff, 0x00),
- 0x24 => array(0x80, 0x00, 0x80, 0x00),
- 0x25 => array(0x80, 0x00, 0x00, 0x00),
- 0x26 => array(0x00, 0x80, 0x80, 0x00),
- 0x27 => array(0x00, 0x00, 0xff, 0x00),
- 0x28 => array(0x00, 0xcc, 0xff, 0x00),
- 0x29 => array(0xcc, 0xff, 0xff, 0x00),
- 0x2A => array(0xcc, 0xff, 0xcc, 0x00),
- 0x2B => array(0xff, 0xff, 0x99, 0x00),
- 0x2C => array(0x99, 0xcc, 0xff, 0x00),
- 0x2D => array(0xff, 0x99, 0xcc, 0x00),
- 0x2E => array(0xcc, 0x99, 0xff, 0x00),
- 0x2F => array(0xff, 0xcc, 0x99, 0x00),
- 0x30 => array(0x33, 0x66, 0xff, 0x00),
- 0x31 => array(0x33, 0xcc, 0xcc, 0x00),
- 0x32 => array(0x99, 0xcc, 0x00, 0x00),
- 0x33 => array(0xff, 0xcc, 0x00, 0x00),
- 0x34 => array(0xff, 0x99, 0x00, 0x00),
- 0x35 => array(0xff, 0x66, 0x00, 0x00),
- 0x36 => array(0x66, 0x66, 0x99, 0x00),
- 0x37 => array(0x96, 0x96, 0x96, 0x00),
- 0x38 => array(0x00, 0x33, 0x66, 0x00),
- 0x39 => array(0x33, 0x99, 0x66, 0x00),
- 0x3A => array(0x00, 0x33, 0x00, 0x00),
- 0x3B => array(0x33, 0x33, 0x00, 0x00),
- 0x3C => array(0x99, 0x33, 0x00, 0x00),
- 0x3D => array(0x99, 0x33, 0x66, 0x00),
- 0x3E => array(0x33, 0x33, 0x99, 0x00),
- 0x3F => array(0x33, 0x33, 0x33, 0x00),
- );
- }
-
- /**
- * Assemble worksheets into a workbook and send the BIFF data to an OLE
- * storage.
- *
- * @param array $pWorksheetSizes The sizes in bytes of the binary worksheet streams
- * @return string Binary data for workbook stream
- */
- public function writeWorkbook($pWorksheetSizes = null)
- {
- $this->_worksheetSizes = $pWorksheetSizes;
-
- // Calculate the number of selected worksheet tabs and call the finalization
- // methods for each worksheet
- $total_worksheets = $this->_phpExcel->getSheetCount();
-
- // Add part 1 of the Workbook globals, what goes before the SHEET records
- $this->_storeBof(0x0005);
- $this->_writeCodepage();
- $this->_writeWindow1();
-
- $this->_writeDatemode();
- $this->_writeAllFonts();
- $this->_writeAllNumFormats();
- $this->_writeAllXfs();
- $this->_writeAllStyles();
- $this->_writePalette();
-
- // Prepare part 3 of the workbook global stream, what goes after the SHEET records
- $part3 = '';
- if ($this->_country_code != -1) {
- $part3 .= $this->_writeCountry();
- }
- $part3 .= $this->_writeRecalcId();
-
- $part3 .= $this->_writeSupbookInternal();
- /* TODO: store external SUPBOOK records and XCT and CRN records
- in case of external references for BIFF8 */
- $part3 .= $this->_writeExternsheetBiff8();
- $part3 .= $this->_writeAllDefinedNamesBiff8();
- $part3 .= $this->_writeMsoDrawingGroup();
- $part3 .= $this->_writeSharedStringsTable();
-
- $part3 .= $this->writeEof();
-
- // Add part 2 of the Workbook globals, the SHEET records
- $this->_calcSheetOffsets();
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $this->_writeBoundsheet($this->_phpExcel->getSheet($i), $this->_worksheetOffsets[$i]);
- }
-
- // Add part 3 of the Workbook globals
- $this->_data .= $part3;
-
- return $this->_data;
- }
-
- /**
- * Calculate offsets for Worksheet BOF records.
- *
- * @access private
- */
- function _calcSheetOffsets()
- {
- $boundsheet_length = 10; // fixed length for a BOUNDSHEET record
-
- // size of Workbook globals part 1 + 3
- $offset = $this->_datasize;
-
- // add size of Workbook globals part 2, the length of the SHEET records
- $total_worksheets = count($this->_phpExcel->getAllSheets());
- foreach ($this->_phpExcel->getWorksheetIterator() as $sheet) {
- $offset += $boundsheet_length + strlen(PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheet->getTitle()));
- }
-
- // add the sizes of each of the Sheet substreams, respectively
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $this->_worksheetOffsets[$i] = $offset;
- $offset += $this->_worksheetSizes[$i];
- }
- $this->_biffsize = $offset;
- }
-
- /**
- * Store the Excel FONT records.
- */
- private function _writeAllFonts()
- {
- foreach ($this->_fontWriters as $fontWriter) {
- $this->_append($fontWriter->writeFont());
- }
- }
-
- /**
- * Store user defined numerical formats i.e. FORMAT records
- */
- private function _writeAllNumFormats()
- {
- foreach ($this->_numberFormats as $numberFormatIndex => $numberFormat) {
- $this->_writeNumFormat($numberFormat->getFormatCode(), $numberFormatIndex);
- }
- }
-
- /**
- * Write all XF records.
- */
- private function _writeAllXfs()
- {
- foreach ($this->_xfWriters as $xfWriter) {
- $this->_append($xfWriter->writeXf());
- }
- }
-
- /**
- * Write all STYLE records.
- */
- private function _writeAllStyles()
- {
- $this->_writeStyle();
- }
-
- /**
- * Write the EXTERNCOUNT and EXTERNSHEET records. These are used as indexes for
- * the NAME records.
- */
- private function _writeExterns()
- {
- $countSheets = $this->_phpExcel->getSheetCount();
- // Create EXTERNCOUNT with number of worksheets
- $this->_writeExterncount($countSheets);
-
- // Create EXTERNSHEET for each worksheet
- for ($i = 0; $i < $countSheets; ++$i) {
- $this->_writeExternsheet($this->_phpExcel->getSheet($i)->getTitle());
- }
- }
-
- /**
- * Write the NAME record to define the print area and the repeat rows and cols.
- */
- private function _writeNames()
- {
- // total number of sheets
- $total_worksheets = $this->_phpExcel->getSheetCount();
-
- // Create the print area NAME records
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup();
- // Write a Name record if the print area has been defined
- if ($sheetSetup->isPrintAreaSet()) {
- // Print area
- $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea());
- $printArea = $printArea[0];
- $printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]);
- $printArea[1] = PHPExcel_Cell::coordinateFromString($printArea[1]);
-
- $print_rowmin = $printArea[0][1] - 1;
- $print_rowmax = $printArea[1][1] - 1;
- $print_colmin = PHPExcel_Cell::columnIndexFromString($printArea[0][0]) - 1;
- $print_colmax = PHPExcel_Cell::columnIndexFromString($printArea[1][0]) - 1;
-
- $this->_writeNameShort(
- $i, // sheet index
- 0x06, // NAME type
- $print_rowmin,
- $print_rowmax,
- $print_colmin,
- $print_colmax
- );
- }
- }
-
- // Create the print title NAME records
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup();
-
- // simultaneous repeatColumns repeatRows
- if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) {
- $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
- $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
- $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
-
- $repeat = $sheetSetup->getRowsToRepeatAtTop();
- $rowmin = $repeat[0] - 1;
- $rowmax = $repeat[1] - 1;
-
- $this->_writeNameLong(
- $i, // sheet index
- 0x07, // NAME type
- $rowmin,
- $rowmax,
- $colmin,
- $colmax
- );
-
- // (exclusive) either repeatColumns or repeatRows
- } else if ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) {
-
- // Columns to repeat
- if ($sheetSetup->isColumnsToRepeatAtLeftSet()) {
- $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
- $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
- $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
- } else {
- $colmin = 0;
- $colmax = 255;
- }
-
- // Rows to repeat
- if ($sheetSetup->isRowsToRepeatAtTopSet()) {
- $repeat = $sheetSetup->getRowsToRepeatAtTop();
- $rowmin = $repeat[0] - 1;
- $rowmax = $repeat[1] - 1;
- } else {
- $rowmin = 0;
- $rowmax = 65535;
- }
-
- $this->_writeNameShort(
- $i, // sheet index
- 0x07, // NAME type
- $rowmin,
- $rowmax,
- $colmin,
- $colmax
- );
- }
- }
- }
-
- /**
- * Writes all the DEFINEDNAME records (BIFF8).
- * So far this is only used for repeating rows/columns (print titles) and print areas
- */
- private function _writeAllDefinedNamesBiff8()
- {
- $chunk = '';
-
- // Named ranges
- if (count($this->_phpExcel->getNamedRanges()) > 0) {
- // Loop named ranges
- $namedRanges = $this->_phpExcel->getNamedRanges();
- foreach ($namedRanges as $namedRange) {
-
- // Create absolute coordinate
- $range = PHPExcel_Cell::splitRange($namedRange->getRange());
- for ($i = 0; $i < count($range); $i++) {
- $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteCoordinate($range[$i][0]);
- if (isset($range[$i][1])) {
- $range[$i][1] = PHPExcel_Cell::absoluteCoordinate($range[$i][1]);
- }
- }
- $range = PHPExcel_Cell::buildRange($range); // e.g. Sheet1!$A$1:$B$2
-
- // parse formula
- try {
- $error = $this->_parser->parse($range);
- $formulaData = $this->_parser->toReversePolish();
-
- // make sure tRef3d is of type tRef3dR (0x3A)
- if (isset($formulaData{0}) and ($formulaData{0} == "\x7A" or $formulaData{0} == "\x5A")) {
- $formulaData = "\x3A" . substr($formulaData, 1);
- }
-
- if ($namedRange->getLocalOnly()) {
- // local scope
- $scope = $this->_phpExcel->getIndex($namedRange->getScope()) + 1;
- } else {
- // global scope
- $scope = 0;
- }
- $chunk .= $this->writeData($this->_writeDefinedNameBiff8($namedRange->getName(), $formulaData, $scope, false));
-
- } catch(PHPExcel_Exception $e) {
- // do nothing
- }
- }
- }
-
- // total number of sheets
- $total_worksheets = $this->_phpExcel->getSheetCount();
-
- // write the print titles (repeating rows, columns), if any
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup();
- // simultaneous repeatColumns repeatRows
- if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) {
- $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
- $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
- $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
-
- $repeat = $sheetSetup->getRowsToRepeatAtTop();
- $rowmin = $repeat[0] - 1;
- $rowmax = $repeat[1] - 1;
-
- // construct formula data manually
- $formulaData = pack('Cv', 0x29, 0x17); // tMemFunc
- $formulaData .= pack('Cvvvvv', 0x3B, $i, 0, 65535, $colmin, $colmax); // tArea3d
- $formulaData .= pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, 0, 255); // tArea3d
- $formulaData .= pack('C', 0x10); // tList
-
- // store the DEFINEDNAME record
- $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true));
-
- // (exclusive) either repeatColumns or repeatRows
- } else if ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) {
-
- // Columns to repeat
- if ($sheetSetup->isColumnsToRepeatAtLeftSet()) {
- $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
- $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
- $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
- } else {
- $colmin = 0;
- $colmax = 255;
- }
- // Rows to repeat
- if ($sheetSetup->isRowsToRepeatAtTopSet()) {
- $repeat = $sheetSetup->getRowsToRepeatAtTop();
- $rowmin = $repeat[0] - 1;
- $rowmax = $repeat[1] - 1;
- } else {
- $rowmin = 0;
- $rowmax = 65535;
- }
-
- // construct formula data manually because parser does not recognize absolute 3d cell references
- $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);
-
- // store the DEFINEDNAME record
- $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true));
- }
- }
-
- // write the print areas, if any
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $sheetSetup = $this->_phpExcel->getSheet($i)->getPageSetup();
- if ($sheetSetup->isPrintAreaSet()) {
- // Print area, e.g. A3:J6,H1:X20
- $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea());
- $countPrintArea = count($printArea);
-
- $formulaData = '';
- for ($j = 0; $j < $countPrintArea; ++$j) {
- $printAreaRect = $printArea[$j]; // e.g. A3:J6
- $printAreaRect[0] = PHPExcel_Cell::coordinateFromString($printAreaRect[0]);
- $printAreaRect[1] = PHPExcel_Cell::coordinateFromString($printAreaRect[1]);
-
- $print_rowmin = $printAreaRect[0][1] - 1;
- $print_rowmax = $printAreaRect[1][1] - 1;
- $print_colmin = PHPExcel_Cell::columnIndexFromString($printAreaRect[0][0]) - 1;
- $print_colmax = PHPExcel_Cell::columnIndexFromString($printAreaRect[1][0]) - 1;
-
- // construct formula data manually because parser does not recognize absolute 3d cell references
- $formulaData .= pack('Cvvvvv', 0x3B, $i, $print_rowmin, $print_rowmax, $print_colmin, $print_colmax);
-
- if ($j > 0) {
- $formulaData .= pack('C', 0x10); // list operator token ','
- }
- }
-
- // store the DEFINEDNAME record
- $chunk .= $this->writeData($this->_writeDefinedNameBiff8(pack('C', 0x06), $formulaData, $i + 1, true));
- }
- }
-
- // write autofilters, if any
- for ($i = 0; $i < $total_worksheets; ++$i) {
- $sheetAutoFilter = $this->_phpExcel->getSheet($i)->getAutoFilter();
- $autoFilterRange = $sheetAutoFilter->getRange();
- if(!empty($autoFilterRange)) {
- $rangeBounds = PHPExcel_Cell::rangeBoundaries($autoFilterRange);
-
- //Autofilter built in name
- $name = pack('C', 0x0D);
-
- $chunk .= $this->writeData($this->_writeShortNameBiff8($name, $i + 1, $rangeBounds, true));
- }
- }
-
- return $chunk;
- }
-
- /**
- * Write a DEFINEDNAME record for BIFF8 using explicit binary formula data
- *
- * @param string $name The name in UTF-8
- * @param string $formulaData The binary formula data
- * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
- * @param boolean $isBuiltIn Built-in name?
- * @return string Complete binary record data
- */
- private function _writeDefinedNameBiff8($name, $formulaData, $sheetIndex = 0, $isBuiltIn = false)
- {
- $record = 0x0018;
-
- // option flags
- $options = $isBuiltIn ? 0x20 : 0x00;
-
- // length of the name, character count
- $nlen = PHPExcel_Shared_String::CountCharacters($name);
-
- // name with stripped length field
- $name = substr(PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($name), 2);
-
- // size of the formula (in bytes)
- $sz = strlen($formulaData);
-
- // combine the parts
- $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0)
- . $name . $formulaData;
- $length = strlen($data);
-
- $header = pack('vv', $record, $length);
-
- return $header . $data;
- }
-
- /**
- * Write a short NAME record
- *
- * @param string $name
- * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
- * @param integer[][] $rangeBounds range boundaries
- * @param boolean $isHidden
- * @return string Complete binary record data
- * */
- private function _writeShortNameBiff8($name, $sheetIndex = 0, $rangeBounds, $isHidden = false){
- $record = 0x0018;
-
- // option flags
- $options = ($isHidden ? 0x21 : 0x00);
-
- $extra = pack('Cvvvvv',
- 0x3B,
- $sheetIndex - 1,
- $rangeBounds[0][1] - 1,
- $rangeBounds[1][1] - 1,
- $rangeBounds[0][0] - 1,
- $rangeBounds[1][0] - 1);
-
- // size of the formula (in bytes)
- $sz = strlen($extra);
-
- // combine the parts
- $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0)
- . $name . $extra;
- $length = strlen($data);
-
- $header = pack('vv', $record, $length);
-
- return $header . $data;
- }
-
- /**
- * Stores the CODEPAGE biff record.
- */
- private function _writeCodepage()
- {
- $record = 0x0042; // Record identifier
- $length = 0x0002; // Number of bytes to follow
- $cv = $this->_codepage; // The code page
-
- $header = pack('vv', $record, $length);
- $data = pack('v', $cv);
-
- $this->_append($header . $data);
- }
-
- /**
- * Write Excel BIFF WINDOW1 record.
- */
- private function _writeWindow1()
- {
- $record = 0x003D; // Record identifier
- $length = 0x0012; // Number of bytes to follow
-
- $xWn = 0x0000; // Horizontal position of window
- $yWn = 0x0000; // Vertical position of window
- $dxWn = 0x25BC; // Width of window
- $dyWn = 0x1572; // Height of window
-
- $grbit = 0x0038; // Option flags
-
- // not supported by PHPExcel, so there is only one selected sheet, the active
- $ctabsel = 1; // Number of workbook tabs selected
-
- $wTabRatio = 0x0258; // Tab to scrollbar ratio
-
- // not supported by PHPExcel, set to 0
- $itabFirst = 0; // 1st displayed worksheet
- $itabCur = $this->_phpExcel->getActiveSheetIndex(); // Active worksheet
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvvvvvvv", $xWn, $yWn, $dxWn, $dyWn,
- $grbit,
- $itabCur, $itabFirst,
- $ctabsel, $wTabRatio);
- $this->_append($header . $data);
- }
-
- /**
- * Writes Excel BIFF BOUNDSHEET record.
- *
- * @param PHPExcel_Worksheet $sheet Worksheet name
- * @param integer $offset Location of worksheet BOF
- */
- private function _writeBoundsheet($sheet, $offset)
- {
- $sheetname = $sheet->getTitle();
- $record = 0x0085; // Record identifier
-
- // sheet state
- switch ($sheet->getSheetState()) {
- case PHPExcel_Worksheet::SHEETSTATE_VISIBLE: $ss = 0x00; break;
- case PHPExcel_Worksheet::SHEETSTATE_HIDDEN: $ss = 0x01; break;
- case PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN: $ss = 0x02; break;
- default: $ss = 0x00; break;
- }
-
- // sheet type
- $st = 0x00;
-
- $grbit = 0x0000; // Visibility and sheet type
-
- $data = pack("VCC", $offset, $ss, $st);
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheetname);
-
- $length = strlen($data);
- $header = pack("vv", $record, $length);
- $this->_append($header . $data);
- }
-
- /**
- * Write Internal SUPBOOK record
- */
- private function _writeSupbookInternal()
- {
- $record = 0x01AE; // Record identifier
- $length = 0x0004; // Bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("vv", $this->_phpExcel->getSheetCount(), 0x0401);
- return $this->writeData($header . $data);
- }
-
- /**
- * Writes the Excel BIFF EXTERNSHEET record. These references are used by
- * formulas.
- *
- */
- private function _writeExternsheetBiff8()
- {
- $total_references = count($this->_parser->_references);
- $record = 0x0017; // Record identifier
- $length = 2 + 6 * $total_references; // Number of bytes to follow
-
- $supbook_index = 0; // FIXME: only using internal SUPBOOK record
- $header = pack("vv", $record, $length);
- $data = pack('v', $total_references);
- for ($i = 0; $i < $total_references; ++$i) {
- $data .= $this->_parser->_references[$i];
- }
- return $this->writeData($header . $data);
- }
-
- /**
- * Write Excel BIFF STYLE records.
- */
- private function _writeStyle()
- {
- $record = 0x0293; // Record identifier
- $length = 0x0004; // Bytes to follow
-
- $ixfe = 0x8000; // Index to cell style XF
- $BuiltIn = 0x00; // Built-in style
- $iLevel = 0xff; // Outline style level
-
- $header = pack("vv", $record, $length);
- $data = pack("vCC", $ixfe, $BuiltIn, $iLevel);
- $this->_append($header . $data);
- }
-
- /**
- * Writes Excel FORMAT record for non "built-in" numerical formats.
- *
- * @param string $format Custom format string
- * @param integer $ifmt Format index code
- */
- private function _writeNumFormat($format, $ifmt)
- {
- $record = 0x041E; // Record identifier
-
- $numberFormatString = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($format);
- $length = 2 + strlen($numberFormatString); // Number of bytes to follow
-
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $ifmt) . $numberFormatString;
- $this->_append($header . $data);
- }
-
- /**
- * Write DATEMODE record to indicate the date system in use (1904 or 1900).
- */
- private function _writeDatemode()
- {
- $record = 0x0022; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $f1904 = (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) ?
- 1 : 0; // Flag for 1904 date system
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $f1904);
- $this->_append($header . $data);
- }
-
- /**
- * Write BIFF record EXTERNCOUNT to indicate the number of external sheet
- * references in the workbook.
- *
- * Excel only stores references to external sheets that are used in NAME.
- * The workbook NAME record is required to define the print area and the repeat
- * rows and columns.
- *
- * A similar method is used in Worksheet.php for a slightly different purpose.
- *
- * @param integer $cxals Number of external references
- */
- private function _writeExterncount($cxals)
- {
- $record = 0x0016; // Record identifier
- $length = 0x0002; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $cxals);
- $this->_append($header . $data);
- }
-
- /**
- * Writes the Excel BIFF EXTERNSHEET record. These references are used by
- * formulas. NAME record is required to define the print area and the repeat
- * rows and columns.
- *
- * A similar method is used in Worksheet.php for a slightly different purpose.
- *
- * @param string $sheetname Worksheet name
- */
- private function _writeExternsheet($sheetname)
- {
- $record = 0x0017; // Record identifier
- $length = 0x02 + strlen($sheetname); // Number of bytes to follow
-
- $cch = strlen($sheetname); // Length of sheet name
- $rgch = 0x03; // Filename encoding
-
- $header = pack("vv", $record, $length);
- $data = pack("CC", $cch, $rgch);
- $this->_append($header . $data . $sheetname);
- }
-
- /**
- * Store the NAME record in the short format that is used for storing the print
- * area, repeat rows only and repeat columns only.
- *
- * @param integer $index Sheet index
- * @param integer $type Built-in name type
- * @param integer $rowmin Start row
- * @param integer $rowmax End row
- * @param integer $colmin Start colum
- * @param integer $colmax End column
- */
- private function _writeNameShort($index, $type, $rowmin, $rowmax, $colmin, $colmax)
- {
- $record = 0x0018; // Record identifier
- $length = 0x0024; // Number of bytes to follow
-
- $grbit = 0x0020; // Option flags
- $chKey = 0x00; // Keyboard shortcut
- $cch = 0x01; // Length of text name
- $cce = 0x0015; // Length of text definition
- $ixals = $index + 1; // Sheet index
- $itab = $ixals; // Equal to ixals
- $cchCustMenu = 0x00; // Length of cust menu text
- $cchDescription = 0x00; // Length of description text
- $cchHelptopic = 0x00; // Length of help topic text
- $cchStatustext = 0x00; // Length of status bar text
- $rgch = $type; // Built-in name type
-
- $unknown03 = 0x3b;
- $unknown04 = 0xffff-$index;
- $unknown05 = 0x0000;
- $unknown06 = 0x0000;
- $unknown07 = 0x1087;
- $unknown08 = 0x8005;
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $grbit);
- $data .= pack("C", $chKey);
- $data .= pack("C", $cch);
- $data .= pack("v", $cce);
- $data .= pack("v", $ixals);
- $data .= pack("v", $itab);
- $data .= pack("C", $cchCustMenu);
- $data .= pack("C", $cchDescription);
- $data .= pack("C", $cchHelptopic);
- $data .= pack("C", $cchStatustext);
- $data .= pack("C", $rgch);
- $data .= pack("C", $unknown03);
- $data .= pack("v", $unknown04);
- $data .= pack("v", $unknown05);
- $data .= pack("v", $unknown06);
- $data .= pack("v", $unknown07);
- $data .= pack("v", $unknown08);
- $data .= pack("v", $index);
- $data .= pack("v", $index);
- $data .= pack("v", $rowmin);
- $data .= pack("v", $rowmax);
- $data .= pack("C", $colmin);
- $data .= pack("C", $colmax);
- $this->_append($header . $data);
- }
-
- /**
- * Store the NAME record in the long format that is used for storing the repeat
- * rows and columns when both are specified. This shares a lot of code with
- * _writeNameShort() but we use a separate method to keep the code clean.
- * Code abstraction for reuse can be carried too far, and I should know. ;-)
- *
- * @param integer $index Sheet index
- * @param integer $type Built-in name type
- * @param integer $rowmin Start row
- * @param integer $rowmax End row
- * @param integer $colmin Start colum
- * @param integer $colmax End column
- */
- private function _writeNameLong($index, $type, $rowmin, $rowmax, $colmin, $colmax)
- {
- $record = 0x0018; // Record identifier
- $length = 0x003d; // Number of bytes to follow
- $grbit = 0x0020; // Option flags
- $chKey = 0x00; // Keyboard shortcut
- $cch = 0x01; // Length of text name
- $cce = 0x002e; // Length of text definition
- $ixals = $index + 1; // Sheet index
- $itab = $ixals; // Equal to ixals
- $cchCustMenu = 0x00; // Length of cust menu text
- $cchDescription = 0x00; // Length of description text
- $cchHelptopic = 0x00; // Length of help topic text
- $cchStatustext = 0x00; // Length of status bar text
- $rgch = $type; // Built-in name type
-
- $unknown01 = 0x29;
- $unknown02 = 0x002b;
- $unknown03 = 0x3b;
- $unknown04 = 0xffff-$index;
- $unknown05 = 0x0000;
- $unknown06 = 0x0000;
- $unknown07 = 0x1087;
- $unknown08 = 0x8008;
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $grbit);
- $data .= pack("C", $chKey);
- $data .= pack("C", $cch);
- $data .= pack("v", $cce);
- $data .= pack("v", $ixals);
- $data .= pack("v", $itab);
- $data .= pack("C", $cchCustMenu);
- $data .= pack("C", $cchDescription);
- $data .= pack("C", $cchHelptopic);
- $data .= pack("C", $cchStatustext);
- $data .= pack("C", $rgch);
- $data .= pack("C", $unknown01);
- $data .= pack("v", $unknown02);
- // Column definition
- $data .= pack("C", $unknown03);
- $data .= pack("v", $unknown04);
- $data .= pack("v", $unknown05);
- $data .= pack("v", $unknown06);
- $data .= pack("v", $unknown07);
- $data .= pack("v", $unknown08);
- $data .= pack("v", $index);
- $data .= pack("v", $index);
- $data .= pack("v", 0x0000);
- $data .= pack("v", 0x3fff);
- $data .= pack("C", $colmin);
- $data .= pack("C", $colmax);
- // Row definition
- $data .= pack("C", $unknown03);
- $data .= pack("v", $unknown04);
- $data .= pack("v", $unknown05);
- $data .= pack("v", $unknown06);
- $data .= pack("v", $unknown07);
- $data .= pack("v", $unknown08);
- $data .= pack("v", $index);
- $data .= pack("v", $index);
- $data .= pack("v", $rowmin);
- $data .= pack("v", $rowmax);
- $data .= pack("C", 0x00);
- $data .= pack("C", 0xff);
- // End of data
- $data .= pack("C", 0x10);
- $this->_append($header . $data);
- }
-
- /**
- * Stores the COUNTRY record for localization
- *
- * @return string
- */
- private function _writeCountry()
- {
- $record = 0x008C; // Record identifier
- $length = 4; // Number of bytes to follow
-
- $header = pack('vv', $record, $length);
- /* using the same country code always for simplicity */
- $data = pack('vv', $this->_country_code, $this->_country_code);
- //$this->_append($header . $data);
- return $this->writeData($header . $data);
- }
-
- /**
- * Write the RECALCID record
- *
- * @return string
- */
- private function _writeRecalcId()
- {
- $record = 0x01C1; // Record identifier
- $length = 8; // Number of bytes to follow
-
- $header = pack('vv', $record, $length);
-
- // by inspection of real Excel files, MS Office Excel 2007 writes this
- $data = pack('VV', 0x000001C1, 0x00001E667);
-
- return $this->writeData($header . $data);
- }
-
- /**
- * Stores the PALETTE biff record.
- */
- private function _writePalette()
- {
- $aref = $this->_palette;
-
- $record = 0x0092; // Record identifier
- $length = 2 + 4 * count($aref); // Number of bytes to follow
- $ccv = count($aref); // Number of RGB values to follow
- $data = ''; // The RGB data
-
- // Pack the RGB data
- foreach ($aref as $color) {
- foreach ($color as $byte) {
- $data .= pack("C",$byte);
- }
- }
-
- $header = pack("vvv", $record, $length, $ccv);
- $this->_append($header . $data);
- }
-
- /**
- * Handling of the SST continue blocks is complicated by the need to include an
- * additional continuation byte depending on whether the string is split between
- * blocks or whether it starts at the beginning of the block. (There are also
- * additional complications that will arise later when/if Rich Strings are
- * supported).
- *
- * The Excel documentation says that the SST record should be followed by an
- * EXTSST record. The EXTSST record is a hash table that is used to optimise
- * access to SST. However, despite the documentation it doesn't seem to be
- * required so we will ignore it.
- *
- * @return string Binary data
- */
- private function _writeSharedStringsTable()
- {
- // maximum size of record data (excluding record header)
- $continue_limit = 8224;
-
- // initialize array of record data blocks
- $recordDatas = array();
-
- // start SST record data block with total number of strings, total number of unique strings
- $recordData = pack("VV", $this->_str_total, $this->_str_unique);
-
- // loop through all (unique) strings in shared strings table
- foreach (array_keys($this->_str_table) as $string) {
-
- // here $string is a BIFF8 encoded string
-
- // length = character count
- $headerinfo = unpack("vlength/Cencoding", $string);
-
- // currently, this is always 1 = uncompressed
- $encoding = $headerinfo["encoding"];
-
- // initialize finished writing current $string
- $finished = false;
-
- while ($finished === false) {
-
- // normally, there will be only one cycle, but if string cannot immediately be written as is
- // there will be need for more than one cylcle, if string longer than one record data block, there
- // may be need for even more cycles
-
- if (strlen($recordData) + strlen($string) <= $continue_limit) {
- // then we can write the string (or remainder of string) without any problems
- $recordData .= $string;
-
- if (strlen($recordData) + strlen($string) == $continue_limit) {
- // we close the record data block, and initialize a new one
- $recordDatas[] = $recordData;
- $recordData = '';
- }
-
- // we are finished writing this string
- $finished = true;
- } else {
- // special treatment writing the string (or remainder of the string)
- // If the string is very long it may need to be written in more than one CONTINUE record.
-
- // check how many bytes more there is room for in the current record
- $space_remaining = $continue_limit - strlen($recordData);
-
- // minimum space needed
- // uncompressed: 2 byte string length length field + 1 byte option flags + 2 byte character
- // compressed: 2 byte string length length field + 1 byte option flags + 1 byte character
- $min_space_needed = ($encoding == 1) ? 5 : 4;
-
- // We have two cases
- // 1. space remaining is less than minimum space needed
- // here we must waste the space remaining and move to next record data block
- // 2. space remaining is greater than or equal to minimum space needed
- // here we write as much as we can in the current block, then move to next record data block
-
- // 1. space remaining is less than minimum space needed
- if ($space_remaining < $min_space_needed) {
- // we close the block, store the block data
- $recordDatas[] = $recordData;
-
- // and start new record data block where we start writing the string
- $recordData = '';
-
- // 2. space remaining is greater than or equal to minimum space needed
- } else {
- // initialize effective remaining space, for Unicode strings this may need to be reduced by 1, see below
- $effective_space_remaining = $space_remaining;
-
- // for uncompressed strings, sometimes effective space remaining is reduced by 1
- if ( $encoding == 1 && (strlen($string) - $space_remaining) % 2 == 1 ) {
- --$effective_space_remaining;
- }
-
- // one block fininshed, store the block data
- $recordData .= substr($string, 0, $effective_space_remaining);
-
- $string = substr($string, $effective_space_remaining); // for next cycle in while loop
- $recordDatas[] = $recordData;
-
- // start new record data block with the repeated option flags
- $recordData = pack('C', $encoding);
- }
- }
- }
- }
-
- // Store the last record data block unless it is empty
- // if there was no need for any continue records, this will be the for SST record data block itself
- if (strlen($recordData) > 0) {
- $recordDatas[] = $recordData;
- }
-
- // combine into one chunk with all the blocks SST, CONTINUE,...
- $chunk = '';
- foreach ($recordDatas as $i => $recordData) {
- // first block should have the SST record header, remaing should have CONTINUE header
- $record = ($i == 0) ? 0x00FC : 0x003C;
-
- $header = pack("vv", $record, strlen($recordData));
- $data = $header . $recordData;
-
- $chunk .= $this->writeData($data);
- }
-
- return $chunk;
- }
-
- /**
- * Writes the MSODRAWINGGROUP record if needed. Possibly split using CONTINUE records.
- */
- private function _writeMsoDrawingGroup()
- {
- // write the Escher stream if necessary
- if (isset($this->_escher)) {
- $writer = new PHPExcel_Writer_Excel5_Escher($this->_escher);
- $data = $writer->close();
-
- $record = 0x00EB;
- $length = strlen($data);
- $header = pack("vv", $record, $length);
-
- return $this->writeData($header . $data);
-
- } else {
- return '';
- }
- }
-
- /**
- * Get Escher object
- *
- * @return PHPExcel_Shared_Escher
- */
- public function getEscher()
- {
- return $this->_escher;
- }
-
- /**
- * Set Escher object
- *
- * @param PHPExcel_Shared_Escher $pValue
- */
- public function setEscher(PHPExcel_Shared_Escher $pValue = null)
- {
- $this->_escher = $pValue;
- }
+ /**
+ * Formula parser
+ *
+ * @var PHPExcel_Writer_Excel5_Parser
+ */
+ private $parser;
+
+ /**
+ * The BIFF file size for the workbook.
+ * @var integer
+ * @see calcSheetOffsets()
+ */
+ private $biffSize;
+
+ /**
+ * XF Writers
+ * @var PHPExcel_Writer_Excel5_Xf[]
+ */
+ private $xfWriters = array();
+
+ /**
+ * Array containing the colour palette
+ * @var array
+ */
+ private $palette;
+
+ /**
+ * The codepage indicates the text encoding used for strings
+ * @var integer
+ */
+ private $codepage;
+
+ /**
+ * The country code used for localization
+ * @var integer
+ */
+ private $countryCode;
+
+ /**
+ * Workbook
+ * @var PHPExcel
+ */
+ private $phpExcel;
+
+ /**
+ * Fonts writers
+ *
+ * @var PHPExcel_Writer_Excel5_Font[]
+ */
+ private $fontWriters = array();
+
+ /**
+ * Added fonts. Maps from font's hash => index in workbook
+ *
+ * @var array
+ */
+ private $addedFonts = array();
+
+ /**
+ * Shared number formats
+ *
+ * @var array
+ */
+ private $numberFormats = array();
+
+ /**
+ * Added number formats. Maps from numberFormat's hash => index in workbook
+ *
+ * @var array
+ */
+ private $addedNumberFormats = array();
+
+ /**
+ * Sizes of the binary worksheet streams
+ *
+ * @var array
+ */
+ private $worksheetSizes = array();
+
+ /**
+ * Offsets of the binary worksheet streams relative to the start of the global workbook stream
+ *
+ * @var array
+ */
+ private $worksheetOffsets = array();
+
+ /**
+ * Total number of shared strings in workbook
+ *
+ * @var int
+ */
+ private $stringTotal;
+
+ /**
+ * Number of unique shared strings in workbook
+ *
+ * @var int
+ */
+ private $stringUnique;
+
+ /**
+ * Array of unique shared strings in workbook
+ *
+ * @var array
+ */
+ private $stringTable;
+
+ /**
+ * Color cache
+ */
+ private $colors;
+
+ /**
+ * Escher object corresponding to MSODRAWINGGROUP
+ *
+ * @var PHPExcel_Shared_Escher
+ */
+ private $escher;
+
+
+ /**
+ * Class constructor
+ *
+ * @param PHPExcel $phpExcel The Workbook
+ * @param int &$str_total Total number of strings
+ * @param int &$str_unique Total number of unique strings
+ * @param array &$str_table String Table
+ * @param array &$colors Colour Table
+ * @param mixed $parser The formula parser created for the Workbook
+ */
+ public function __construct(PHPExcel $phpExcel = null, &$str_total, &$str_unique, &$str_table, &$colors, $parser)
+ {
+ // It needs to call its parent's constructor explicitly
+ parent::__construct();
+
+ $this->parser = $parser;
+ $this->biffSize = 0;
+ $this->palette = array();
+ $this->countryCode = -1;
+
+ $this->stringTotal = &$str_total;
+ $this->stringUnique = &$str_unique;
+ $this->stringTable = &$str_table;
+ $this->colors = &$colors;
+ $this->setPaletteXl97();
+
+ $this->phpExcel = $phpExcel;
+
+ // set BIFFwriter limit for CONTINUE records
+ // $this->_limit = 8224;
+ $this->codepage = 0x04B0;
+
+ // Add empty sheets and Build color cache
+ $countSheets = $phpExcel->getSheetCount();
+ for ($i = 0; $i < $countSheets; ++$i) {
+ $phpSheet = $phpExcel->getSheet($i);
+
+ $this->parser->setExtSheet($phpSheet->getTitle(), $i); // Register worksheet name with parser
+
+ $supbook_index = 0x00;
+ $ref = pack('vvv', $supbook_index, $i, $i);
+ $this->parser->references[] = $ref; // Register reference with parser
+
+ // Sheet tab colors?
+ if ($phpSheet->isTabColorSet()) {
+ $this->addColor($phpSheet->getTabColor()->getRGB());
+ }
+ }
+
+ }
+
+ /**
+ * Add a new XF writer
+ *
+ * @param PHPExcel_Style
+ * @param boolean Is it a style XF?
+ * @return int Index to XF record
+ */
+ public function addXfWriter($style, $isStyleXf = false)
+ {
+ $xfWriter = new PHPExcel_Writer_Excel5_Xf($style);
+ $xfWriter->setIsStyleXf($isStyleXf);
+
+ // Add the font if not already added
+ $fontIndex = $this->addFont($style->getFont());
+
+ // Assign the font index to the xf record
+ $xfWriter->setFontIndex($fontIndex);
+
+ // Background colors, best to treat these after the font so black will come after white in custom palette
+ $xfWriter->setFgColor($this->addColor($style->getFill()->getStartColor()->getRGB()));
+ $xfWriter->setBgColor($this->addColor($style->getFill()->getEndColor()->getRGB()));
+ $xfWriter->setBottomColor($this->addColor($style->getBorders()->getBottom()->getColor()->getRGB()));
+ $xfWriter->setTopColor($this->addColor($style->getBorders()->getTop()->getColor()->getRGB()));
+ $xfWriter->setRightColor($this->addColor($style->getBorders()->getRight()->getColor()->getRGB()));
+ $xfWriter->setLeftColor($this->addColor($style->getBorders()->getLeft()->getColor()->getRGB()));
+ $xfWriter->setDiagColor($this->addColor($style->getBorders()->getDiagonal()->getColor()->getRGB()));
+
+ // Add the number format if it is not a built-in one and not already added
+ if ($style->getNumberFormat()->getBuiltInFormatCode() === false) {
+ $numberFormatHashCode = $style->getNumberFormat()->getHashCode();
+
+ if (isset($this->addedNumberFormats[$numberFormatHashCode])) {
+ $numberFormatIndex = $this->addedNumberFormats[$numberFormatHashCode];
+ } else {
+ $numberFormatIndex = 164 + count($this->numberFormats);
+ $this->numberFormats[$numberFormatIndex] = $style->getNumberFormat();
+ $this->addedNumberFormats[$numberFormatHashCode] = $numberFormatIndex;
+ }
+ } else {
+ $numberFormatIndex = (int) $style->getNumberFormat()->getBuiltInFormatCode();
+ }
+
+ // Assign the number format index to xf record
+ $xfWriter->setNumberFormatIndex($numberFormatIndex);
+
+ $this->xfWriters[] = $xfWriter;
+
+ $xfIndex = count($this->xfWriters) - 1;
+ return $xfIndex;
+ }
+
+ /**
+ * Add a font to added fonts
+ *
+ * @param PHPExcel_Style_Font $font
+ * @return int Index to FONT record
+ */
+ public function addFont(PHPExcel_Style_Font $font)
+ {
+ $fontHashCode = $font->getHashCode();
+ if (isset($this->addedFonts[$fontHashCode])) {
+ $fontIndex = $this->addedFonts[$fontHashCode];
+ } else {
+ $countFonts = count($this->fontWriters);
+ $fontIndex = ($countFonts < 4) ? $countFonts : $countFonts + 1;
+
+ $fontWriter = new PHPExcel_Writer_Excel5_Font($font);
+ $fontWriter->setColorIndex($this->addColor($font->getColor()->getRGB()));
+ $this->fontWriters[] = $fontWriter;
+
+ $this->addedFonts[$fontHashCode] = $fontIndex;
+ }
+ return $fontIndex;
+ }
+
+ /**
+ * Alter color palette adding a custom color
+ *
+ * @param string $rgb E.g. 'FF00AA'
+ * @return int Color index
+ */
+ private function addColor($rgb)
+ {
+ if (!isset($this->colors[$rgb])) {
+ if (count($this->colors) < 57) {
+ // then we add a custom color altering the palette
+ $colorIndex = 8 + count($this->colors);
+ $this->palette[$colorIndex] =
+ array(
+ hexdec(substr($rgb, 0, 2)),
+ hexdec(substr($rgb, 2, 2)),
+ hexdec(substr($rgb, 4)),
+ 0
+ );
+ $this->colors[$rgb] = $colorIndex;
+ } else {
+ // no room for more custom colors, just map to black
+ $colorIndex = 0;
+ }
+ } else {
+ // fetch already added custom color
+ $colorIndex = $this->colors[$rgb];
+ }
+
+ return $colorIndex;
+ }
+
+ /**
+ * Sets the colour palette to the Excel 97+ default.
+ *
+ * @access private
+ */
+ private function setPaletteXl97()
+ {
+ $this->palette = array(
+ 0x08 => array(0x00, 0x00, 0x00, 0x00),
+ 0x09 => array(0xff, 0xff, 0xff, 0x00),
+ 0x0A => array(0xff, 0x00, 0x00, 0x00),
+ 0x0B => array(0x00, 0xff, 0x00, 0x00),
+ 0x0C => array(0x00, 0x00, 0xff, 0x00),
+ 0x0D => array(0xff, 0xff, 0x00, 0x00),
+ 0x0E => array(0xff, 0x00, 0xff, 0x00),
+ 0x0F => array(0x00, 0xff, 0xff, 0x00),
+ 0x10 => array(0x80, 0x00, 0x00, 0x00),
+ 0x11 => array(0x00, 0x80, 0x00, 0x00),
+ 0x12 => array(0x00, 0x00, 0x80, 0x00),
+ 0x13 => array(0x80, 0x80, 0x00, 0x00),
+ 0x14 => array(0x80, 0x00, 0x80, 0x00),
+ 0x15 => array(0x00, 0x80, 0x80, 0x00),
+ 0x16 => array(0xc0, 0xc0, 0xc0, 0x00),
+ 0x17 => array(0x80, 0x80, 0x80, 0x00),
+ 0x18 => array(0x99, 0x99, 0xff, 0x00),
+ 0x19 => array(0x99, 0x33, 0x66, 0x00),
+ 0x1A => array(0xff, 0xff, 0xcc, 0x00),
+ 0x1B => array(0xcc, 0xff, 0xff, 0x00),
+ 0x1C => array(0x66, 0x00, 0x66, 0x00),
+ 0x1D => array(0xff, 0x80, 0x80, 0x00),
+ 0x1E => array(0x00, 0x66, 0xcc, 0x00),
+ 0x1F => array(0xcc, 0xcc, 0xff, 0x00),
+ 0x20 => array(0x00, 0x00, 0x80, 0x00),
+ 0x21 => array(0xff, 0x00, 0xff, 0x00),
+ 0x22 => array(0xff, 0xff, 0x00, 0x00),
+ 0x23 => array(0x00, 0xff, 0xff, 0x00),
+ 0x24 => array(0x80, 0x00, 0x80, 0x00),
+ 0x25 => array(0x80, 0x00, 0x00, 0x00),
+ 0x26 => array(0x00, 0x80, 0x80, 0x00),
+ 0x27 => array(0x00, 0x00, 0xff, 0x00),
+ 0x28 => array(0x00, 0xcc, 0xff, 0x00),
+ 0x29 => array(0xcc, 0xff, 0xff, 0x00),
+ 0x2A => array(0xcc, 0xff, 0xcc, 0x00),
+ 0x2B => array(0xff, 0xff, 0x99, 0x00),
+ 0x2C => array(0x99, 0xcc, 0xff, 0x00),
+ 0x2D => array(0xff, 0x99, 0xcc, 0x00),
+ 0x2E => array(0xcc, 0x99, 0xff, 0x00),
+ 0x2F => array(0xff, 0xcc, 0x99, 0x00),
+ 0x30 => array(0x33, 0x66, 0xff, 0x00),
+ 0x31 => array(0x33, 0xcc, 0xcc, 0x00),
+ 0x32 => array(0x99, 0xcc, 0x00, 0x00),
+ 0x33 => array(0xff, 0xcc, 0x00, 0x00),
+ 0x34 => array(0xff, 0x99, 0x00, 0x00),
+ 0x35 => array(0xff, 0x66, 0x00, 0x00),
+ 0x36 => array(0x66, 0x66, 0x99, 0x00),
+ 0x37 => array(0x96, 0x96, 0x96, 0x00),
+ 0x38 => array(0x00, 0x33, 0x66, 0x00),
+ 0x39 => array(0x33, 0x99, 0x66, 0x00),
+ 0x3A => array(0x00, 0x33, 0x00, 0x00),
+ 0x3B => array(0x33, 0x33, 0x00, 0x00),
+ 0x3C => array(0x99, 0x33, 0x00, 0x00),
+ 0x3D => array(0x99, 0x33, 0x66, 0x00),
+ 0x3E => array(0x33, 0x33, 0x99, 0x00),
+ 0x3F => array(0x33, 0x33, 0x33, 0x00),
+ );
+ }
+
+ /**
+ * Assemble worksheets into a workbook and send the BIFF data to an OLE
+ * storage.
+ *
+ * @param array $pWorksheetSizes The sizes in bytes of the binary worksheet streams
+ * @return string Binary data for workbook stream
+ */
+ public function writeWorkbook($pWorksheetSizes = null)
+ {
+ $this->worksheetSizes = $pWorksheetSizes;
+
+ // Calculate the number of selected worksheet tabs and call the finalization
+ // methods for each worksheet
+ $total_worksheets = $this->phpExcel->getSheetCount();
+
+ // Add part 1 of the Workbook globals, what goes before the SHEET records
+ $this->storeBof(0x0005);
+ $this->writeCodepage();
+ $this->writeWindow1();
+
+ $this->writeDateMode();
+ $this->writeAllFonts();
+ $this->writeAllNumberFormats();
+ $this->writeAllXfs();
+ $this->writeAllStyles();
+ $this->writePalette();
+
+ // Prepare part 3 of the workbook global stream, what goes after the SHEET records
+ $part3 = '';
+ if ($this->countryCode != -1) {
+ $part3 .= $this->writeCountry();
+ }
+ $part3 .= $this->writeRecalcId();
+
+ $part3 .= $this->writeSupbookInternal();
+ /* TODO: store external SUPBOOK records and XCT and CRN records
+ in case of external references for BIFF8 */
+ $part3 .= $this->writeExternalsheetBiff8();
+ $part3 .= $this->writeAllDefinedNamesBiff8();
+ $part3 .= $this->writeMsoDrawingGroup();
+ $part3 .= $this->writeSharedStringsTable();
+
+ $part3 .= $this->writeEof();
+
+ // Add part 2 of the Workbook globals, the SHEET records
+ $this->calcSheetOffsets();
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $this->writeBoundSheet($this->phpExcel->getSheet($i), $this->worksheetOffsets[$i]);
+ }
+
+ // Add part 3 of the Workbook globals
+ $this->_data .= $part3;
+
+ return $this->_data;
+ }
+
+ /**
+ * Calculate offsets for Worksheet BOF records.
+ *
+ * @access private
+ */
+ private function calcSheetOffsets()
+ {
+ $boundsheet_length = 10; // fixed length for a BOUNDSHEET record
+
+ // size of Workbook globals part 1 + 3
+ $offset = $this->_datasize;
+
+ // add size of Workbook globals part 2, the length of the SHEET records
+ $total_worksheets = count($this->phpExcel->getAllSheets());
+ foreach ($this->phpExcel->getWorksheetIterator() as $sheet) {
+ $offset += $boundsheet_length + strlen(PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheet->getTitle()));
+ }
+
+ // add the sizes of each of the Sheet substreams, respectively
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $this->worksheetOffsets[$i] = $offset;
+ $offset += $this->worksheetSizes[$i];
+ }
+ $this->biffSize = $offset;
+ }
+
+ /**
+ * Store the Excel FONT records.
+ */
+ private function writeAllFonts()
+ {
+ foreach ($this->fontWriters as $fontWriter) {
+ $this->append($fontWriter->writeFont());
+ }
+ }
+
+ /**
+ * Store user defined numerical formats i.e. FORMAT records
+ */
+ private function writeAllNumberFormats()
+ {
+ foreach ($this->numberFormats as $numberFormatIndex => $numberFormat) {
+ $this->writeNumberFormat($numberFormat->getFormatCode(), $numberFormatIndex);
+ }
+ }
+
+ /**
+ * Write all XF records.
+ */
+ private function writeAllXfs()
+ {
+ foreach ($this->xfWriters as $xfWriter) {
+ $this->append($xfWriter->writeXf());
+ }
+ }
+
+ /**
+ * Write all STYLE records.
+ */
+ private function writeAllStyles()
+ {
+ $this->writeStyle();
+ }
+
+ /**
+ * Write the EXTERNCOUNT and EXTERNSHEET records. These are used as indexes for
+ * the NAME records.
+ */
+ private function writeExternals()
+ {
+ $countSheets = $this->phpExcel->getSheetCount();
+ // Create EXTERNCOUNT with number of worksheets
+ $this->writeExternalCount($countSheets);
+
+ // Create EXTERNSHEET for each worksheet
+ for ($i = 0; $i < $countSheets; ++$i) {
+ $this->writeExternalSheet($this->phpExcel->getSheet($i)->getTitle());
+ }
+ }
+
+ /**
+ * Write the NAME record to define the print area and the repeat rows and cols.
+ */
+ private function writeNames()
+ {
+ // total number of sheets
+ $total_worksheets = $this->phpExcel->getSheetCount();
+
+ // Create the print area NAME records
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup();
+ // Write a Name record if the print area has been defined
+ if ($sheetSetup->isPrintAreaSet()) {
+ // Print area
+ $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea());
+ $printArea = $printArea[0];
+ $printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]);
+ $printArea[1] = PHPExcel_Cell::coordinateFromString($printArea[1]);
+
+ $print_rowmin = $printArea[0][1] - 1;
+ $print_rowmax = $printArea[1][1] - 1;
+ $print_colmin = PHPExcel_Cell::columnIndexFromString($printArea[0][0]) - 1;
+ $print_colmax = PHPExcel_Cell::columnIndexFromString($printArea[1][0]) - 1;
+
+ $this->writeNameShort(
+ $i, // sheet index
+ 0x06, // NAME type
+ $print_rowmin,
+ $print_rowmax,
+ $print_colmin,
+ $print_colmax
+ );
+ }
+ }
+
+ // Create the print title NAME records
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup();
+
+ // simultaneous repeatColumns repeatRows
+ if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) {
+ $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
+ $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
+ $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
+
+ $repeat = $sheetSetup->getRowsToRepeatAtTop();
+ $rowmin = $repeat[0] - 1;
+ $rowmax = $repeat[1] - 1;
+
+ $this->writeNameLong(
+ $i, // sheet index
+ 0x07, // NAME type
+ $rowmin,
+ $rowmax,
+ $colmin,
+ $colmax
+ );
+
+ // (exclusive) either repeatColumns or repeatRows
+ } elseif ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) {
+ // Columns to repeat
+ if ($sheetSetup->isColumnsToRepeatAtLeftSet()) {
+ $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
+ $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
+ $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
+ } else {
+ $colmin = 0;
+ $colmax = 255;
+ }
+
+ // Rows to repeat
+ if ($sheetSetup->isRowsToRepeatAtTopSet()) {
+ $repeat = $sheetSetup->getRowsToRepeatAtTop();
+ $rowmin = $repeat[0] - 1;
+ $rowmax = $repeat[1] - 1;
+ } else {
+ $rowmin = 0;
+ $rowmax = 65535;
+ }
+
+ $this->writeNameShort(
+ $i, // sheet index
+ 0x07, // NAME type
+ $rowmin,
+ $rowmax,
+ $colmin,
+ $colmax
+ );
+ }
+ }
+ }
+
+ /**
+ * Writes all the DEFINEDNAME records (BIFF8).
+ * So far this is only used for repeating rows/columns (print titles) and print areas
+ */
+ private function writeAllDefinedNamesBiff8()
+ {
+ $chunk = '';
+
+ // Named ranges
+ if (count($this->phpExcel->getNamedRanges()) > 0) {
+ // Loop named ranges
+ $namedRanges = $this->phpExcel->getNamedRanges();
+ foreach ($namedRanges as $namedRange) {
+ // Create absolute coordinate
+ $range = PHPExcel_Cell::splitRange($namedRange->getRange());
+ for ($i = 0; $i < count($range); $i++) {
+ $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteCoordinate($range[$i][0]);
+ if (isset($range[$i][1])) {
+ $range[$i][1] = PHPExcel_Cell::absoluteCoordinate($range[$i][1]);
+ }
+ }
+ $range = PHPExcel_Cell::buildRange($range); // e.g. Sheet1!$A$1:$B$2
+
+ // parse formula
+ try {
+ $error = $this->parser->parse($range);
+ $formulaData = $this->parser->toReversePolish();
+
+ // make sure tRef3d is of type tRef3dR (0x3A)
+ if (isset($formulaData{0}) and ($formulaData{0} == "\x7A" or $formulaData{0} == "\x5A")) {
+ $formulaData = "\x3A" . substr($formulaData, 1);
+ }
+
+ if ($namedRange->getLocalOnly()) {
+ // local scope
+ $scope = $this->phpExcel->getIndex($namedRange->getScope()) + 1;
+ } else {
+ // global scope
+ $scope = 0;
+ }
+ $chunk .= $this->writeData($this->writeDefinedNameBiff8($namedRange->getName(), $formulaData, $scope, false));
+
+ } catch (PHPExcel_Exception $e) {
+ // do nothing
+ }
+ }
+ }
+
+ // total number of sheets
+ $total_worksheets = $this->phpExcel->getSheetCount();
+
+ // write the print titles (repeating rows, columns), if any
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup();
+ // simultaneous repeatColumns repeatRows
+ if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) {
+ $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
+ $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
+ $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
+
+ $repeat = $sheetSetup->getRowsToRepeatAtTop();
+ $rowmin = $repeat[0] - 1;
+ $rowmax = $repeat[1] - 1;
+
+ // construct formula data manually
+ $formulaData = pack('Cv', 0x29, 0x17); // tMemFunc
+ $formulaData .= pack('Cvvvvv', 0x3B, $i, 0, 65535, $colmin, $colmax); // tArea3d
+ $formulaData .= pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, 0, 255); // tArea3d
+ $formulaData .= pack('C', 0x10); // tList
+
+ // store the DEFINEDNAME record
+ $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true));
+
+ // (exclusive) either repeatColumns or repeatRows
+ } elseif ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) {
+ // Columns to repeat
+ if ($sheetSetup->isColumnsToRepeatAtLeftSet()) {
+ $repeat = $sheetSetup->getColumnsToRepeatAtLeft();
+ $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1;
+ $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1;
+ } else {
+ $colmin = 0;
+ $colmax = 255;
+ }
+ // Rows to repeat
+ if ($sheetSetup->isRowsToRepeatAtTopSet()) {
+ $repeat = $sheetSetup->getRowsToRepeatAtTop();
+ $rowmin = $repeat[0] - 1;
+ $rowmax = $repeat[1] - 1;
+ } else {
+ $rowmin = 0;
+ $rowmax = 65535;
+ }
+
+ // construct formula data manually because parser does not recognize absolute 3d cell references
+ $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax);
+
+ // store the DEFINEDNAME record
+ $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true));
+ }
+ }
+
+ // write the print areas, if any
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup();
+ if ($sheetSetup->isPrintAreaSet()) {
+ // Print area, e.g. A3:J6,H1:X20
+ $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea());
+ $countPrintArea = count($printArea);
+
+ $formulaData = '';
+ for ($j = 0; $j < $countPrintArea; ++$j) {
+ $printAreaRect = $printArea[$j]; // e.g. A3:J6
+ $printAreaRect[0] = PHPExcel_Cell::coordinateFromString($printAreaRect[0]);
+ $printAreaRect[1] = PHPExcel_Cell::coordinateFromString($printAreaRect[1]);
+
+ $print_rowmin = $printAreaRect[0][1] - 1;
+ $print_rowmax = $printAreaRect[1][1] - 1;
+ $print_colmin = PHPExcel_Cell::columnIndexFromString($printAreaRect[0][0]) - 1;
+ $print_colmax = PHPExcel_Cell::columnIndexFromString($printAreaRect[1][0]) - 1;
+
+ // construct formula data manually because parser does not recognize absolute 3d cell references
+ $formulaData .= pack('Cvvvvv', 0x3B, $i, $print_rowmin, $print_rowmax, $print_colmin, $print_colmax);
+
+ if ($j > 0) {
+ $formulaData .= pack('C', 0x10); // list operator token ','
+ }
+ }
+
+ // store the DEFINEDNAME record
+ $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x06), $formulaData, $i + 1, true));
+ }
+ }
+
+ // write autofilters, if any
+ for ($i = 0; $i < $total_worksheets; ++$i) {
+ $sheetAutoFilter = $this->phpExcel->getSheet($i)->getAutoFilter();
+ $autoFilterRange = $sheetAutoFilter->getRange();
+ if (!empty($autoFilterRange)) {
+ $rangeBounds = PHPExcel_Cell::rangeBoundaries($autoFilterRange);
+
+ //Autofilter built in name
+ $name = pack('C', 0x0D);
+
+ $chunk .= $this->writeData($this->writeShortNameBiff8($name, $i + 1, $rangeBounds, true));
+ }
+ }
+
+ return $chunk;
+ }
+
+ /**
+ * Write a DEFINEDNAME record for BIFF8 using explicit binary formula data
+ *
+ * @param string $name The name in UTF-8
+ * @param string $formulaData The binary formula data
+ * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
+ * @param boolean $isBuiltIn Built-in name?
+ * @return string Complete binary record data
+ */
+ private function writeDefinedNameBiff8($name, $formulaData, $sheetIndex = 0, $isBuiltIn = false)
+ {
+ $record = 0x0018;
+
+ // option flags
+ $options = $isBuiltIn ? 0x20 : 0x00;
+
+ // length of the name, character count
+ $nlen = PHPExcel_Shared_String::CountCharacters($name);
+
+ // name with stripped length field
+ $name = substr(PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($name), 2);
+
+ // size of the formula (in bytes)
+ $sz = strlen($formulaData);
+
+ // combine the parts
+ $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0)
+ . $name . $formulaData;
+ $length = strlen($data);
+
+ $header = pack('vv', $record, $length);
+
+ return $header . $data;
+ }
+
+ /**
+ * Write a short NAME record
+ *
+ * @param string $name
+ * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
+ * @param integer[][] $rangeBounds range boundaries
+ * @param boolean $isHidden
+ * @return string Complete binary record data
+ * */
+ private function writeShortNameBiff8($name, $sheetIndex = 0, $rangeBounds, $isHidden = false)
+ {
+ $record = 0x0018;
+
+ // option flags
+ $options = ($isHidden ? 0x21 : 0x00);
+
+ $extra = pack(
+ 'Cvvvvv',
+ 0x3B,
+ $sheetIndex - 1,
+ $rangeBounds[0][1] - 1,
+ $rangeBounds[1][1] - 1,
+ $rangeBounds[0][0] - 1,
+ $rangeBounds[1][0] - 1
+ );
+
+ // size of the formula (in bytes)
+ $sz = strlen($extra);
+
+ // combine the parts
+ $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0)
+ . $name . $extra;
+ $length = strlen($data);
+
+ $header = pack('vv', $record, $length);
+
+ return $header . $data;
+ }
+
+ /**
+ * Stores the CODEPAGE biff record.
+ */
+ private function writeCodepage()
+ {
+ $record = 0x0042; // Record identifier
+ $length = 0x0002; // Number of bytes to follow
+ $cv = $this->codepage; // The code page
+
+ $header = pack('vv', $record, $length);
+ $data = pack('v', $cv);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write Excel BIFF WINDOW1 record.
+ */
+ private function writeWindow1()
+ {
+ $record = 0x003D; // Record identifier
+ $length = 0x0012; // Number of bytes to follow
+
+ $xWn = 0x0000; // Horizontal position of window
+ $yWn = 0x0000; // Vertical position of window
+ $dxWn = 0x25BC; // Width of window
+ $dyWn = 0x1572; // Height of window
+
+ $grbit = 0x0038; // Option flags
+
+ // not supported by PHPExcel, so there is only one selected sheet, the active
+ $ctabsel = 1; // Number of workbook tabs selected
+
+ $wTabRatio = 0x0258; // Tab to scrollbar ratio
+
+ // not supported by PHPExcel, set to 0
+ $itabFirst = 0; // 1st displayed worksheet
+ $itabCur = $this->phpExcel->getActiveSheetIndex(); // Active worksheet
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvvvvvvv", $xWn, $yWn, $dxWn, $dyWn, $grbit, $itabCur, $itabFirst, $ctabsel, $wTabRatio);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Writes Excel BIFF BOUNDSHEET record.
+ *
+ * @param PHPExcel_Worksheet $sheet Worksheet name
+ * @param integer $offset Location of worksheet BOF
+ */
+ private function writeBoundSheet($sheet, $offset)
+ {
+ $sheetname = $sheet->getTitle();
+ $record = 0x0085; // Record identifier
+
+ // sheet state
+ switch ($sheet->getSheetState()) {
+ case PHPExcel_Worksheet::SHEETSTATE_VISIBLE:
+ $ss = 0x00;
+ break;
+ case PHPExcel_Worksheet::SHEETSTATE_HIDDEN:
+ $ss = 0x01;
+ break;
+ case PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN:
+ $ss = 0x02;
+ break;
+ default:
+ $ss = 0x00;
+ break;
+ }
+
+ // sheet type
+ $st = 0x00;
+
+ $grbit = 0x0000; // Visibility and sheet type
+
+ $data = pack("VCC", $offset, $ss, $st);
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheetname);
+
+ $length = strlen($data);
+ $header = pack("vv", $record, $length);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write Internal SUPBOOK record
+ */
+ private function writeSupbookInternal()
+ {
+ $record = 0x01AE; // Record identifier
+ $length = 0x0004; // Bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vv", $this->phpExcel->getSheetCount(), 0x0401);
+ return $this->writeData($header . $data);
+ }
+
+ /**
+ * Writes the Excel BIFF EXTERNSHEET record. These references are used by
+ * formulas.
+ *
+ */
+ private function writeExternalsheetBiff8()
+ {
+ $totalReferences = count($this->parser->references);
+ $record = 0x0017; // Record identifier
+ $length = 2 + 6 * $totalReferences; // Number of bytes to follow
+
+ $supbook_index = 0; // FIXME: only using internal SUPBOOK record
+ $header = pack("vv", $record, $length);
+ $data = pack('v', $totalReferences);
+ for ($i = 0; $i < $totalReferences; ++$i) {
+ $data .= $this->parser->references[$i];
+ }
+ return $this->writeData($header . $data);
+ }
+
+ /**
+ * Write Excel BIFF STYLE records.
+ */
+ private function writeStyle()
+ {
+ $record = 0x0293; // Record identifier
+ $length = 0x0004; // Bytes to follow
+
+ $ixfe = 0x8000; // Index to cell style XF
+ $BuiltIn = 0x00; // Built-in style
+ $iLevel = 0xff; // Outline style level
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vCC", $ixfe, $BuiltIn, $iLevel);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Writes Excel FORMAT record for non "built-in" numerical formats.
+ *
+ * @param string $format Custom format string
+ * @param integer $ifmt Format index code
+ */
+ private function writeNumberFormat($format, $ifmt)
+ {
+ $record = 0x041E; // Record identifier
+
+ $numberFormatString = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($format);
+ $length = 2 + strlen($numberFormatString); // Number of bytes to follow
+
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $ifmt) . $numberFormatString;
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write DATEMODE record to indicate the date system in use (1904 or 1900).
+ */
+ private function writeDateMode()
+ {
+ $record = 0x0022; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $f1904 = (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904)
+ ? 1
+ : 0; // Flag for 1904 date system
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $f1904);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write BIFF record EXTERNCOUNT to indicate the number of external sheet
+ * references in the workbook.
+ *
+ * Excel only stores references to external sheets that are used in NAME.
+ * The workbook NAME record is required to define the print area and the repeat
+ * rows and columns.
+ *
+ * A similar method is used in Worksheet.php for a slightly different purpose.
+ *
+ * @param integer $cxals Number of external references
+ */
+ private function writeExternalCount($cxals)
+ {
+ $record = 0x0016; // Record identifier
+ $length = 0x0002; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $cxals);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Writes the Excel BIFF EXTERNSHEET record. These references are used by
+ * formulas. NAME record is required to define the print area and the repeat
+ * rows and columns.
+ *
+ * A similar method is used in Worksheet.php for a slightly different purpose.
+ *
+ * @param string $sheetname Worksheet name
+ */
+ private function writeExternalSheet($sheetname)
+ {
+ $record = 0x0017; // Record identifier
+ $length = 0x02 + strlen($sheetname); // Number of bytes to follow
+
+ $cch = strlen($sheetname); // Length of sheet name
+ $rgch = 0x03; // Filename encoding
+
+ $header = pack("vv", $record, $length);
+ $data = pack("CC", $cch, $rgch);
+ $this->append($header . $data . $sheetname);
+ }
+
+ /**
+ * Store the NAME record in the short format that is used for storing the print
+ * area, repeat rows only and repeat columns only.
+ *
+ * @param integer $index Sheet index
+ * @param integer $type Built-in name type
+ * @param integer $rowmin Start row
+ * @param integer $rowmax End row
+ * @param integer $colmin Start colum
+ * @param integer $colmax End column
+ */
+ private function writeNameShort($index, $type, $rowmin, $rowmax, $colmin, $colmax)
+ {
+ $record = 0x0018; // Record identifier
+ $length = 0x0024; // Number of bytes to follow
+
+ $grbit = 0x0020; // Option flags
+ $chKey = 0x00; // Keyboard shortcut
+ $cch = 0x01; // Length of text name
+ $cce = 0x0015; // Length of text definition
+ $ixals = $index + 1; // Sheet index
+ $itab = $ixals; // Equal to ixals
+ $cchCustMenu = 0x00; // Length of cust menu text
+ $cchDescription = 0x00; // Length of description text
+ $cchHelptopic = 0x00; // Length of help topic text
+ $cchStatustext = 0x00; // Length of status bar text
+ $rgch = $type; // Built-in name type
+
+ $unknown03 = 0x3b;
+ $unknown04 = 0xffff - $index;
+ $unknown05 = 0x0000;
+ $unknown06 = 0x0000;
+ $unknown07 = 0x1087;
+ $unknown08 = 0x8005;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $grbit);
+ $data .= pack("C", $chKey);
+ $data .= pack("C", $cch);
+ $data .= pack("v", $cce);
+ $data .= pack("v", $ixals);
+ $data .= pack("v", $itab);
+ $data .= pack("C", $cchCustMenu);
+ $data .= pack("C", $cchDescription);
+ $data .= pack("C", $cchHelptopic);
+ $data .= pack("C", $cchStatustext);
+ $data .= pack("C", $rgch);
+ $data .= pack("C", $unknown03);
+ $data .= pack("v", $unknown04);
+ $data .= pack("v", $unknown05);
+ $data .= pack("v", $unknown06);
+ $data .= pack("v", $unknown07);
+ $data .= pack("v", $unknown08);
+ $data .= pack("v", $index);
+ $data .= pack("v", $index);
+ $data .= pack("v", $rowmin);
+ $data .= pack("v", $rowmax);
+ $data .= pack("C", $colmin);
+ $data .= pack("C", $colmax);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the NAME record in the long format that is used for storing the repeat
+ * rows and columns when both are specified. This shares a lot of code with
+ * writeNameShort() but we use a separate method to keep the code clean.
+ * Code abstraction for reuse can be carried too far, and I should know. ;-)
+ *
+ * @param integer $index Sheet index
+ * @param integer $type Built-in name type
+ * @param integer $rowmin Start row
+ * @param integer $rowmax End row
+ * @param integer $colmin Start colum
+ * @param integer $colmax End column
+ */
+ private function writeNameLong($index, $type, $rowmin, $rowmax, $colmin, $colmax)
+ {
+ $record = 0x0018; // Record identifier
+ $length = 0x003d; // Number of bytes to follow
+ $grbit = 0x0020; // Option flags
+ $chKey = 0x00; // Keyboard shortcut
+ $cch = 0x01; // Length of text name
+ $cce = 0x002e; // Length of text definition
+ $ixals = $index + 1; // Sheet index
+ $itab = $ixals; // Equal to ixals
+ $cchCustMenu = 0x00; // Length of cust menu text
+ $cchDescription = 0x00; // Length of description text
+ $cchHelptopic = 0x00; // Length of help topic text
+ $cchStatustext = 0x00; // Length of status bar text
+ $rgch = $type; // Built-in name type
+
+ $unknown01 = 0x29;
+ $unknown02 = 0x002b;
+ $unknown03 = 0x3b;
+ $unknown04 = 0xffff-$index;
+ $unknown05 = 0x0000;
+ $unknown06 = 0x0000;
+ $unknown07 = 0x1087;
+ $unknown08 = 0x8008;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $grbit);
+ $data .= pack("C", $chKey);
+ $data .= pack("C", $cch);
+ $data .= pack("v", $cce);
+ $data .= pack("v", $ixals);
+ $data .= pack("v", $itab);
+ $data .= pack("C", $cchCustMenu);
+ $data .= pack("C", $cchDescription);
+ $data .= pack("C", $cchHelptopic);
+ $data .= pack("C", $cchStatustext);
+ $data .= pack("C", $rgch);
+ $data .= pack("C", $unknown01);
+ $data .= pack("v", $unknown02);
+ // Column definition
+ $data .= pack("C", $unknown03);
+ $data .= pack("v", $unknown04);
+ $data .= pack("v", $unknown05);
+ $data .= pack("v", $unknown06);
+ $data .= pack("v", $unknown07);
+ $data .= pack("v", $unknown08);
+ $data .= pack("v", $index);
+ $data .= pack("v", $index);
+ $data .= pack("v", 0x0000);
+ $data .= pack("v", 0x3fff);
+ $data .= pack("C", $colmin);
+ $data .= pack("C", $colmax);
+ // Row definition
+ $data .= pack("C", $unknown03);
+ $data .= pack("v", $unknown04);
+ $data .= pack("v", $unknown05);
+ $data .= pack("v", $unknown06);
+ $data .= pack("v", $unknown07);
+ $data .= pack("v", $unknown08);
+ $data .= pack("v", $index);
+ $data .= pack("v", $index);
+ $data .= pack("v", $rowmin);
+ $data .= pack("v", $rowmax);
+ $data .= pack("C", 0x00);
+ $data .= pack("C", 0xff);
+ // End of data
+ $data .= pack("C", 0x10);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Stores the COUNTRY record for localization
+ *
+ * @return string
+ */
+ private function writeCountry()
+ {
+ $record = 0x008C; // Record identifier
+ $length = 4; // Number of bytes to follow
+
+ $header = pack('vv', $record, $length);
+ /* using the same country code always for simplicity */
+ $data = pack('vv', $this->countryCode, $this->countryCode);
+ //$this->append($header . $data);
+ return $this->writeData($header . $data);
+ }
+
+ /**
+ * Write the RECALCID record
+ *
+ * @return string
+ */
+ private function writeRecalcId()
+ {
+ $record = 0x01C1; // Record identifier
+ $length = 8; // Number of bytes to follow
+
+ $header = pack('vv', $record, $length);
+
+ // by inspection of real Excel files, MS Office Excel 2007 writes this
+ $data = pack('VV', 0x000001C1, 0x00001E667);
+
+ return $this->writeData($header . $data);
+ }
+
+ /**
+ * Stores the PALETTE biff record.
+ */
+ private function writePalette()
+ {
+ $aref = $this->palette;
+
+ $record = 0x0092; // Record identifier
+ $length = 2 + 4 * count($aref); // Number of bytes to follow
+ $ccv = count($aref); // Number of RGB values to follow
+ $data = ''; // The RGB data
+
+ // Pack the RGB data
+ foreach ($aref as $color) {
+ foreach ($color as $byte) {
+ $data .= pack("C", $byte);
+ }
+ }
+
+ $header = pack("vvv", $record, $length, $ccv);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Handling of the SST continue blocks is complicated by the need to include an
+ * additional continuation byte depending on whether the string is split between
+ * blocks or whether it starts at the beginning of the block. (There are also
+ * additional complications that will arise later when/if Rich Strings are
+ * supported).
+ *
+ * The Excel documentation says that the SST record should be followed by an
+ * EXTSST record. The EXTSST record is a hash table that is used to optimise
+ * access to SST. However, despite the documentation it doesn't seem to be
+ * required so we will ignore it.
+ *
+ * @return string Binary data
+ */
+ private function writeSharedStringsTable()
+ {
+ // maximum size of record data (excluding record header)
+ $continue_limit = 8224;
+
+ // initialize array of record data blocks
+ $recordDatas = array();
+
+ // start SST record data block with total number of strings, total number of unique strings
+ $recordData = pack("VV", $this->stringTotal, $this->stringUnique);
+
+ // loop through all (unique) strings in shared strings table
+ foreach (array_keys($this->stringTable) as $string) {
+ // here $string is a BIFF8 encoded string
+
+ // length = character count
+ $headerinfo = unpack("vlength/Cencoding", $string);
+
+ // currently, this is always 1 = uncompressed
+ $encoding = $headerinfo["encoding"];
+
+ // initialize finished writing current $string
+ $finished = false;
+
+ while ($finished === false) {
+ // normally, there will be only one cycle, but if string cannot immediately be written as is
+ // there will be need for more than one cylcle, if string longer than one record data block, there
+ // may be need for even more cycles
+
+ if (strlen($recordData) + strlen($string) <= $continue_limit) {
+ // then we can write the string (or remainder of string) without any problems
+ $recordData .= $string;
+
+ if (strlen($recordData) + strlen($string) == $continue_limit) {
+ // we close the record data block, and initialize a new one
+ $recordDatas[] = $recordData;
+ $recordData = '';
+ }
+
+ // we are finished writing this string
+ $finished = true;
+ } else {
+ // special treatment writing the string (or remainder of the string)
+ // If the string is very long it may need to be written in more than one CONTINUE record.
+
+ // check how many bytes more there is room for in the current record
+ $space_remaining = $continue_limit - strlen($recordData);
+
+ // minimum space needed
+ // uncompressed: 2 byte string length length field + 1 byte option flags + 2 byte character
+ // compressed: 2 byte string length length field + 1 byte option flags + 1 byte character
+ $min_space_needed = ($encoding == 1) ? 5 : 4;
+
+ // We have two cases
+ // 1. space remaining is less than minimum space needed
+ // here we must waste the space remaining and move to next record data block
+ // 2. space remaining is greater than or equal to minimum space needed
+ // here we write as much as we can in the current block, then move to next record data block
+
+ // 1. space remaining is less than minimum space needed
+ if ($space_remaining < $min_space_needed) {
+ // we close the block, store the block data
+ $recordDatas[] = $recordData;
+
+ // and start new record data block where we start writing the string
+ $recordData = '';
+
+ // 2. space remaining is greater than or equal to minimum space needed
+ } else {
+ // initialize effective remaining space, for Unicode strings this may need to be reduced by 1, see below
+ $effective_space_remaining = $space_remaining;
+
+ // for uncompressed strings, sometimes effective space remaining is reduced by 1
+ if ($encoding == 1 && (strlen($string) - $space_remaining) % 2 == 1) {
+ --$effective_space_remaining;
+ }
+
+ // one block fininshed, store the block data
+ $recordData .= substr($string, 0, $effective_space_remaining);
+
+ $string = substr($string, $effective_space_remaining); // for next cycle in while loop
+ $recordDatas[] = $recordData;
+
+ // start new record data block with the repeated option flags
+ $recordData = pack('C', $encoding);
+ }
+ }
+ }
+ }
+
+ // Store the last record data block unless it is empty
+ // if there was no need for any continue records, this will be the for SST record data block itself
+ if (strlen($recordData) > 0) {
+ $recordDatas[] = $recordData;
+ }
+
+ // combine into one chunk with all the blocks SST, CONTINUE,...
+ $chunk = '';
+ foreach ($recordDatas as $i => $recordData) {
+ // first block should have the SST record header, remaing should have CONTINUE header
+ $record = ($i == 0) ? 0x00FC : 0x003C;
+
+ $header = pack("vv", $record, strlen($recordData));
+ $data = $header . $recordData;
+
+ $chunk .= $this->writeData($data);
+ }
+
+ return $chunk;
+ }
+
+ /**
+ * Writes the MSODRAWINGGROUP record if needed. Possibly split using CONTINUE records.
+ */
+ private function writeMsoDrawingGroup()
+ {
+ // write the Escher stream if necessary
+ if (isset($this->escher)) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($this->escher);
+ $data = $writer->close();
+
+ $record = 0x00EB;
+ $length = strlen($data);
+ $header = pack("vv", $record, $length);
+
+ return $this->writeData($header . $data);
+ } else {
+ return '';
+ }
+ }
+
+ /**
+ * Get Escher object
+ *
+ * @return PHPExcel_Shared_Escher
+ */
+ public function getEscher()
+ {
+ return $this->escher;
+ }
+
+ /**
+ * Set Escher object
+ *
+ * @param PHPExcel_Shared_Escher $pValue
+ */
+ public function setEscher(PHPExcel_Shared_Escher $pValue = null)
+ {
+ $this->escher = $pValue;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
index fb75499b..be965e23 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php
@@ -1,8 +1,9 @@
_limit = 8224;
-
-
- $this->_preCalculateFormulas = $preCalculateFormulas;
- $this->_str_total = &$str_total;
- $this->_str_unique = &$str_unique;
- $this->_str_table = &$str_table;
- $this->_colors = &$colors;
- $this->_parser = $parser;
-
- $this->_phpSheet = $phpSheet;
-
- //$this->ext_sheets = array();
- //$this->offset = 0;
- $this->_xls_strmax = 255;
- $this->_colinfo = array();
- $this->_selection = array(0,0,0,0);
- $this->_active_pane = 3;
-
- $this->_print_headers = 0;
-
- $this->_outline_style = 0;
- $this->_outline_below = 1;
- $this->_outline_right = 1;
- $this->_outline_on = 1;
-
- $this->_fntHashIndex = array();
-
- // calculate values for DIMENSIONS record
- $minR = 1;
- $minC = 'A';
-
- $maxR = $this->_phpSheet->getHighestRow();
- $maxC = $this->_phpSheet->getHighestColumn();
-
- // Determine lowest and highest column and row
-// $this->_firstRowIndex = ($minR > 65535) ? 65535 : $minR;
- $this->_lastRowIndex = ($maxR > 65535) ? 65535 : $maxR ;
-
- $this->_firstColumnIndex = PHPExcel_Cell::columnIndexFromString($minC);
- $this->_lastColumnIndex = PHPExcel_Cell::columnIndexFromString($maxC);
-
-// if ($this->_firstColumnIndex > 255) $this->_firstColumnIndex = 255;
- if ($this->_lastColumnIndex > 255) $this->_lastColumnIndex = 255;
-
- $this->_countCellStyleXfs = count($phpSheet->getParent()->getCellStyleXfCollection());
- }
-
- /**
- * Add data to the beginning of the workbook (note the reverse order)
- * and to the end of the workbook.
- *
- * @access public
- * @see PHPExcel_Writer_Excel5_Workbook::storeWorkbook()
- */
- function close()
- {
- $_phpSheet = $this->_phpSheet;
-
- $num_sheets = $_phpSheet->getParent()->getSheetCount();
-
- // Write BOF record
- $this->_storeBof(0x0010);
-
- // Write PRINTHEADERS
- $this->_writePrintHeaders();
-
- // Write PRINTGRIDLINES
- $this->_writePrintGridlines();
-
- // Write GRIDSET
- $this->_writeGridset();
-
- // Calculate column widths
- $_phpSheet->calculateColumnWidths();
-
- // Column dimensions
- if (($defaultWidth = $_phpSheet->getDefaultColumnDimension()->getWidth()) < 0) {
- $defaultWidth = PHPExcel_Shared_Font::getDefaultColumnWidthByFont($_phpSheet->getParent()->getDefaultStyle()->getFont());
- }
-
- $columnDimensions = $_phpSheet->getColumnDimensions();
- $maxCol = $this->_lastColumnIndex -1;
- for ($i = 0; $i <= $maxCol; ++$i) {
- $hidden = 0;
- $level = 0;
- $xfIndex = 15; // there are 15 cell style Xfs
-
- $width = $defaultWidth;
-
- $columnLetter = PHPExcel_Cell::stringFromColumnIndex($i);
- if (isset($columnDimensions[$columnLetter])) {
- $columnDimension = $columnDimensions[$columnLetter];
- if ($columnDimension->getWidth() >= 0) {
- $width = $columnDimension->getWidth();
- }
- $hidden = $columnDimension->getVisible() ? 0 : 1;
- $level = $columnDimension->getOutlineLevel();
- $xfIndex = $columnDimension->getXfIndex() + 15; // there are 15 cell style Xfs
- }
-
- // Components of _colinfo:
- // $firstcol first column on the range
- // $lastcol last column on the range
- // $width width to set
- // $xfIndex The optional cell style Xf index to apply to the columns
- // $hidden The optional hidden atribute
- // $level The optional outline level
- $this->_colinfo[] = array($i, $i, $width, $xfIndex, $hidden, $level);
- }
-
- // Write GUTS
- $this->_writeGuts();
-
- // Write DEFAULTROWHEIGHT
- $this->_writeDefaultRowHeight();
-
- // Write WSBOOL
- $this->_writeWsbool();
-
- // Write horizontal and vertical page breaks
- $this->_writeBreaks();
-
- // Write page header
- $this->_writeHeader();
-
- // Write page footer
- $this->_writeFooter();
-
- // Write page horizontal centering
- $this->_writeHcenter();
-
- // Write page vertical centering
- $this->_writeVcenter();
-
- // Write left margin
- $this->_writeMarginLeft();
-
- // Write right margin
- $this->_writeMarginRight();
-
- // Write top margin
- $this->_writeMarginTop();
-
- // Write bottom margin
- $this->_writeMarginBottom();
-
- // Write page setup
- $this->_writeSetup();
-
- // Write sheet protection
- $this->_writeProtect();
-
- // Write SCENPROTECT
- $this->_writeScenProtect();
-
- // Write OBJECTPROTECT
- $this->_writeObjectProtect();
-
- // Write sheet password
- $this->_writePassword();
-
- // Write DEFCOLWIDTH record
- $this->_writeDefcol();
-
- // Write the COLINFO records if they exist
- if (!empty($this->_colinfo)) {
- $colcount = count($this->_colinfo);
- for ($i = 0; $i < $colcount; ++$i) {
- $this->_writeColinfo($this->_colinfo[$i]);
- }
- }
- $autoFilterRange = $_phpSheet->getAutoFilter()->getRange();
- if (!empty($autoFilterRange)) {
- // Write AUTOFILTERINFO
- $this->_writeAutoFilterInfo();
- }
-
- // Write sheet dimensions
- $this->_writeDimensions();
-
- // Row dimensions
- foreach ($_phpSheet->getRowDimensions() as $rowDimension) {
- $xfIndex = $rowDimension->getXfIndex() + 15; // there are 15 cellXfs
- $this->_writeRow( $rowDimension->getRowIndex() - 1, $rowDimension->getRowHeight(), $xfIndex, ($rowDimension->getVisible() ? '0' : '1'), $rowDimension->getOutlineLevel() );
- }
-
- // Write Cells
- foreach ($_phpSheet->getCellCollection() as $cellID) {
- $cell = $_phpSheet->getCell($cellID);
- $row = $cell->getRow() - 1;
- $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1;
-
- // Don't break Excel!
-// if ($row + 1 > 65536 or $column + 1 > 256) {
- if ($row > 65535 || $column > 255) {
- break;
- }
-
- // Write cell value
- $xfIndex = $cell->getXfIndex() + 15; // there are 15 cell style Xfs
-
- $cVal = $cell->getValue();
- if ($cVal instanceof PHPExcel_RichText) {
- // $this->_writeString($row, $column, $cVal->getPlainText(), $xfIndex);
- $arrcRun = array();
- $str_len = PHPExcel_Shared_String::CountCharacters($cVal->getPlainText(), 'UTF-8');
- $str_pos = 0;
- $elements = $cVal->getRichTextElements();
- foreach ($elements as $element) {
- // FONT Index
- if ($element instanceof PHPExcel_RichText_Run) {
- $str_fontidx = $this->_fntHashIndex[$element->getFont()->getHashCode()];
- }
- else {
- $str_fontidx = 0;
- }
- $arrcRun[] = array('strlen' => $str_pos, 'fontidx' => $str_fontidx);
- // Position FROM
- $str_pos += PHPExcel_Shared_String::CountCharacters($element->getText(), 'UTF-8');
- }
- $this->_writeRichTextString($row, $column, $cVal->getPlainText(), $xfIndex, $arrcRun);
- } else {
- switch ($cell->getDatatype()) {
- case PHPExcel_Cell_DataType::TYPE_STRING:
- case PHPExcel_Cell_DataType::TYPE_NULL:
- if ($cVal === '' || $cVal === null) {
- $this->_writeBlank($row, $column, $xfIndex);
- } else {
- $this->_writeString($row, $column, $cVal, $xfIndex);
- }
- break;
-
- case PHPExcel_Cell_DataType::TYPE_NUMERIC:
- $this->_writeNumber($row, $column, $cVal, $xfIndex);
- break;
-
- case PHPExcel_Cell_DataType::TYPE_FORMULA:
- $calculatedValue = $this->_preCalculateFormulas ?
- $cell->getCalculatedValue() : null;
- $this->_writeFormula($row, $column, $cVal, $xfIndex, $calculatedValue);
- break;
-
- case PHPExcel_Cell_DataType::TYPE_BOOL:
- $this->_writeBoolErr($row, $column, $cVal, 0, $xfIndex);
- break;
-
- case PHPExcel_Cell_DataType::TYPE_ERROR:
- $this->_writeBoolErr($row, $column, self::_mapErrorCode($cVal), 1, $xfIndex);
- break;
-
- }
- }
- }
-
- // Append
- $this->_writeMsoDrawing();
-
- // Write WINDOW2 record
- $this->_writeWindow2();
-
- // Write PLV record
- $this->_writePageLayoutView();
-
- // Write ZOOM record
- $this->_writeZoom();
- if ($_phpSheet->getFreezePane()) {
- $this->_writePanes();
- }
-
- // Write SELECTION record
- $this->_writeSelection();
-
- // Write MergedCellsTable Record
- $this->_writeMergedCells();
-
- // Hyperlinks
- foreach ($_phpSheet->getHyperLinkCollection() as $coordinate => $hyperlink) {
- list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinate);
-
- $url = $hyperlink->getUrl();
-
- if ( strpos($url, 'sheet://') !== false ) {
- // internal to current workbook
- $url = str_replace('sheet://', 'internal:', $url);
-
- } else if ( preg_match('/^(http:|https:|ftp:|mailto:)/', $url) ) {
- // URL
- // $url = $url;
-
- } else {
- // external (local file)
- $url = 'external:' . $url;
- }
-
- $this->_writeUrl($row - 1, PHPExcel_Cell::columnIndexFromString($column) - 1, $url);
- }
-
- $this->_writeDataValidity();
- $this->_writeSheetLayout();
-
- // Write SHEETPROTECTION record
- $this->_writeSheetProtection();
- $this->_writeRangeProtection();
-
- $arrConditionalStyles = $_phpSheet->getConditionalStylesCollection();
- if(!empty($arrConditionalStyles)){
- $arrConditional = array();
- // @todo CFRule & CFHeader
- // Write CFHEADER record
- $this->_writeCFHeader();
- // Write ConditionalFormattingTable records
- foreach ($arrConditionalStyles as $cellCoordinate => $conditionalStyles) {
- foreach ($conditionalStyles as $conditional) {
- if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION
- || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){
- if(!in_array($conditional->getHashCode(), $arrConditional)){
- $arrConditional[] = $conditional->getHashCode();
- // Write CFRULE record
- $this->_writeCFRule($conditional);
- }
- }
- }
- }
- }
-
- $this->_storeEof();
- }
-
- /**
- * Write a cell range address in BIFF8
- * always fixed range
- * See section 2.5.14 in OpenOffice.org's Documentation of the Microsoft Excel File Format
- *
- * @param string $range E.g. 'A1' or 'A1:B6'
- * @return string Binary data
- */
- private function _writeBIFF8CellRangeAddressFixed($range = 'A1')
- {
- $explodes = explode(':', $range);
-
- // extract first cell, e.g. 'A1'
- $firstCell = $explodes[0];
-
- // extract last cell, e.g. 'B6'
- if (count($explodes) == 1) {
- $lastCell = $firstCell;
- } else {
- $lastCell = $explodes[1];
- }
-
- $firstCellCoordinates = PHPExcel_Cell::coordinateFromString($firstCell); // e.g. array(0, 1)
- $lastCellCoordinates = PHPExcel_Cell::coordinateFromString($lastCell); // e.g. array(1, 6)
-
- return(pack('vvvv',
- $firstCellCoordinates[1] - 1,
- $lastCellCoordinates[1] - 1,
- PHPExcel_Cell::columnIndexFromString($firstCellCoordinates[0]) - 1,
- PHPExcel_Cell::columnIndexFromString($lastCellCoordinates[0]) - 1
- ));
- }
-
- /**
- * Retrieves data from memory in one chunk, or from disk in $buffer
- * sized chunks.
- *
- * @return string The data
- */
- function getData()
- {
- $buffer = 4096;
-
- // Return data stored in memory
- if (isset($this->_data)) {
- $tmp = $this->_data;
- unset($this->_data);
- return $tmp;
- }
- // No data to return
- return false;
- }
-
- /**
- * Set the option to print the row and column headers on the printed page.
- *
- * @access public
- * @param integer $print Whether to print the headers or not. Defaults to 1 (print).
- */
- function printRowColHeaders($print = 1)
- {
- $this->_print_headers = $print;
- }
-
- /**
- * This method sets the properties for outlining and grouping. The defaults
- * correspond to Excel's defaults.
- *
- * @param bool $visible
- * @param bool $symbols_below
- * @param bool $symbols_right
- * @param bool $auto_style
- */
- function setOutline($visible = true, $symbols_below = true, $symbols_right = true, $auto_style = false)
- {
- $this->_outline_on = $visible;
- $this->_outline_below = $symbols_below;
- $this->_outline_right = $symbols_right;
- $this->_outline_style = $auto_style;
-
- // Ensure this is a boolean vale for Window2
- if ($this->_outline_on) {
- $this->_outline_on = 1;
- }
- }
-
- /**
- * Write a double to the specified row and column (zero indexed).
- * An integer can be written as a double. Excel will display an
- * integer. $format is optional.
- *
- * Returns 0 : normal termination
- * -2 : row or column out of range
- *
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param float $num The number to write
- * @param mixed $xfIndex The optional XF format
- * @return integer
- */
- private function _writeNumber($row, $col, $num, $xfIndex)
- {
- $record = 0x0203; // Record identifier
- $length = 0x000E; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("vvv", $row, $col, $xfIndex);
- $xl_double = pack("d", $num);
- if (self::getByteOrder()) { // if it's Big Endian
- $xl_double = strrev($xl_double);
- }
-
- $this->_append($header.$data.$xl_double);
- return(0);
- }
-
- /**
- * Write a LABELSST record or a LABEL record. Which one depends on BIFF version
- *
- * @param int $row Row index (0-based)
- * @param int $col Column index (0-based)
- * @param string $str The string
- * @param int $xfIndex Index to XF record
- */
- private function _writeString($row, $col, $str, $xfIndex)
- {
- $this->_writeLabelSst($row, $col, $str, $xfIndex);
- }
-
- /**
- * Write a LABELSST record or a LABEL record. Which one depends on BIFF version
- * It differs from _writeString by the writing of rich text strings.
- * @param int $row Row index (0-based)
- * @param int $col Column index (0-based)
- * @param string $str The string
- * @param mixed $xfIndex The XF format index for the cell
- * @param array $arrcRun Index to Font record and characters beginning
- */
- private function _writeRichTextString($row, $col, $str, $xfIndex, $arrcRun){
- $record = 0x00FD; // Record identifier
- $length = 0x000A; // Bytes to follow
- $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun);
-
- /* check if string is already present */
- if (!isset($this->_str_table[$str])) {
- $this->_str_table[$str] = $this->_str_unique++;
- }
- $this->_str_total++;
-
- $header = pack('vv', $record, $length);
- $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]);
- $this->_append($header.$data);
- }
-
- /**
- * Write a string to the specified row and column (zero indexed).
- * NOTE: there is an Excel 5 defined limit of 255 characters.
- * $format is optional.
- * Returns 0 : normal termination
- * -2 : row or column out of range
- * -3 : long string truncated to 255 chars
- *
- * @access public
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param string $str The string to write
- * @param mixed $xfIndex The XF format index for the cell
- * @return integer
- */
- private function _writeLabel($row, $col, $str, $xfIndex)
- {
- $strlen = strlen($str);
- $record = 0x0204; // Record identifier
- $length = 0x0008 + $strlen; // Bytes to follow
-
- $str_error = 0;
-
- if ($strlen > $this->_xls_strmax) { // LABEL must be < 255 chars
- $str = substr($str, 0, $this->_xls_strmax);
- $length = 0x0008 + $this->_xls_strmax;
- $strlen = $this->_xls_strmax;
- $str_error = -3;
- }
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvv", $row, $col, $xfIndex, $strlen);
- $this->_append($header . $data . $str);
- return($str_error);
- }
-
- /**
- * Write a string to the specified row and column (zero indexed).
- * This is the BIFF8 version (no 255 chars limit).
- * $format is optional.
- * Returns 0 : normal termination
- * -2 : row or column out of range
- * -3 : long string truncated to 255 chars
- *
- * @access public
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param string $str The string to write
- * @param mixed $xfIndex The XF format index for the cell
- * @return integer
- */
- private function _writeLabelSst($row, $col, $str, $xfIndex)
- {
- $record = 0x00FD; // Record identifier
- $length = 0x000A; // Bytes to follow
-
- $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($str);
-
- /* check if string is already present */
- if (!isset($this->_str_table[$str])) {
- $this->_str_table[$str] = $this->_str_unique++;
- }
- $this->_str_total++;
-
- $header = pack('vv', $record, $length);
- $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]);
- $this->_append($header.$data);
- }
-
- /**
- * Writes a note associated with the cell given by the row and column.
- * NOTE records don't have a length limit.
- *
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param string $note The note to write
- */
- private function _writeNote($row, $col, $note)
- {
- $note_length = strlen($note);
- $record = 0x001C; // Record identifier
- $max_length = 2048; // Maximun length for a NOTE record
-
- // Length for this record is no more than 2048 + 6
- $length = 0x0006 + min($note_length, 2048);
- $header = pack("vv", $record, $length);
- $data = pack("vvv", $row, $col, $note_length);
- $this->_append($header . $data . substr($note, 0, 2048));
-
- for ($i = $max_length; $i < $note_length; $i += $max_length) {
- $chunk = substr($note, $i, $max_length);
- $length = 0x0006 + strlen($chunk);
- $header = pack("vv", $record, $length);
- $data = pack("vvv", -1, 0, strlen($chunk));
- $this->_append($header.$data.$chunk);
- }
- return(0);
- }
-
- /**
- * Write a blank cell to the specified row and column (zero indexed).
- * A blank cell is used to specify formatting without adding a string
- * or a number.
- *
- * A blank cell without a format serves no purpose. Therefore, we don't write
- * a BLANK record unless a format is specified.
- *
- * Returns 0 : normal termination (including no format)
- * -1 : insufficient number of arguments
- * -2 : row or column out of range
- *
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param mixed $xfIndex The XF format index
- */
- function _writeBlank($row, $col, $xfIndex)
- {
- $record = 0x0201; // Record identifier
- $length = 0x0006; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("vvv", $row, $col, $xfIndex);
- $this->_append($header . $data);
- return 0;
- }
-
- /**
- * Write a boolean or an error type to the specified row and column (zero indexed)
- *
- * @param int $row Row index (0-based)
- * @param int $col Column index (0-based)
- * @param int $value
- * @param boolean $isError Error or Boolean?
- * @param int $xfIndex
- */
- private function _writeBoolErr($row, $col, $value, $isError, $xfIndex)
- {
- $record = 0x0205;
- $length = 8;
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvCC", $row, $col, $xfIndex, $value, $isError);
- $this->_append($header . $data);
- return 0;
- }
-
- /**
- * Write a formula to the specified row and column (zero indexed).
- * The textual representation of the formula is passed to the parser in
- * Parser.php which returns a packed binary string.
- *
- * Returns 0 : normal termination
- * -1 : formula errors (bad formula)
- * -2 : row or column out of range
- *
- * @param integer $row Zero indexed row
- * @param integer $col Zero indexed column
- * @param string $formula The formula text string
- * @param mixed $xfIndex The XF format index
- * @param mixed $calculatedValue Calculated value
- * @return integer
- */
- private function _writeFormula($row, $col, $formula, $xfIndex, $calculatedValue)
- {
- $record = 0x0006; // Record identifier
-
- // Initialize possible additional value for STRING record that should be written after the FORMULA record?
- $stringValue = null;
-
- // calculated value
- if (isset($calculatedValue)) {
- // Since we can't yet get the data type of the calculated value,
- // we use best effort to determine data type
- if (is_bool($calculatedValue)) {
- // Boolean value
- $num = pack('CCCvCv', 0x01, 0x00, (int)$calculatedValue, 0x00, 0x00, 0xFFFF);
- } elseif (is_int($calculatedValue) || is_float($calculatedValue)) {
- // Numeric value
- $num = pack('d', $calculatedValue);
- } elseif (is_string($calculatedValue)) {
- if (array_key_exists($calculatedValue, PHPExcel_Cell_DataType::getErrorCodes())) {
- // Error value
- $num = pack('CCCvCv', 0x02, 0x00, self::_mapErrorCode($calculatedValue), 0x00, 0x00, 0xFFFF);
- } elseif ($calculatedValue === '') {
- // Empty string (and BIFF8)
- $num = pack('CCCvCv', 0x03, 0x00, 0x00, 0x00, 0x00, 0xFFFF);
- } else {
- // Non-empty string value (or empty string BIFF5)
- $stringValue = $calculatedValue;
- $num = pack('CCCvCv', 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFF);
- }
- } else {
- // We are really not supposed to reach here
- $num = pack('d', 0x00);
- }
- } else {
- $num = pack('d', 0x00);
- }
-
- $grbit = 0x03; // Option flags
- $unknown = 0x0000; // Must be zero
-
- // Strip the '=' or '@' sign at the beginning of the formula string
- if ($formula{0} == '=') {
- $formula = substr($formula,1);
- } else {
- // Error handling
- $this->_writeString($row, $col, 'Unrecognised character for formula');
- return -1;
- }
-
- // Parse the formula using the parser in Parser.php
- try {
- $error = $this->_parser->parse($formula);
- $formula = $this->_parser->toReversePolish();
-
- $formlen = strlen($formula); // Length of the binary string
- $length = 0x16 + $formlen; // Length of the record data
-
- $header = pack("vv", $record, $length);
-
- $data = pack("vvv", $row, $col, $xfIndex)
- . $num
- . pack("vVv", $grbit, $unknown, $formlen);
- $this->_append($header . $data . $formula);
-
- // Append also a STRING record if necessary
- if ($stringValue !== null) {
- $this->_writeStringRecord($stringValue);
- }
-
- return 0;
-
- } catch (PHPExcel_Exception $e) {
- // do nothing
- }
-
- }
-
- /**
- * Write a STRING record. This
- *
- * @param string $stringValue
- */
- private function _writeStringRecord($stringValue)
- {
- $record = 0x0207; // Record identifier
- $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue);
-
- $length = strlen($data);
- $header = pack('vv', $record, $length);
-
- $this->_append($header . $data);
- }
-
- /**
- * Write a hyperlink.
- * This is comprised of two elements: the visible label and
- * the invisible link. The visible label is the same as the link unless an
- * alternative string is specified. The label is written using the
- * _writeString() method. Therefore the 255 characters string limit applies.
- * $string and $format are optional.
- *
- * The hyperlink can be to a http, ftp, mail, internal sheet (not yet), or external
- * directory url.
- *
- * Returns 0 : normal termination
- * -2 : row or column out of range
- * -3 : long string truncated to 255 chars
- *
- * @param integer $row Row
- * @param integer $col Column
- * @param string $url URL string
- * @return integer
- */
- private function _writeUrl($row, $col, $url)
- {
- // Add start row and col to arg list
- return($this->_writeUrlRange($row, $col, $row, $col, $url));
- }
-
- /**
- * This is the more general form of _writeUrl(). It allows a hyperlink to be
- * written to a range of cells. This function also decides the type of hyperlink
- * to be written. These are either, Web (http, ftp, mailto), Internal
- * (Sheet1!A1) or external ('c:\temp\foo.xls#Sheet1!A1').
- *
- * @access private
- * @see _writeUrl()
- * @param integer $row1 Start row
- * @param integer $col1 Start column
- * @param integer $row2 End row
- * @param integer $col2 End column
- * @param string $url URL string
- * @return integer
- */
- function _writeUrlRange($row1, $col1, $row2, $col2, $url)
- {
- // Check for internal/external sheet links or default to web link
- if (preg_match('[^internal:]', $url)) {
- return($this->_writeUrlInternal($row1, $col1, $row2, $col2, $url));
- }
- if (preg_match('[^external:]', $url)) {
- return($this->_writeUrlExternal($row1, $col1, $row2, $col2, $url));
- }
- return($this->_writeUrlWeb($row1, $col1, $row2, $col2, $url));
- }
-
- /**
- * Used to write http, ftp and mailto hyperlinks.
- * The link type ($options) is 0x03 is the same as absolute dir ref without
- * sheet. However it is differentiated by the $unknown2 data stream.
- *
- * @access private
- * @see _writeUrl()
- * @param integer $row1 Start row
- * @param integer $col1 Start column
- * @param integer $row2 End row
- * @param integer $col2 End column
- * @param string $url URL string
- * @return integer
- */
- function _writeUrlWeb($row1, $col1, $row2, $col2, $url)
- {
- $record = 0x01B8; // Record identifier
- $length = 0x00000; // Bytes to follow
-
- // Pack the undocumented parts of the hyperlink stream
- $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000");
- $unknown2 = pack("H*", "E0C9EA79F9BACE118C8200AA004BA90B");
-
- // Pack the option flags
- $options = pack("V", 0x03);
-
- // Convert URL to a null terminated wchar string
- $url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY));
- $url = $url . "\0\0\0";
-
- // Pack the length of the URL
- $url_len = pack("V", strlen($url));
-
- // Calculate the data length
- $length = 0x34 + strlen($url);
-
- // Pack the header data
- $header = pack("vv", $record, $length);
- $data = pack("vvvv", $row1, $row2, $col1, $col2);
-
- // Write the packed data
- $this->_append($header . $data .
- $unknown1 . $options .
- $unknown2 . $url_len . $url);
- return 0;
- }
-
- /**
- * Used to write internal reference hyperlinks such as "Sheet1!A1".
- *
- * @access private
- * @see _writeUrl()
- * @param integer $row1 Start row
- * @param integer $col1 Start column
- * @param integer $row2 End row
- * @param integer $col2 End column
- * @param string $url URL string
- * @return integer
- */
- function _writeUrlInternal($row1, $col1, $row2, $col2, $url)
- {
- $record = 0x01B8; // Record identifier
- $length = 0x00000; // Bytes to follow
-
- // Strip URL type
- $url = preg_replace('/^internal:/', '', $url);
-
- // Pack the undocumented parts of the hyperlink stream
- $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000");
-
- // Pack the option flags
- $options = pack("V", 0x08);
-
- // Convert the URL type and to a null terminated wchar string
- $url .= "\0";
-
- // character count
- $url_len = PHPExcel_Shared_String::CountCharacters($url);
- $url_len = pack('V', $url_len);
-
- $url = PHPExcel_Shared_String::ConvertEncoding($url, 'UTF-16LE', 'UTF-8');
-
- // Calculate the data length
- $length = 0x24 + strlen($url);
-
- // Pack the header data
- $header = pack("vv", $record, $length);
- $data = pack("vvvv", $row1, $row2, $col1, $col2);
-
- // Write the packed data
- $this->_append($header . $data .
- $unknown1 . $options .
- $url_len . $url);
- return 0;
- }
-
- /**
- * Write links to external directory names such as 'c:\foo.xls',
- * c:\foo.xls#Sheet1!A1', '../../foo.xls'. and '../../foo.xls#Sheet1!A1'.
- *
- * Note: Excel writes some relative links with the $dir_long string. We ignore
- * these cases for the sake of simpler code.
- *
- * @access private
- * @see _writeUrl()
- * @param integer $row1 Start row
- * @param integer $col1 Start column
- * @param integer $row2 End row
- * @param integer $col2 End column
- * @param string $url URL string
- * @return integer
- */
- function _writeUrlExternal($row1, $col1, $row2, $col2, $url)
- {
- // Network drives are different. We will handle them separately
- // MS/Novell network drives and shares start with \\
- if (preg_match('[^external:\\\\]', $url)) {
- return; //($this->_writeUrlExternal_net($row1, $col1, $row2, $col2, $url, $str, $format));
- }
-
- $record = 0x01B8; // Record identifier
- $length = 0x00000; // Bytes to follow
-
- // Strip URL type and change Unix dir separator to Dos style (if needed)
- //
- $url = preg_replace('/^external:/', '', $url);
- $url = preg_replace('/\//', "\\", $url);
-
- // Determine if the link is relative or absolute:
- // relative if link contains no dir separator, "somefile.xls"
- // relative if link starts with up-dir, "..\..\somefile.xls"
- // otherwise, absolute
-
- $absolute = 0x00; // relative path
- if ( preg_match('/^[A-Z]:/', $url) ) {
- $absolute = 0x02; // absolute path on Windows, e.g. C:\...
- }
- $link_type = 0x01 | $absolute;
-
- // Determine if the link contains a sheet reference and change some of the
- // parameters accordingly.
- // Split the dir name and sheet name (if it exists)
- $dir_long = $url;
- if (preg_match("/\#/", $url)) {
- $link_type |= 0x08;
- }
-
-
- // Pack the link type
- $link_type = pack("V", $link_type);
-
- // Calculate the up-level dir count e.g.. (..\..\..\ == 3)
- $up_count = preg_match_all("/\.\.\\\/", $dir_long, $useless);
- $up_count = pack("v", $up_count);
-
- // Store the short dos dir name (null terminated)
- $dir_short = preg_replace("/\.\.\\\/", '', $dir_long) . "\0";
-
- // Store the long dir name as a wchar string (non-null terminated)
- $dir_long = $dir_long . "\0";
-
- // Pack the lengths of the dir strings
- $dir_short_len = pack("V", strlen($dir_short) );
- $dir_long_len = pack("V", strlen($dir_long) );
- $stream_len = pack("V", 0);//strlen($dir_long) + 0x06);
-
- // Pack the undocumented parts of the hyperlink stream
- $unknown1 = pack("H*",'D0C9EA79F9BACE118C8200AA004BA90B02000000' );
- $unknown2 = pack("H*",'0303000000000000C000000000000046' );
- $unknown3 = pack("H*",'FFFFADDE000000000000000000000000000000000000000');
- $unknown4 = pack("v", 0x03 );
-
- // Pack the main data stream
- $data = pack("vvvv", $row1, $row2, $col1, $col2) .
- $unknown1 .
- $link_type .
- $unknown2 .
- $up_count .
- $dir_short_len.
- $dir_short .
- $unknown3 .
- $stream_len ;/*.
- $dir_long_len .
- $unknown4 .
- $dir_long .
- $sheet_len .
- $sheet ;*/
-
- // Pack the header data
- $length = strlen($data);
- $header = pack("vv", $record, $length);
-
- // Write the packed data
- $this->_append($header. $data);
- return 0;
- }
-
- /**
- * This method is used to set the height and format for a row.
- *
- * @param integer $row The row to set
- * @param integer $height Height we are giving to the row.
- * Use null to set XF without setting height
- * @param integer $xfIndex The optional cell style Xf index to apply to the columns
- * @param bool $hidden The optional hidden attribute
- * @param integer $level The optional outline level for row, in range [0,7]
- */
- private function _writeRow($row, $height, $xfIndex, $hidden = false, $level = 0)
- {
- $record = 0x0208; // Record identifier
- $length = 0x0010; // Number of bytes to follow
-
- $colMic = 0x0000; // First defined column
- $colMac = 0x0000; // Last defined column
- $irwMac = 0x0000; // Used by Excel to optimise loading
- $reserved = 0x0000; // Reserved
- $grbit = 0x0000; // Option flags
- $ixfe = $xfIndex;
-
- if ( $height < 0 ){
- $height = null;
- }
-
- // Use _writeRow($row, null, $XF) to set XF format without setting height
- if ($height != null) {
- $miyRw = $height * 20; // row height
- } else {
- $miyRw = 0xff; // default row height is 256
- }
-
- // Set the options flags. fUnsynced is used to show that the font and row
- // heights are not compatible. This is usually the case for WriteExcel.
- // The collapsed flag 0x10 doesn't seem to be used to indicate that a row
- // is collapsed. Instead it is used to indicate that the previous row is
- // collapsed. The zero height flag, 0x20, is used to collapse a row.
-
- $grbit |= $level;
- if ($hidden) {
- $grbit |= 0x0030;
- }
- if ($height !== null) {
- $grbit |= 0x0040; // fUnsynced
- }
- if ($xfIndex !== 0xF) {
- $grbit |= 0x0080;
- }
- $grbit |= 0x0100;
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvvvvvv", $row, $colMic, $colMac, $miyRw,
- $irwMac,$reserved, $grbit, $ixfe);
- $this->_append($header.$data);
- }
-
- /**
- * Writes Excel DIMENSIONS to define the area in which there is data.
- */
- private function _writeDimensions()
- {
- $record = 0x0200; // Record identifier
-
- $length = 0x000E;
- $data = pack('VVvvv'
- , $this->_firstRowIndex
- , $this->_lastRowIndex + 1
- , $this->_firstColumnIndex
- , $this->_lastColumnIndex + 1
- , 0x0000 // reserved
- );
-
- $header = pack("vv", $record, $length);
- $this->_append($header.$data);
- }
-
- /**
- * Write BIFF record Window2.
- */
- private function _writeWindow2()
- {
- $record = 0x023E; // Record identifier
- $length = 0x0012;
-
- $grbit = 0x00B6; // Option flags
- $rwTop = 0x0000; // Top row visible in window
- $colLeft = 0x0000; // Leftmost column visible in window
-
-
- // The options flags that comprise $grbit
- $fDspFmla = 0; // 0 - bit
- $fDspGrid = $this->_phpSheet->getShowGridlines() ? 1 : 0; // 1
- $fDspRwCol = $this->_phpSheet->getShowRowColHeaders() ? 1 : 0; // 2
- $fFrozen = $this->_phpSheet->getFreezePane() ? 1 : 0; // 3
- $fDspZeros = 1; // 4
- $fDefaultHdr = 1; // 5
- $fArabic = $this->_phpSheet->getRightToLeft() ? 1 : 0; // 6
- $fDspGuts = $this->_outline_on; // 7
- $fFrozenNoSplit = 0; // 0 - bit
- // no support in PHPExcel for selected sheet, therefore sheet is only selected if it is the active sheet
- $fSelected = ($this->_phpSheet === $this->_phpSheet->getParent()->getActiveSheet()) ? 1 : 0;
- $fPaged = 1; // 2
- $fPageBreakPreview = $this->_phpSheet->getSheetView()->getView() === PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW;
-
- $grbit = $fDspFmla;
- $grbit |= $fDspGrid << 1;
- $grbit |= $fDspRwCol << 2;
- $grbit |= $fFrozen << 3;
- $grbit |= $fDspZeros << 4;
- $grbit |= $fDefaultHdr << 5;
- $grbit |= $fArabic << 6;
- $grbit |= $fDspGuts << 7;
- $grbit |= $fFrozenNoSplit << 8;
- $grbit |= $fSelected << 9;
- $grbit |= $fPaged << 10;
- $grbit |= $fPageBreakPreview << 11;
-
- $header = pack("vv", $record, $length);
- $data = pack("vvv", $grbit, $rwTop, $colLeft);
-
- // FIXME !!!
- $rgbHdr = 0x0040; // Row/column heading and gridline color index
- $zoom_factor_page_break = ($fPageBreakPreview? $this->_phpSheet->getSheetView()->getZoomScale() : 0x0000);
- $zoom_factor_normal = $this->_phpSheet->getSheetView()->getZoomScaleNormal();
-
- $data .= pack("vvvvV", $rgbHdr, 0x0000, $zoom_factor_page_break, $zoom_factor_normal, 0x00000000);
-
- $this->_append($header.$data);
- }
-
- /**
- * Write BIFF record DEFAULTROWHEIGHT.
- */
- private function _writeDefaultRowHeight()
- {
- $defaultRowHeight = $this->_phpSheet->getDefaultRowDimension()->getRowHeight();
-
- if ($defaultRowHeight < 0) {
- return;
- }
-
- // convert to twips
- $defaultRowHeight = (int) 20 * $defaultRowHeight;
-
- $record = 0x0225; // Record identifier
- $length = 0x0004; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("vv", 1, $defaultRowHeight);
- $this->_append($header . $data);
- }
-
- /**
- * Write BIFF record DEFCOLWIDTH if COLINFO records are in use.
- */
- private function _writeDefcol()
- {
- $defaultColWidth = 8;
-
- $record = 0x0055; // Record identifier
- $length = 0x0002; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $defaultColWidth);
- $this->_append($header . $data);
- }
-
- /**
- * Write BIFF record COLINFO to define column widths
- *
- * Note: The SDK says the record length is 0x0B but Excel writes a 0x0C
- * length record.
- *
- * @param array $col_array This is the only parameter received and is composed of the following:
- * 0 => First formatted column,
- * 1 => Last formatted column,
- * 2 => Col width (8.43 is Excel default),
- * 3 => The optional XF format of the column,
- * 4 => Option flags.
- * 5 => Optional outline level
- */
- private function _writeColinfo($col_array)
- {
- if (isset($col_array[0])) {
- $colFirst = $col_array[0];
- }
- if (isset($col_array[1])) {
- $colLast = $col_array[1];
- }
- if (isset($col_array[2])) {
- $coldx = $col_array[2];
- } else {
- $coldx = 8.43;
- }
- if (isset($col_array[3])) {
- $xfIndex = $col_array[3];
- } else {
- $xfIndex = 15;
- }
- if (isset($col_array[4])) {
- $grbit = $col_array[4];
- } else {
- $grbit = 0;
- }
- if (isset($col_array[5])) {
- $level = $col_array[5];
- } else {
- $level = 0;
- }
- $record = 0x007D; // Record identifier
- $length = 0x000C; // Number of bytes to follow
-
- $coldx *= 256; // Convert to units of 1/256 of a char
-
- $ixfe = $xfIndex;
- $reserved = 0x0000; // Reserved
-
- $level = max(0, min($level, 7));
- $grbit |= $level << 8;
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvvvv", $colFirst, $colLast, $coldx,
- $ixfe, $grbit, $reserved);
- $this->_append($header.$data);
- }
-
- /**
- * Write BIFF record SELECTION.
- */
- private function _writeSelection()
- {
- // look up the selected cell range
- $selectedCells = $this->_phpSheet->getSelectedCells();
- $selectedCells = PHPExcel_Cell::splitRange($this->_phpSheet->getSelectedCells());
- $selectedCells = $selectedCells[0];
- if (count($selectedCells) == 2) {
- list($first, $last) = $selectedCells;
- } else {
- $first = $selectedCells[0];
- $last = $selectedCells[0];
- }
-
- list($colFirst, $rwFirst) = PHPExcel_Cell::coordinateFromString($first);
- $colFirst = PHPExcel_Cell::columnIndexFromString($colFirst) - 1; // base 0 column index
- --$rwFirst; // base 0 row index
-
- list($colLast, $rwLast) = PHPExcel_Cell::coordinateFromString($last);
- $colLast = PHPExcel_Cell::columnIndexFromString($colLast) - 1; // base 0 column index
- --$rwLast; // base 0 row index
-
- // make sure we are not out of bounds
- $colFirst = min($colFirst, 255);
- $colLast = min($colLast, 255);
-
- $rwFirst = min($rwFirst, 65535);
- $rwLast = min($rwLast, 65535);
-
- $record = 0x001D; // Record identifier
- $length = 0x000F; // Number of bytes to follow
-
- $pnn = $this->_active_pane; // Pane position
- $rwAct = $rwFirst; // Active row
- $colAct = $colFirst; // Active column
- $irefAct = 0; // Active cell ref
- $cref = 1; // Number of refs
-
- if (!isset($rwLast)) {
- $rwLast = $rwFirst; // Last row in reference
- }
- if (!isset($colLast)) {
- $colLast = $colFirst; // Last col in reference
- }
-
- // Swap last row/col for first row/col as necessary
- if ($rwFirst > $rwLast) {
- list($rwFirst, $rwLast) = array($rwLast, $rwFirst);
- }
-
- if ($colFirst > $colLast) {
- list($colFirst, $colLast) = array($colLast, $colFirst);
- }
-
- $header = pack("vv", $record, $length);
- $data = pack("CvvvvvvCC", $pnn, $rwAct, $colAct,
- $irefAct, $cref,
- $rwFirst, $rwLast,
- $colFirst, $colLast);
- $this->_append($header . $data);
- }
-
- /**
- * Store the MERGEDCELLS records for all ranges of merged cells
- */
- private function _writeMergedCells()
- {
- $mergeCells = $this->_phpSheet->getMergeCells();
- $countMergeCells = count($mergeCells);
-
- if ($countMergeCells == 0) {
- return;
- }
-
- // maximum allowed number of merged cells per record
- $maxCountMergeCellsPerRecord = 1027;
-
- // record identifier
- $record = 0x00E5;
-
- // counter for total number of merged cells treated so far by the writer
- $i = 0;
-
- // counter for number of merged cells written in record currently being written
- $j = 0;
-
- // initialize record data
- $recordData = '';
-
- // loop through the merged cells
- foreach ($mergeCells as $mergeCell) {
- ++$i;
- ++$j;
-
- // extract the row and column indexes
- $range = PHPExcel_Cell::splitRange($mergeCell);
- list($first, $last) = $range[0];
- list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($first);
- list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($last);
-
- $recordData .= pack('vvvv', $firstRow - 1, $lastRow - 1, PHPExcel_Cell::columnIndexFromString($firstColumn) - 1, PHPExcel_Cell::columnIndexFromString($lastColumn) - 1);
-
- // flush record if we have reached limit for number of merged cells, or reached final merged cell
- if ($j == $maxCountMergeCellsPerRecord or $i == $countMergeCells) {
- $recordData = pack('v', $j) . $recordData;
- $length = strlen($recordData);
- $header = pack('vv', $record, $length);
- $this->_append($header . $recordData);
-
- // initialize for next record, if any
- $recordData = '';
- $j = 0;
- }
- }
- }
-
- /**
- * Write SHEETLAYOUT record
- */
- private function _writeSheetLayout()
- {
- if (!$this->_phpSheet->isTabColorSet()) {
- return;
- }
-
- $recordData = pack(
- 'vvVVVvv'
- , 0x0862
- , 0x0000 // unused
- , 0x00000000 // unused
- , 0x00000000 // unused
- , 0x00000014 // size of record data
- , $this->_colors[$this->_phpSheet->getTabColor()->getRGB()] // color index
- , 0x0000 // unused
- );
-
- $length = strlen($recordData);
-
- $record = 0x0862; // Record identifier
- $header = pack('vv', $record, $length);
- $this->_append($header . $recordData);
- }
-
- /**
- * Write SHEETPROTECTION
- */
- private function _writeSheetProtection()
- {
- // record identifier
- $record = 0x0867;
-
- // prepare options
- $options = (int) !$this->_phpSheet->getProtection()->getObjects()
- | (int) !$this->_phpSheet->getProtection()->getScenarios() << 1
- | (int) !$this->_phpSheet->getProtection()->getFormatCells() << 2
- | (int) !$this->_phpSheet->getProtection()->getFormatColumns() << 3
- | (int) !$this->_phpSheet->getProtection()->getFormatRows() << 4
- | (int) !$this->_phpSheet->getProtection()->getInsertColumns() << 5
- | (int) !$this->_phpSheet->getProtection()->getInsertRows() << 6
- | (int) !$this->_phpSheet->getProtection()->getInsertHyperlinks() << 7
- | (int) !$this->_phpSheet->getProtection()->getDeleteColumns() << 8
- | (int) !$this->_phpSheet->getProtection()->getDeleteRows() << 9
- | (int) !$this->_phpSheet->getProtection()->getSelectLockedCells() << 10
- | (int) !$this->_phpSheet->getProtection()->getSort() << 11
- | (int) !$this->_phpSheet->getProtection()->getAutoFilter() << 12
- | (int) !$this->_phpSheet->getProtection()->getPivotTables() << 13
- | (int) !$this->_phpSheet->getProtection()->getSelectUnlockedCells() << 14 ;
-
- // record data
- $recordData = pack(
- 'vVVCVVvv'
- , 0x0867 // repeated record identifier
- , 0x0000 // not used
- , 0x0000 // not used
- , 0x00 // not used
- , 0x01000200 // unknown data
- , 0xFFFFFFFF // unknown data
- , $options // options
- , 0x0000 // not used
- );
-
- $length = strlen($recordData);
- $header = pack('vv', $record, $length);
-
- $this->_append($header . $recordData);
- }
-
- /**
- * Write BIFF record RANGEPROTECTION
- *
- * Openoffice.org's Documentaion of the Microsoft Excel File Format uses term RANGEPROTECTION for these records
- * Microsoft Office Excel 97-2007 Binary File Format Specification uses term FEAT for these records
- */
- private function _writeRangeProtection()
- {
- foreach ($this->_phpSheet->getProtectedCells() as $range => $password) {
- // number of ranges, e.g. 'A1:B3 C20:D25'
- $cellRanges = explode(' ', $range);
- $cref = count($cellRanges);
-
- $recordData = pack(
- 'vvVVvCVvVv',
- 0x0868,
- 0x00,
- 0x0000,
- 0x0000,
- 0x02,
- 0x0,
- 0x0000,
- $cref,
- 0x0000,
- 0x00
- );
-
- foreach ($cellRanges as $cellRange) {
- $recordData .= $this->_writeBIFF8CellRangeAddressFixed($cellRange);
- }
-
- // the rgbFeat structure
- $recordData .= pack(
- 'VV',
- 0x0000,
- hexdec($password)
- );
-
- $recordData .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong('p' . md5($recordData));
-
- $length = strlen($recordData);
-
- $record = 0x0868; // Record identifier
- $header = pack("vv", $record, $length);
- $this->_append($header . $recordData);
- }
- }
-
- /**
- * Write BIFF record EXTERNCOUNT to indicate the number of external sheet
- * references in a worksheet.
- *
- * Excel only stores references to external sheets that are used in formulas.
- * For simplicity we store references to all the sheets in the workbook
- * regardless of whether they are used or not. This reduces the overall
- * complexity and eliminates the need for a two way dialogue between the formula
- * parser the worksheet objects.
- *
- * @param integer $count The number of external sheet references in this worksheet
- */
- private function _writeExterncount($count)
- {
- $record = 0x0016; // Record identifier
- $length = 0x0002; // Number of bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $count);
- $this->_append($header . $data);
- }
-
- /**
- * Writes the Excel BIFF EXTERNSHEET record. These references are used by
- * formulas. A formula references a sheet name via an index. Since we store a
- * reference to all of the external worksheets the EXTERNSHEET index is the same
- * as the worksheet index.
- *
- * @param string $sheetname The name of a external worksheet
- */
- private function _writeExternsheet($sheetname)
- {
- $record = 0x0017; // Record identifier
-
- // References to the current sheet are encoded differently to references to
- // external sheets.
- //
- if ($this->_phpSheet->getTitle() == $sheetname) {
- $sheetname = '';
- $length = 0x02; // The following 2 bytes
- $cch = 1; // The following byte
- $rgch = 0x02; // Self reference
- } else {
- $length = 0x02 + strlen($sheetname);
- $cch = strlen($sheetname);
- $rgch = 0x03; // Reference to a sheet in the current workbook
- }
-
- $header = pack("vv", $record, $length);
- $data = pack("CC", $cch, $rgch);
- $this->_append($header . $data . $sheetname);
- }
-
- /**
- * Writes the Excel BIFF PANE record.
- * The panes can either be frozen or thawed (unfrozen).
- * Frozen panes are specified in terms of an integer number of rows and columns.
- * Thawed panes are specified in terms of Excel's units for rows and columns.
- */
- private function _writePanes()
- {
- $panes = array();
- if ($freezePane = $this->_phpSheet->getFreezePane()) {
- list($column, $row) = PHPExcel_Cell::coordinateFromString($freezePane);
- $panes[0] = $row - 1;
- $panes[1] = PHPExcel_Cell::columnIndexFromString($column) - 1;
- } else {
- // thaw panes
- return;
- }
-
- $y = isset($panes[0]) ? $panes[0] : null;
- $x = isset($panes[1]) ? $panes[1] : null;
- $rwTop = isset($panes[2]) ? $panes[2] : null;
- $colLeft = isset($panes[3]) ? $panes[3] : null;
- if (count($panes) > 4) { // if Active pane was received
- $pnnAct = $panes[4];
- } else {
- $pnnAct = null;
- }
- $record = 0x0041; // Record identifier
- $length = 0x000A; // Number of bytes to follow
-
- // Code specific to frozen or thawed panes.
- if ($this->_phpSheet->getFreezePane()) {
- // Set default values for $rwTop and $colLeft
- if (!isset($rwTop)) {
- $rwTop = $y;
- }
- if (!isset($colLeft)) {
- $colLeft = $x;
- }
- } else {
- // Set default values for $rwTop and $colLeft
- if (!isset($rwTop)) {
- $rwTop = 0;
- }
- if (!isset($colLeft)) {
- $colLeft = 0;
- }
-
- // Convert Excel's row and column units to the internal units.
- // The default row height is 12.75
- // The default column width is 8.43
- // The following slope and intersection values were interpolated.
- //
- $y = 20*$y + 255;
- $x = 113.879*$x + 390;
- }
-
-
- // Determine which pane should be active. There is also the undocumented
- // option to override this should it be necessary: may be removed later.
- //
- if (!isset($pnnAct)) {
- if ($x != 0 && $y != 0) {
- $pnnAct = 0; // Bottom right
- }
- if ($x != 0 && $y == 0) {
- $pnnAct = 1; // Top right
- }
- if ($x == 0 && $y != 0) {
- $pnnAct = 2; // Bottom left
- }
- if ($x == 0 && $y == 0) {
- $pnnAct = 3; // Top left
- }
- }
-
- $this->_active_pane = $pnnAct; // Used in _writeSelection
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvvv", $x, $y, $rwTop, $colLeft, $pnnAct);
- $this->_append($header . $data);
- }
-
- /**
- * Store the page setup SETUP BIFF record.
- */
- private function _writeSetup()
- {
- $record = 0x00A1; // Record identifier
- $length = 0x0022; // Number of bytes to follow
-
- $iPaperSize = $this->_phpSheet->getPageSetup()->getPaperSize(); // Paper size
-
- $iScale = $this->_phpSheet->getPageSetup()->getScale() ?
- $this->_phpSheet->getPageSetup()->getScale() : 100; // Print scaling factor
-
- $iPageStart = 0x01; // Starting page number
- $iFitWidth = (int) $this->_phpSheet->getPageSetup()->getFitToWidth(); // Fit to number of pages wide
- $iFitHeight = (int) $this->_phpSheet->getPageSetup()->getFitToHeight(); // Fit to number of pages high
- $grbit = 0x00; // Option flags
- $iRes = 0x0258; // Print resolution
- $iVRes = 0x0258; // Vertical print resolution
-
- $numHdr = $this->_phpSheet->getPageMargins()->getHeader(); // Header Margin
-
- $numFtr = $this->_phpSheet->getPageMargins()->getFooter(); // Footer Margin
- $iCopies = 0x01; // Number of copies
-
- $fLeftToRight = 0x0; // Print over then down
-
- // Page orientation
- $fLandscape = ($this->_phpSheet->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ?
- 0x0 : 0x1;
-
- $fNoPls = 0x0; // Setup not read from printer
- $fNoColor = 0x0; // Print black and white
- $fDraft = 0x0; // Print draft quality
- $fNotes = 0x0; // Print notes
- $fNoOrient = 0x0; // Orientation not set
- $fUsePage = 0x0; // Use custom starting page
-
- $grbit = $fLeftToRight;
- $grbit |= $fLandscape << 1;
- $grbit |= $fNoPls << 2;
- $grbit |= $fNoColor << 3;
- $grbit |= $fDraft << 4;
- $grbit |= $fNotes << 5;
- $grbit |= $fNoOrient << 6;
- $grbit |= $fUsePage << 7;
-
- $numHdr = pack("d", $numHdr);
- $numFtr = pack("d", $numFtr);
- if (self::getByteOrder()) { // if it's Big Endian
- $numHdr = strrev($numHdr);
- $numFtr = strrev($numFtr);
- }
-
- $header = pack("vv", $record, $length);
- $data1 = pack("vvvvvvvv", $iPaperSize,
- $iScale,
- $iPageStart,
- $iFitWidth,
- $iFitHeight,
- $grbit,
- $iRes,
- $iVRes);
- $data2 = $numHdr.$numFtr;
- $data3 = pack("v", $iCopies);
- $this->_append($header . $data1 . $data2 . $data3);
- }
-
- /**
- * Store the header caption BIFF record.
- */
- private function _writeHeader()
- {
- $record = 0x0014; // Record identifier
-
- /* removing for now
- // need to fix character count (multibyte!)
- if (strlen($this->_phpSheet->getHeaderFooter()->getOddHeader()) <= 255) {
- $str = $this->_phpSheet->getHeaderFooter()->getOddHeader(); // header string
- } else {
- $str = '';
- }
- */
-
- $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddHeader());
- $length = strlen($recordData);
-
- $header = pack("vv", $record, $length);
-
- $this->_append($header . $recordData);
- }
-
- /**
- * Store the footer caption BIFF record.
- */
- private function _writeFooter()
- {
- $record = 0x0015; // Record identifier
-
- /* removing for now
- // need to fix character count (multibyte!)
- if (strlen($this->_phpSheet->getHeaderFooter()->getOddFooter()) <= 255) {
- $str = $this->_phpSheet->getHeaderFooter()->getOddFooter();
- } else {
- $str = '';
- }
- */
-
- $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddFooter());
- $length = strlen($recordData);
-
- $header = pack("vv", $record, $length);
-
- $this->_append($header . $recordData);
- }
-
- /**
- * Store the horizontal centering HCENTER BIFF record.
- *
- * @access private
- */
- private function _writeHcenter()
- {
- $record = 0x0083; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fHCenter = $this->_phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fHCenter);
-
- $this->_append($header.$data);
- }
-
- /**
- * Store the vertical centering VCENTER BIFF record.
- */
- private function _writeVcenter()
- {
- $record = 0x0084; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fVCenter = $this->_phpSheet->getPageSetup()->getVerticalCentered() ? 1 : 0; // Horizontal centering
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fVCenter);
- $this->_append($header . $data);
- }
-
- /**
- * Store the LEFTMARGIN BIFF record.
- */
- private function _writeMarginLeft()
- {
- $record = 0x0026; // Record identifier
- $length = 0x0008; // Bytes to follow
-
- $margin = $this->_phpSheet->getPageMargins()->getLeft(); // Margin in inches
-
- $header = pack("vv", $record, $length);
- $data = pack("d", $margin);
- if (self::getByteOrder()) { // if it's Big Endian
- $data = strrev($data);
- }
-
- $this->_append($header . $data);
- }
-
- /**
- * Store the RIGHTMARGIN BIFF record.
- */
- private function _writeMarginRight()
- {
- $record = 0x0027; // Record identifier
- $length = 0x0008; // Bytes to follow
-
- $margin = $this->_phpSheet->getPageMargins()->getRight(); // Margin in inches
-
- $header = pack("vv", $record, $length);
- $data = pack("d", $margin);
- if (self::getByteOrder()) { // if it's Big Endian
- $data = strrev($data);
- }
-
- $this->_append($header . $data);
- }
-
- /**
- * Store the TOPMARGIN BIFF record.
- */
- private function _writeMarginTop()
- {
- $record = 0x0028; // Record identifier
- $length = 0x0008; // Bytes to follow
-
- $margin = $this->_phpSheet->getPageMargins()->getTop(); // Margin in inches
-
- $header = pack("vv", $record, $length);
- $data = pack("d", $margin);
- if (self::getByteOrder()) { // if it's Big Endian
- $data = strrev($data);
- }
-
- $this->_append($header . $data);
- }
-
- /**
- * Store the BOTTOMMARGIN BIFF record.
- */
- private function _writeMarginBottom()
- {
- $record = 0x0029; // Record identifier
- $length = 0x0008; // Bytes to follow
-
- $margin = $this->_phpSheet->getPageMargins()->getBottom(); // Margin in inches
-
- $header = pack("vv", $record, $length);
- $data = pack("d", $margin);
- if (self::getByteOrder()) { // if it's Big Endian
- $data = strrev($data);
- }
-
- $this->_append($header . $data);
- }
-
- /**
- * Write the PRINTHEADERS BIFF record.
- */
- private function _writePrintHeaders()
- {
- $record = 0x002a; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fPrintRwCol = $this->_print_headers; // Boolean flag
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fPrintRwCol);
- $this->_append($header . $data);
- }
-
- /**
- * Write the PRINTGRIDLINES BIFF record. Must be used in conjunction with the
- * GRIDSET record.
- */
- private function _writePrintGridlines()
- {
- $record = 0x002b; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fPrintGrid = $this->_phpSheet->getPrintGridlines() ? 1 : 0; // Boolean flag
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fPrintGrid);
- $this->_append($header . $data);
- }
-
- /**
- * Write the GRIDSET BIFF record. Must be used in conjunction with the
- * PRINTGRIDLINES record.
- */
- private function _writeGridset()
- {
- $record = 0x0082; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fGridSet = !$this->_phpSheet->getPrintGridlines(); // Boolean flag
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fGridSet);
- $this->_append($header . $data);
- }
-
- /**
- * Write the AUTOFILTERINFO BIFF record. This is used to configure the number of autofilter select used in the sheet.
- */
- private function _writeAutoFilterInfo(){
- $record = 0x009D; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $rangeBounds = PHPExcel_Cell::rangeBoundaries($this->_phpSheet->getAutoFilter()->getRange());
- $iNumFilters = 1 + $rangeBounds[1][0] - $rangeBounds[0][0];
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $iNumFilters);
- $this->_append($header . $data);
- }
-
- /**
- * Write the GUTS BIFF record. This is used to configure the gutter margins
- * where Excel outline symbols are displayed. The visibility of the gutters is
- * controlled by a flag in WSBOOL.
- *
- * @see _writeWsbool()
- */
- private function _writeGuts()
- {
- $record = 0x0080; // Record identifier
- $length = 0x0008; // Bytes to follow
-
- $dxRwGut = 0x0000; // Size of row gutter
- $dxColGut = 0x0000; // Size of col gutter
-
- // determine maximum row outline level
- $maxRowOutlineLevel = 0;
- foreach ($this->_phpSheet->getRowDimensions() as $rowDimension) {
- $maxRowOutlineLevel = max($maxRowOutlineLevel, $rowDimension->getOutlineLevel());
- }
-
- $col_level = 0;
-
- // Calculate the maximum column outline level. The equivalent calculation
- // for the row outline level is carried out in _writeRow().
- $colcount = count($this->_colinfo);
- for ($i = 0; $i < $colcount; ++$i) {
- $col_level = max($this->_colinfo[$i][5], $col_level);
- }
-
- // Set the limits for the outline levels (0 <= x <= 7).
- $col_level = max(0, min($col_level, 7));
-
- // The displayed level is one greater than the max outline levels
- if ($maxRowOutlineLevel) {
- ++$maxRowOutlineLevel;
- }
- if ($col_level) {
- ++$col_level;
- }
-
- $header = pack("vv", $record, $length);
- $data = pack("vvvv", $dxRwGut, $dxColGut, $maxRowOutlineLevel, $col_level);
-
- $this->_append($header.$data);
- }
-
- /**
- * Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction
- * with the SETUP record.
- */
- private function _writeWsbool()
- {
- $record = 0x0081; // Record identifier
- $length = 0x0002; // Bytes to follow
- $grbit = 0x0000;
-
- // The only option that is of interest is the flag for fit to page. So we
- // set all the options in one go.
- //
- // Set the option flags
- $grbit |= 0x0001; // Auto page breaks visible
- if ($this->_outline_style) {
- $grbit |= 0x0020; // Auto outline styles
- }
- if ($this->_phpSheet->getShowSummaryBelow()) {
- $grbit |= 0x0040; // Outline summary below
- }
- if ($this->_phpSheet->getShowSummaryRight()) {
- $grbit |= 0x0080; // Outline summary right
- }
- if ($this->_phpSheet->getPageSetup()->getFitToPage()) {
- $grbit |= 0x0100; // Page setup fit to page
- }
- if ($this->_outline_on) {
- $grbit |= 0x0400; // Outline symbols displayed
- }
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $grbit);
- $this->_append($header . $data);
- }
-
- /**
- * Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records.
- */
- private function _writeBreaks()
- {
- // initialize
- $vbreaks = array();
- $hbreaks = array();
-
- foreach ($this->_phpSheet->getBreaks() as $cell => $breakType) {
- // Fetch coordinates
- $coordinates = PHPExcel_Cell::coordinateFromString($cell);
-
- // Decide what to do by the type of break
- switch ($breakType) {
- case PHPExcel_Worksheet::BREAK_COLUMN:
- // Add to list of vertical breaks
- $vbreaks[] = PHPExcel_Cell::columnIndexFromString($coordinates[0]) - 1;
- break;
-
- case PHPExcel_Worksheet::BREAK_ROW:
- // Add to list of horizontal breaks
- $hbreaks[] = $coordinates[1];
- break;
-
- case PHPExcel_Worksheet::BREAK_NONE:
- default:
- // Nothing to do
- break;
- }
- }
-
- //horizontal page breaks
- if (!empty($hbreaks)) {
-
- // Sort and filter array of page breaks
- sort($hbreaks, SORT_NUMERIC);
- if ($hbreaks[0] == 0) { // don't use first break if it's 0
- array_shift($hbreaks);
- }
-
- $record = 0x001b; // Record identifier
- $cbrk = count($hbreaks); // Number of page breaks
- $length = 2 + 6 * $cbrk; // Bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $cbrk);
-
- // Append each page break
- foreach ($hbreaks as $hbreak) {
- $data .= pack("vvv", $hbreak, 0x0000, 0x00ff);
- }
-
- $this->_append($header . $data);
- }
-
- // vertical page breaks
- if (!empty($vbreaks)) {
-
- // 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
- // It is slightly higher in Excel 97/200, approx. 1026
- $vbreaks = array_slice($vbreaks, 0, 1000);
-
- // Sort and filter array of page breaks
- sort($vbreaks, SORT_NUMERIC);
- if ($vbreaks[0] == 0) { // don't use first break if it's 0
- array_shift($vbreaks);
- }
-
- $record = 0x001a; // Record identifier
- $cbrk = count($vbreaks); // Number of page breaks
- $length = 2 + 6 * $cbrk; // Bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $cbrk);
-
- // Append each page break
- foreach ($vbreaks as $vbreak) {
- $data .= pack("vvv", $vbreak, 0x0000, 0xffff);
- }
-
- $this->_append($header . $data);
- }
- }
-
- /**
- * Set the Biff PROTECT record to indicate that the worksheet is protected.
- */
- private function _writeProtect()
- {
- // Exit unless sheet protection has been specified
- if (!$this->_phpSheet->getProtection()->getSheet()) {
- return;
- }
-
- $record = 0x0012; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $fLock = 1; // Worksheet is protected
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $fLock);
-
- $this->_append($header.$data);
- }
-
- /**
- * Write SCENPROTECT
- */
- private function _writeScenProtect()
- {
- // Exit if sheet protection is not active
- if (!$this->_phpSheet->getProtection()->getSheet()) {
- return;
- }
-
- // Exit if scenarios are not protected
- if (!$this->_phpSheet->getProtection()->getScenarios()) {
- return;
- }
-
- $record = 0x00DD; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $header = pack('vv', $record, $length);
- $data = pack('v', 1);
-
- $this->_append($header . $data);
- }
-
- /**
- * Write OBJECTPROTECT
- */
- private function _writeObjectProtect()
- {
- // Exit if sheet protection is not active
- if (!$this->_phpSheet->getProtection()->getSheet()) {
- return;
- }
-
- // Exit if objects are not protected
- if (!$this->_phpSheet->getProtection()->getObjects()) {
- return;
- }
-
- $record = 0x0063; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $header = pack('vv', $record, $length);
- $data = pack('v', 1);
-
- $this->_append($header . $data);
- }
-
- /**
- * Write the worksheet PASSWORD record.
- */
- private function _writePassword()
- {
- // Exit unless sheet protection and password have been specified
- if (!$this->_phpSheet->getProtection()->getSheet() || !$this->_phpSheet->getProtection()->getPassword()) {
- return;
- }
-
- $record = 0x0013; // Record identifier
- $length = 0x0002; // Bytes to follow
-
- $wPassword = hexdec($this->_phpSheet->getProtection()->getPassword()); // Encoded password
-
- $header = pack("vv", $record, $length);
- $data = pack("v", $wPassword);
-
- $this->_append($header . $data);
- }
-
- /**
- * Insert a 24bit bitmap image in a worksheet.
- *
- * @access public
- * @param integer $row The row we are going to insert the bitmap into
- * @param integer $col The column we are going to insert the bitmap into
- * @param mixed $bitmap The bitmap filename or GD-image resource
- * @param integer $x The horizontal position (offset) of the image inside the cell.
- * @param integer $y The vertical position (offset) of the image inside the cell.
- * @param float $scale_x The horizontal scale
- * @param float $scale_y The vertical scale
- */
- function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1)
- {
- $bitmap_array = (is_resource($bitmap) ? $this->_processBitmapGd($bitmap) : $this->_processBitmap($bitmap));
- list($width, $height, $size, $data) = $bitmap_array; //$this->_processBitmap($bitmap);
-
- // Scale the frame of the image.
- $width *= $scale_x;
- $height *= $scale_y;
-
- // Calculate the vertices of the image and write the OBJ record
- $this->_positionImage($col, $row, $x, $y, $width, $height);
-
- // Write the IMDATA record to store the bitmap data
- $record = 0x007f;
- $length = 8 + $size;
- $cf = 0x09;
- $env = 0x01;
- $lcb = $size;
-
- $header = pack("vvvvV", $record, $length, $cf, $env, $lcb);
- $this->_append($header.$data);
- }
-
- /**
- * Calculate the vertices that define the position of the image as required by
- * the OBJ record.
- *
- * +------------+------------+
- * | A | B |
- * +-----+------------+------------+
- * | |(x1,y1) | |
- * | 1 |(A1)._______|______ |
- * | | | | |
- * | | | | |
- * +-----+----| BITMAP |-----+
- * | | | | |
- * | 2 | |______________. |
- * | | | (B2)|
- * | | | (x2,y2)|
- * +---- +------------+------------+
- *
- * Example of a bitmap that covers some of the area from cell A1 to cell B2.
- *
- * Based on the width and height of the bitmap we need to calculate 8 vars:
- * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2.
- * The width and height of the cells are also variable and have to be taken into
- * account.
- * The values of $col_start and $row_start are passed in from the calling
- * function. The values of $col_end and $row_end are calculated by subtracting
- * the width and height of the bitmap from the width and height of the
- * underlying cells.
- * The vertices are expressed as a percentage of the underlying cell width as
- * follows (rhs values are in pixels):
- *
- * x1 = X / W *1024
- * y1 = Y / H *256
- * x2 = (X-1) / W *1024
- * y2 = (Y-1) / H *256
- *
- * Where: X is distance from the left side of the underlying cell
- * Y is distance from the top of the underlying cell
- * W is the width of the cell
- * H is the height of the cell
- * The SDK incorrectly states that the height should be expressed as a
- * percentage of 1024.
- *
- * @access private
- * @param integer $col_start Col containing upper left corner of object
- * @param integer $row_start Row containing top left corner of object
- * @param integer $x1 Distance to left side of object
- * @param integer $y1 Distance to top of object
- * @param integer $width Width of image frame
- * @param integer $height Height of image frame
- */
- function _positionImage($col_start, $row_start, $x1, $y1, $width, $height)
- {
- // Initialise end cell to the same as the start cell
- $col_end = $col_start; // Col containing lower right corner of object
- $row_end = $row_start; // Row containing bottom right corner of object
-
- // Zero the specified offset if greater than the cell dimensions
- if ($x1 >= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) {
- $x1 = 0;
- }
- if ($y1 >= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1)) {
- $y1 = 0;
- }
-
- $width = $width + $x1 -1;
- $height = $height + $y1 -1;
-
- // Subtract the underlying cell widths to find the end cell of the image
- while ($width >= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) {
- $width -= PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end));
- ++$col_end;
- }
-
- // Subtract the underlying cell heights to find the end cell of the image
- while ($height >= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1)) {
- $height -= PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1);
- ++$row_end;
- }
-
- // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell
- // with zero eight or width.
- //
- if (PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) {
- return;
- }
- if (PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) {
- return;
- }
- if (PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1) == 0) {
- return;
- }
- if (PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1) == 0) {
- return;
- }
-
- // Convert the pixel values to the percentage value expected by Excel
- $x1 = $x1 / PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024;
- $y1 = $y1 / PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_start + 1) * 256;
- $x2 = $width / PHPExcel_Shared_Excel5::sizeCol($this->_phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object
- $y2 = $height / PHPExcel_Shared_Excel5::sizeRow($this->_phpSheet, $row_end + 1) * 256; // Distance to bottom of object
-
- $this->_writeObjPicture($col_start, $x1,
- $row_start, $y1,
- $col_end, $x2,
- $row_end, $y2);
- }
-
- /**
- * Store the OBJ record that precedes an IMDATA record. This could be generalise
- * to support other Excel objects.
- *
- * @param integer $colL Column containing upper left corner of object
- * @param integer $dxL Distance from left side of cell
- * @param integer $rwT Row containing top left corner of object
- * @param integer $dyT Distance from top of cell
- * @param integer $colR Column containing lower right corner of object
- * @param integer $dxR Distance from right of cell
- * @param integer $rwB Row containing bottom right corner of object
- * @param integer $dyB Distance from bottom of cell
- */
- private function _writeObjPicture($colL,$dxL,$rwT,$dyT,$colR,$dxR,$rwB,$dyB)
- {
- $record = 0x005d; // Record identifier
- $length = 0x003c; // Bytes to follow
-
- $cObj = 0x0001; // Count of objects in file (set to 1)
- $OT = 0x0008; // Object type. 8 = Picture
- $id = 0x0001; // Object ID
- $grbit = 0x0614; // Option flags
-
- $cbMacro = 0x0000; // Length of FMLA structure
- $Reserved1 = 0x0000; // Reserved
- $Reserved2 = 0x0000; // Reserved
-
- $icvBack = 0x09; // Background colour
- $icvFore = 0x09; // Foreground colour
- $fls = 0x00; // Fill pattern
- $fAuto = 0x00; // Automatic fill
- $icv = 0x08; // Line colour
- $lns = 0xff; // Line style
- $lnw = 0x01; // Line weight
- $fAutoB = 0x00; // Automatic border
- $frs = 0x0000; // Frame style
- $cf = 0x0009; // Image format, 9 = bitmap
- $Reserved3 = 0x0000; // Reserved
- $cbPictFmla = 0x0000; // Length of FMLA structure
- $Reserved4 = 0x0000; // Reserved
- $grbit2 = 0x0001; // Option flags
- $Reserved5 = 0x0000; // Reserved
-
-
- $header = pack("vv", $record, $length);
- $data = pack("V", $cObj);
- $data .= pack("v", $OT);
- $data .= pack("v", $id);
- $data .= pack("v", $grbit);
- $data .= pack("v", $colL);
- $data .= pack("v", $dxL);
- $data .= pack("v", $rwT);
- $data .= pack("v", $dyT);
- $data .= pack("v", $colR);
- $data .= pack("v", $dxR);
- $data .= pack("v", $rwB);
- $data .= pack("v", $dyB);
- $data .= pack("v", $cbMacro);
- $data .= pack("V", $Reserved1);
- $data .= pack("v", $Reserved2);
- $data .= pack("C", $icvBack);
- $data .= pack("C", $icvFore);
- $data .= pack("C", $fls);
- $data .= pack("C", $fAuto);
- $data .= pack("C", $icv);
- $data .= pack("C", $lns);
- $data .= pack("C", $lnw);
- $data .= pack("C", $fAutoB);
- $data .= pack("v", $frs);
- $data .= pack("V", $cf);
- $data .= pack("v", $Reserved3);
- $data .= pack("v", $cbPictFmla);
- $data .= pack("v", $Reserved4);
- $data .= pack("v", $grbit2);
- $data .= pack("V", $Reserved5);
-
- $this->_append($header . $data);
- }
-
- /**
- * Convert a GD-image into the internal format.
- *
- * @access private
- * @param resource $image The image to process
- * @return array Array with data and properties of the bitmap
- */
- function _processBitmapGd($image) {
- $width = imagesx($image);
- $height = imagesy($image);
-
- $data = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18);
- for ($j=$height; $j--; ) {
- for ($i=0; $i < $width; ++$i) {
- $color = imagecolorsforindex($image, imagecolorat($image, $i, $j));
- foreach (array("red", "green", "blue") as $key) {
- $color[$key] = $color[$key] + round((255 - $color[$key]) * $color["alpha"] / 127);
- }
- $data .= chr($color["blue"]) . chr($color["green"]) . chr($color["red"]);
- }
- if (3*$width % 4) {
- $data .= str_repeat("\x00", 4 - 3*$width % 4);
- }
- }
-
- return array($width, $height, strlen($data), $data);
- }
-
- /**
- * Convert a 24 bit bitmap into the modified internal format used by Windows.
- * This is described in BITMAPCOREHEADER and BITMAPCOREINFO structures in the
- * MSDN library.
- *
- * @access private
- * @param string $bitmap The bitmap to process
- * @return array Array with data and properties of the bitmap
- */
- function _processBitmap($bitmap)
- {
- // Open file.
- $bmp_fd = @fopen($bitmap,"rb");
- if (!$bmp_fd) {
- throw new PHPExcel_Writer_Exception("Couldn't import $bitmap");
- }
-
- // Slurp the file into a string.
- $data = fread($bmp_fd, filesize($bitmap));
-
- // Check that the file is big enough to be a bitmap.
- if (strlen($data) <= 0x36) {
- throw new PHPExcel_Writer_Exception("$bitmap doesn't contain enough data.\n");
- }
-
- // The first 2 bytes are used to identify the bitmap.
- $identity = unpack("A2ident", $data);
- if ($identity['ident'] != "BM") {
- throw new PHPExcel_Writer_Exception("$bitmap doesn't appear to be a valid bitmap image.\n");
- }
-
- // Remove bitmap data: ID.
- $data = substr($data, 2);
-
- // Read and remove the bitmap size. This is more reliable than reading
- // the data size at offset 0x22.
- //
- $size_array = unpack("Vsa", substr($data, 0, 4));
- $size = $size_array['sa'];
- $data = substr($data, 4);
- $size -= 0x36; // Subtract size of bitmap header.
- $size += 0x0C; // Add size of BIFF header.
-
- // Remove bitmap data: reserved, offset, header length.
- $data = substr($data, 12);
-
- // Read and remove the bitmap width and height. Verify the sizes.
- $width_and_height = unpack("V2", substr($data, 0, 8));
- $width = $width_and_height[1];
- $height = $width_and_height[2];
- $data = substr($data, 8);
- if ($width > 0xFFFF) {
- throw new PHPExcel_Writer_Exception("$bitmap: largest image width supported is 65k.\n");
- }
- if ($height > 0xFFFF) {
- throw new PHPExcel_Writer_Exception("$bitmap: largest image height supported is 65k.\n");
- }
-
- // Read and remove the bitmap planes and bpp data. Verify them.
- $planes_and_bitcount = unpack("v2", substr($data, 0, 4));
- $data = substr($data, 4);
- if ($planes_and_bitcount[2] != 24) { // Bitcount
- throw new PHPExcel_Writer_Exception("$bitmap isn't a 24bit true color bitmap.\n");
- }
- if ($planes_and_bitcount[1] != 1) {
- throw new PHPExcel_Writer_Exception("$bitmap: only 1 plane supported in bitmap image.\n");
- }
-
- // Read and remove the bitmap compression. Verify compression.
- $compression = unpack("Vcomp", substr($data, 0, 4));
- $data = substr($data, 4);
-
- //$compression = 0;
- if ($compression['comp'] != 0) {
- throw new PHPExcel_Writer_Exception("$bitmap: compression not supported in bitmap image.\n");
- }
-
- // Remove bitmap data: data size, hres, vres, colours, imp. colours.
- $data = substr($data, 20);
-
- // Add the BITMAPCOREHEADER data
- $header = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18);
- $data = $header . $data;
-
- return (array($width, $height, $size, $data));
- }
-
- /**
- * Store the window zoom factor. This should be a reduced fraction but for
- * simplicity we will store all fractions with a numerator of 100.
- */
- private function _writeZoom()
- {
- // If scale is 100 we don't need to write a record
- if ($this->_phpSheet->getSheetView()->getZoomScale() == 100) {
- return;
- }
-
- $record = 0x00A0; // Record identifier
- $length = 0x0004; // Bytes to follow
-
- $header = pack("vv", $record, $length);
- $data = pack("vv", $this->_phpSheet->getSheetView()->getZoomScale(), 100);
- $this->_append($header . $data);
- }
-
- /**
- * Get Escher object
- *
- * @return PHPExcel_Shared_Escher
- */
- public function getEscher()
- {
- return $this->_escher;
- }
-
- /**
- * Set Escher object
- *
- * @param PHPExcel_Shared_Escher $pValue
- */
- public function setEscher(PHPExcel_Shared_Escher $pValue = null)
- {
- $this->_escher = $pValue;
- }
-
- /**
- * Write MSODRAWING record
- */
- private function _writeMsoDrawing()
- {
- // write the Escher stream if necessary
- if (isset($this->_escher)) {
- $writer = new PHPExcel_Writer_Excel5_Escher($this->_escher);
- $data = $writer->close();
- $spOffsets = $writer->getSpOffsets();
- $spTypes = $writer->getSpTypes();
- // write the neccesary MSODRAWING, OBJ records
-
- // split the Escher stream
- $spOffsets[0] = 0;
- $nm = count($spOffsets) - 1; // number of shapes excluding first shape
- for ($i = 1; $i <= $nm; ++$i) {
- // MSODRAWING record
- $record = 0x00EC; // Record identifier
-
- // chunk of Escher stream for one shape
- $dataChunk = substr($data, $spOffsets[$i -1], $spOffsets[$i] - $spOffsets[$i - 1]);
-
- $length = strlen($dataChunk);
- $header = pack("vv", $record, $length);
-
- $this->_append($header . $dataChunk);
-
- // OBJ record
- $record = 0x005D; // record identifier
- $objData = '';
-
- // ftCmo
- if($spTypes[$i] == 0x00C9){
- // Add ftCmo (common object data) subobject
- $objData .=
- pack('vvvvvVVV'
- , 0x0015 // 0x0015 = ftCmo
- , 0x0012 // length of ftCmo data
- , 0x0014 // object type, 0x0014 = filter
- , $i // object id number, Excel seems to use 1-based index, local for the sheet
- , 0x2101 // option flags, 0x2001 is what OpenOffice.org uses
- , 0 // reserved
- , 0 // reserved
- , 0 // reserved
- );
-
- // Add ftSbs Scroll bar subobject
- $objData .= pack('vv', 0x00C, 0x0014);
- $objData .= pack('H*', '0000000000000000640001000A00000010000100');
- // Add ftLbsData (List box data) subobject
- $objData .= pack('vv', 0x0013, 0x1FEE);
- $objData .= pack('H*', '00000000010001030000020008005700');
- }
- else {
- // Add ftCmo (common object data) subobject
- $objData .=
- pack('vvvvvVVV'
- , 0x0015 // 0x0015 = ftCmo
- , 0x0012 // length of ftCmo data
- , 0x0008 // object type, 0x0008 = picture
- , $i // object id number, Excel seems to use 1-based index, local for the sheet
- , 0x6011 // option flags, 0x6011 is what OpenOffice.org uses
- , 0 // reserved
- , 0 // reserved
- , 0 // reserved
- );
- }
-
- // ftEnd
- $objData .=
- pack('vv'
- , 0x0000 // 0x0000 = ftEnd
- , 0x0000 // length of ftEnd data
- );
-
- $length = strlen($objData);
- $header = pack('vv', $record, $length);
- $this->_append($header . $objData);
- }
- }
- }
-
- /**
- * Store the DATAVALIDATIONS and DATAVALIDATION records.
- */
- private function _writeDataValidity()
- {
- // Datavalidation collection
- $dataValidationCollection = $this->_phpSheet->getDataValidationCollection();
-
- // Write data validations?
- if (!empty($dataValidationCollection)) {
-
- // DATAVALIDATIONS record
- $record = 0x01B2; // Record identifier
- $length = 0x0012; // Bytes to follow
-
- $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records
- $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position
- $verPos = 0x00000000; // Vertical position of prompt box, if fixed position
- $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible
-
- $header = pack('vv', $record, $length);
- $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId,
- count($dataValidationCollection));
- $this->_append($header.$data);
-
- // DATAVALIDATION records
- $record = 0x01BE; // Record identifier
-
- foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {
- // initialize record data
- $data = '';
-
- // options
- $options = 0x00000000;
-
- // data type
- $type = $dataValidation->getType();
- switch ($type) {
- case PHPExcel_Cell_DataValidation::TYPE_NONE: $type = 0x00; break;
- case PHPExcel_Cell_DataValidation::TYPE_WHOLE: $type = 0x01; break;
- case PHPExcel_Cell_DataValidation::TYPE_DECIMAL: $type = 0x02; break;
- case PHPExcel_Cell_DataValidation::TYPE_LIST: $type = 0x03; break;
- case PHPExcel_Cell_DataValidation::TYPE_DATE: $type = 0x04; break;
- case PHPExcel_Cell_DataValidation::TYPE_TIME: $type = 0x05; break;
- case PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH: $type = 0x06; break;
- case PHPExcel_Cell_DataValidation::TYPE_CUSTOM: $type = 0x07; break;
- }
- $options |= $type << 0;
-
- // error style
- $errorStyle = $dataValidation->getType();
- switch ($errorStyle) {
- case PHPExcel_Cell_DataValidation::STYLE_STOP: $errorStyle = 0x00; break;
- case PHPExcel_Cell_DataValidation::STYLE_WARNING: $errorStyle = 0x01; break;
- case PHPExcel_Cell_DataValidation::STYLE_INFORMATION: $errorStyle = 0x02; break;
- }
- $options |= $errorStyle << 4;
-
- // explicit formula?
- if ($type == 0x03 && preg_match('/^\".*\"$/', $dataValidation->getFormula1())) {
- $options |= 0x01 << 7;
- }
-
- // empty cells allowed
- $options |= $dataValidation->getAllowBlank() << 8;
-
- // show drop down
- $options |= (!$dataValidation->getShowDropDown()) << 9;
-
- // show input message
- $options |= $dataValidation->getShowInputMessage() << 18;
-
- // show error message
- $options |= $dataValidation->getShowErrorMessage() << 19;
-
- // condition operator
- $operator = $dataValidation->getOperator();
- switch ($operator) {
- case PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN: $operator = 0x00 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN: $operator = 0x01 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_EQUAL: $operator = 0x02 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL: $operator = 0x03 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN: $operator = 0x04 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN: $operator = 0x05 ; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL: $operator = 0x06; break;
- case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL: $operator = 0x07 ; break;
- }
- $options |= $operator << 20;
-
- $data = pack('V', $options);
-
- // prompt title
- $promptTitle = $dataValidation->getPromptTitle() !== '' ?
- $dataValidation->getPromptTitle() : chr(0);
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($promptTitle);
-
- // error title
- $errorTitle = $dataValidation->getErrorTitle() !== '' ?
- $dataValidation->getErrorTitle() : chr(0);
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($errorTitle);
-
- // prompt text
- $prompt = $dataValidation->getPrompt() !== '' ?
- $dataValidation->getPrompt() : chr(0);
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($prompt);
-
- // error text
- $error = $dataValidation->getError() !== '' ?
- $dataValidation->getError() : chr(0);
- $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($error);
-
- // formula 1
- try {
- $formula1 = $dataValidation->getFormula1();
- if ($type == 0x03) { // list type
- $formula1 = str_replace(',', chr(0), $formula1);
- }
- $this->_parser->parse($formula1);
- $formula1 = $this->_parser->toReversePolish();
- $sz1 = strlen($formula1);
-
- } catch(PHPExcel_Exception $e) {
- $sz1 = 0;
- $formula1 = '';
- }
- $data .= pack('vv', $sz1, 0x0000);
- $data .= $formula1;
-
- // formula 2
- try {
- $formula2 = $dataValidation->getFormula2();
- if ($formula2 === '') {
- throw new PHPExcel_Writer_Exception('No formula2');
- }
- $this->_parser->parse($formula2);
- $formula2 = $this->_parser->toReversePolish();
- $sz2 = strlen($formula2);
-
- } catch(PHPExcel_Exception $e) {
- $sz2 = 0;
- $formula2 = '';
- }
- $data .= pack('vv', $sz2, 0x0000);
- $data .= $formula2;
-
- // cell range address list
- $data .= pack('v', 0x0001);
- $data .= $this->_writeBIFF8CellRangeAddressFixed($cellCoordinate);
-
- $length = strlen($data);
- $header = pack("vv", $record, $length);
-
- $this->_append($header . $data);
- }
- }
- }
-
- /**
- * Map Error code
- *
- * @param string $errorCode
- * @return int
- */
- private static function _mapErrorCode($errorCode) {
- switch ($errorCode) {
- case '#NULL!': return 0x00;
- case '#DIV/0!': return 0x07;
- case '#VALUE!': return 0x0F;
- case '#REF!': return 0x17;
- case '#NAME?': return 0x1D;
- case '#NUM!': return 0x24;
- case '#N/A': return 0x2A;
- }
-
- return 0;
- }
-
- /**
- * Write PLV Record
- */
- private function _writePageLayoutView(){
- $record = 0x088B; // Record identifier
- $length = 0x0010; // Bytes to follow
-
- $rt = 0x088B; // 2
- $grbitFrt = 0x0000; // 2
- $reserved = 0x0000000000000000; // 8
- $wScalvePLV = $this->_phpSheet->getSheetView()->getZoomScale(); // 2
-
- // The options flags that comprise $grbit
- if($this->_phpSheet->getSheetView()->getView() == PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT){
- $fPageLayoutView = 1;
- } else {
- $fPageLayoutView = 0;
- }
- $fRulerVisible = 0;
- $fWhitespaceHidden = 0;
-
- $grbit = $fPageLayoutView; // 2
- $grbit |= $fRulerVisible << 1;
- $grbit |= $fWhitespaceHidden << 3;
-
- $header = pack("vv", $record, $length);
- $data = pack("vvVVvv", $rt, $grbitFrt, 0x00000000, 0x00000000, $wScalvePLV, $grbit);
- $this->_append($header . $data);
- }
-
- /**
- * Write CFRule Record
- * @param PHPExcel_Style_Conditional $conditional
- */
- private function _writeCFRule(PHPExcel_Style_Conditional $conditional){
- $record = 0x01B1; // Record identifier
-
- // $type : Type of the CF
- // $operatorType : Comparison operator
- if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION){
- $type = 0x02;
- $operatorType = 0x00;
- } else if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){
- $type = 0x01;
-
- switch ($conditional->getOperatorType()){
- case PHPExcel_Style_Conditional::OPERATOR_NONE:
- $operatorType = 0x00;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_EQUAL:
- $operatorType = 0x03;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN:
- $operatorType = 0x05;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL:
- $operatorType = 0x07;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_LESSTHAN:
- $operatorType = 0x06;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL:
- $operatorType = 0x08;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL:
- $operatorType = 0x04;
- break;
- case PHPExcel_Style_Conditional::OPERATOR_BETWEEN:
- $operatorType = 0x01;
- break;
- // not OPERATOR_NOTBETWEEN 0x02
- }
- }
-
- // $szValue1 : size of the formula data for first value or formula
- // $szValue2 : size of the formula data for second value or formula
- $arrConditions = $conditional->getConditions();
- $numConditions = sizeof($arrConditions);
- if($numConditions == 1){
- $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000);
- $szValue2 = 0x0000;
- $operand1 = pack('Cv', 0x1E, $arrConditions[0]);
- $operand2 = null;
- } else if($numConditions == 2 && ($conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BETWEEN)){
- $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000);
- $szValue2 = ($arrConditions[1] <= 65535 ? 3 : 0x0000);
- $operand1 = pack('Cv', 0x1E, $arrConditions[0]);
- $operand2 = pack('Cv', 0x1E, $arrConditions[1]);
- } else {
- $szValue1 = 0x0000;
- $szValue2 = 0x0000;
- $operand1 = null;
- $operand2 = null;
- }
-
- // $flags : Option flags
- // Alignment
- $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() == null ? 1 : 0);
- $bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() == null ? 1 : 0);
- $bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() == false ? 1 : 0);
- $bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() == null ? 1 : 0);
- $bIndent = ($conditional->getStyle()->getAlignment()->getIndent() == 0 ? 1 : 0);
- $bShrinkToFit = ($conditional->getStyle()->getAlignment()->getShrinkToFit() == false ? 1 : 0);
- if($bAlignHz == 0 || $bAlignVt == 0 || $bAlignWrapTx == 0 || $bTxRotation == 0 || $bIndent == 0 || $bShrinkToFit == 0){
- $bFormatAlign = 1;
- } else {
- $bFormatAlign = 0;
- }
- // Protection
- $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() == null ? 1 : 0);
- $bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() == null ? 1 : 0);
- if($bProtLocked == 0 || $bProtHidden == 0){
- $bFormatProt = 1;
- } else {
- $bFormatProt = 0;
- }
- // Border
- $bBorderLeft = ($conditional->getStyle()->getBorders()->getLeft()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
- && $conditional->getStyle()->getBorders()->getLeft()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
- $bBorderRight = ($conditional->getStyle()->getBorders()->getRight()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
- && $conditional->getStyle()->getBorders()->getRight()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
- $bBorderTop = ($conditional->getStyle()->getBorders()->getTop()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
- && $conditional->getStyle()->getBorders()->getTop()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
- $bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
- && $conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
- if($bBorderLeft == 0 || $bBorderRight == 0 || $bBorderTop == 0 || $bBorderBottom == 0){
- $bFormatBorder = 1;
- } else {
- $bFormatBorder = 0;
- }
- // Pattern
- $bFillStyle = ($conditional->getStyle()->getFill()->getFillType() == null ? 0 : 1);
- $bFillColor = ($conditional->getStyle()->getFill()->getStartColor()->getARGB() == null ? 0 : 1);
- $bFillColorBg = ($conditional->getStyle()->getFill()->getEndColor()->getARGB() == null ? 0 : 1);
- if($bFillStyle == 0 || $bFillColor == 0 || $bFillColorBg == 0){
- $bFormatFill = 1;
- } else {
- $bFormatFill = 0;
- }
- // Font
- if($conditional->getStyle()->getFont()->getName() != null
- || $conditional->getStyle()->getFont()->getSize() != null
- || $conditional->getStyle()->getFont()->getBold() != null
- || $conditional->getStyle()->getFont()->getItalic() != null
- || $conditional->getStyle()->getFont()->getSuperScript() != null
- || $conditional->getStyle()->getFont()->getSubScript() != null
- || $conditional->getStyle()->getFont()->getUnderline() != null
- || $conditional->getStyle()->getFont()->getStrikethrough() != null
- || $conditional->getStyle()->getFont()->getColor()->getARGB() != null){
- $bFormatFont = 1;
- } else {
- $bFormatFont = 0;
- }
- // Alignment
- $flags = 0;
- $flags |= (1 == $bAlignHz ? 0x00000001 : 0);
- $flags |= (1 == $bAlignVt ? 0x00000002 : 0);
- $flags |= (1 == $bAlignWrapTx ? 0x00000004 : 0);
- $flags |= (1 == $bTxRotation ? 0x00000008 : 0);
- // Justify last line flag
- $flags |= (1 == 1 ? 0x00000010 : 0);
- $flags |= (1 == $bIndent ? 0x00000020 : 0);
- $flags |= (1 == $bShrinkToFit ? 0x00000040 : 0);
- // Default
- $flags |= (1 == 1 ? 0x00000080 : 0);
- // Protection
- $flags |= (1 == $bProtLocked ? 0x00000100 : 0);
- $flags |= (1 == $bProtHidden ? 0x00000200 : 0);
- // Border
- $flags |= (1 == $bBorderLeft ? 0x00000400 : 0);
- $flags |= (1 == $bBorderRight ? 0x00000800 : 0);
- $flags |= (1 == $bBorderTop ? 0x00001000 : 0);
- $flags |= (1 == $bBorderBottom ? 0x00002000 : 0);
- $flags |= (1 == 1 ? 0x00004000 : 0); // Top left to Bottom right border
- $flags |= (1 == 1 ? 0x00008000 : 0); // Bottom left to Top right border
- // Pattern
- $flags |= (1 == $bFillStyle ? 0x00010000 : 0);
- $flags |= (1 == $bFillColor ? 0x00020000 : 0);
- $flags |= (1 == $bFillColorBg ? 0x00040000 : 0);
- $flags |= (1 == 1 ? 0x00380000 : 0);
- // Font
- $flags |= (1 == $bFormatFont ? 0x04000000 : 0);
- // Alignment :
- $flags |= (1 == $bFormatAlign ? 0x08000000 : 0);
- // Border
- $flags |= (1 == $bFormatBorder ? 0x10000000 : 0);
- // Pattern
- $flags |= (1 == $bFormatFill ? 0x20000000 : 0);
- // Protection
- $flags |= (1 == $bFormatProt ? 0x40000000 : 0);
- // Text direction
- $flags |= (1 == 0 ? 0x80000000 : 0);
-
- // Data Blocks
- if($bFormatFont == 1){
- // Font Name
- if($conditional->getStyle()->getFont()->getName() == null){
- $dataBlockFont = pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000);
- $dataBlockFont .= pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000);
- } else {
- $dataBlockFont = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($conditional->getStyle()->getFont()->getName());
- }
- // Font Size
- if($conditional->getStyle()->getFont()->getSize() == null){
- $dataBlockFont .= pack('V', 20 * 11);
- } else {
- $dataBlockFont .= pack('V', 20 * $conditional->getStyle()->getFont()->getSize());
- }
- // Font Options
- $dataBlockFont .= pack('V', 0);
- // Font weight
- if($conditional->getStyle()->getFont()->getBold() == true){
- $dataBlockFont .= pack('v', 0x02BC);
- } else {
- $dataBlockFont .= pack('v', 0x0190);
- }
- // Escapement type
- if($conditional->getStyle()->getFont()->getSubScript() == true){
- $dataBlockFont .= pack('v', 0x02);
- $fontEscapement = 0;
- } else if($conditional->getStyle()->getFont()->getSuperScript() == true){
- $dataBlockFont .= pack('v', 0x01);
- $fontEscapement = 0;
- } else {
- $dataBlockFont .= pack('v', 0x00);
- $fontEscapement = 1;
- }
- // Underline type
- switch ($conditional->getStyle()->getFont()->getUnderline()){
- case PHPExcel_Style_Font::UNDERLINE_NONE : $dataBlockFont .= pack('C', 0x00); $fontUnderline = 0; break;
- case PHPExcel_Style_Font::UNDERLINE_DOUBLE : $dataBlockFont .= pack('C', 0x02); $fontUnderline = 0; break;
- case PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING : $dataBlockFont .= pack('C', 0x22); $fontUnderline = 0; break;
- case PHPExcel_Style_Font::UNDERLINE_SINGLE : $dataBlockFont .= pack('C', 0x01); $fontUnderline = 0; break;
- case PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING : $dataBlockFont .= pack('C', 0x21); $fontUnderline = 0; break;
- default : $dataBlockFont .= pack('C', 0x00); $fontUnderline = 1; break;
- }
- // Not used (3)
- $dataBlockFont .= pack('vC', 0x0000, 0x00);
- // Font color index
- switch ($conditional->getStyle()->getFont()->getColor()->getRGB()) {
- case '000000': $colorIdx = 0x08; break;
- case 'FFFFFF': $colorIdx = 0x09; break;
- case 'FF0000': $colorIdx = 0x0A; break;
- case '00FF00': $colorIdx = 0x0B; break;
- case '0000FF': $colorIdx = 0x0C; break;
- case 'FFFF00': $colorIdx = 0x0D; break;
- case 'FF00FF': $colorIdx = 0x0E; break;
- case '00FFFF': $colorIdx = 0x0F; break;
- case '800000': $colorIdx = 0x10; break;
- case '008000': $colorIdx = 0x11; break;
- case '000080': $colorIdx = 0x12; break;
- case '808000': $colorIdx = 0x13; break;
- case '800080': $colorIdx = 0x14; break;
- case '008080': $colorIdx = 0x15; break;
- case 'C0C0C0': $colorIdx = 0x16; break;
- case '808080': $colorIdx = 0x17; break;
- case '9999FF': $colorIdx = 0x18; break;
- case '993366': $colorIdx = 0x19; break;
- case 'FFFFCC': $colorIdx = 0x1A; break;
- case 'CCFFFF': $colorIdx = 0x1B; break;
- case '660066': $colorIdx = 0x1C; break;
- case 'FF8080': $colorIdx = 0x1D; break;
- case '0066CC': $colorIdx = 0x1E; break;
- case 'CCCCFF': $colorIdx = 0x1F; break;
- case '000080': $colorIdx = 0x20; break;
- case 'FF00FF': $colorIdx = 0x21; break;
- case 'FFFF00': $colorIdx = 0x22; break;
- case '00FFFF': $colorIdx = 0x23; break;
- case '800080': $colorIdx = 0x24; break;
- case '800000': $colorIdx = 0x25; break;
- case '008080': $colorIdx = 0x26; break;
- case '0000FF': $colorIdx = 0x27; break;
- case '00CCFF': $colorIdx = 0x28; break;
- case 'CCFFFF': $colorIdx = 0x29; break;
- case 'CCFFCC': $colorIdx = 0x2A; break;
- case 'FFFF99': $colorIdx = 0x2B; break;
- case '99CCFF': $colorIdx = 0x2C; break;
- case 'FF99CC': $colorIdx = 0x2D; break;
- case 'CC99FF': $colorIdx = 0x2E; break;
- case 'FFCC99': $colorIdx = 0x2F; break;
- case '3366FF': $colorIdx = 0x30; break;
- case '33CCCC': $colorIdx = 0x31; break;
- case '99CC00': $colorIdx = 0x32; break;
- case 'FFCC00': $colorIdx = 0x33; break;
- case 'FF9900': $colorIdx = 0x34; break;
- case 'FF6600': $colorIdx = 0x35; break;
- case '666699': $colorIdx = 0x36; break;
- case '969696': $colorIdx = 0x37; break;
- case '003366': $colorIdx = 0x38; break;
- case '339966': $colorIdx = 0x39; break;
- case '003300': $colorIdx = 0x3A; break;
- case '333300': $colorIdx = 0x3B; break;
- case '993300': $colorIdx = 0x3C; break;
- case '993366': $colorIdx = 0x3D; break;
- case '333399': $colorIdx = 0x3E; break;
- case '333333': $colorIdx = 0x3F; break;
- default: $colorIdx = 0x00; break;
- }
- $dataBlockFont .= pack('V', $colorIdx);
- // Not used (4)
- $dataBlockFont .= pack('V', 0x00000000);
- // Options flags for modified font attributes
- $optionsFlags = 0;
- $optionsFlagsBold = ($conditional->getStyle()->getFont()->getBold() == null ? 1 : 0);
- $optionsFlags |= (1 == $optionsFlagsBold ? 0x00000002 : 0);
- $optionsFlags |= (1 == 1 ? 0x00000008 : 0);
- $optionsFlags |= (1 == 1 ? 0x00000010 : 0);
- $optionsFlags |= (1 == 0 ? 0x00000020 : 0);
- $optionsFlags |= (1 == 1 ? 0x00000080 : 0);
- $dataBlockFont .= pack('V', $optionsFlags);
- // Escapement type
- $dataBlockFont .= pack('V', $fontEscapement);
- // Underline type
- $dataBlockFont .= pack('V', $fontUnderline);
- // Always
- $dataBlockFont .= pack('V', 0x00000000);
- // Always
- $dataBlockFont .= pack('V', 0x00000000);
- // Not used (8)
- $dataBlockFont .= pack('VV', 0x00000000, 0x00000000);
- // Always
- $dataBlockFont .= pack('v', 0x0001);
- }
- if($bFormatAlign == 1){
- $blockAlign = 0;
- // Alignment and text break
- switch ($conditional->getStyle()->getAlignment()->getHorizontal()){
- case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL : $blockAlign = 0; break;
- case PHPExcel_Style_Alignment::HORIZONTAL_LEFT : $blockAlign = 1; break;
- case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT : $blockAlign = 3; break;
- case PHPExcel_Style_Alignment::HORIZONTAL_CENTER : $blockAlign = 2; break;
- case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS : $blockAlign = 6; break;
- case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY : $blockAlign = 5; break;
- }
- if($conditional->getStyle()->getAlignment()->getWrapText() == true){
- $blockAlign |= 1 << 3;
- } else {
- $blockAlign |= 0 << 3;
- }
- switch ($conditional->getStyle()->getAlignment()->getVertical()){
- case PHPExcel_Style_Alignment::VERTICAL_BOTTOM : $blockAlign = 2 << 4; break;
- case PHPExcel_Style_Alignment::VERTICAL_TOP : $blockAlign = 0 << 4; break;
- case PHPExcel_Style_Alignment::VERTICAL_CENTER : $blockAlign = 1 << 4; break;
- case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY : $blockAlign = 3 << 4; break;
- }
- $blockAlign |= 0 << 7;
-
- // Text rotation angle
- $blockRotation = $conditional->getStyle()->getAlignment()->getTextRotation();
-
- // Indentation
- $blockIndent = $conditional->getStyle()->getAlignment()->getIndent();
- if($conditional->getStyle()->getAlignment()->getShrinkToFit() == true){
- $blockIndent |= 1 << 4;
- } else {
- $blockIndent |= 0 << 4;
- }
- $blockIndent |= 0 << 6;
-
- // Relative indentation
- $blockIndentRelative = 255;
-
- $dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000);
- }
- if($bFormatBorder == 1){
- $blockLineStyle = 0;
- switch ($conditional->getStyle()->getBorders()->getLeft()->getBorderStyle()){
- case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00; break;
- case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01; break;
- case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02; break;
- case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03; break;
- case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04; break;
- case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05; break;
- case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06; break;
- case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08; break;
- case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A; break;
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C; break;
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D; break;
- }
- switch ($conditional->getStyle()->getBorders()->getRight()->getBorderStyle()){
- case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 4; break;
- case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 4; break;
- case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 4; break;
- case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 4; break;
- case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 4; break;
- case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 4; break;
- case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 4; break;
- case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 4; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 4; break;
- case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 4; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 4; break;
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 4; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 4; break;
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 4; break;
- }
- switch ($conditional->getStyle()->getBorders()->getTop()->getBorderStyle()){
- case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 8; break;
- case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 8; break;
- case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 8; break;
- case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 8; break;
- case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 8; break;
- case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 8; break;
- case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 8; break;
- case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 8; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 8; break;
- case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 8; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 8; break;
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 8; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 8; break;
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 8; break;
- }
- switch ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle()){
- case PHPExcel_Style_Border::BORDER_NONE : $blockLineStyle |= 0x00 << 12; break;
- case PHPExcel_Style_Border::BORDER_THIN : $blockLineStyle |= 0x01 << 12; break;
- case PHPExcel_Style_Border::BORDER_MEDIUM : $blockLineStyle |= 0x02 << 12; break;
- case PHPExcel_Style_Border::BORDER_DASHED : $blockLineStyle |= 0x03 << 12; break;
- case PHPExcel_Style_Border::BORDER_DOTTED : $blockLineStyle |= 0x04 << 12; break;
- case PHPExcel_Style_Border::BORDER_THICK : $blockLineStyle |= 0x05 << 12; break;
- case PHPExcel_Style_Border::BORDER_DOUBLE : $blockLineStyle |= 0x06 << 12; break;
- case PHPExcel_Style_Border::BORDER_HAIR : $blockLineStyle |= 0x07 << 12; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockLineStyle |= 0x08 << 12; break;
- case PHPExcel_Style_Border::BORDER_DASHDOT : $blockLineStyle |= 0x09 << 12; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockLineStyle |= 0x0A << 12; break;
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockLineStyle |= 0x0B << 12; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockLineStyle |= 0x0C << 12; break;
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockLineStyle |= 0x0D << 12; break;
- }
- //@todo _writeCFRule() => $blockLineStyle => Index Color for left line
- //@todo _writeCFRule() => $blockLineStyle => Index Color for right line
- //@todo _writeCFRule() => $blockLineStyle => Top-left to bottom-right on/off
- //@todo _writeCFRule() => $blockLineStyle => Bottom-left to top-right on/off
- $blockColor = 0;
- //@todo _writeCFRule() => $blockColor => Index Color for top line
- //@todo _writeCFRule() => $blockColor => Index Color for bottom line
- //@todo _writeCFRule() => $blockColor => Index Color for diagonal line
- switch ($conditional->getStyle()->getBorders()->getDiagonal()->getBorderStyle()){
- case PHPExcel_Style_Border::BORDER_NONE : $blockColor |= 0x00 << 21; break;
- case PHPExcel_Style_Border::BORDER_THIN : $blockColor |= 0x01 << 21; break;
- case PHPExcel_Style_Border::BORDER_MEDIUM : $blockColor |= 0x02 << 21; break;
- case PHPExcel_Style_Border::BORDER_DASHED : $blockColor |= 0x03 << 21; break;
- case PHPExcel_Style_Border::BORDER_DOTTED : $blockColor |= 0x04 << 21; break;
- case PHPExcel_Style_Border::BORDER_THICK : $blockColor |= 0x05 << 21; break;
- case PHPExcel_Style_Border::BORDER_DOUBLE : $blockColor |= 0x06 << 21; break;
- case PHPExcel_Style_Border::BORDER_HAIR : $blockColor |= 0x07 << 21; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED : $blockColor |= 0x08 << 21; break;
- case PHPExcel_Style_Border::BORDER_DASHDOT : $blockColor |= 0x09 << 21; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT : $blockColor |= 0x0A << 21; break;
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT : $blockColor |= 0x0B << 21; break;
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT : $blockColor |= 0x0C << 21; break;
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT : $blockColor |= 0x0D << 21; break;
- }
- $dataBlockBorder = pack('vv', $blockLineStyle, $blockColor);
- }
- if($bFormatFill == 1){
- // Fill Patern Style
- $blockFillPatternStyle = 0;
- switch ($conditional->getStyle()->getFill()->getFillType()){
- case PHPExcel_Style_Fill::FILL_NONE : $blockFillPatternStyle = 0x00; break;
- case PHPExcel_Style_Fill::FILL_SOLID : $blockFillPatternStyle = 0x01; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY : $blockFillPatternStyle = 0x02; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY : $blockFillPatternStyle = 0x03; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY : $blockFillPatternStyle = 0x04; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL : $blockFillPatternStyle = 0x05; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL : $blockFillPatternStyle = 0x06; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN : $blockFillPatternStyle = 0x07; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKUP : $blockFillPatternStyle = 0x08; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID : $blockFillPatternStyle = 0x09; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS : $blockFillPatternStyle = 0x0A; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL : $blockFillPatternStyle = 0x0B; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL : $blockFillPatternStyle = 0x0C; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN : $blockFillPatternStyle = 0x0D; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP : $blockFillPatternStyle = 0x0E; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID : $blockFillPatternStyle = 0x0F; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS : $blockFillPatternStyle = 0x10; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 : $blockFillPatternStyle = 0x11; break;
- case PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 : $blockFillPatternStyle = 0x12; break;
- case PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR : $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8
- case PHPExcel_Style_Fill::FILL_GRADIENT_PATH : $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8
- default : $blockFillPatternStyle = 0x00; break;
- }
- // Color
- switch ($conditional->getStyle()->getFill()->getStartColor()->getRGB()) {
- case '000000': $colorIdxBg = 0x08; break;
- case 'FFFFFF': $colorIdxBg = 0x09; break;
- case 'FF0000': $colorIdxBg = 0x0A; break;
- case '00FF00': $colorIdxBg = 0x0B; break;
- case '0000FF': $colorIdxBg = 0x0C; break;
- case 'FFFF00': $colorIdxBg = 0x0D; break;
- case 'FF00FF': $colorIdxBg = 0x0E; break;
- case '00FFFF': $colorIdxBg = 0x0F; break;
- case '800000': $colorIdxBg = 0x10; break;
- case '008000': $colorIdxBg = 0x11; break;
- case '000080': $colorIdxBg = 0x12; break;
- case '808000': $colorIdxBg = 0x13; break;
- case '800080': $colorIdxBg = 0x14; break;
- case '008080': $colorIdxBg = 0x15; break;
- case 'C0C0C0': $colorIdxBg = 0x16; break;
- case '808080': $colorIdxBg = 0x17; break;
- case '9999FF': $colorIdxBg = 0x18; break;
- case '993366': $colorIdxBg = 0x19; break;
- case 'FFFFCC': $colorIdxBg = 0x1A; break;
- case 'CCFFFF': $colorIdxBg = 0x1B; break;
- case '660066': $colorIdxBg = 0x1C; break;
- case 'FF8080': $colorIdxBg = 0x1D; break;
- case '0066CC': $colorIdxBg = 0x1E; break;
- case 'CCCCFF': $colorIdxBg = 0x1F; break;
- case '000080': $colorIdxBg = 0x20; break;
- case 'FF00FF': $colorIdxBg = 0x21; break;
- case 'FFFF00': $colorIdxBg = 0x22; break;
- case '00FFFF': $colorIdxBg = 0x23; break;
- case '800080': $colorIdxBg = 0x24; break;
- case '800000': $colorIdxBg = 0x25; break;
- case '008080': $colorIdxBg = 0x26; break;
- case '0000FF': $colorIdxBg = 0x27; break;
- case '00CCFF': $colorIdxBg = 0x28; break;
- case 'CCFFFF': $colorIdxBg = 0x29; break;
- case 'CCFFCC': $colorIdxBg = 0x2A; break;
- case 'FFFF99': $colorIdxBg = 0x2B; break;
- case '99CCFF': $colorIdxBg = 0x2C; break;
- case 'FF99CC': $colorIdxBg = 0x2D; break;
- case 'CC99FF': $colorIdxBg = 0x2E; break;
- case 'FFCC99': $colorIdxBg = 0x2F; break;
- case '3366FF': $colorIdxBg = 0x30; break;
- case '33CCCC': $colorIdxBg = 0x31; break;
- case '99CC00': $colorIdxBg = 0x32; break;
- case 'FFCC00': $colorIdxBg = 0x33; break;
- case 'FF9900': $colorIdxBg = 0x34; break;
- case 'FF6600': $colorIdxBg = 0x35; break;
- case '666699': $colorIdxBg = 0x36; break;
- case '969696': $colorIdxBg = 0x37; break;
- case '003366': $colorIdxBg = 0x38; break;
- case '339966': $colorIdxBg = 0x39; break;
- case '003300': $colorIdxBg = 0x3A; break;
- case '333300': $colorIdxBg = 0x3B; break;
- case '993300': $colorIdxBg = 0x3C; break;
- case '993366': $colorIdxBg = 0x3D; break;
- case '333399': $colorIdxBg = 0x3E; break;
- case '333333': $colorIdxBg = 0x3F; break;
- default: $colorIdxBg = 0x41; break;
- }
- // Fg Color
- switch ($conditional->getStyle()->getFill()->getEndColor()->getRGB()) {
- case '000000': $colorIdxFg = 0x08; break;
- case 'FFFFFF': $colorIdxFg = 0x09; break;
- case 'FF0000': $colorIdxFg = 0x0A; break;
- case '00FF00': $colorIdxFg = 0x0B; break;
- case '0000FF': $colorIdxFg = 0x0C; break;
- case 'FFFF00': $colorIdxFg = 0x0D; break;
- case 'FF00FF': $colorIdxFg = 0x0E; break;
- case '00FFFF': $colorIdxFg = 0x0F; break;
- case '800000': $colorIdxFg = 0x10; break;
- case '008000': $colorIdxFg = 0x11; break;
- case '000080': $colorIdxFg = 0x12; break;
- case '808000': $colorIdxFg = 0x13; break;
- case '800080': $colorIdxFg = 0x14; break;
- case '008080': $colorIdxFg = 0x15; break;
- case 'C0C0C0': $colorIdxFg = 0x16; break;
- case '808080': $colorIdxFg = 0x17; break;
- case '9999FF': $colorIdxFg = 0x18; break;
- case '993366': $colorIdxFg = 0x19; break;
- case 'FFFFCC': $colorIdxFg = 0x1A; break;
- case 'CCFFFF': $colorIdxFg = 0x1B; break;
- case '660066': $colorIdxFg = 0x1C; break;
- case 'FF8080': $colorIdxFg = 0x1D; break;
- case '0066CC': $colorIdxFg = 0x1E; break;
- case 'CCCCFF': $colorIdxFg = 0x1F; break;
- case '000080': $colorIdxFg = 0x20; break;
- case 'FF00FF': $colorIdxFg = 0x21; break;
- case 'FFFF00': $colorIdxFg = 0x22; break;
- case '00FFFF': $colorIdxFg = 0x23; break;
- case '800080': $colorIdxFg = 0x24; break;
- case '800000': $colorIdxFg = 0x25; break;
- case '008080': $colorIdxFg = 0x26; break;
- case '0000FF': $colorIdxFg = 0x27; break;
- case '00CCFF': $colorIdxFg = 0x28; break;
- case 'CCFFFF': $colorIdxFg = 0x29; break;
- case 'CCFFCC': $colorIdxFg = 0x2A; break;
- case 'FFFF99': $colorIdxFg = 0x2B; break;
- case '99CCFF': $colorIdxFg = 0x2C; break;
- case 'FF99CC': $colorIdxFg = 0x2D; break;
- case 'CC99FF': $colorIdxFg = 0x2E; break;
- case 'FFCC99': $colorIdxFg = 0x2F; break;
- case '3366FF': $colorIdxFg = 0x30; break;
- case '33CCCC': $colorIdxFg = 0x31; break;
- case '99CC00': $colorIdxFg = 0x32; break;
- case 'FFCC00': $colorIdxFg = 0x33; break;
- case 'FF9900': $colorIdxFg = 0x34; break;
- case 'FF6600': $colorIdxFg = 0x35; break;
- case '666699': $colorIdxFg = 0x36; break;
- case '969696': $colorIdxFg = 0x37; break;
- case '003366': $colorIdxFg = 0x38; break;
- case '339966': $colorIdxFg = 0x39; break;
- case '003300': $colorIdxFg = 0x3A; break;
- case '333300': $colorIdxFg = 0x3B; break;
- case '993300': $colorIdxFg = 0x3C; break;
- case '993366': $colorIdxFg = 0x3D; break;
- case '333399': $colorIdxFg = 0x3E; break;
- case '333333': $colorIdxFg = 0x3F; break;
- default: $colorIdxFg = 0x40; break;
- }
- $dataBlockFill = pack('v', $blockFillPatternStyle);
- $dataBlockFill .= pack('v', $colorIdxFg | ($colorIdxBg << 7));
- }
- if($bFormatProt == 1){
- $dataBlockProtection = 0;
- if($conditional->getStyle()->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED){
- $dataBlockProtection = 1;
- }
- if($conditional->getStyle()->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED){
- $dataBlockProtection = 1 << 1;
- }
- }
-
- $data = pack('CCvvVv', $type, $operatorType, $szValue1, $szValue2, $flags, 0x0000);
- if($bFormatFont == 1){ // Block Formatting : OK
- $data .= $dataBlockFont;
- }
- if($bFormatAlign == 1){
- $data .= $dataBlockAlign;
- }
- if($bFormatBorder == 1){
- $data .= $dataBlockBorder;
- }
- if($bFormatFill == 1){ // Block Formatting : OK
- $data .= $dataBlockFill;
- }
- if($bFormatProt == 1){
- $data .= $dataBlockProtection;
- }
- if(!is_null($operand1)){
- $data .= $operand1;
- }
- if(!is_null($operand2)){
- $data .= $operand2;
- }
- $header = pack('vv', $record, strlen($data));
- $this->_append($header . $data);
- }
-
- /**
- * Write CFHeader record
- */
- private function _writeCFHeader(){
- $record = 0x01B0; // Record identifier
- $length = 0x0016; // Bytes to follow
-
- $numColumnMin = null;
- $numColumnMax = null;
- $numRowMin = null;
- $numRowMax = null;
- $arrConditional = array();
- foreach ($this->_phpSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) {
- foreach ($conditionalStyles as $conditional) {
- if($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION
- || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS){
- if(!in_array($conditional->getHashCode(), $arrConditional)){
- $arrConditional[] = $conditional->getHashCode();
- }
- // Cells
- $arrCoord = PHPExcel_Cell::coordinateFromString($cellCoordinate);
- if(!is_numeric($arrCoord[0])){
- $arrCoord[0] = PHPExcel_Cell::columnIndexFromString($arrCoord[0]);
- }
- if(is_null($numColumnMin) || ($numColumnMin > $arrCoord[0])){
- $numColumnMin = $arrCoord[0];
- }
- if(is_null($numColumnMax) || ($numColumnMax < $arrCoord[0])){
- $numColumnMax = $arrCoord[0];
- }
- if(is_null($numRowMin) || ($numRowMin > $arrCoord[1])){
- $numRowMin = $arrCoord[1];
- }
- if(is_null($numRowMax) || ($numRowMax < $arrCoord[1])){
- $numRowMax = $arrCoord[1];
- }
- }
- }
- }
- $needRedraw = 1;
- $cellRange = pack('vvvv', $numRowMin-1, $numRowMax-1, $numColumnMin-1, $numColumnMax-1);
-
- $header = pack('vv', $record, $length);
- $data = pack('vv', count($arrConditional), $needRedraw);
- $data .= $cellRange;
- $data .= pack('v', 0x0001);
- $data .= $cellRange;
- $this->_append($header . $data);
- }
-}
\ No newline at end of file
+ /**
+ * Formula parser
+ *
+ * @var PHPExcel_Writer_Excel5_Parser
+ */
+ private $parser;
+
+ /**
+ * Maximum number of characters for a string (LABEL record in BIFF5)
+ * @var integer
+ */
+ private $xlsStringMaxLength;
+
+ /**
+ * Array containing format information for columns
+ * @var array
+ */
+ private $columnInfo;
+
+ /**
+ * Array containing the selected area for the worksheet
+ * @var array
+ */
+ private $selection;
+
+ /**
+ * The active pane for the worksheet
+ * @var integer
+ */
+ private $activePane;
+
+ /**
+ * Whether to use outline.
+ * @var integer
+ */
+ private $outlineOn;
+
+ /**
+ * Auto outline styles.
+ * @var bool
+ */
+ private $outlineStyle;
+
+ /**
+ * Whether to have outline summary below.
+ * @var bool
+ */
+ private $outlineBelow;
+
+ /**
+ * Whether to have outline summary at the right.
+ * @var bool
+ */
+ private $outlineRight;
+
+ /**
+ * Reference to the total number of strings in the workbook
+ * @var integer
+ */
+ private $stringTotal;
+
+ /**
+ * Reference to the number of unique strings in the workbook
+ * @var integer
+ */
+ private $stringUnique;
+
+ /**
+ * Reference to the array containing all the unique strings in the workbook
+ * @var array
+ */
+ private $stringTable;
+
+ /**
+ * Color cache
+ */
+ private $colors;
+
+ /**
+ * Index of first used row (at least 0)
+ * @var int
+ */
+ private $firstRowIndex;
+
+ /**
+ * Index of last used row. (no used rows means -1)
+ * @var int
+ */
+ private $lastRowIndex;
+
+ /**
+ * Index of first used column (at least 0)
+ * @var int
+ */
+ private $firstColumnIndex;
+
+ /**
+ * Index of last used column (no used columns means -1)
+ * @var int
+ */
+ private $lastColumnIndex;
+
+ /**
+ * Sheet object
+ * @var PHPExcel_Worksheet
+ */
+ public $phpSheet;
+
+ /**
+ * Count cell style Xfs
+ *
+ * @var int
+ */
+ private $countCellStyleXfs;
+
+ /**
+ * Escher object corresponding to MSODRAWING
+ *
+ * @var PHPExcel_Shared_Escher
+ */
+ private $escher;
+
+ /**
+ * Array of font hashes associated to FONT records index
+ *
+ * @var array
+ */
+ public $fontHashIndex;
+
+ /**
+ * Constructor
+ *
+ * @param int &$str_total Total number of strings
+ * @param int &$str_unique Total number of unique strings
+ * @param array &$str_table String Table
+ * @param array &$colors Colour Table
+ * @param mixed $parser The formula parser created for the Workbook
+ * @param boolean $preCalculateFormulas Flag indicating whether formulas should be calculated or just written
+ * @param string $phpSheet The worksheet to write
+ * @param PHPExcel_Worksheet $phpSheet
+ */
+ public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet)
+ {
+ // It needs to call its parent's constructor explicitly
+ parent::__construct();
+
+ // change BIFFwriter limit for CONTINUE records
+// $this->_limit = 8224;
+
+
+ $this->_preCalculateFormulas = $preCalculateFormulas;
+ $this->stringTotal = &$str_total;
+ $this->stringUnique = &$str_unique;
+ $this->stringTable = &$str_table;
+ $this->colors = &$colors;
+ $this->parser = $parser;
+
+ $this->phpSheet = $phpSheet;
+
+ //$this->ext_sheets = array();
+ //$this->offset = 0;
+ $this->xlsStringMaxLength = 255;
+ $this->columnInfo = array();
+ $this->selection = array(0,0,0,0);
+ $this->activePane = 3;
+
+ $this->_print_headers = 0;
+
+ $this->outlineStyle = 0;
+ $this->outlineBelow = 1;
+ $this->outlineRight = 1;
+ $this->outlineOn = 1;
+
+ $this->fontHashIndex = array();
+
+ // calculate values for DIMENSIONS record
+ $minR = 1;
+ $minC = 'A';
+
+ $maxR = $this->phpSheet->getHighestRow();
+ $maxC = $this->phpSheet->getHighestColumn();
+
+ // Determine lowest and highest column and row
+// $this->firstRowIndex = ($minR > 65535) ? 65535 : $minR;
+ $this->lastRowIndex = ($maxR > 65535) ? 65535 : $maxR ;
+
+ $this->firstColumnIndex = PHPExcel_Cell::columnIndexFromString($minC);
+ $this->lastColumnIndex = PHPExcel_Cell::columnIndexFromString($maxC);
+
+// if ($this->firstColumnIndex > 255) $this->firstColumnIndex = 255;
+ if ($this->lastColumnIndex > 255) {
+ $this->lastColumnIndex = 255;
+ }
+
+ $this->countCellStyleXfs = count($phpSheet->getParent()->getCellStyleXfCollection());
+ }
+
+ /**
+ * Add data to the beginning of the workbook (note the reverse order)
+ * and to the end of the workbook.
+ *
+ * @access public
+ * @see PHPExcel_Writer_Excel5_Workbook::storeWorkbook()
+ */
+ public function close()
+ {
+ $phpSheet = $this->phpSheet;
+
+ $num_sheets = $phpSheet->getParent()->getSheetCount();
+
+ // Write BOF record
+ $this->storeBof(0x0010);
+
+ // Write PRINTHEADERS
+ $this->writePrintHeaders();
+
+ // Write PRINTGRIDLINES
+ $this->writePrintGridlines();
+
+ // Write GRIDSET
+ $this->writeGridset();
+
+ // Calculate column widths
+ $phpSheet->calculateColumnWidths();
+
+ // Column dimensions
+ if (($defaultWidth = $phpSheet->getDefaultColumnDimension()->getWidth()) < 0) {
+ $defaultWidth = PHPExcel_Shared_Font::getDefaultColumnWidthByFont($phpSheet->getParent()->getDefaultStyle()->getFont());
+ }
+
+ $columnDimensions = $phpSheet->getColumnDimensions();
+ $maxCol = $this->lastColumnIndex -1;
+ for ($i = 0; $i <= $maxCol; ++$i) {
+ $hidden = 0;
+ $level = 0;
+ $xfIndex = 15; // there are 15 cell style Xfs
+
+ $width = $defaultWidth;
+
+ $columnLetter = PHPExcel_Cell::stringFromColumnIndex($i);
+ if (isset($columnDimensions[$columnLetter])) {
+ $columnDimension = $columnDimensions[$columnLetter];
+ if ($columnDimension->getWidth() >= 0) {
+ $width = $columnDimension->getWidth();
+ }
+ $hidden = $columnDimension->getVisible() ? 0 : 1;
+ $level = $columnDimension->getOutlineLevel();
+ $xfIndex = $columnDimension->getXfIndex() + 15; // there are 15 cell style Xfs
+ }
+
+ // Components of columnInfo:
+ // $firstcol first column on the range
+ // $lastcol last column on the range
+ // $width width to set
+ // $xfIndex The optional cell style Xf index to apply to the columns
+ // $hidden The optional hidden atribute
+ // $level The optional outline level
+ $this->columnInfo[] = array($i, $i, $width, $xfIndex, $hidden, $level);
+ }
+
+ // Write GUTS
+ $this->writeGuts();
+
+ // Write DEFAULTROWHEIGHT
+ $this->writeDefaultRowHeight();
+ // Write WSBOOL
+ $this->writeWsbool();
+ // Write horizontal and vertical page breaks
+ $this->writeBreaks();
+ // Write page header
+ $this->writeHeader();
+ // Write page footer
+ $this->writeFooter();
+ // Write page horizontal centering
+ $this->writeHcenter();
+ // Write page vertical centering
+ $this->writeVcenter();
+ // Write left margin
+ $this->writeMarginLeft();
+ // Write right margin
+ $this->writeMarginRight();
+ // Write top margin
+ $this->writeMarginTop();
+ // Write bottom margin
+ $this->writeMarginBottom();
+ // Write page setup
+ $this->writeSetup();
+ // Write sheet protection
+ $this->writeProtect();
+ // Write SCENPROTECT
+ $this->writeScenProtect();
+ // Write OBJECTPROTECT
+ $this->writeObjectProtect();
+ // Write sheet password
+ $this->writePassword();
+ // Write DEFCOLWIDTH record
+ $this->writeDefcol();
+
+ // Write the COLINFO records if they exist
+ if (!empty($this->columnInfo)) {
+ $colcount = count($this->columnInfo);
+ for ($i = 0; $i < $colcount; ++$i) {
+ $this->writeColinfo($this->columnInfo[$i]);
+ }
+ }
+ $autoFilterRange = $phpSheet->getAutoFilter()->getRange();
+ if (!empty($autoFilterRange)) {
+ // Write AUTOFILTERINFO
+ $this->writeAutoFilterInfo();
+ }
+
+ // Write sheet dimensions
+ $this->writeDimensions();
+
+ // Row dimensions
+ foreach ($phpSheet->getRowDimensions() as $rowDimension) {
+ $xfIndex = $rowDimension->getXfIndex() + 15; // there are 15 cellXfs
+ $this->writeRow($rowDimension->getRowIndex() - 1, $rowDimension->getRowHeight(), $xfIndex, ($rowDimension->getVisible() ? '0' : '1'), $rowDimension->getOutlineLevel());
+ }
+
+ // Write Cells
+ foreach ($phpSheet->getCellCollection() as $cellID) {
+ $cell = $phpSheet->getCell($cellID);
+ $row = $cell->getRow() - 1;
+ $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1;
+
+ // Don't break Excel!
+// if ($row + 1 > 65536 or $column + 1 > 256) {
+ if ($row > 65535 || $column > 255) {
+ break;
+ }
+
+ // Write cell value
+ $xfIndex = $cell->getXfIndex() + 15; // there are 15 cell style Xfs
+
+ $cVal = $cell->getValue();
+ if ($cVal instanceof PHPExcel_RichText) {
+ // $this->writeString($row, $column, $cVal->getPlainText(), $xfIndex);
+ $arrcRun = array();
+ $str_len = PHPExcel_Shared_String::CountCharacters($cVal->getPlainText(), 'UTF-8');
+ $str_pos = 0;
+ $elements = $cVal->getRichTextElements();
+ foreach ($elements as $element) {
+ // FONT Index
+ if ($element instanceof PHPExcel_RichText_Run) {
+ $str_fontidx = $this->fontHashIndex[$element->getFont()->getHashCode()];
+ } else {
+ $str_fontidx = 0;
+ }
+ $arrcRun[] = array('strlen' => $str_pos, 'fontidx' => $str_fontidx);
+ // Position FROM
+ $str_pos += PHPExcel_Shared_String::CountCharacters($element->getText(), 'UTF-8');
+ }
+ $this->writeRichTextString($row, $column, $cVal->getPlainText(), $xfIndex, $arrcRun);
+ } else {
+ switch ($cell->getDatatype()) {
+ case PHPExcel_Cell_DataType::TYPE_STRING:
+ case PHPExcel_Cell_DataType::TYPE_NULL:
+ if ($cVal === '' || $cVal === null) {
+ $this->writeBlank($row, $column, $xfIndex);
+ } else {
+ $this->writeString($row, $column, $cVal, $xfIndex);
+ }
+ break;
+
+ case PHPExcel_Cell_DataType::TYPE_NUMERIC:
+ $this->writeNumber($row, $column, $cVal, $xfIndex);
+ break;
+
+ case PHPExcel_Cell_DataType::TYPE_FORMULA:
+ $calculatedValue = $this->_preCalculateFormulas ?
+ $cell->getCalculatedValue() : null;
+ $this->writeFormula($row, $column, $cVal, $xfIndex, $calculatedValue);
+ break;
+
+ case PHPExcel_Cell_DataType::TYPE_BOOL:
+ $this->writeBoolErr($row, $column, $cVal, 0, $xfIndex);
+ break;
+
+ case PHPExcel_Cell_DataType::TYPE_ERROR:
+ $this->writeBoolErr($row, $column, self::mapErrorCode($cVal), 1, $xfIndex);
+ break;
+
+ }
+ }
+ }
+
+ // Append
+ $this->writeMsoDrawing();
+
+ // Write WINDOW2 record
+ $this->writeWindow2();
+
+ // Write PLV record
+ $this->writePageLayoutView();
+
+ // Write ZOOM record
+ $this->writeZoom();
+ if ($phpSheet->getFreezePane()) {
+ $this->writePanes();
+ }
+
+ // Write SELECTION record
+ $this->writeSelection();
+
+ // Write MergedCellsTable Record
+ $this->writeMergedCells();
+
+ // Hyperlinks
+ foreach ($phpSheet->getHyperLinkCollection() as $coordinate => $hyperlink) {
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinate);
+
+ $url = $hyperlink->getUrl();
+
+ if (strpos($url, 'sheet://') !== false) {
+ // internal to current workbook
+ $url = str_replace('sheet://', 'internal:', $url);
+
+ } elseif (preg_match('/^(http:|https:|ftp:|mailto:)/', $url)) {
+ // URL
+ // $url = $url;
+
+ } else {
+ // external (local file)
+ $url = 'external:' . $url;
+ }
+
+ $this->writeUrl($row - 1, PHPExcel_Cell::columnIndexFromString($column) - 1, $url);
+ }
+
+ $this->writeDataValidity();
+ $this->writeSheetLayout();
+
+ // Write SHEETPROTECTION record
+ $this->writeSheetProtection();
+ $this->writeRangeProtection();
+
+ $arrConditionalStyles = $phpSheet->getConditionalStylesCollection();
+ if (!empty($arrConditionalStyles)) {
+ $arrConditional = array();
+ // @todo CFRule & CFHeader
+ // Write CFHEADER record
+ $this->writeCFHeader();
+ // Write ConditionalFormattingTable records
+ foreach ($arrConditionalStyles as $cellCoordinate => $conditionalStyles) {
+ foreach ($conditionalStyles as $conditional) {
+ if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION
+ || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) {
+ if (!in_array($conditional->getHashCode(), $arrConditional)) {
+ $arrConditional[] = $conditional->getHashCode();
+ // Write CFRULE record
+ $this->writeCFRule($conditional);
+ }
+ }
+ }
+ }
+ }
+
+ $this->storeEof();
+ }
+
+ /**
+ * Write a cell range address in BIFF8
+ * always fixed range
+ * See section 2.5.14 in OpenOffice.org's Documentation of the Microsoft Excel File Format
+ *
+ * @param string $range E.g. 'A1' or 'A1:B6'
+ * @return string Binary data
+ */
+ private function writeBIFF8CellRangeAddressFixed($range = 'A1')
+ {
+ $explodes = explode(':', $range);
+
+ // extract first cell, e.g. 'A1'
+ $firstCell = $explodes[0];
+
+ // extract last cell, e.g. 'B6'
+ if (count($explodes) == 1) {
+ $lastCell = $firstCell;
+ } else {
+ $lastCell = $explodes[1];
+ }
+
+ $firstCellCoordinates = PHPExcel_Cell::coordinateFromString($firstCell); // e.g. array(0, 1)
+ $lastCellCoordinates = PHPExcel_Cell::coordinateFromString($lastCell); // e.g. array(1, 6)
+
+ return pack('vvvv', $firstCellCoordinates[1] - 1, $lastCellCoordinates[1] - 1, PHPExcel_Cell::columnIndexFromString($firstCellCoordinates[0]) - 1, PHPExcel_Cell::columnIndexFromString($lastCellCoordinates[0]) - 1);
+ }
+
+ /**
+ * Retrieves data from memory in one chunk, or from disk in $buffer
+ * sized chunks.
+ *
+ * @return string The data
+ */
+ public function getData()
+ {
+ $buffer = 4096;
+
+ // Return data stored in memory
+ if (isset($this->_data)) {
+ $tmp = $this->_data;
+ unset($this->_data);
+ return $tmp;
+ }
+ // No data to return
+ return false;
+ }
+
+ /**
+ * Set the option to print the row and column headers on the printed page.
+ *
+ * @access public
+ * @param integer $print Whether to print the headers or not. Defaults to 1 (print).
+ */
+ public function printRowColHeaders($print = 1)
+ {
+ $this->_print_headers = $print;
+ }
+
+ /**
+ * This method sets the properties for outlining and grouping. The defaults
+ * correspond to Excel's defaults.
+ *
+ * @param bool $visible
+ * @param bool $symbols_below
+ * @param bool $symbols_right
+ * @param bool $auto_style
+ */
+ public function setOutline($visible = true, $symbols_below = true, $symbols_right = true, $auto_style = false)
+ {
+ $this->outlineOn = $visible;
+ $this->outlineBelow = $symbols_below;
+ $this->outlineRight = $symbols_right;
+ $this->outlineStyle = $auto_style;
+
+ // Ensure this is a boolean vale for Window2
+ if ($this->outlineOn) {
+ $this->outlineOn = 1;
+ }
+ }
+
+ /**
+ * Write a double to the specified row and column (zero indexed).
+ * An integer can be written as a double. Excel will display an
+ * integer. $format is optional.
+ *
+ * Returns 0 : normal termination
+ * -2 : row or column out of range
+ *
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param float $num The number to write
+ * @param mixed $xfIndex The optional XF format
+ * @return integer
+ */
+ private function writeNumber($row, $col, $num, $xfIndex)
+ {
+ $record = 0x0203; // Record identifier
+ $length = 0x000E; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvv", $row, $col, $xfIndex);
+ $xl_double = pack("d", $num);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $xl_double = strrev($xl_double);
+ }
+
+ $this->append($header.$data.$xl_double);
+ return(0);
+ }
+
+ /**
+ * Write a LABELSST record or a LABEL record. Which one depends on BIFF version
+ *
+ * @param int $row Row index (0-based)
+ * @param int $col Column index (0-based)
+ * @param string $str The string
+ * @param int $xfIndex Index to XF record
+ */
+ private function writeString($row, $col, $str, $xfIndex)
+ {
+ $this->writeLabelSst($row, $col, $str, $xfIndex);
+ }
+
+ /**
+ * Write a LABELSST record or a LABEL record. Which one depends on BIFF version
+ * It differs from writeString by the writing of rich text strings.
+ * @param int $row Row index (0-based)
+ * @param int $col Column index (0-based)
+ * @param string $str The string
+ * @param mixed $xfIndex The XF format index for the cell
+ * @param array $arrcRun Index to Font record and characters beginning
+ */
+ private function writeRichTextString($row, $col, $str, $xfIndex, $arrcRun)
+ {
+ $record = 0x00FD; // Record identifier
+ $length = 0x000A; // Bytes to follow
+ $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun);
+
+ /* check if string is already present */
+ if (!isset($this->stringTable[$str])) {
+ $this->stringTable[$str] = $this->stringUnique++;
+ }
+ $this->stringTotal++;
+
+ $header = pack('vv', $record, $length);
+ $data = pack('vvvV', $row, $col, $xfIndex, $this->stringTable[$str]);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write a string to the specified row and column (zero indexed).
+ * NOTE: there is an Excel 5 defined limit of 255 characters.
+ * $format is optional.
+ * Returns 0 : normal termination
+ * -2 : row or column out of range
+ * -3 : long string truncated to 255 chars
+ *
+ * @access public
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param string $str The string to write
+ * @param mixed $xfIndex The XF format index for the cell
+ * @return integer
+ */
+ private function writeLabel($row, $col, $str, $xfIndex)
+ {
+ $strlen = strlen($str);
+ $record = 0x0204; // Record identifier
+ $length = 0x0008 + $strlen; // Bytes to follow
+
+ $str_error = 0;
+
+ if ($strlen > $this->xlsStringMaxLength) { // LABEL must be < 255 chars
+ $str = substr($str, 0, $this->xlsStringMaxLength);
+ $length = 0x0008 + $this->xlsStringMaxLength;
+ $strlen = $this->xlsStringMaxLength;
+ $str_error = -3;
+ }
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvv", $row, $col, $xfIndex, $strlen);
+ $this->append($header . $data . $str);
+ return($str_error);
+ }
+
+ /**
+ * Write a string to the specified row and column (zero indexed).
+ * This is the BIFF8 version (no 255 chars limit).
+ * $format is optional.
+ * Returns 0 : normal termination
+ * -2 : row or column out of range
+ * -3 : long string truncated to 255 chars
+ *
+ * @access public
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param string $str The string to write
+ * @param mixed $xfIndex The XF format index for the cell
+ * @return integer
+ */
+ private function writeLabelSst($row, $col, $str, $xfIndex)
+ {
+ $record = 0x00FD; // Record identifier
+ $length = 0x000A; // Bytes to follow
+
+ $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($str);
+
+ /* check if string is already present */
+ if (!isset($this->stringTable[$str])) {
+ $this->stringTable[$str] = $this->stringUnique++;
+ }
+ $this->stringTotal++;
+
+ $header = pack('vv', $record, $length);
+ $data = pack('vvvV', $row, $col, $xfIndex, $this->stringTable[$str]);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Writes a note associated with the cell given by the row and column.
+ * NOTE records don't have a length limit.
+ *
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param string $note The note to write
+ */
+ private function writeNote($row, $col, $note)
+ {
+ $note_length = strlen($note);
+ $record = 0x001C; // Record identifier
+ $max_length = 2048; // Maximun length for a NOTE record
+
+ // Length for this record is no more than 2048 + 6
+ $length = 0x0006 + min($note_length, 2048);
+ $header = pack("vv", $record, $length);
+ $data = pack("vvv", $row, $col, $note_length);
+ $this->append($header . $data . substr($note, 0, 2048));
+
+ for ($i = $max_length; $i < $note_length; $i += $max_length) {
+ $chunk = substr($note, $i, $max_length);
+ $length = 0x0006 + strlen($chunk);
+ $header = pack("vv", $record, $length);
+ $data = pack("vvv", -1, 0, strlen($chunk));
+ $this->append($header.$data.$chunk);
+ }
+ return(0);
+ }
+
+ /**
+ * Write a blank cell to the specified row and column (zero indexed).
+ * A blank cell is used to specify formatting without adding a string
+ * or a number.
+ *
+ * A blank cell without a format serves no purpose. Therefore, we don't write
+ * a BLANK record unless a format is specified.
+ *
+ * Returns 0 : normal termination (including no format)
+ * -1 : insufficient number of arguments
+ * -2 : row or column out of range
+ *
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param mixed $xfIndex The XF format index
+ */
+ public function writeBlank($row, $col, $xfIndex)
+ {
+ $record = 0x0201; // Record identifier
+ $length = 0x0006; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvv", $row, $col, $xfIndex);
+ $this->append($header . $data);
+ return 0;
+ }
+
+ /**
+ * Write a boolean or an error type to the specified row and column (zero indexed)
+ *
+ * @param int $row Row index (0-based)
+ * @param int $col Column index (0-based)
+ * @param int $value
+ * @param boolean $isError Error or Boolean?
+ * @param int $xfIndex
+ */
+ private function writeBoolErr($row, $col, $value, $isError, $xfIndex)
+ {
+ $record = 0x0205;
+ $length = 8;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvCC", $row, $col, $xfIndex, $value, $isError);
+ $this->append($header . $data);
+ return 0;
+ }
+
+ /**
+ * Write a formula to the specified row and column (zero indexed).
+ * The textual representation of the formula is passed to the parser in
+ * Parser.php which returns a packed binary string.
+ *
+ * Returns 0 : normal termination
+ * -1 : formula errors (bad formula)
+ * -2 : row or column out of range
+ *
+ * @param integer $row Zero indexed row
+ * @param integer $col Zero indexed column
+ * @param string $formula The formula text string
+ * @param mixed $xfIndex The XF format index
+ * @param mixed $calculatedValue Calculated value
+ * @return integer
+ */
+ private function writeFormula($row, $col, $formula, $xfIndex, $calculatedValue)
+ {
+ $record = 0x0006; // Record identifier
+
+ // Initialize possible additional value for STRING record that should be written after the FORMULA record?
+ $stringValue = null;
+
+ // calculated value
+ if (isset($calculatedValue)) {
+ // Since we can't yet get the data type of the calculated value,
+ // we use best effort to determine data type
+ if (is_bool($calculatedValue)) {
+ // Boolean value
+ $num = pack('CCCvCv', 0x01, 0x00, (int)$calculatedValue, 0x00, 0x00, 0xFFFF);
+ } elseif (is_int($calculatedValue) || is_float($calculatedValue)) {
+ // Numeric value
+ $num = pack('d', $calculatedValue);
+ } elseif (is_string($calculatedValue)) {
+ if (array_key_exists($calculatedValue, PHPExcel_Cell_DataType::getErrorCodes())) {
+ // Error value
+ $num = pack('CCCvCv', 0x02, 0x00, self::mapErrorCode($calculatedValue), 0x00, 0x00, 0xFFFF);
+ } elseif ($calculatedValue === '') {
+ // Empty string (and BIFF8)
+ $num = pack('CCCvCv', 0x03, 0x00, 0x00, 0x00, 0x00, 0xFFFF);
+ } else {
+ // Non-empty string value (or empty string BIFF5)
+ $stringValue = $calculatedValue;
+ $num = pack('CCCvCv', 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFF);
+ }
+ } else {
+ // We are really not supposed to reach here
+ $num = pack('d', 0x00);
+ }
+ } else {
+ $num = pack('d', 0x00);
+ }
+
+ $grbit = 0x03; // Option flags
+ $unknown = 0x0000; // Must be zero
+
+ // Strip the '=' or '@' sign at the beginning of the formula string
+ if ($formula{0} == '=') {
+ $formula = substr($formula, 1);
+ } else {
+ // Error handling
+ $this->writeString($row, $col, 'Unrecognised character for formula');
+ return -1;
+ }
+
+ // Parse the formula using the parser in Parser.php
+ try {
+ $error = $this->parser->parse($formula);
+ $formula = $this->parser->toReversePolish();
+
+ $formlen = strlen($formula); // Length of the binary string
+ $length = 0x16 + $formlen; // Length of the record data
+
+ $header = pack("vv", $record, $length);
+
+ $data = pack("vvv", $row, $col, $xfIndex)
+ . $num
+ . pack("vVv", $grbit, $unknown, $formlen);
+ $this->append($header . $data . $formula);
+
+ // Append also a STRING record if necessary
+ if ($stringValue !== null) {
+ $this->writeStringRecord($stringValue);
+ }
+
+ return 0;
+
+ } catch (PHPExcel_Exception $e) {
+ // do nothing
+ }
+
+ }
+
+ /**
+ * Write a STRING record. This
+ *
+ * @param string $stringValue
+ */
+ private function writeStringRecord($stringValue)
+ {
+ $record = 0x0207; // Record identifier
+ $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue);
+
+ $length = strlen($data);
+ $header = pack('vv', $record, $length);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write a hyperlink.
+ * This is comprised of two elements: the visible label and
+ * the invisible link. The visible label is the same as the link unless an
+ * alternative string is specified. The label is written using the
+ * writeString() method. Therefore the 255 characters string limit applies.
+ * $string and $format are optional.
+ *
+ * The hyperlink can be to a http, ftp, mail, internal sheet (not yet), or external
+ * directory url.
+ *
+ * Returns 0 : normal termination
+ * -2 : row or column out of range
+ * -3 : long string truncated to 255 chars
+ *
+ * @param integer $row Row
+ * @param integer $col Column
+ * @param string $url URL string
+ * @return integer
+ */
+ private function writeUrl($row, $col, $url)
+ {
+ // Add start row and col to arg list
+ return($this->writeUrlRange($row, $col, $row, $col, $url));
+ }
+
+ /**
+ * This is the more general form of writeUrl(). It allows a hyperlink to be
+ * written to a range of cells. This function also decides the type of hyperlink
+ * to be written. These are either, Web (http, ftp, mailto), Internal
+ * (Sheet1!A1) or external ('c:\temp\foo.xls#Sheet1!A1').
+ *
+ * @access private
+ * @see writeUrl()
+ * @param integer $row1 Start row
+ * @param integer $col1 Start column
+ * @param integer $row2 End row
+ * @param integer $col2 End column
+ * @param string $url URL string
+ * @return integer
+ */
+ public function writeUrlRange($row1, $col1, $row2, $col2, $url)
+ {
+ // Check for internal/external sheet links or default to web link
+ if (preg_match('[^internal:]', $url)) {
+ return($this->writeUrlInternal($row1, $col1, $row2, $col2, $url));
+ }
+ if (preg_match('[^external:]', $url)) {
+ return($this->writeUrlExternal($row1, $col1, $row2, $col2, $url));
+ }
+ return($this->writeUrlWeb($row1, $col1, $row2, $col2, $url));
+ }
+
+ /**
+ * Used to write http, ftp and mailto hyperlinks.
+ * The link type ($options) is 0x03 is the same as absolute dir ref without
+ * sheet. However it is differentiated by the $unknown2 data stream.
+ *
+ * @access private
+ * @see writeUrl()
+ * @param integer $row1 Start row
+ * @param integer $col1 Start column
+ * @param integer $row2 End row
+ * @param integer $col2 End column
+ * @param string $url URL string
+ * @return integer
+ */
+ public function writeUrlWeb($row1, $col1, $row2, $col2, $url)
+ {
+ $record = 0x01B8; // Record identifier
+ $length = 0x00000; // Bytes to follow
+
+ // Pack the undocumented parts of the hyperlink stream
+ $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000");
+ $unknown2 = pack("H*", "E0C9EA79F9BACE118C8200AA004BA90B");
+
+ // Pack the option flags
+ $options = pack("V", 0x03);
+
+ // Convert URL to a null terminated wchar string
+ $url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY));
+ $url = $url . "\0\0\0";
+
+ // Pack the length of the URL
+ $url_len = pack("V", strlen($url));
+
+ // Calculate the data length
+ $length = 0x34 + strlen($url);
+
+ // Pack the header data
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvv", $row1, $row2, $col1, $col2);
+
+ // Write the packed data
+ $this->append($header . $data .
+ $unknown1 . $options .
+ $unknown2 . $url_len . $url);
+ return 0;
+ }
+
+ /**
+ * Used to write internal reference hyperlinks such as "Sheet1!A1".
+ *
+ * @access private
+ * @see writeUrl()
+ * @param integer $row1 Start row
+ * @param integer $col1 Start column
+ * @param integer $row2 End row
+ * @param integer $col2 End column
+ * @param string $url URL string
+ * @return integer
+ */
+ public function writeUrlInternal($row1, $col1, $row2, $col2, $url)
+ {
+ $record = 0x01B8; // Record identifier
+ $length = 0x00000; // Bytes to follow
+
+ // Strip URL type
+ $url = preg_replace('/^internal:/', '', $url);
+
+ // Pack the undocumented parts of the hyperlink stream
+ $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000");
+
+ // Pack the option flags
+ $options = pack("V", 0x08);
+
+ // Convert the URL type and to a null terminated wchar string
+ $url .= "\0";
+
+ // character count
+ $url_len = PHPExcel_Shared_String::CountCharacters($url);
+ $url_len = pack('V', $url_len);
+
+ $url = PHPExcel_Shared_String::ConvertEncoding($url, 'UTF-16LE', 'UTF-8');
+
+ // Calculate the data length
+ $length = 0x24 + strlen($url);
+
+ // Pack the header data
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvv", $row1, $row2, $col1, $col2);
+
+ // Write the packed data
+ $this->append($header . $data .
+ $unknown1 . $options .
+ $url_len . $url);
+ return 0;
+ }
+
+ /**
+ * Write links to external directory names such as 'c:\foo.xls',
+ * c:\foo.xls#Sheet1!A1', '../../foo.xls'. and '../../foo.xls#Sheet1!A1'.
+ *
+ * Note: Excel writes some relative links with the $dir_long string. We ignore
+ * these cases for the sake of simpler code.
+ *
+ * @access private
+ * @see writeUrl()
+ * @param integer $row1 Start row
+ * @param integer $col1 Start column
+ * @param integer $row2 End row
+ * @param integer $col2 End column
+ * @param string $url URL string
+ * @return integer
+ */
+ public function writeUrlExternal($row1, $col1, $row2, $col2, $url)
+ {
+ // Network drives are different. We will handle them separately
+ // MS/Novell network drives and shares start with \\
+ if (preg_match('[^external:\\\\]', $url)) {
+ return; //($this->writeUrlExternal_net($row1, $col1, $row2, $col2, $url, $str, $format));
+ }
+
+ $record = 0x01B8; // Record identifier
+ $length = 0x00000; // Bytes to follow
+
+ // Strip URL type and change Unix dir separator to Dos style (if needed)
+ //
+ $url = preg_replace('/^external:/', '', $url);
+ $url = preg_replace('/\//', "\\", $url);
+
+ // Determine if the link is relative or absolute:
+ // relative if link contains no dir separator, "somefile.xls"
+ // relative if link starts with up-dir, "..\..\somefile.xls"
+ // otherwise, absolute
+
+ $absolute = 0x00; // relative path
+ if (preg_match('/^[A-Z]:/', $url)) {
+ $absolute = 0x02; // absolute path on Windows, e.g. C:\...
+ }
+ $link_type = 0x01 | $absolute;
+
+ // Determine if the link contains a sheet reference and change some of the
+ // parameters accordingly.
+ // Split the dir name and sheet name (if it exists)
+ $dir_long = $url;
+ if (preg_match("/\#/", $url)) {
+ $link_type |= 0x08;
+ }
+
+
+ // Pack the link type
+ $link_type = pack("V", $link_type);
+
+ // Calculate the up-level dir count e.g.. (..\..\..\ == 3)
+ $up_count = preg_match_all("/\.\.\\\/", $dir_long, $useless);
+ $up_count = pack("v", $up_count);
+
+ // Store the short dos dir name (null terminated)
+ $dir_short = preg_replace("/\.\.\\\/", '', $dir_long) . "\0";
+
+ // Store the long dir name as a wchar string (non-null terminated)
+ $dir_long = $dir_long . "\0";
+
+ // Pack the lengths of the dir strings
+ $dir_short_len = pack("V", strlen($dir_short));
+ $dir_long_len = pack("V", strlen($dir_long));
+ $stream_len = pack("V", 0); //strlen($dir_long) + 0x06);
+
+ // Pack the undocumented parts of the hyperlink stream
+ $unknown1 = pack("H*", 'D0C9EA79F9BACE118C8200AA004BA90B02000000');
+ $unknown2 = pack("H*", '0303000000000000C000000000000046');
+ $unknown3 = pack("H*", 'FFFFADDE000000000000000000000000000000000000000');
+ $unknown4 = pack("v", 0x03);
+
+ // Pack the main data stream
+ $data = pack("vvvv", $row1, $row2, $col1, $col2) .
+ $unknown1 .
+ $link_type .
+ $unknown2 .
+ $up_count .
+ $dir_short_len.
+ $dir_short .
+ $unknown3 .
+ $stream_len ;/*.
+ $dir_long_len .
+ $unknown4 .
+ $dir_long .
+ $sheet_len .
+ $sheet ;*/
+
+ // Pack the header data
+ $length = strlen($data);
+ $header = pack("vv", $record, $length);
+
+ // Write the packed data
+ $this->append($header. $data);
+ return 0;
+ }
+
+ /**
+ * This method is used to set the height and format for a row.
+ *
+ * @param integer $row The row to set
+ * @param integer $height Height we are giving to the row.
+ * Use null to set XF without setting height
+ * @param integer $xfIndex The optional cell style Xf index to apply to the columns
+ * @param bool $hidden The optional hidden attribute
+ * @param integer $level The optional outline level for row, in range [0,7]
+ */
+ private function writeRow($row, $height, $xfIndex, $hidden = false, $level = 0)
+ {
+ $record = 0x0208; // Record identifier
+ $length = 0x0010; // Number of bytes to follow
+
+ $colMic = 0x0000; // First defined column
+ $colMac = 0x0000; // Last defined column
+ $irwMac = 0x0000; // Used by Excel to optimise loading
+ $reserved = 0x0000; // Reserved
+ $grbit = 0x0000; // Option flags
+ $ixfe = $xfIndex;
+
+ if ($height < 0) {
+ $height = null;
+ }
+
+ // Use writeRow($row, null, $XF) to set XF format without setting height
+ if ($height != null) {
+ $miyRw = $height * 20; // row height
+ } else {
+ $miyRw = 0xff; // default row height is 256
+ }
+
+ // Set the options flags. fUnsynced is used to show that the font and row
+ // heights are not compatible. This is usually the case for WriteExcel.
+ // The collapsed flag 0x10 doesn't seem to be used to indicate that a row
+ // is collapsed. Instead it is used to indicate that the previous row is
+ // collapsed. The zero height flag, 0x20, is used to collapse a row.
+
+ $grbit |= $level;
+ if ($hidden) {
+ $grbit |= 0x0030;
+ }
+ if ($height !== null) {
+ $grbit |= 0x0040; // fUnsynced
+ }
+ if ($xfIndex !== 0xF) {
+ $grbit |= 0x0080;
+ }
+ $grbit |= 0x0100;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvvvvvv", $row, $colMic, $colMac, $miyRw, $irwMac, $reserved, $grbit, $ixfe);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Writes Excel DIMENSIONS to define the area in which there is data.
+ */
+ private function writeDimensions()
+ {
+ $record = 0x0200; // Record identifier
+
+ $length = 0x000E;
+ $data = pack('VVvvv', $this->firstRowIndex, $this->lastRowIndex + 1, $this->firstColumnIndex, $this->lastColumnIndex + 1, 0x0000); // reserved
+
+ $header = pack("vv", $record, $length);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write BIFF record Window2.
+ */
+ private function writeWindow2()
+ {
+ $record = 0x023E; // Record identifier
+ $length = 0x0012;
+
+ $grbit = 0x00B6; // Option flags
+ $rwTop = 0x0000; // Top row visible in window
+ $colLeft = 0x0000; // Leftmost column visible in window
+
+
+ // The options flags that comprise $grbit
+ $fDspFmla = 0; // 0 - bit
+ $fDspGrid = $this->phpSheet->getShowGridlines() ? 1 : 0; // 1
+ $fDspRwCol = $this->phpSheet->getShowRowColHeaders() ? 1 : 0; // 2
+ $fFrozen = $this->phpSheet->getFreezePane() ? 1 : 0; // 3
+ $fDspZeros = 1; // 4
+ $fDefaultHdr = 1; // 5
+ $fArabic = $this->phpSheet->getRightToLeft() ? 1 : 0; // 6
+ $fDspGuts = $this->outlineOn; // 7
+ $fFrozenNoSplit = 0; // 0 - bit
+ // no support in PHPExcel for selected sheet, therefore sheet is only selected if it is the active sheet
+ $fSelected = ($this->phpSheet === $this->phpSheet->getParent()->getActiveSheet()) ? 1 : 0;
+ $fPaged = 1; // 2
+ $fPageBreakPreview = $this->phpSheet->getSheetView()->getView() === PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW;
+
+ $grbit = $fDspFmla;
+ $grbit |= $fDspGrid << 1;
+ $grbit |= $fDspRwCol << 2;
+ $grbit |= $fFrozen << 3;
+ $grbit |= $fDspZeros << 4;
+ $grbit |= $fDefaultHdr << 5;
+ $grbit |= $fArabic << 6;
+ $grbit |= $fDspGuts << 7;
+ $grbit |= $fFrozenNoSplit << 8;
+ $grbit |= $fSelected << 9;
+ $grbit |= $fPaged << 10;
+ $grbit |= $fPageBreakPreview << 11;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvv", $grbit, $rwTop, $colLeft);
+
+ // FIXME !!!
+ $rgbHdr = 0x0040; // Row/column heading and gridline color index
+ $zoom_factor_page_break = ($fPageBreakPreview ? $this->phpSheet->getSheetView()->getZoomScale() : 0x0000);
+ $zoom_factor_normal = $this->phpSheet->getSheetView()->getZoomScaleNormal();
+
+ $data .= pack("vvvvV", $rgbHdr, 0x0000, $zoom_factor_page_break, $zoom_factor_normal, 0x00000000);
+
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write BIFF record DEFAULTROWHEIGHT.
+ */
+ private function writeDefaultRowHeight()
+ {
+ $defaultRowHeight = $this->phpSheet->getDefaultRowDimension()->getRowHeight();
+
+ if ($defaultRowHeight < 0) {
+ return;
+ }
+
+ // convert to twips
+ $defaultRowHeight = (int) 20 * $defaultRowHeight;
+
+ $record = 0x0225; // Record identifier
+ $length = 0x0004; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vv", 1, $defaultRowHeight);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write BIFF record DEFCOLWIDTH if COLINFO records are in use.
+ */
+ private function writeDefcol()
+ {
+ $defaultColWidth = 8;
+
+ $record = 0x0055; // Record identifier
+ $length = 0x0002; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $defaultColWidth);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write BIFF record COLINFO to define column widths
+ *
+ * Note: The SDK says the record length is 0x0B but Excel writes a 0x0C
+ * length record.
+ *
+ * @param array $col_array This is the only parameter received and is composed of the following:
+ * 0 => First formatted column,
+ * 1 => Last formatted column,
+ * 2 => Col width (8.43 is Excel default),
+ * 3 => The optional XF format of the column,
+ * 4 => Option flags.
+ * 5 => Optional outline level
+ */
+ private function writeColinfo($col_array)
+ {
+ if (isset($col_array[0])) {
+ $colFirst = $col_array[0];
+ }
+ if (isset($col_array[1])) {
+ $colLast = $col_array[1];
+ }
+ if (isset($col_array[2])) {
+ $coldx = $col_array[2];
+ } else {
+ $coldx = 8.43;
+ }
+ if (isset($col_array[3])) {
+ $xfIndex = $col_array[3];
+ } else {
+ $xfIndex = 15;
+ }
+ if (isset($col_array[4])) {
+ $grbit = $col_array[4];
+ } else {
+ $grbit = 0;
+ }
+ if (isset($col_array[5])) {
+ $level = $col_array[5];
+ } else {
+ $level = 0;
+ }
+ $record = 0x007D; // Record identifier
+ $length = 0x000C; // Number of bytes to follow
+
+ $coldx *= 256; // Convert to units of 1/256 of a char
+
+ $ixfe = $xfIndex;
+ $reserved = 0x0000; // Reserved
+
+ $level = max(0, min($level, 7));
+ $grbit |= $level << 8;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvvvv", $colFirst, $colLast, $coldx, $ixfe, $grbit, $reserved);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write BIFF record SELECTION.
+ */
+ private function writeSelection()
+ {
+ // look up the selected cell range
+ $selectedCells = $this->phpSheet->getSelectedCells();
+ $selectedCells = PHPExcel_Cell::splitRange($this->phpSheet->getSelectedCells());
+ $selectedCells = $selectedCells[0];
+ if (count($selectedCells) == 2) {
+ list($first, $last) = $selectedCells;
+ } else {
+ $first = $selectedCells[0];
+ $last = $selectedCells[0];
+ }
+
+ list($colFirst, $rwFirst) = PHPExcel_Cell::coordinateFromString($first);
+ $colFirst = PHPExcel_Cell::columnIndexFromString($colFirst) - 1; // base 0 column index
+ --$rwFirst; // base 0 row index
+
+ list($colLast, $rwLast) = PHPExcel_Cell::coordinateFromString($last);
+ $colLast = PHPExcel_Cell::columnIndexFromString($colLast) - 1; // base 0 column index
+ --$rwLast; // base 0 row index
+
+ // make sure we are not out of bounds
+ $colFirst = min($colFirst, 255);
+ $colLast = min($colLast, 255);
+
+ $rwFirst = min($rwFirst, 65535);
+ $rwLast = min($rwLast, 65535);
+
+ $record = 0x001D; // Record identifier
+ $length = 0x000F; // Number of bytes to follow
+
+ $pnn = $this->activePane; // Pane position
+ $rwAct = $rwFirst; // Active row
+ $colAct = $colFirst; // Active column
+ $irefAct = 0; // Active cell ref
+ $cref = 1; // Number of refs
+
+ if (!isset($rwLast)) {
+ $rwLast = $rwFirst; // Last row in reference
+ }
+ if (!isset($colLast)) {
+ $colLast = $colFirst; // Last col in reference
+ }
+
+ // Swap last row/col for first row/col as necessary
+ if ($rwFirst > $rwLast) {
+ list($rwFirst, $rwLast) = array($rwLast, $rwFirst);
+ }
+
+ if ($colFirst > $colLast) {
+ list($colFirst, $colLast) = array($colLast, $colFirst);
+ }
+
+ $header = pack("vv", $record, $length);
+ $data = pack("CvvvvvvCC", $pnn, $rwAct, $colAct, $irefAct, $cref, $rwFirst, $rwLast, $colFirst, $colLast);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the MERGEDCELLS records for all ranges of merged cells
+ */
+ private function writeMergedCells()
+ {
+ $mergeCells = $this->phpSheet->getMergeCells();
+ $countMergeCells = count($mergeCells);
+
+ if ($countMergeCells == 0) {
+ return;
+ }
+
+ // maximum allowed number of merged cells per record
+ $maxCountMergeCellsPerRecord = 1027;
+
+ // record identifier
+ $record = 0x00E5;
+
+ // counter for total number of merged cells treated so far by the writer
+ $i = 0;
+
+ // counter for number of merged cells written in record currently being written
+ $j = 0;
+
+ // initialize record data
+ $recordData = '';
+
+ // loop through the merged cells
+ foreach ($mergeCells as $mergeCell) {
+ ++$i;
+ ++$j;
+
+ // extract the row and column indexes
+ $range = PHPExcel_Cell::splitRange($mergeCell);
+ list($first, $last) = $range[0];
+ list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($first);
+ list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($last);
+
+ $recordData .= pack('vvvv', $firstRow - 1, $lastRow - 1, PHPExcel_Cell::columnIndexFromString($firstColumn) - 1, PHPExcel_Cell::columnIndexFromString($lastColumn) - 1);
+
+ // flush record if we have reached limit for number of merged cells, or reached final merged cell
+ if ($j == $maxCountMergeCellsPerRecord or $i == $countMergeCells) {
+ $recordData = pack('v', $j) . $recordData;
+ $length = strlen($recordData);
+ $header = pack('vv', $record, $length);
+ $this->append($header . $recordData);
+
+ // initialize for next record, if any
+ $recordData = '';
+ $j = 0;
+ }
+ }
+ }
+
+ /**
+ * Write SHEETLAYOUT record
+ */
+ private function writeSheetLayout()
+ {
+ if (!$this->phpSheet->isTabColorSet()) {
+ return;
+ }
+
+ $recordData = pack(
+ 'vvVVVvv',
+ 0x0862,
+ 0x0000, // unused
+ 0x00000000, // unused
+ 0x00000000, // unused
+ 0x00000014, // size of record data
+ $this->colors[$this->phpSheet->getTabColor()->getRGB()], // color index
+ 0x0000 // unused
+ );
+
+ $length = strlen($recordData);
+
+ $record = 0x0862; // Record identifier
+ $header = pack('vv', $record, $length);
+ $this->append($header . $recordData);
+ }
+
+ /**
+ * Write SHEETPROTECTION
+ */
+ private function writeSheetProtection()
+ {
+ // record identifier
+ $record = 0x0867;
+
+ // prepare options
+ $options = (int) !$this->phpSheet->getProtection()->getObjects()
+ | (int) !$this->phpSheet->getProtection()->getScenarios() << 1
+ | (int) !$this->phpSheet->getProtection()->getFormatCells() << 2
+ | (int) !$this->phpSheet->getProtection()->getFormatColumns() << 3
+ | (int) !$this->phpSheet->getProtection()->getFormatRows() << 4
+ | (int) !$this->phpSheet->getProtection()->getInsertColumns() << 5
+ | (int) !$this->phpSheet->getProtection()->getInsertRows() << 6
+ | (int) !$this->phpSheet->getProtection()->getInsertHyperlinks() << 7
+ | (int) !$this->phpSheet->getProtection()->getDeleteColumns() << 8
+ | (int) !$this->phpSheet->getProtection()->getDeleteRows() << 9
+ | (int) !$this->phpSheet->getProtection()->getSelectLockedCells() << 10
+ | (int) !$this->phpSheet->getProtection()->getSort() << 11
+ | (int) !$this->phpSheet->getProtection()->getAutoFilter() << 12
+ | (int) !$this->phpSheet->getProtection()->getPivotTables() << 13
+ | (int) !$this->phpSheet->getProtection()->getSelectUnlockedCells() << 14 ;
+
+ // record data
+ $recordData = pack(
+ 'vVVCVVvv',
+ 0x0867, // repeated record identifier
+ 0x0000, // not used
+ 0x0000, // not used
+ 0x00, // not used
+ 0x01000200, // unknown data
+ 0xFFFFFFFF, // unknown data
+ $options, // options
+ 0x0000 // not used
+ );
+
+ $length = strlen($recordData);
+ $header = pack('vv', $record, $length);
+
+ $this->append($header . $recordData);
+ }
+
+ /**
+ * Write BIFF record RANGEPROTECTION
+ *
+ * Openoffice.org's Documentaion of the Microsoft Excel File Format uses term RANGEPROTECTION for these records
+ * Microsoft Office Excel 97-2007 Binary File Format Specification uses term FEAT for these records
+ */
+ private function writeRangeProtection()
+ {
+ foreach ($this->phpSheet->getProtectedCells() as $range => $password) {
+ // number of ranges, e.g. 'A1:B3 C20:D25'
+ $cellRanges = explode(' ', $range);
+ $cref = count($cellRanges);
+
+ $recordData = pack(
+ 'vvVVvCVvVv',
+ 0x0868,
+ 0x00,
+ 0x0000,
+ 0x0000,
+ 0x02,
+ 0x0,
+ 0x0000,
+ $cref,
+ 0x0000,
+ 0x00
+ );
+
+ foreach ($cellRanges as $cellRange) {
+ $recordData .= $this->writeBIFF8CellRangeAddressFixed($cellRange);
+ }
+
+ // the rgbFeat structure
+ $recordData .= pack(
+ 'VV',
+ 0x0000,
+ hexdec($password)
+ );
+
+ $recordData .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong('p' . md5($recordData));
+
+ $length = strlen($recordData);
+
+ $record = 0x0868; // Record identifier
+ $header = pack("vv", $record, $length);
+ $this->append($header . $recordData);
+ }
+ }
+
+ /**
+ * Write BIFF record EXTERNCOUNT to indicate the number of external sheet
+ * references in a worksheet.
+ *
+ * Excel only stores references to external sheets that are used in formulas.
+ * For simplicity we store references to all the sheets in the workbook
+ * regardless of whether they are used or not. This reduces the overall
+ * complexity and eliminates the need for a two way dialogue between the formula
+ * parser the worksheet objects.
+ *
+ * @param integer $count The number of external sheet references in this worksheet
+ */
+ private function writeExterncount($count)
+ {
+ $record = 0x0016; // Record identifier
+ $length = 0x0002; // Number of bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $count);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Writes the Excel BIFF EXTERNSHEET record. These references are used by
+ * formulas. A formula references a sheet name via an index. Since we store a
+ * reference to all of the external worksheets the EXTERNSHEET index is the same
+ * as the worksheet index.
+ *
+ * @param string $sheetname The name of a external worksheet
+ */
+ private function writeExternsheet($sheetname)
+ {
+ $record = 0x0017; // Record identifier
+
+ // References to the current sheet are encoded differently to references to
+ // external sheets.
+ //
+ if ($this->phpSheet->getTitle() == $sheetname) {
+ $sheetname = '';
+ $length = 0x02; // The following 2 bytes
+ $cch = 1; // The following byte
+ $rgch = 0x02; // Self reference
+ } else {
+ $length = 0x02 + strlen($sheetname);
+ $cch = strlen($sheetname);
+ $rgch = 0x03; // Reference to a sheet in the current workbook
+ }
+
+ $header = pack("vv", $record, $length);
+ $data = pack("CC", $cch, $rgch);
+ $this->append($header . $data . $sheetname);
+ }
+
+ /**
+ * Writes the Excel BIFF PANE record.
+ * The panes can either be frozen or thawed (unfrozen).
+ * Frozen panes are specified in terms of an integer number of rows and columns.
+ * Thawed panes are specified in terms of Excel's units for rows and columns.
+ */
+ private function writePanes()
+ {
+ $panes = array();
+ if ($freezePane = $this->phpSheet->getFreezePane()) {
+ list($column, $row) = PHPExcel_Cell::coordinateFromString($freezePane);
+ $panes[0] = $row - 1;
+ $panes[1] = PHPExcel_Cell::columnIndexFromString($column) - 1;
+ } else {
+ // thaw panes
+ return;
+ }
+
+ $y = isset($panes[0]) ? $panes[0] : null;
+ $x = isset($panes[1]) ? $panes[1] : null;
+ $rwTop = isset($panes[2]) ? $panes[2] : null;
+ $colLeft = isset($panes[3]) ? $panes[3] : null;
+ if (count($panes) > 4) { // if Active pane was received
+ $pnnAct = $panes[4];
+ } else {
+ $pnnAct = null;
+ }
+ $record = 0x0041; // Record identifier
+ $length = 0x000A; // Number of bytes to follow
+
+ // Code specific to frozen or thawed panes.
+ if ($this->phpSheet->getFreezePane()) {
+ // Set default values for $rwTop and $colLeft
+ if (!isset($rwTop)) {
+ $rwTop = $y;
+ }
+ if (!isset($colLeft)) {
+ $colLeft = $x;
+ }
+ } else {
+ // Set default values for $rwTop and $colLeft
+ if (!isset($rwTop)) {
+ $rwTop = 0;
+ }
+ if (!isset($colLeft)) {
+ $colLeft = 0;
+ }
+
+ // Convert Excel's row and column units to the internal units.
+ // The default row height is 12.75
+ // The default column width is 8.43
+ // The following slope and intersection values were interpolated.
+ //
+ $y = 20*$y + 255;
+ $x = 113.879*$x + 390;
+ }
+
+
+ // Determine which pane should be active. There is also the undocumented
+ // option to override this should it be necessary: may be removed later.
+ //
+ if (!isset($pnnAct)) {
+ if ($x != 0 && $y != 0) {
+ $pnnAct = 0; // Bottom right
+ }
+ if ($x != 0 && $y == 0) {
+ $pnnAct = 1; // Top right
+ }
+ if ($x == 0 && $y != 0) {
+ $pnnAct = 2; // Bottom left
+ }
+ if ($x == 0 && $y == 0) {
+ $pnnAct = 3; // Top left
+ }
+ }
+
+ $this->activePane = $pnnAct; // Used in writeSelection
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvvv", $x, $y, $rwTop, $colLeft, $pnnAct);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the page setup SETUP BIFF record.
+ */
+ private function writeSetup()
+ {
+ $record = 0x00A1; // Record identifier
+ $length = 0x0022; // Number of bytes to follow
+
+ $iPaperSize = $this->phpSheet->getPageSetup()->getPaperSize(); // Paper size
+
+ $iScale = $this->phpSheet->getPageSetup()->getScale() ?
+ $this->phpSheet->getPageSetup()->getScale() : 100; // Print scaling factor
+
+ $iPageStart = 0x01; // Starting page number
+ $iFitWidth = (int) $this->phpSheet->getPageSetup()->getFitToWidth(); // Fit to number of pages wide
+ $iFitHeight = (int) $this->phpSheet->getPageSetup()->getFitToHeight(); // Fit to number of pages high
+ $grbit = 0x00; // Option flags
+ $iRes = 0x0258; // Print resolution
+ $iVRes = 0x0258; // Vertical print resolution
+
+ $numHdr = $this->phpSheet->getPageMargins()->getHeader(); // Header Margin
+
+ $numFtr = $this->phpSheet->getPageMargins()->getFooter(); // Footer Margin
+ $iCopies = 0x01; // Number of copies
+
+ $fLeftToRight = 0x0; // Print over then down
+
+ // Page orientation
+ $fLandscape = ($this->phpSheet->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ?
+ 0x0 : 0x1;
+
+ $fNoPls = 0x0; // Setup not read from printer
+ $fNoColor = 0x0; // Print black and white
+ $fDraft = 0x0; // Print draft quality
+ $fNotes = 0x0; // Print notes
+ $fNoOrient = 0x0; // Orientation not set
+ $fUsePage = 0x0; // Use custom starting page
+
+ $grbit = $fLeftToRight;
+ $grbit |= $fLandscape << 1;
+ $grbit |= $fNoPls << 2;
+ $grbit |= $fNoColor << 3;
+ $grbit |= $fDraft << 4;
+ $grbit |= $fNotes << 5;
+ $grbit |= $fNoOrient << 6;
+ $grbit |= $fUsePage << 7;
+
+ $numHdr = pack("d", $numHdr);
+ $numFtr = pack("d", $numFtr);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $numHdr = strrev($numHdr);
+ $numFtr = strrev($numFtr);
+ }
+
+ $header = pack("vv", $record, $length);
+ $data1 = pack("vvvvvvvv", $iPaperSize, $iScale, $iPageStart, $iFitWidth, $iFitHeight, $grbit, $iRes, $iVRes);
+ $data2 = $numHdr.$numFtr;
+ $data3 = pack("v", $iCopies);
+ $this->append($header . $data1 . $data2 . $data3);
+ }
+
+ /**
+ * Store the header caption BIFF record.
+ */
+ private function writeHeader()
+ {
+ $record = 0x0014; // Record identifier
+
+ /* removing for now
+ // need to fix character count (multibyte!)
+ if (strlen($this->phpSheet->getHeaderFooter()->getOddHeader()) <= 255) {
+ $str = $this->phpSheet->getHeaderFooter()->getOddHeader(); // header string
+ } else {
+ $str = '';
+ }
+ */
+
+ $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddHeader());
+ $length = strlen($recordData);
+
+ $header = pack("vv", $record, $length);
+
+ $this->append($header . $recordData);
+ }
+
+ /**
+ * Store the footer caption BIFF record.
+ */
+ private function writeFooter()
+ {
+ $record = 0x0015; // Record identifier
+
+ /* removing for now
+ // need to fix character count (multibyte!)
+ if (strlen($this->phpSheet->getHeaderFooter()->getOddFooter()) <= 255) {
+ $str = $this->phpSheet->getHeaderFooter()->getOddFooter();
+ } else {
+ $str = '';
+ }
+ */
+
+ $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddFooter());
+ $length = strlen($recordData);
+
+ $header = pack("vv", $record, $length);
+
+ $this->append($header . $recordData);
+ }
+
+ /**
+ * Store the horizontal centering HCENTER BIFF record.
+ *
+ * @access private
+ */
+ private function writeHcenter()
+ {
+ $record = 0x0083; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fHCenter = $this->phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fHCenter);
+
+ $this->append($header.$data);
+ }
+
+ /**
+ * Store the vertical centering VCENTER BIFF record.
+ */
+ private function writeVcenter()
+ {
+ $record = 0x0084; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fVCenter = $this->phpSheet->getPageSetup()->getVerticalCentered() ? 1 : 0; // Horizontal centering
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fVCenter);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the LEFTMARGIN BIFF record.
+ */
+ private function writeMarginLeft()
+ {
+ $record = 0x0026; // Record identifier
+ $length = 0x0008; // Bytes to follow
+
+ $margin = $this->phpSheet->getPageMargins()->getLeft(); // Margin in inches
+
+ $header = pack("vv", $record, $length);
+ $data = pack("d", $margin);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $data = strrev($data);
+ }
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the RIGHTMARGIN BIFF record.
+ */
+ private function writeMarginRight()
+ {
+ $record = 0x0027; // Record identifier
+ $length = 0x0008; // Bytes to follow
+
+ $margin = $this->phpSheet->getPageMargins()->getRight(); // Margin in inches
+
+ $header = pack("vv", $record, $length);
+ $data = pack("d", $margin);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $data = strrev($data);
+ }
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the TOPMARGIN BIFF record.
+ */
+ private function writeMarginTop()
+ {
+ $record = 0x0028; // Record identifier
+ $length = 0x0008; // Bytes to follow
+
+ $margin = $this->phpSheet->getPageMargins()->getTop(); // Margin in inches
+
+ $header = pack("vv", $record, $length);
+ $data = pack("d", $margin);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $data = strrev($data);
+ }
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Store the BOTTOMMARGIN BIFF record.
+ */
+ private function writeMarginBottom()
+ {
+ $record = 0x0029; // Record identifier
+ $length = 0x0008; // Bytes to follow
+
+ $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches
+
+ $header = pack("vv", $record, $length);
+ $data = pack("d", $margin);
+ if (self::getByteOrder()) { // if it's Big Endian
+ $data = strrev($data);
+ }
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the PRINTHEADERS BIFF record.
+ */
+ private function writePrintHeaders()
+ {
+ $record = 0x002a; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fPrintRwCol = $this->_print_headers; // Boolean flag
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fPrintRwCol);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the PRINTGRIDLINES BIFF record. Must be used in conjunction with the
+ * GRIDSET record.
+ */
+ private function writePrintGridlines()
+ {
+ $record = 0x002b; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fPrintGrid = $this->phpSheet->getPrintGridlines() ? 1 : 0; // Boolean flag
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fPrintGrid);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the GRIDSET BIFF record. Must be used in conjunction with the
+ * PRINTGRIDLINES record.
+ */
+ private function writeGridset()
+ {
+ $record = 0x0082; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fGridSet = !$this->phpSheet->getPrintGridlines(); // Boolean flag
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fGridSet);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the AUTOFILTERINFO BIFF record. This is used to configure the number of autofilter select used in the sheet.
+ */
+ private function writeAutoFilterInfo()
+ {
+ $record = 0x009D; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $rangeBounds = PHPExcel_Cell::rangeBoundaries($this->phpSheet->getAutoFilter()->getRange());
+ $iNumFilters = 1 + $rangeBounds[1][0] - $rangeBounds[0][0];
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $iNumFilters);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the GUTS BIFF record. This is used to configure the gutter margins
+ * where Excel outline symbols are displayed. The visibility of the gutters is
+ * controlled by a flag in WSBOOL.
+ *
+ * @see writeWsbool()
+ */
+ private function writeGuts()
+ {
+ $record = 0x0080; // Record identifier
+ $length = 0x0008; // Bytes to follow
+
+ $dxRwGut = 0x0000; // Size of row gutter
+ $dxColGut = 0x0000; // Size of col gutter
+
+ // determine maximum row outline level
+ $maxRowOutlineLevel = 0;
+ foreach ($this->phpSheet->getRowDimensions() as $rowDimension) {
+ $maxRowOutlineLevel = max($maxRowOutlineLevel, $rowDimension->getOutlineLevel());
+ }
+
+ $col_level = 0;
+
+ // Calculate the maximum column outline level. The equivalent calculation
+ // for the row outline level is carried out in writeRow().
+ $colcount = count($this->columnInfo);
+ for ($i = 0; $i < $colcount; ++$i) {
+ $col_level = max($this->columnInfo[$i][5], $col_level);
+ }
+
+ // Set the limits for the outline levels (0 <= x <= 7).
+ $col_level = max(0, min($col_level, 7));
+
+ // The displayed level is one greater than the max outline levels
+ if ($maxRowOutlineLevel) {
+ ++$maxRowOutlineLevel;
+ }
+ if ($col_level) {
+ ++$col_level;
+ }
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvvv", $dxRwGut, $dxColGut, $maxRowOutlineLevel, $col_level);
+
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction
+ * with the SETUP record.
+ */
+ private function writeWsbool()
+ {
+ $record = 0x0081; // Record identifier
+ $length = 0x0002; // Bytes to follow
+ $grbit = 0x0000;
+
+ // The only option that is of interest is the flag for fit to page. So we
+ // set all the options in one go.
+ //
+ // Set the option flags
+ $grbit |= 0x0001; // Auto page breaks visible
+ if ($this->outlineStyle) {
+ $grbit |= 0x0020; // Auto outline styles
+ }
+ if ($this->phpSheet->getShowSummaryBelow()) {
+ $grbit |= 0x0040; // Outline summary below
+ }
+ if ($this->phpSheet->getShowSummaryRight()) {
+ $grbit |= 0x0080; // Outline summary right
+ }
+ if ($this->phpSheet->getPageSetup()->getFitToPage()) {
+ $grbit |= 0x0100; // Page setup fit to page
+ }
+ if ($this->outlineOn) {
+ $grbit |= 0x0400; // Outline symbols displayed
+ }
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $grbit);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records.
+ */
+ private function writeBreaks()
+ {
+ // initialize
+ $vbreaks = array();
+ $hbreaks = array();
+
+ foreach ($this->phpSheet->getBreaks() as $cell => $breakType) {
+ // Fetch coordinates
+ $coordinates = PHPExcel_Cell::coordinateFromString($cell);
+
+ // Decide what to do by the type of break
+ switch ($breakType) {
+ case PHPExcel_Worksheet::BREAK_COLUMN:
+ // Add to list of vertical breaks
+ $vbreaks[] = PHPExcel_Cell::columnIndexFromString($coordinates[0]) - 1;
+ break;
+ case PHPExcel_Worksheet::BREAK_ROW:
+ // Add to list of horizontal breaks
+ $hbreaks[] = $coordinates[1];
+ break;
+ case PHPExcel_Worksheet::BREAK_NONE:
+ default:
+ // Nothing to do
+ break;
+ }
+ }
+
+ //horizontal page breaks
+ if (!empty($hbreaks)) {
+ // Sort and filter array of page breaks
+ sort($hbreaks, SORT_NUMERIC);
+ if ($hbreaks[0] == 0) { // don't use first break if it's 0
+ array_shift($hbreaks);
+ }
+
+ $record = 0x001b; // Record identifier
+ $cbrk = count($hbreaks); // Number of page breaks
+ $length = 2 + 6 * $cbrk; // Bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $cbrk);
+
+ // Append each page break
+ foreach ($hbreaks as $hbreak) {
+ $data .= pack("vvv", $hbreak, 0x0000, 0x00ff);
+ }
+
+ $this->append($header . $data);
+ }
+
+ // vertical page breaks
+ if (!empty($vbreaks)) {
+ // 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
+ // It is slightly higher in Excel 97/200, approx. 1026
+ $vbreaks = array_slice($vbreaks, 0, 1000);
+
+ // Sort and filter array of page breaks
+ sort($vbreaks, SORT_NUMERIC);
+ if ($vbreaks[0] == 0) { // don't use first break if it's 0
+ array_shift($vbreaks);
+ }
+
+ $record = 0x001a; // Record identifier
+ $cbrk = count($vbreaks); // Number of page breaks
+ $length = 2 + 6 * $cbrk; // Bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $cbrk);
+
+ // Append each page break
+ foreach ($vbreaks as $vbreak) {
+ $data .= pack("vvv", $vbreak, 0x0000, 0xffff);
+ }
+
+ $this->append($header . $data);
+ }
+ }
+
+ /**
+ * Set the Biff PROTECT record to indicate that the worksheet is protected.
+ */
+ private function writeProtect()
+ {
+ // Exit unless sheet protection has been specified
+ if (!$this->phpSheet->getProtection()->getSheet()) {
+ return;
+ }
+
+ $record = 0x0012; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $fLock = 1; // Worksheet is protected
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $fLock);
+
+ $this->append($header.$data);
+ }
+
+ /**
+ * Write SCENPROTECT
+ */
+ private function writeScenProtect()
+ {
+ // Exit if sheet protection is not active
+ if (!$this->phpSheet->getProtection()->getSheet()) {
+ return;
+ }
+
+ // Exit if scenarios are not protected
+ if (!$this->phpSheet->getProtection()->getScenarios()) {
+ return;
+ }
+
+ $record = 0x00DD; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $header = pack('vv', $record, $length);
+ $data = pack('v', 1);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write OBJECTPROTECT
+ */
+ private function writeObjectProtect()
+ {
+ // Exit if sheet protection is not active
+ if (!$this->phpSheet->getProtection()->getSheet()) {
+ return;
+ }
+
+ // Exit if objects are not protected
+ if (!$this->phpSheet->getProtection()->getObjects()) {
+ return;
+ }
+
+ $record = 0x0063; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $header = pack('vv', $record, $length);
+ $data = pack('v', 1);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write the worksheet PASSWORD record.
+ */
+ private function writePassword()
+ {
+ // Exit unless sheet protection and password have been specified
+ if (!$this->phpSheet->getProtection()->getSheet() || !$this->phpSheet->getProtection()->getPassword()) {
+ return;
+ }
+
+ $record = 0x0013; // Record identifier
+ $length = 0x0002; // Bytes to follow
+
+ $wPassword = hexdec($this->phpSheet->getProtection()->getPassword()); // Encoded password
+
+ $header = pack("vv", $record, $length);
+ $data = pack("v", $wPassword);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Insert a 24bit bitmap image in a worksheet.
+ *
+ * @access public
+ * @param integer $row The row we are going to insert the bitmap into
+ * @param integer $col The column we are going to insert the bitmap into
+ * @param mixed $bitmap The bitmap filename or GD-image resource
+ * @param integer $x The horizontal position (offset) of the image inside the cell.
+ * @param integer $y The vertical position (offset) of the image inside the cell.
+ * @param float $scale_x The horizontal scale
+ * @param float $scale_y The vertical scale
+ */
+ public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1)
+ {
+ $bitmap_array = (is_resource($bitmap) ? $this->processBitmapGd($bitmap) : $this->processBitmap($bitmap));
+ list($width, $height, $size, $data) = $bitmap_array; //$this->processBitmap($bitmap);
+
+ // Scale the frame of the image.
+ $width *= $scale_x;
+ $height *= $scale_y;
+
+ // Calculate the vertices of the image and write the OBJ record
+ $this->positionImage($col, $row, $x, $y, $width, $height);
+
+ // Write the IMDATA record to store the bitmap data
+ $record = 0x007f;
+ $length = 8 + $size;
+ $cf = 0x09;
+ $env = 0x01;
+ $lcb = $size;
+
+ $header = pack("vvvvV", $record, $length, $cf, $env, $lcb);
+ $this->append($header.$data);
+ }
+
+ /**
+ * Calculate the vertices that define the position of the image as required by
+ * the OBJ record.
+ *
+ * +------------+------------+
+ * | A | B |
+ * +-----+------------+------------+
+ * | |(x1,y1) | |
+ * | 1 |(A1)._______|______ |
+ * | | | | |
+ * | | | | |
+ * +-----+----| BITMAP |-----+
+ * | | | | |
+ * | 2 | |______________. |
+ * | | | (B2)|
+ * | | | (x2,y2)|
+ * +---- +------------+------------+
+ *
+ * Example of a bitmap that covers some of the area from cell A1 to cell B2.
+ *
+ * Based on the width and height of the bitmap we need to calculate 8 vars:
+ * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2.
+ * The width and height of the cells are also variable and have to be taken into
+ * account.
+ * The values of $col_start and $row_start are passed in from the calling
+ * function. The values of $col_end and $row_end are calculated by subtracting
+ * the width and height of the bitmap from the width and height of the
+ * underlying cells.
+ * The vertices are expressed as a percentage of the underlying cell width as
+ * follows (rhs values are in pixels):
+ *
+ * x1 = X / W *1024
+ * y1 = Y / H *256
+ * x2 = (X-1) / W *1024
+ * y2 = (Y-1) / H *256
+ *
+ * Where: X is distance from the left side of the underlying cell
+ * Y is distance from the top of the underlying cell
+ * W is the width of the cell
+ * H is the height of the cell
+ * The SDK incorrectly states that the height should be expressed as a
+ * percentage of 1024.
+ *
+ * @access private
+ * @param integer $col_start Col containing upper left corner of object
+ * @param integer $row_start Row containing top left corner of object
+ * @param integer $x1 Distance to left side of object
+ * @param integer $y1 Distance to top of object
+ * @param integer $width Width of image frame
+ * @param integer $height Height of image frame
+ */
+ public function positionImage($col_start, $row_start, $x1, $y1, $width, $height)
+ {
+ // Initialise end cell to the same as the start cell
+ $col_end = $col_start; // Col containing lower right corner of object
+ $row_end = $row_start; // Row containing bottom right corner of object
+
+ // Zero the specified offset if greater than the cell dimensions
+ if ($x1 >= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) {
+ $x1 = 0;
+ }
+ if ($y1 >= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1)) {
+ $y1 = 0;
+ }
+
+ $width = $width + $x1 -1;
+ $height = $height + $y1 -1;
+
+ // Subtract the underlying cell widths to find the end cell of the image
+ while ($width >= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) {
+ $width -= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end));
+ ++$col_end;
+ }
+
+ // Subtract the underlying cell heights to find the end cell of the image
+ while ($height >= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1)) {
+ $height -= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1);
+ ++$row_end;
+ }
+
+ // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell
+ // with zero eight or width.
+ //
+ if (PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) {
+ return;
+ }
+ if (PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) {
+ return;
+ }
+ if (PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1) == 0) {
+ return;
+ }
+ if (PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1) == 0) {
+ return;
+ }
+
+ // Convert the pixel values to the percentage value expected by Excel
+ $x1 = $x1 / PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024;
+ $y1 = $y1 / PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1) * 256;
+ $x2 = $width / PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object
+ $y2 = $height / PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1) * 256; // Distance to bottom of object
+
+ $this->writeObjPicture($col_start, $x1, $row_start, $y1, $col_end, $x2, $row_end, $y2);
+ }
+
+ /**
+ * Store the OBJ record that precedes an IMDATA record. This could be generalise
+ * to support other Excel objects.
+ *
+ * @param integer $colL Column containing upper left corner of object
+ * @param integer $dxL Distance from left side of cell
+ * @param integer $rwT Row containing top left corner of object
+ * @param integer $dyT Distance from top of cell
+ * @param integer $colR Column containing lower right corner of object
+ * @param integer $dxR Distance from right of cell
+ * @param integer $rwB Row containing bottom right corner of object
+ * @param integer $dyB Distance from bottom of cell
+ */
+ private function writeObjPicture($colL, $dxL, $rwT, $dyT, $colR, $dxR, $rwB, $dyB)
+ {
+ $record = 0x005d; // Record identifier
+ $length = 0x003c; // Bytes to follow
+
+ $cObj = 0x0001; // Count of objects in file (set to 1)
+ $OT = 0x0008; // Object type. 8 = Picture
+ $id = 0x0001; // Object ID
+ $grbit = 0x0614; // Option flags
+
+ $cbMacro = 0x0000; // Length of FMLA structure
+ $Reserved1 = 0x0000; // Reserved
+ $Reserved2 = 0x0000; // Reserved
+
+ $icvBack = 0x09; // Background colour
+ $icvFore = 0x09; // Foreground colour
+ $fls = 0x00; // Fill pattern
+ $fAuto = 0x00; // Automatic fill
+ $icv = 0x08; // Line colour
+ $lns = 0xff; // Line style
+ $lnw = 0x01; // Line weight
+ $fAutoB = 0x00; // Automatic border
+ $frs = 0x0000; // Frame style
+ $cf = 0x0009; // Image format, 9 = bitmap
+ $Reserved3 = 0x0000; // Reserved
+ $cbPictFmla = 0x0000; // Length of FMLA structure
+ $Reserved4 = 0x0000; // Reserved
+ $grbit2 = 0x0001; // Option flags
+ $Reserved5 = 0x0000; // Reserved
+
+
+ $header = pack("vv", $record, $length);
+ $data = pack("V", $cObj);
+ $data .= pack("v", $OT);
+ $data .= pack("v", $id);
+ $data .= pack("v", $grbit);
+ $data .= pack("v", $colL);
+ $data .= pack("v", $dxL);
+ $data .= pack("v", $rwT);
+ $data .= pack("v", $dyT);
+ $data .= pack("v", $colR);
+ $data .= pack("v", $dxR);
+ $data .= pack("v", $rwB);
+ $data .= pack("v", $dyB);
+ $data .= pack("v", $cbMacro);
+ $data .= pack("V", $Reserved1);
+ $data .= pack("v", $Reserved2);
+ $data .= pack("C", $icvBack);
+ $data .= pack("C", $icvFore);
+ $data .= pack("C", $fls);
+ $data .= pack("C", $fAuto);
+ $data .= pack("C", $icv);
+ $data .= pack("C", $lns);
+ $data .= pack("C", $lnw);
+ $data .= pack("C", $fAutoB);
+ $data .= pack("v", $frs);
+ $data .= pack("V", $cf);
+ $data .= pack("v", $Reserved3);
+ $data .= pack("v", $cbPictFmla);
+ $data .= pack("v", $Reserved4);
+ $data .= pack("v", $grbit2);
+ $data .= pack("V", $Reserved5);
+
+ $this->append($header . $data);
+ }
+
+ /**
+ * Convert a GD-image into the internal format.
+ *
+ * @access private
+ * @param resource $image The image to process
+ * @return array Array with data and properties of the bitmap
+ */
+ public function processBitmapGd($image)
+ {
+ $width = imagesx($image);
+ $height = imagesy($image);
+
+ $data = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18);
+ for ($j=$height; $j--;) {
+ for ($i=0; $i < $width; ++$i) {
+ $color = imagecolorsforindex($image, imagecolorat($image, $i, $j));
+ foreach (array("red", "green", "blue") as $key) {
+ $color[$key] = $color[$key] + round((255 - $color[$key]) * $color["alpha"] / 127);
+ }
+ $data .= chr($color["blue"]) . chr($color["green"]) . chr($color["red"]);
+ }
+ if (3*$width % 4) {
+ $data .= str_repeat("\x00", 4 - 3*$width % 4);
+ }
+ }
+
+ return array($width, $height, strlen($data), $data);
+ }
+
+ /**
+ * Convert a 24 bit bitmap into the modified internal format used by Windows.
+ * This is described in BITMAPCOREHEADER and BITMAPCOREINFO structures in the
+ * MSDN library.
+ *
+ * @access private
+ * @param string $bitmap The bitmap to process
+ * @return array Array with data and properties of the bitmap
+ */
+ public function processBitmap($bitmap)
+ {
+ // Open file.
+ $bmp_fd = @fopen($bitmap, "rb");
+ if (!$bmp_fd) {
+ throw new PHPExcel_Writer_Exception("Couldn't import $bitmap");
+ }
+
+ // Slurp the file into a string.
+ $data = fread($bmp_fd, filesize($bitmap));
+
+ // Check that the file is big enough to be a bitmap.
+ if (strlen($data) <= 0x36) {
+ throw new PHPExcel_Writer_Exception("$bitmap doesn't contain enough data.\n");
+ }
+
+ // The first 2 bytes are used to identify the bitmap.
+ $identity = unpack("A2ident", $data);
+ if ($identity['ident'] != "BM") {
+ throw new PHPExcel_Writer_Exception("$bitmap doesn't appear to be a valid bitmap image.\n");
+ }
+
+ // Remove bitmap data: ID.
+ $data = substr($data, 2);
+
+ // Read and remove the bitmap size. This is more reliable than reading
+ // the data size at offset 0x22.
+ //
+ $size_array = unpack("Vsa", substr($data, 0, 4));
+ $size = $size_array['sa'];
+ $data = substr($data, 4);
+ $size -= 0x36; // Subtract size of bitmap header.
+ $size += 0x0C; // Add size of BIFF header.
+
+ // Remove bitmap data: reserved, offset, header length.
+ $data = substr($data, 12);
+
+ // Read and remove the bitmap width and height. Verify the sizes.
+ $width_and_height = unpack("V2", substr($data, 0, 8));
+ $width = $width_and_height[1];
+ $height = $width_and_height[2];
+ $data = substr($data, 8);
+ if ($width > 0xFFFF) {
+ throw new PHPExcel_Writer_Exception("$bitmap: largest image width supported is 65k.\n");
+ }
+ if ($height > 0xFFFF) {
+ throw new PHPExcel_Writer_Exception("$bitmap: largest image height supported is 65k.\n");
+ }
+
+ // Read and remove the bitmap planes and bpp data. Verify them.
+ $planes_and_bitcount = unpack("v2", substr($data, 0, 4));
+ $data = substr($data, 4);
+ if ($planes_and_bitcount[2] != 24) { // Bitcount
+ throw new PHPExcel_Writer_Exception("$bitmap isn't a 24bit true color bitmap.\n");
+ }
+ if ($planes_and_bitcount[1] != 1) {
+ throw new PHPExcel_Writer_Exception("$bitmap: only 1 plane supported in bitmap image.\n");
+ }
+
+ // Read and remove the bitmap compression. Verify compression.
+ $compression = unpack("Vcomp", substr($data, 0, 4));
+ $data = substr($data, 4);
+
+ //$compression = 0;
+ if ($compression['comp'] != 0) {
+ throw new PHPExcel_Writer_Exception("$bitmap: compression not supported in bitmap image.\n");
+ }
+
+ // Remove bitmap data: data size, hres, vres, colours, imp. colours.
+ $data = substr($data, 20);
+
+ // Add the BITMAPCOREHEADER data
+ $header = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18);
+ $data = $header . $data;
+
+ return (array($width, $height, $size, $data));
+ }
+
+ /**
+ * Store the window zoom factor. This should be a reduced fraction but for
+ * simplicity we will store all fractions with a numerator of 100.
+ */
+ private function writeZoom()
+ {
+ // If scale is 100 we don't need to write a record
+ if ($this->phpSheet->getSheetView()->getZoomScale() == 100) {
+ return;
+ }
+
+ $record = 0x00A0; // Record identifier
+ $length = 0x0004; // Bytes to follow
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vv", $this->phpSheet->getSheetView()->getZoomScale(), 100);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Get Escher object
+ *
+ * @return PHPExcel_Shared_Escher
+ */
+ public function getEscher()
+ {
+ return $this->escher;
+ }
+
+ /**
+ * Set Escher object
+ *
+ * @param PHPExcel_Shared_Escher $pValue
+ */
+ public function setEscher(PHPExcel_Shared_Escher $pValue = null)
+ {
+ $this->escher = $pValue;
+ }
+
+ /**
+ * Write MSODRAWING record
+ */
+ private function writeMsoDrawing()
+ {
+ // write the Escher stream if necessary
+ if (isset($this->escher)) {
+ $writer = new PHPExcel_Writer_Excel5_Escher($this->escher);
+ $data = $writer->close();
+ $spOffsets = $writer->getSpOffsets();
+ $spTypes = $writer->getSpTypes();
+ // write the neccesary MSODRAWING, OBJ records
+
+ // split the Escher stream
+ $spOffsets[0] = 0;
+ $nm = count($spOffsets) - 1; // number of shapes excluding first shape
+ for ($i = 1; $i <= $nm; ++$i) {
+ // MSODRAWING record
+ $record = 0x00EC; // Record identifier
+
+ // chunk of Escher stream for one shape
+ $dataChunk = substr($data, $spOffsets[$i -1], $spOffsets[$i] - $spOffsets[$i - 1]);
+
+ $length = strlen($dataChunk);
+ $header = pack("vv", $record, $length);
+
+ $this->append($header . $dataChunk);
+
+ // OBJ record
+ $record = 0x005D; // record identifier
+ $objData = '';
+
+ // ftCmo
+ if ($spTypes[$i] == 0x00C9) {
+ // Add ftCmo (common object data) subobject
+ $objData .=
+ pack(
+ 'vvvvvVVV',
+ 0x0015, // 0x0015 = ftCmo
+ 0x0012, // length of ftCmo data
+ 0x0014, // object type, 0x0014 = filter
+ $i, // object id number, Excel seems to use 1-based index, local for the sheet
+ 0x2101, // option flags, 0x2001 is what OpenOffice.org uses
+ 0, // reserved
+ 0, // reserved
+ 0 // reserved
+ );
+
+ // Add ftSbs Scroll bar subobject
+ $objData .= pack('vv', 0x00C, 0x0014);
+ $objData .= pack('H*', '0000000000000000640001000A00000010000100');
+ // Add ftLbsData (List box data) subobject
+ $objData .= pack('vv', 0x0013, 0x1FEE);
+ $objData .= pack('H*', '00000000010001030000020008005700');
+ } else {
+ // Add ftCmo (common object data) subobject
+ $objData .=
+ pack(
+ 'vvvvvVVV',
+ 0x0015, // 0x0015 = ftCmo
+ 0x0012, // length of ftCmo data
+ 0x0008, // object type, 0x0008 = picture
+ $i, // object id number, Excel seems to use 1-based index, local for the sheet
+ 0x6011, // option flags, 0x6011 is what OpenOffice.org uses
+ 0, // reserved
+ 0, // reserved
+ 0 // reserved
+ );
+ }
+
+ // ftEnd
+ $objData .=
+ pack(
+ 'vv',
+ 0x0000, // 0x0000 = ftEnd
+ 0x0000 // length of ftEnd data
+ );
+
+ $length = strlen($objData);
+ $header = pack('vv', $record, $length);
+ $this->append($header . $objData);
+ }
+ }
+ }
+
+ /**
+ * Store the DATAVALIDATIONS and DATAVALIDATION records.
+ */
+ private function writeDataValidity()
+ {
+ // Datavalidation collection
+ $dataValidationCollection = $this->phpSheet->getDataValidationCollection();
+
+ // Write data validations?
+ if (!empty($dataValidationCollection)) {
+ // DATAVALIDATIONS record
+ $record = 0x01B2; // Record identifier
+ $length = 0x0012; // Bytes to follow
+
+ $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records
+ $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position
+ $verPos = 0x00000000; // Vertical position of prompt box, if fixed position
+ $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible
+
+ $header = pack('vv', $record, $length);
+ $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection));
+ $this->append($header.$data);
+
+ // DATAVALIDATION records
+ $record = 0x01BE; // Record identifier
+
+ foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) {
+ // initialize record data
+ $data = '';
+
+ // options
+ $options = 0x00000000;
+
+ // data type
+ $type = $dataValidation->getType();
+ switch ($type) {
+ case PHPExcel_Cell_DataValidation::TYPE_NONE:
+ $type = 0x00;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_WHOLE:
+ $type = 0x01;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_DECIMAL:
+ $type = 0x02;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_LIST:
+ $type = 0x03;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_DATE:
+ $type = 0x04;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_TIME:
+ $type = 0x05;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH:
+ $type = 0x06;
+ break;
+ case PHPExcel_Cell_DataValidation::TYPE_CUSTOM:
+ $type = 0x07;
+ break;
+ }
+ $options |= $type << 0;
+
+ // error style
+ $errorStyle = $dataValidation->getType();
+ switch ($errorStyle) {
+ case PHPExcel_Cell_DataValidation::STYLE_STOP:
+ $errorStyle = 0x00;
+ break;
+ case PHPExcel_Cell_DataValidation::STYLE_WARNING:
+ $errorStyle = 0x01;
+ break;
+ case PHPExcel_Cell_DataValidation::STYLE_INFORMATION:
+ $errorStyle = 0x02;
+ break;
+ }
+ $options |= $errorStyle << 4;
+
+ // explicit formula?
+ if ($type == 0x03 && preg_match('/^\".*\"$/', $dataValidation->getFormula1())) {
+ $options |= 0x01 << 7;
+ }
+
+ // empty cells allowed
+ $options |= $dataValidation->getAllowBlank() << 8;
+
+ // show drop down
+ $options |= (!$dataValidation->getShowDropDown()) << 9;
+
+ // show input message
+ $options |= $dataValidation->getShowInputMessage() << 18;
+
+ // show error message
+ $options |= $dataValidation->getShowErrorMessage() << 19;
+
+ // condition operator
+ $operator = $dataValidation->getOperator();
+ switch ($operator) {
+ case PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN:
+ $operator = 0x00;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN:
+ $operator = 0x01;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_EQUAL:
+ $operator = 0x02;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL:
+ $operator = 0x03;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN:
+ $operator = 0x04;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN:
+ $operator = 0x05;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL:
+ $operator = 0x06;
+ break;
+ case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL:
+ $operator = 0x07;
+ break;
+ }
+ $options |= $operator << 20;
+
+ $data = pack('V', $options);
+
+ // prompt title
+ $promptTitle = $dataValidation->getPromptTitle() !== '' ?
+ $dataValidation->getPromptTitle() : chr(0);
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($promptTitle);
+
+ // error title
+ $errorTitle = $dataValidation->getErrorTitle() !== '' ?
+ $dataValidation->getErrorTitle() : chr(0);
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($errorTitle);
+
+ // prompt text
+ $prompt = $dataValidation->getPrompt() !== '' ?
+ $dataValidation->getPrompt() : chr(0);
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($prompt);
+
+ // error text
+ $error = $dataValidation->getError() !== '' ?
+ $dataValidation->getError() : chr(0);
+ $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($error);
+
+ // formula 1
+ try {
+ $formula1 = $dataValidation->getFormula1();
+ if ($type == 0x03) { // list type
+ $formula1 = str_replace(',', chr(0), $formula1);
+ }
+ $this->parser->parse($formula1);
+ $formula1 = $this->parser->toReversePolish();
+ $sz1 = strlen($formula1);
+ } catch (PHPExcel_Exception $e) {
+ $sz1 = 0;
+ $formula1 = '';
+ }
+ $data .= pack('vv', $sz1, 0x0000);
+ $data .= $formula1;
+
+ // formula 2
+ try {
+ $formula2 = $dataValidation->getFormula2();
+ if ($formula2 === '') {
+ throw new PHPExcel_Writer_Exception('No formula2');
+ }
+ $this->parser->parse($formula2);
+ $formula2 = $this->parser->toReversePolish();
+ $sz2 = strlen($formula2);
+ } catch (PHPExcel_Exception $e) {
+ $sz2 = 0;
+ $formula2 = '';
+ }
+ $data .= pack('vv', $sz2, 0x0000);
+ $data .= $formula2;
+
+ // cell range address list
+ $data .= pack('v', 0x0001);
+ $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate);
+
+ $length = strlen($data);
+ $header = pack("vv", $record, $length);
+
+ $this->append($header . $data);
+ }
+ }
+ }
+
+ /**
+ * Map Error code
+ *
+ * @param string $errorCode
+ * @return int
+ */
+ private static function mapErrorCode($errorCode)
+ {
+ switch ($errorCode) {
+ case '#NULL!':
+ return 0x00;
+ case '#DIV/0!':
+ return 0x07;
+ case '#VALUE!':
+ return 0x0F;
+ case '#REF!':
+ return 0x17;
+ case '#NAME?':
+ return 0x1D;
+ case '#NUM!':
+ return 0x24;
+ case '#N/A':
+ return 0x2A;
+ }
+
+ return 0;
+ }
+
+ /**
+ * Write PLV Record
+ */
+ private function writePageLayoutView()
+ {
+ $record = 0x088B; // Record identifier
+ $length = 0x0010; // Bytes to follow
+
+ $rt = 0x088B; // 2
+ $grbitFrt = 0x0000; // 2
+ $reserved = 0x0000000000000000; // 8
+ $wScalvePLV = $this->phpSheet->getSheetView()->getZoomScale(); // 2
+
+ // The options flags that comprise $grbit
+ if ($this->phpSheet->getSheetView()->getView() == PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT) {
+ $fPageLayoutView = 1;
+ } else {
+ $fPageLayoutView = 0;
+ }
+ $fRulerVisible = 0;
+ $fWhitespaceHidden = 0;
+
+ $grbit = $fPageLayoutView; // 2
+ $grbit |= $fRulerVisible << 1;
+ $grbit |= $fWhitespaceHidden << 3;
+
+ $header = pack("vv", $record, $length);
+ $data = pack("vvVVvv", $rt, $grbitFrt, 0x00000000, 0x00000000, $wScalvePLV, $grbit);
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write CFRule Record
+ * @param PHPExcel_Style_Conditional $conditional
+ */
+ private function writeCFRule(PHPExcel_Style_Conditional $conditional)
+ {
+ $record = 0x01B1; // Record identifier
+
+ // $type : Type of the CF
+ // $operatorType : Comparison operator
+ if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) {
+ $type = 0x02;
+ $operatorType = 0x00;
+ } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) {
+ $type = 0x01;
+
+ switch ($conditional->getOperatorType()) {
+ case PHPExcel_Style_Conditional::OPERATOR_NONE:
+ $operatorType = 0x00;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_EQUAL:
+ $operatorType = 0x03;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN:
+ $operatorType = 0x05;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL:
+ $operatorType = 0x07;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_LESSTHAN:
+ $operatorType = 0x06;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL:
+ $operatorType = 0x08;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL:
+ $operatorType = 0x04;
+ break;
+ case PHPExcel_Style_Conditional::OPERATOR_BETWEEN:
+ $operatorType = 0x01;
+ break;
+ // not OPERATOR_NOTBETWEEN 0x02
+ }
+ }
+
+ // $szValue1 : size of the formula data for first value or formula
+ // $szValue2 : size of the formula data for second value or formula
+ $arrConditions = $conditional->getConditions();
+ $numConditions = sizeof($arrConditions);
+ if ($numConditions == 1) {
+ $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000);
+ $szValue2 = 0x0000;
+ $operand1 = pack('Cv', 0x1E, $arrConditions[0]);
+ $operand2 = null;
+ } elseif ($numConditions == 2 && ($conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BETWEEN)) {
+ $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000);
+ $szValue2 = ($arrConditions[1] <= 65535 ? 3 : 0x0000);
+ $operand1 = pack('Cv', 0x1E, $arrConditions[0]);
+ $operand2 = pack('Cv', 0x1E, $arrConditions[1]);
+ } else {
+ $szValue1 = 0x0000;
+ $szValue2 = 0x0000;
+ $operand1 = null;
+ $operand2 = null;
+ }
+
+ // $flags : Option flags
+ // Alignment
+ $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() == null ? 1 : 0);
+ $bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() == null ? 1 : 0);
+ $bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() == false ? 1 : 0);
+ $bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() == null ? 1 : 0);
+ $bIndent = ($conditional->getStyle()->getAlignment()->getIndent() == 0 ? 1 : 0);
+ $bShrinkToFit = ($conditional->getStyle()->getAlignment()->getShrinkToFit() == false ? 1 : 0);
+ if ($bAlignHz == 0 || $bAlignVt == 0 || $bAlignWrapTx == 0 || $bTxRotation == 0 || $bIndent == 0 || $bShrinkToFit == 0) {
+ $bFormatAlign = 1;
+ } else {
+ $bFormatAlign = 0;
+ }
+ // Protection
+ $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() == null ? 1 : 0);
+ $bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() == null ? 1 : 0);
+ if ($bProtLocked == 0 || $bProtHidden == 0) {
+ $bFormatProt = 1;
+ } else {
+ $bFormatProt = 0;
+ }
+ // Border
+ $bBorderLeft = ($conditional->getStyle()->getBorders()->getLeft()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
+ && $conditional->getStyle()->getBorders()->getLeft()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
+ $bBorderRight = ($conditional->getStyle()->getBorders()->getRight()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
+ && $conditional->getStyle()->getBorders()->getRight()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
+ $bBorderTop = ($conditional->getStyle()->getBorders()->getTop()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
+ && $conditional->getStyle()->getBorders()->getTop()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
+ $bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK
+ && $conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0);
+ if ($bBorderLeft == 0 || $bBorderRight == 0 || $bBorderTop == 0 || $bBorderBottom == 0) {
+ $bFormatBorder = 1;
+ } else {
+ $bFormatBorder = 0;
+ }
+ // Pattern
+ $bFillStyle = ($conditional->getStyle()->getFill()->getFillType() == null ? 0 : 1);
+ $bFillColor = ($conditional->getStyle()->getFill()->getStartColor()->getARGB() == null ? 0 : 1);
+ $bFillColorBg = ($conditional->getStyle()->getFill()->getEndColor()->getARGB() == null ? 0 : 1);
+ if ($bFillStyle == 0 || $bFillColor == 0 || $bFillColorBg == 0) {
+ $bFormatFill = 1;
+ } else {
+ $bFormatFill = 0;
+ }
+ // Font
+ if ($conditional->getStyle()->getFont()->getName() != null
+ || $conditional->getStyle()->getFont()->getSize() != null
+ || $conditional->getStyle()->getFont()->getBold() != null
+ || $conditional->getStyle()->getFont()->getItalic() != null
+ || $conditional->getStyle()->getFont()->getSuperScript() != null
+ || $conditional->getStyle()->getFont()->getSubScript() != null
+ || $conditional->getStyle()->getFont()->getUnderline() != null
+ || $conditional->getStyle()->getFont()->getStrikethrough() != null
+ || $conditional->getStyle()->getFont()->getColor()->getARGB() != null) {
+ $bFormatFont = 1;
+ } else {
+ $bFormatFont = 0;
+ }
+ // Alignment
+ $flags = 0;
+ $flags |= (1 == $bAlignHz ? 0x00000001 : 0);
+ $flags |= (1 == $bAlignVt ? 0x00000002 : 0);
+ $flags |= (1 == $bAlignWrapTx ? 0x00000004 : 0);
+ $flags |= (1 == $bTxRotation ? 0x00000008 : 0);
+ // Justify last line flag
+ $flags |= (1 == 1 ? 0x00000010 : 0);
+ $flags |= (1 == $bIndent ? 0x00000020 : 0);
+ $flags |= (1 == $bShrinkToFit ? 0x00000040 : 0);
+ // Default
+ $flags |= (1 == 1 ? 0x00000080 : 0);
+ // Protection
+ $flags |= (1 == $bProtLocked ? 0x00000100 : 0);
+ $flags |= (1 == $bProtHidden ? 0x00000200 : 0);
+ // Border
+ $flags |= (1 == $bBorderLeft ? 0x00000400 : 0);
+ $flags |= (1 == $bBorderRight ? 0x00000800 : 0);
+ $flags |= (1 == $bBorderTop ? 0x00001000 : 0);
+ $flags |= (1 == $bBorderBottom ? 0x00002000 : 0);
+ $flags |= (1 == 1 ? 0x00004000 : 0); // Top left to Bottom right border
+ $flags |= (1 == 1 ? 0x00008000 : 0); // Bottom left to Top right border
+ // Pattern
+ $flags |= (1 == $bFillStyle ? 0x00010000 : 0);
+ $flags |= (1 == $bFillColor ? 0x00020000 : 0);
+ $flags |= (1 == $bFillColorBg ? 0x00040000 : 0);
+ $flags |= (1 == 1 ? 0x00380000 : 0);
+ // Font
+ $flags |= (1 == $bFormatFont ? 0x04000000 : 0);
+ // Alignment:
+ $flags |= (1 == $bFormatAlign ? 0x08000000 : 0);
+ // Border
+ $flags |= (1 == $bFormatBorder ? 0x10000000 : 0);
+ // Pattern
+ $flags |= (1 == $bFormatFill ? 0x20000000 : 0);
+ // Protection
+ $flags |= (1 == $bFormatProt ? 0x40000000 : 0);
+ // Text direction
+ $flags |= (1 == 0 ? 0x80000000 : 0);
+
+ // Data Blocks
+ if ($bFormatFont == 1) {
+ // Font Name
+ if ($conditional->getStyle()->getFont()->getName() == null) {
+ $dataBlockFont = pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000);
+ $dataBlockFont .= pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000);
+ } else {
+ $dataBlockFont = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($conditional->getStyle()->getFont()->getName());
+ }
+ // Font Size
+ if ($conditional->getStyle()->getFont()->getSize() == null) {
+ $dataBlockFont .= pack('V', 20 * 11);
+ } else {
+ $dataBlockFont .= pack('V', 20 * $conditional->getStyle()->getFont()->getSize());
+ }
+ // Font Options
+ $dataBlockFont .= pack('V', 0);
+ // Font weight
+ if ($conditional->getStyle()->getFont()->getBold() == true) {
+ $dataBlockFont .= pack('v', 0x02BC);
+ } else {
+ $dataBlockFont .= pack('v', 0x0190);
+ }
+ // Escapement type
+ if ($conditional->getStyle()->getFont()->getSubScript() == true) {
+ $dataBlockFont .= pack('v', 0x02);
+ $fontEscapement = 0;
+ } elseif ($conditional->getStyle()->getFont()->getSuperScript() == true) {
+ $dataBlockFont .= pack('v', 0x01);
+ $fontEscapement = 0;
+ } else {
+ $dataBlockFont .= pack('v', 0x00);
+ $fontEscapement = 1;
+ }
+ // Underline type
+ switch ($conditional->getStyle()->getFont()->getUnderline()) {
+ case PHPExcel_Style_Font::UNDERLINE_NONE:
+ $dataBlockFont .= pack('C', 0x00);
+ $fontUnderline = 0;
+ break;
+ case PHPExcel_Style_Font::UNDERLINE_DOUBLE:
+ $dataBlockFont .= pack('C', 0x02);
+ $fontUnderline = 0;
+ break;
+ case PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING:
+ $dataBlockFont .= pack('C', 0x22);
+ $fontUnderline = 0;
+ break;
+ case PHPExcel_Style_Font::UNDERLINE_SINGLE:
+ $dataBlockFont .= pack('C', 0x01);
+ $fontUnderline = 0;
+ break;
+ case PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING:
+ $dataBlockFont .= pack('C', 0x21);
+ $fontUnderline = 0;
+ break;
+ default: $dataBlockFont .= pack('C', 0x00);
+ $fontUnderline = 1;
+ break;
+ }
+ // Not used (3)
+ $dataBlockFont .= pack('vC', 0x0000, 0x00);
+ // Font color index
+ switch ($conditional->getStyle()->getFont()->getColor()->getRGB()) {
+ case '000000':
+ $colorIdx = 0x08;
+ break;
+ case 'FFFFFF':
+ $colorIdx = 0x09;
+ break;
+ case 'FF0000':
+ $colorIdx = 0x0A;
+ break;
+ case '00FF00':
+ $colorIdx = 0x0B;
+ break;
+ case '0000FF':
+ $colorIdx = 0x0C;
+ break;
+ case 'FFFF00':
+ $colorIdx = 0x0D;
+ break;
+ case 'FF00FF':
+ $colorIdx = 0x0E;
+ break;
+ case '00FFFF':
+ $colorIdx = 0x0F;
+ break;
+ case '800000':
+ $colorIdx = 0x10;
+ break;
+ case '008000':
+ $colorIdx = 0x11;
+ break;
+ case '000080':
+ $colorIdx = 0x12;
+ break;
+ case '808000':
+ $colorIdx = 0x13;
+ break;
+ case '800080':
+ $colorIdx = 0x14;
+ break;
+ case '008080':
+ $colorIdx = 0x15;
+ break;
+ case 'C0C0C0':
+ $colorIdx = 0x16;
+ break;
+ case '808080':
+ $colorIdx = 0x17;
+ break;
+ case '9999FF':
+ $colorIdx = 0x18;
+ break;
+ case '993366':
+ $colorIdx = 0x19;
+ break;
+ case 'FFFFCC':
+ $colorIdx = 0x1A;
+ break;
+ case 'CCFFFF':
+ $colorIdx = 0x1B;
+ break;
+ case '660066':
+ $colorIdx = 0x1C;
+ break;
+ case 'FF8080':
+ $colorIdx = 0x1D;
+ break;
+ case '0066CC':
+ $colorIdx = 0x1E;
+ break;
+ case 'CCCCFF':
+ $colorIdx = 0x1F;
+ break;
+ case '000080':
+ $colorIdx = 0x20;
+ break;
+ case 'FF00FF':
+ $colorIdx = 0x21;
+ break;
+ case 'FFFF00':
+ $colorIdx = 0x22;
+ break;
+ case '00FFFF':
+ $colorIdx = 0x23;
+ break;
+ case '800080':
+ $colorIdx = 0x24;
+ break;
+ case '800000':
+ $colorIdx = 0x25;
+ break;
+ case '008080':
+ $colorIdx = 0x26;
+ break;
+ case '0000FF':
+ $colorIdx = 0x27;
+ break;
+ case '00CCFF':
+ $colorIdx = 0x28;
+ break;
+ case 'CCFFFF':
+ $colorIdx = 0x29;
+ break;
+ case 'CCFFCC':
+ $colorIdx = 0x2A;
+ break;
+ case 'FFFF99':
+ $colorIdx = 0x2B;
+ break;
+ case '99CCFF':
+ $colorIdx = 0x2C;
+ break;
+ case 'FF99CC':
+ $colorIdx = 0x2D;
+ break;
+ case 'CC99FF':
+ $colorIdx = 0x2E;
+ break;
+ case 'FFCC99':
+ $colorIdx = 0x2F;
+ break;
+ case '3366FF':
+ $colorIdx = 0x30;
+ break;
+ case '33CCCC':
+ $colorIdx = 0x31;
+ break;
+ case '99CC00':
+ $colorIdx = 0x32;
+ break;
+ case 'FFCC00':
+ $colorIdx = 0x33;
+ break;
+ case 'FF9900':
+ $colorIdx = 0x34;
+ break;
+ case 'FF6600':
+ $colorIdx = 0x35;
+ break;
+ case '666699':
+ $colorIdx = 0x36;
+ break;
+ case '969696':
+ $colorIdx = 0x37;
+ break;
+ case '003366':
+ $colorIdx = 0x38;
+ break;
+ case '339966':
+ $colorIdx = 0x39;
+ break;
+ case '003300':
+ $colorIdx = 0x3A;
+ break;
+ case '333300':
+ $colorIdx = 0x3B;
+ break;
+ case '993300':
+ $colorIdx = 0x3C;
+ break;
+ case '993366':
+ $colorIdx = 0x3D;
+ break;
+ case '333399':
+ $colorIdx = 0x3E;
+ break;
+ case '333333':
+ $colorIdx = 0x3F;
+ break;
+ default:
+ $colorIdx = 0x00;
+ break;
+ }
+ $dataBlockFont .= pack('V', $colorIdx);
+ // Not used (4)
+ $dataBlockFont .= pack('V', 0x00000000);
+ // Options flags for modified font attributes
+ $optionsFlags = 0;
+ $optionsFlagsBold = ($conditional->getStyle()->getFont()->getBold() == null ? 1 : 0);
+ $optionsFlags |= (1 == $optionsFlagsBold ? 0x00000002 : 0);
+ $optionsFlags |= (1 == 1 ? 0x00000008 : 0);
+ $optionsFlags |= (1 == 1 ? 0x00000010 : 0);
+ $optionsFlags |= (1 == 0 ? 0x00000020 : 0);
+ $optionsFlags |= (1 == 1 ? 0x00000080 : 0);
+ $dataBlockFont .= pack('V', $optionsFlags);
+ // Escapement type
+ $dataBlockFont .= pack('V', $fontEscapement);
+ // Underline type
+ $dataBlockFont .= pack('V', $fontUnderline);
+ // Always
+ $dataBlockFont .= pack('V', 0x00000000);
+ // Always
+ $dataBlockFont .= pack('V', 0x00000000);
+ // Not used (8)
+ $dataBlockFont .= pack('VV', 0x00000000, 0x00000000);
+ // Always
+ $dataBlockFont .= pack('v', 0x0001);
+ }
+ if ($bFormatAlign == 1) {
+ $blockAlign = 0;
+ // Alignment and text break
+ switch ($conditional->getStyle()->getAlignment()->getHorizontal()) {
+ case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL:
+ $blockAlign = 0;
+ break;
+ case PHPExcel_Style_Alignment::HORIZONTAL_LEFT:
+ $blockAlign = 1;
+ break;
+ case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT:
+ $blockAlign = 3;
+ break;
+ case PHPExcel_Style_Alignment::HORIZONTAL_CENTER:
+ $blockAlign = 2;
+ break;
+ case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS:
+ $blockAlign = 6;
+ break;
+ case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY:
+ $blockAlign = 5;
+ break;
+ }
+ if ($conditional->getStyle()->getAlignment()->getWrapText() == true) {
+ $blockAlign |= 1 << 3;
+ } else {
+ $blockAlign |= 0 << 3;
+ }
+ switch ($conditional->getStyle()->getAlignment()->getVertical()) {
+ case PHPExcel_Style_Alignment::VERTICAL_BOTTOM:
+ $blockAlign = 2 << 4;
+ break;
+ case PHPExcel_Style_Alignment::VERTICAL_TOP:
+ $blockAlign = 0 << 4;
+ break;
+ case PHPExcel_Style_Alignment::VERTICAL_CENTER:
+ $blockAlign = 1 << 4;
+ break;
+ case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY:
+ $blockAlign = 3 << 4;
+ break;
+ }
+ $blockAlign |= 0 << 7;
+
+ // Text rotation angle
+ $blockRotation = $conditional->getStyle()->getAlignment()->getTextRotation();
+
+ // Indentation
+ $blockIndent = $conditional->getStyle()->getAlignment()->getIndent();
+ if ($conditional->getStyle()->getAlignment()->getShrinkToFit() == true) {
+ $blockIndent |= 1 << 4;
+ } else {
+ $blockIndent |= 0 << 4;
+ }
+ $blockIndent |= 0 << 6;
+
+ // Relative indentation
+ $blockIndentRelative = 255;
+
+ $dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000);
+ }
+ if ($bFormatBorder == 1) {
+ $blockLineStyle = 0;
+ switch ($conditional->getStyle()->getBorders()->getLeft()->getBorderStyle()) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ $blockLineStyle |= 0x00;
+ break;
+ case PHPExcel_Style_Border::BORDER_THIN:
+ $blockLineStyle |= 0x01;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ $blockLineStyle |= 0x02;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ $blockLineStyle |= 0x03;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ $blockLineStyle |= 0x04;
+ break;
+ case PHPExcel_Style_Border::BORDER_THICK:
+ $blockLineStyle |= 0x05;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ $blockLineStyle |= 0x06;
+ break;
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ $blockLineStyle |= 0x07;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ $blockLineStyle |= 0x08;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ $blockLineStyle |= 0x09;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ $blockLineStyle |= 0x0A;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ $blockLineStyle |= 0x0B;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ $blockLineStyle |= 0x0C;
+ break;
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ $blockLineStyle |= 0x0D;
+ break;
+ }
+ switch ($conditional->getStyle()->getBorders()->getRight()->getBorderStyle()) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ $blockLineStyle |= 0x00 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_THIN:
+ $blockLineStyle |= 0x01 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ $blockLineStyle |= 0x02 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ $blockLineStyle |= 0x03 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ $blockLineStyle |= 0x04 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_THICK:
+ $blockLineStyle |= 0x05 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ $blockLineStyle |= 0x06 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ $blockLineStyle |= 0x07 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ $blockLineStyle |= 0x08 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ $blockLineStyle |= 0x09 << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ $blockLineStyle |= 0x0A << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ $blockLineStyle |= 0x0B << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ $blockLineStyle |= 0x0C << 4;
+ break;
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ $blockLineStyle |= 0x0D << 4;
+ break;
+ }
+ switch ($conditional->getStyle()->getBorders()->getTop()->getBorderStyle()) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ $blockLineStyle |= 0x00 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_THIN:
+ $blockLineStyle |= 0x01 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ $blockLineStyle |= 0x02 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ $blockLineStyle |= 0x03 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ $blockLineStyle |= 0x04 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_THICK:
+ $blockLineStyle |= 0x05 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ $blockLineStyle |= 0x06 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ $blockLineStyle |= 0x07 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ $blockLineStyle |= 0x08 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ $blockLineStyle |= 0x09 << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ $blockLineStyle |= 0x0A << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ $blockLineStyle |= 0x0B << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ $blockLineStyle |= 0x0C << 8;
+ break;
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ $blockLineStyle |= 0x0D << 8;
+ break;
+ }
+ switch ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle()) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ $blockLineStyle |= 0x00 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_THIN:
+ $blockLineStyle |= 0x01 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ $blockLineStyle |= 0x02 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ $blockLineStyle |= 0x03 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ $blockLineStyle |= 0x04 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_THICK:
+ $blockLineStyle |= 0x05 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ $blockLineStyle |= 0x06 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ $blockLineStyle |= 0x07 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ $blockLineStyle |= 0x08 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ $blockLineStyle |= 0x09 << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ $blockLineStyle |= 0x0A << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ $blockLineStyle |= 0x0B << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ $blockLineStyle |= 0x0C << 12;
+ break;
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ $blockLineStyle |= 0x0D << 12;
+ break;
+ }
+ //@todo writeCFRule() => $blockLineStyle => Index Color for left line
+ //@todo writeCFRule() => $blockLineStyle => Index Color for right line
+ //@todo writeCFRule() => $blockLineStyle => Top-left to bottom-right on/off
+ //@todo writeCFRule() => $blockLineStyle => Bottom-left to top-right on/off
+ $blockColor = 0;
+ //@todo writeCFRule() => $blockColor => Index Color for top line
+ //@todo writeCFRule() => $blockColor => Index Color for bottom line
+ //@todo writeCFRule() => $blockColor => Index Color for diagonal line
+ switch ($conditional->getStyle()->getBorders()->getDiagonal()->getBorderStyle()) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ $blockColor |= 0x00 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_THIN:
+ $blockColor |= 0x01 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ $blockColor |= 0x02 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ $blockColor |= 0x03 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ $blockColor |= 0x04 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_THICK:
+ $blockColor |= 0x05 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ $blockColor |= 0x06 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ $blockColor |= 0x07 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ $blockColor |= 0x08 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ $blockColor |= 0x09 << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ $blockColor |= 0x0A << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ $blockColor |= 0x0B << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ $blockColor |= 0x0C << 21;
+ break;
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ $blockColor |= 0x0D << 21;
+ break;
+ }
+ $dataBlockBorder = pack('vv', $blockLineStyle, $blockColor);
+ }
+ if ($bFormatFill == 1) {
+ // Fill Patern Style
+ $blockFillPatternStyle = 0;
+ switch ($conditional->getStyle()->getFill()->getFillType()) {
+ case PHPExcel_Style_Fill::FILL_NONE:
+ $blockFillPatternStyle = 0x00;
+ break;
+ case PHPExcel_Style_Fill::FILL_SOLID:
+ $blockFillPatternStyle = 0x01;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY:
+ $blockFillPatternStyle = 0x02;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY:
+ $blockFillPatternStyle = 0x03;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY:
+ $blockFillPatternStyle = 0x04;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL:
+ $blockFillPatternStyle = 0x05;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL:
+ $blockFillPatternStyle = 0x06;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN:
+ $blockFillPatternStyle = 0x07;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKUP:
+ $blockFillPatternStyle = 0x08;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID:
+ $blockFillPatternStyle = 0x09;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS:
+ $blockFillPatternStyle = 0x0A;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL:
+ $blockFillPatternStyle = 0x0B;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL:
+ $blockFillPatternStyle = 0x0C;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN:
+ $blockFillPatternStyle = 0x0D;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP:
+ $blockFillPatternStyle = 0x0E;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID:
+ $blockFillPatternStyle = 0x0F;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS:
+ $blockFillPatternStyle = 0x10;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_GRAY125:
+ $blockFillPatternStyle = 0x11;
+ break;
+ case PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625:
+ $blockFillPatternStyle = 0x12;
+ break;
+ case PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR:
+ $blockFillPatternStyle = 0x00;
+ break; // does not exist in BIFF8
+ case PHPExcel_Style_Fill::FILL_GRADIENT_PATH:
+ $blockFillPatternStyle = 0x00;
+ break; // does not exist in BIFF8
+ default:
+ $blockFillPatternStyle = 0x00;
+ break;
+ }
+ // Color
+ switch ($conditional->getStyle()->getFill()->getStartColor()->getRGB()) {
+ case '000000':
+ $colorIdxBg = 0x08;
+ break;
+ case 'FFFFFF':
+ $colorIdxBg = 0x09;
+ break;
+ case 'FF0000':
+ $colorIdxBg = 0x0A;
+ break;
+ case '00FF00':
+ $colorIdxBg = 0x0B;
+ break;
+ case '0000FF':
+ $colorIdxBg = 0x0C;
+ break;
+ case 'FFFF00':
+ $colorIdxBg = 0x0D;
+ break;
+ case 'FF00FF':
+ $colorIdxBg = 0x0E;
+ break;
+ case '00FFFF':
+ $colorIdxBg = 0x0F;
+ break;
+ case '800000':
+ $colorIdxBg = 0x10;
+ break;
+ case '008000':
+ $colorIdxBg = 0x11;
+ break;
+ case '000080':
+ $colorIdxBg = 0x12;
+ break;
+ case '808000':
+ $colorIdxBg = 0x13;
+ break;
+ case '800080':
+ $colorIdxBg = 0x14;
+ break;
+ case '008080':
+ $colorIdxBg = 0x15;
+ break;
+ case 'C0C0C0':
+ $colorIdxBg = 0x16;
+ break;
+ case '808080':
+ $colorIdxBg = 0x17;
+ break;
+ case '9999FF':
+ $colorIdxBg = 0x18;
+ break;
+ case '993366':
+ $colorIdxBg = 0x19;
+ break;
+ case 'FFFFCC':
+ $colorIdxBg = 0x1A;
+ break;
+ case 'CCFFFF':
+ $colorIdxBg = 0x1B;
+ break;
+ case '660066':
+ $colorIdxBg = 0x1C;
+ break;
+ case 'FF8080':
+ $colorIdxBg = 0x1D;
+ break;
+ case '0066CC':
+ $colorIdxBg = 0x1E;
+ break;
+ case 'CCCCFF':
+ $colorIdxBg = 0x1F;
+ break;
+ case '000080':
+ $colorIdxBg = 0x20;
+ break;
+ case 'FF00FF':
+ $colorIdxBg = 0x21;
+ break;
+ case 'FFFF00':
+ $colorIdxBg = 0x22;
+ break;
+ case '00FFFF':
+ $colorIdxBg = 0x23;
+ break;
+ case '800080':
+ $colorIdxBg = 0x24;
+ break;
+ case '800000':
+ $colorIdxBg = 0x25;
+ break;
+ case '008080':
+ $colorIdxBg = 0x26;
+ break;
+ case '0000FF':
+ $colorIdxBg = 0x27;
+ break;
+ case '00CCFF':
+ $colorIdxBg = 0x28;
+ break;
+ case 'CCFFFF':
+ $colorIdxBg = 0x29;
+ break;
+ case 'CCFFCC':
+ $colorIdxBg = 0x2A;
+ break;
+ case 'FFFF99':
+ $colorIdxBg = 0x2B;
+ break;
+ case '99CCFF':
+ $colorIdxBg = 0x2C;
+ break;
+ case 'FF99CC':
+ $colorIdxBg = 0x2D;
+ break;
+ case 'CC99FF':
+ $colorIdxBg = 0x2E;
+ break;
+ case 'FFCC99':
+ $colorIdxBg = 0x2F;
+ break;
+ case '3366FF':
+ $colorIdxBg = 0x30;
+ break;
+ case '33CCCC':
+ $colorIdxBg = 0x31;
+ break;
+ case '99CC00':
+ $colorIdxBg = 0x32;
+ break;
+ case 'FFCC00':
+ $colorIdxBg = 0x33;
+ break;
+ case 'FF9900':
+ $colorIdxBg = 0x34;
+ break;
+ case 'FF6600':
+ $colorIdxBg = 0x35;
+ break;
+ case '666699':
+ $colorIdxBg = 0x36;
+ break;
+ case '969696':
+ $colorIdxBg = 0x37;
+ break;
+ case '003366':
+ $colorIdxBg = 0x38;
+ break;
+ case '339966':
+ $colorIdxBg = 0x39;
+ break;
+ case '003300':
+ $colorIdxBg = 0x3A;
+ break;
+ case '333300':
+ $colorIdxBg = 0x3B;
+ break;
+ case '993300':
+ $colorIdxBg = 0x3C;
+ break;
+ case '993366':
+ $colorIdxBg = 0x3D;
+ break;
+ case '333399':
+ $colorIdxBg = 0x3E;
+ break;
+ case '333333':
+ $colorIdxBg = 0x3F;
+ break;
+ default:
+ $colorIdxBg = 0x41;
+ break;
+ }
+ // Fg Color
+ switch ($conditional->getStyle()->getFill()->getEndColor()->getRGB()) {
+ case '000000':
+ $colorIdxFg = 0x08;
+ break;
+ case 'FFFFFF':
+ $colorIdxFg = 0x09;
+ break;
+ case 'FF0000':
+ $colorIdxFg = 0x0A;
+ break;
+ case '00FF00':
+ $colorIdxFg = 0x0B;
+ break;
+ case '0000FF':
+ $colorIdxFg = 0x0C;
+ break;
+ case 'FFFF00':
+ $colorIdxFg = 0x0D;
+ break;
+ case 'FF00FF':
+ $colorIdxFg = 0x0E;
+ break;
+ case '00FFFF':
+ $colorIdxFg = 0x0F;
+ break;
+ case '800000':
+ $colorIdxFg = 0x10;
+ break;
+ case '008000':
+ $colorIdxFg = 0x11;
+ break;
+ case '000080':
+ $colorIdxFg = 0x12;
+ break;
+ case '808000':
+ $colorIdxFg = 0x13;
+ break;
+ case '800080':
+ $colorIdxFg = 0x14;
+ break;
+ case '008080':
+ $colorIdxFg = 0x15;
+ break;
+ case 'C0C0C0':
+ $colorIdxFg = 0x16;
+ break;
+ case '808080':
+ $colorIdxFg = 0x17;
+ break;
+ case '9999FF':
+ $colorIdxFg = 0x18;
+ break;
+ case '993366':
+ $colorIdxFg = 0x19;
+ break;
+ case 'FFFFCC':
+ $colorIdxFg = 0x1A;
+ break;
+ case 'CCFFFF':
+ $colorIdxFg = 0x1B;
+ break;
+ case '660066':
+ $colorIdxFg = 0x1C;
+ break;
+ case 'FF8080':
+ $colorIdxFg = 0x1D;
+ break;
+ case '0066CC':
+ $colorIdxFg = 0x1E;
+ break;
+ case 'CCCCFF':
+ $colorIdxFg = 0x1F;
+ break;
+ case '000080':
+ $colorIdxFg = 0x20;
+ break;
+ case 'FF00FF':
+ $colorIdxFg = 0x21;
+ break;
+ case 'FFFF00':
+ $colorIdxFg = 0x22;
+ break;
+ case '00FFFF':
+ $colorIdxFg = 0x23;
+ break;
+ case '800080':
+ $colorIdxFg = 0x24;
+ break;
+ case '800000':
+ $colorIdxFg = 0x25;
+ break;
+ case '008080':
+ $colorIdxFg = 0x26;
+ break;
+ case '0000FF':
+ $colorIdxFg = 0x27;
+ break;
+ case '00CCFF':
+ $colorIdxFg = 0x28;
+ break;
+ case 'CCFFFF':
+ $colorIdxFg = 0x29;
+ break;
+ case 'CCFFCC':
+ $colorIdxFg = 0x2A;
+ break;
+ case 'FFFF99':
+ $colorIdxFg = 0x2B;
+ break;
+ case '99CCFF':
+ $colorIdxFg = 0x2C;
+ break;
+ case 'FF99CC':
+ $colorIdxFg = 0x2D;
+ break;
+ case 'CC99FF':
+ $colorIdxFg = 0x2E;
+ break;
+ case 'FFCC99':
+ $colorIdxFg = 0x2F;
+ break;
+ case '3366FF':
+ $colorIdxFg = 0x30;
+ break;
+ case '33CCCC':
+ $colorIdxFg = 0x31;
+ break;
+ case '99CC00':
+ $colorIdxFg = 0x32;
+ break;
+ case 'FFCC00':
+ $colorIdxFg = 0x33;
+ break;
+ case 'FF9900':
+ $colorIdxFg = 0x34;
+ break;
+ case 'FF6600':
+ $colorIdxFg = 0x35;
+ break;
+ case '666699':
+ $colorIdxFg = 0x36;
+ break;
+ case '969696':
+ $colorIdxFg = 0x37;
+ break;
+ case '003366':
+ $colorIdxFg = 0x38;
+ break;
+ case '339966':
+ $colorIdxFg = 0x39;
+ break;
+ case '003300':
+ $colorIdxFg = 0x3A;
+ break;
+ case '333300':
+ $colorIdxFg = 0x3B;
+ break;
+ case '993300':
+ $colorIdxFg = 0x3C;
+ break;
+ case '993366':
+ $colorIdxFg = 0x3D;
+ break;
+ case '333399':
+ $colorIdxFg = 0x3E;
+ break;
+ case '333333':
+ $colorIdxFg = 0x3F;
+ break;
+ default:
+ $colorIdxFg = 0x40;
+ break;
+ }
+ $dataBlockFill = pack('v', $blockFillPatternStyle);
+ $dataBlockFill .= pack('v', $colorIdxFg | ($colorIdxBg << 7));
+ }
+ if ($bFormatProt == 1) {
+ $dataBlockProtection = 0;
+ if ($conditional->getStyle()->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED) {
+ $dataBlockProtection = 1;
+ }
+ if ($conditional->getStyle()->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED) {
+ $dataBlockProtection = 1 << 1;
+ }
+ }
+
+ $data = pack('CCvvVv', $type, $operatorType, $szValue1, $szValue2, $flags, 0x0000);
+ if ($bFormatFont == 1) { // Block Formatting : OK
+ $data .= $dataBlockFont;
+ }
+ if ($bFormatAlign == 1) {
+ $data .= $dataBlockAlign;
+ }
+ if ($bFormatBorder == 1) {
+ $data .= $dataBlockBorder;
+ }
+ if ($bFormatFill == 1) { // Block Formatting : OK
+ $data .= $dataBlockFill;
+ }
+ if ($bFormatProt == 1) {
+ $data .= $dataBlockProtection;
+ }
+ if (!is_null($operand1)) {
+ $data .= $operand1;
+ }
+ if (!is_null($operand2)) {
+ $data .= $operand2;
+ }
+ $header = pack('vv', $record, strlen($data));
+ $this->append($header . $data);
+ }
+
+ /**
+ * Write CFHeader record
+ */
+ private function writeCFHeader()
+ {
+ $record = 0x01B0; // Record identifier
+ $length = 0x0016; // Bytes to follow
+
+ $numColumnMin = null;
+ $numColumnMax = null;
+ $numRowMin = null;
+ $numRowMax = null;
+ $arrConditional = array();
+ foreach ($this->phpSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) {
+ foreach ($conditionalStyles as $conditional) {
+ if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION
+ || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) {
+ if (!in_array($conditional->getHashCode(), $arrConditional)) {
+ $arrConditional[] = $conditional->getHashCode();
+ }
+ // Cells
+ $arrCoord = PHPExcel_Cell::coordinateFromString($cellCoordinate);
+ if (!is_numeric($arrCoord[0])) {
+ $arrCoord[0] = PHPExcel_Cell::columnIndexFromString($arrCoord[0]);
+ }
+ if (is_null($numColumnMin) || ($numColumnMin > $arrCoord[0])) {
+ $numColumnMin = $arrCoord[0];
+ }
+ if (is_null($numColumnMax) || ($numColumnMax < $arrCoord[0])) {
+ $numColumnMax = $arrCoord[0];
+ }
+ if (is_null($numRowMin) || ($numRowMin > $arrCoord[1])) {
+ $numRowMin = $arrCoord[1];
+ }
+ if (is_null($numRowMax) || ($numRowMax < $arrCoord[1])) {
+ $numRowMax = $arrCoord[1];
+ }
+ }
+ }
+ }
+ $needRedraw = 1;
+ $cellRange = pack('vvvv', $numRowMin-1, $numRowMax-1, $numColumnMin-1, $numColumnMax-1);
+
+ $header = pack('vv', $record, $length);
+ $data = pack('vv', count($arrConditional), $needRedraw);
+ $data .= $cellRange;
+ $data .= pack('v', 0x0001);
+ $data .= $cellRange;
+ $this->append($header . $data);
+ }
+}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php
index 99f1b2a0..e41589a8 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php
@@ -1,8 +1,9 @@
_isStyleXf = false;
- $this->_fontIndex = 0;
+ /**
+ * Constructor
+ *
+ * @access public
+ * @param PHPExcel_Style The XF format
+ */
+ public function __construct(PHPExcel_Style $style = null)
+ {
+ $this->isStyleXf = false;
+ $this->fontIndex = 0;
- $this->_numberFormatIndex = 0;
+ $this->numberFormatIndex = 0;
- $this->_text_justlast = 0;
+ $this->textJustLast = 0;
- $this->_fg_color = 0x40;
- $this->_bg_color = 0x41;
+ $this->foregroundColor = 0x40;
+ $this->backgroundColor = 0x41;
- $this->_diag = 0;
+ $this->_diag = 0;
- $this->_bottom_color = 0x40;
- $this->_top_color = 0x40;
- $this->_left_color = 0x40;
- $this->_right_color = 0x40;
- $this->_diag_color = 0x40;
- $this->_style = $style;
+ $this->bottomBorderColor = 0x40;
+ $this->topBorderColor = 0x40;
+ $this->leftBorderColor = 0x40;
+ $this->rightBorderColor = 0x40;
+ $this->_diag_color = 0x40;
+ $this->_style = $style;
- }
+ }
- /**
- * Generate an Excel BIFF XF record (style or cell).
- *
- * @return string The XF record
- */
- function writeXf()
- {
- // Set the type of the XF record and some of the attributes.
- if ($this->_isStyleXf) {
- $style = 0xFFF5;
- } else {
- $style = self::_mapLocked($this->_style->getProtection()->getLocked());
- $style |= self::_mapHidden($this->_style->getProtection()->getHidden()) << 1;
- }
+ /**
+ * Generate an Excel BIFF XF record (style or cell).
+ *
+ * @return string The XF record
+ */
+ public function writeXf()
+ {
+ // Set the type of the XF record and some of the attributes.
+ if ($this->isStyleXf) {
+ $style = 0xFFF5;
+ } else {
+ $style = self::mapLocked($this->_style->getProtection()->getLocked());
+ $style |= self::mapHidden($this->_style->getProtection()->getHidden()) << 1;
+ }
- // Flags to indicate if attributes have been set.
- $atr_num = ($this->_numberFormatIndex != 0)?1:0;
- $atr_fnt = ($this->_fontIndex != 0)?1:0;
- $atr_alc = ((int) $this->_style->getAlignment()->getWrapText()) ? 1 : 0;
- $atr_bdr = (self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) ||
- self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) ||
- self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) ||
- self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()))?1:0;
- $atr_pat = (($this->_fg_color != 0x40) ||
- ($this->_bg_color != 0x41) ||
- self::_mapFillType($this->_style->getFill()->getFillType()))?1:0;
- $atr_prot = self::_mapLocked($this->_style->getProtection()->getLocked())
- | self::_mapHidden($this->_style->getProtection()->getHidden());
+ // Flags to indicate if attributes have been set.
+ $atr_num = ($this->numberFormatIndex != 0)?1:0;
+ $atr_fnt = ($this->fontIndex != 0)?1:0;
+ $atr_alc = ((int) $this->_style->getAlignment()->getWrapText()) ? 1 : 0;
+ $atr_bdr = (self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) ||
+ self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) ||
+ self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) ||
+ self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()))?1:0;
+ $atr_pat = (($this->foregroundColor != 0x40) ||
+ ($this->backgroundColor != 0x41) ||
+ self::mapFillType($this->_style->getFill()->getFillType()))?1:0;
+ $atr_prot = self::mapLocked($this->_style->getProtection()->getLocked())
+ | self::mapHidden($this->_style->getProtection()->getHidden());
- // Zero the default border colour if the border has not been set.
- if (self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) == 0) {
- $this->_bottom_color = 0;
- }
- if (self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) == 0) {
- $this->_top_color = 0;
- }
- if (self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) == 0) {
- $this->_right_color = 0;
- }
- if (self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) == 0) {
- $this->_left_color = 0;
- }
- if (self::_mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) == 0) {
- $this->_diag_color = 0;
- }
+ // Zero the default border colour if the border has not been set.
+ if (self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) == 0) {
+ $this->bottomBorderColor = 0;
+ }
+ if (self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) == 0) {
+ $this->topBorderColor = 0;
+ }
+ if (self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) == 0) {
+ $this->rightBorderColor = 0;
+ }
+ if (self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) == 0) {
+ $this->leftBorderColor = 0;
+ }
+ if (self::mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) == 0) {
+ $this->_diag_color = 0;
+ }
- $record = 0x00E0; // Record identifier
- $length = 0x0014; // Number of bytes to follow
+ $record = 0x00E0; // Record identifier
+ $length = 0x0014; // Number of bytes to follow
- $ifnt = $this->_fontIndex; // Index to FONT record
- $ifmt = $this->_numberFormatIndex; // Index to FORMAT record
+ $ifnt = $this->fontIndex; // Index to FONT record
+ $ifmt = $this->numberFormatIndex; // Index to FORMAT record
- $align = $this->_mapHAlign($this->_style->getAlignment()->getHorizontal()); // Alignment
- $align |= (int) $this->_style->getAlignment()->getWrapText() << 3;
- $align |= self::_mapVAlign($this->_style->getAlignment()->getVertical()) << 4;
- $align |= $this->_text_justlast << 7;
+ $align = $this->mapHAlign($this->_style->getAlignment()->getHorizontal()); // Alignment
+ $align |= (int) $this->_style->getAlignment()->getWrapText() << 3;
+ $align |= self::mapVAlign($this->_style->getAlignment()->getVertical()) << 4;
+ $align |= $this->textJustLast << 7;
- $used_attrib = $atr_num << 2;
- $used_attrib |= $atr_fnt << 3;
- $used_attrib |= $atr_alc << 4;
- $used_attrib |= $atr_bdr << 5;
- $used_attrib |= $atr_pat << 6;
- $used_attrib |= $atr_prot << 7;
+ $used_attrib = $atr_num << 2;
+ $used_attrib |= $atr_fnt << 3;
+ $used_attrib |= $atr_alc << 4;
+ $used_attrib |= $atr_bdr << 5;
+ $used_attrib |= $atr_pat << 6;
+ $used_attrib |= $atr_prot << 7;
- $icv = $this->_fg_color; // fg and bg pattern colors
- $icv |= $this->_bg_color << 7;
+ $icv = $this->foregroundColor; // fg and bg pattern colors
+ $icv |= $this->backgroundColor << 7;
- $border1 = self::_mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()); // Border line style and color
- $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) << 4;
- $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) << 8;
- $border1 |= self::_mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) << 12;
- $border1 |= $this->_left_color << 16;
- $border1 |= $this->_right_color << 23;
+ $border1 = self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()); // Border line style and color
+ $border1 |= self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) << 4;
+ $border1 |= self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) << 8;
+ $border1 |= self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) << 12;
+ $border1 |= $this->leftBorderColor << 16;
+ $border1 |= $this->rightBorderColor << 23;
- $diagonalDirection = $this->_style->getBorders()->getDiagonalDirection();
- $diag_tl_to_rb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH
- || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_DOWN;
- $diag_tr_to_lb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH
- || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_UP;
- $border1 |= $diag_tl_to_rb << 30;
- $border1 |= $diag_tr_to_lb << 31;
+ $diagonalDirection = $this->_style->getBorders()->getDiagonalDirection();
+ $diag_tl_to_rb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH
+ || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_DOWN;
+ $diag_tr_to_lb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH
+ || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_UP;
+ $border1 |= $diag_tl_to_rb << 30;
+ $border1 |= $diag_tr_to_lb << 31;
- $border2 = $this->_top_color; // Border color
- $border2 |= $this->_bottom_color << 7;
- $border2 |= $this->_diag_color << 14;
- $border2 |= self::_mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) << 21;
- $border2 |= self::_mapFillType($this->_style->getFill()->getFillType()) << 26;
+ $border2 = $this->topBorderColor; // Border color
+ $border2 |= $this->bottomBorderColor << 7;
+ $border2 |= $this->_diag_color << 14;
+ $border2 |= self::mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) << 21;
+ $border2 |= self::mapFillType($this->_style->getFill()->getFillType()) << 26;
- $header = pack("vv", $record, $length);
+ $header = pack("vv", $record, $length);
- //BIFF8 options: identation, shrinkToFit and text direction
- $biff8_options = $this->_style->getAlignment()->getIndent();
- $biff8_options |= (int) $this->_style->getAlignment()->getShrinkToFit() << 4;
+ //BIFF8 options: identation, shrinkToFit and text direction
+ $biff8_options = $this->_style->getAlignment()->getIndent();
+ $biff8_options |= (int) $this->_style->getAlignment()->getShrinkToFit() << 4;
- $data = pack("vvvC", $ifnt, $ifmt, $style, $align);
- $data .= pack("CCC"
- , self::_mapTextRotation($this->_style->getAlignment()->getTextRotation())
- , $biff8_options
- , $used_attrib
- );
- $data .= pack("VVv", $border1, $border2, $icv);
+ $data = pack("vvvC", $ifnt, $ifmt, $style, $align);
+ $data .= pack("CCC", self::mapTextRotation($this->_style->getAlignment()->getTextRotation()), $biff8_options, $used_attrib);
+ $data .= pack("VVv", $border1, $border2, $icv);
- return($header . $data);
- }
+ return($header . $data);
+ }
- /**
- * Is this a style XF ?
- *
- * @param boolean $value
- */
- public function setIsStyleXf($value)
- {
- $this->_isStyleXf = $value;
- }
+ /**
+ * Is this a style XF ?
+ *
+ * @param boolean $value
+ */
+ public function setIsStyleXf($value)
+ {
+ $this->isStyleXf = $value;
+ }
- /**
- * Sets the cell's bottom border color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setBottomColor($colorIndex)
- {
- $this->_bottom_color = $colorIndex;
- }
+ /**
+ * Sets the cell's bottom border color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setBottomColor($colorIndex)
+ {
+ $this->bottomBorderColor = $colorIndex;
+ }
- /**
- * Sets the cell's top border color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setTopColor($colorIndex)
- {
- $this->_top_color = $colorIndex;
- }
+ /**
+ * Sets the cell's top border color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setTopColor($colorIndex)
+ {
+ $this->topBorderColor = $colorIndex;
+ }
- /**
- * Sets the cell's left border color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setLeftColor($colorIndex)
- {
- $this->_left_color = $colorIndex;
- }
+ /**
+ * Sets the cell's left border color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setLeftColor($colorIndex)
+ {
+ $this->leftBorderColor = $colorIndex;
+ }
- /**
- * Sets the cell's right border color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setRightColor($colorIndex)
- {
- $this->_right_color = $colorIndex;
- }
+ /**
+ * Sets the cell's right border color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setRightColor($colorIndex)
+ {
+ $this->rightBorderColor = $colorIndex;
+ }
- /**
- * Sets the cell's diagonal border color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setDiagColor($colorIndex)
- {
- $this->_diag_color = $colorIndex;
- }
+ /**
+ * Sets the cell's diagonal border color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setDiagColor($colorIndex)
+ {
+ $this->_diag_color = $colorIndex;
+ }
- /**
- * Sets the cell's foreground color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setFgColor($colorIndex)
- {
- $this->_fg_color = $colorIndex;
- }
+ /**
+ * Sets the cell's foreground color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setFgColor($colorIndex)
+ {
+ $this->foregroundColor = $colorIndex;
+ }
- /**
- * Sets the cell's background color
- *
- * @access public
- * @param int $colorIndex Color index
- */
- function setBgColor($colorIndex)
- {
- $this->_bg_color = $colorIndex;
- }
+ /**
+ * Sets the cell's background color
+ *
+ * @access public
+ * @param int $colorIndex Color index
+ */
+ public function setBgColor($colorIndex)
+ {
+ $this->backgroundColor = $colorIndex;
+ }
- /**
- * Sets the index to the number format record
- * It can be date, time, currency, etc...
- *
- * @access public
- * @param integer $numberFormatIndex Index to format record
- */
- function setNumberFormatIndex($numberFormatIndex)
- {
- $this->_numberFormatIndex = $numberFormatIndex;
- }
+ /**
+ * Sets the index to the number format record
+ * It can be date, time, currency, etc...
+ *
+ * @access public
+ * @param integer $numberFormatIndex Index to format record
+ */
+ public function setNumberFormatIndex($numberFormatIndex)
+ {
+ $this->numberFormatIndex = $numberFormatIndex;
+ }
- /**
- * Set the font index.
- *
- * @param int $value Font index, note that value 4 does not exist
- */
- public function setFontIndex($value)
- {
- $this->_fontIndex = $value;
- }
+ /**
+ * Set the font index.
+ *
+ * @param int $value Font index, note that value 4 does not exist
+ */
+ public function setFontIndex($value)
+ {
+ $this->fontIndex = $value;
+ }
- /**
- * Map of BIFF2-BIFF8 codes for border styles
- * @static array of int
- *
- */
- private static $_mapBorderStyle = array ( PHPExcel_Style_Border::BORDER_NONE => 0x00,
- PHPExcel_Style_Border::BORDER_THIN => 0x01,
- PHPExcel_Style_Border::BORDER_MEDIUM => 0x02,
- PHPExcel_Style_Border::BORDER_DASHED => 0x03,
- PHPExcel_Style_Border::BORDER_DOTTED => 0x04,
- PHPExcel_Style_Border::BORDER_THICK => 0x05,
- PHPExcel_Style_Border::BORDER_DOUBLE => 0x06,
- PHPExcel_Style_Border::BORDER_HAIR => 0x07,
- PHPExcel_Style_Border::BORDER_MEDIUMDASHED => 0x08,
- PHPExcel_Style_Border::BORDER_DASHDOT => 0x09,
- PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT => 0x0A,
- PHPExcel_Style_Border::BORDER_DASHDOTDOT => 0x0B,
- PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT => 0x0C,
- PHPExcel_Style_Border::BORDER_SLANTDASHDOT => 0x0D,
- );
+ /**
+ * Map of BIFF2-BIFF8 codes for border styles
+ * @static array of int
+ *
+ */
+ private static $mapBorderStyles = array(
+ PHPExcel_Style_Border::BORDER_NONE => 0x00,
+ PHPExcel_Style_Border::BORDER_THIN => 0x01,
+ PHPExcel_Style_Border::BORDER_MEDIUM => 0x02,
+ PHPExcel_Style_Border::BORDER_DASHED => 0x03,
+ PHPExcel_Style_Border::BORDER_DOTTED => 0x04,
+ PHPExcel_Style_Border::BORDER_THICK => 0x05,
+ PHPExcel_Style_Border::BORDER_DOUBLE => 0x06,
+ PHPExcel_Style_Border::BORDER_HAIR => 0x07,
+ PHPExcel_Style_Border::BORDER_MEDIUMDASHED => 0x08,
+ PHPExcel_Style_Border::BORDER_DASHDOT => 0x09,
+ PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT => 0x0A,
+ PHPExcel_Style_Border::BORDER_DASHDOTDOT => 0x0B,
+ PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT => 0x0C,
+ PHPExcel_Style_Border::BORDER_SLANTDASHDOT => 0x0D,
+ );
- /**
- * Map border style
- *
- * @param string $borderStyle
- * @return int
- */
- private static function _mapBorderStyle($borderStyle) {
- if (isset(self::$_mapBorderStyle[$borderStyle]))
- return self::$_mapBorderStyle[$borderStyle];
- return 0x00;
- }
+ /**
+ * Map border style
+ *
+ * @param string $borderStyle
+ * @return int
+ */
+ private static function mapBorderStyle($borderStyle)
+ {
+ if (isset(self::$mapBorderStyles[$borderStyle])) {
+ return self::$mapBorderStyles[$borderStyle];
+ }
+ return 0x00;
+ }
- /**
- * Map of BIFF2-BIFF8 codes for fill types
- * @static array of int
- *
- */
- private static $_mapFillType = array( PHPExcel_Style_Fill::FILL_NONE => 0x00,
- PHPExcel_Style_Fill::FILL_SOLID => 0x01,
- PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY => 0x02,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY => 0x03,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY => 0x04,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL => 0x05,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL => 0x06,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN => 0x07,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKUP => 0x08,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID => 0x09,
- PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS => 0x0A,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL => 0x0B,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL => 0x0C,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN => 0x0D,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP => 0x0E,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID => 0x0F,
- PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS => 0x10,
- PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 => 0x11,
- PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 => 0x12,
- PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR => 0x00, // does not exist in BIFF8
- PHPExcel_Style_Fill::FILL_GRADIENT_PATH => 0x00, // does not exist in BIFF8
- );
- /**
- * Map fill type
- *
- * @param string $fillType
- * @return int
- */
- private static function _mapFillType($fillType) {
- if (isset(self::$_mapFillType[$fillType]))
- return self::$_mapFillType[$fillType];
- return 0x00;
- }
+ /**
+ * Map of BIFF2-BIFF8 codes for fill types
+ * @static array of int
+ *
+ */
+ private static $mapFillTypes = array(
+ PHPExcel_Style_Fill::FILL_NONE => 0x00,
+ PHPExcel_Style_Fill::FILL_SOLID => 0x01,
+ PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY => 0x02,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY => 0x03,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY => 0x04,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL => 0x05,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL => 0x06,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN => 0x07,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKUP => 0x08,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID => 0x09,
+ PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS => 0x0A,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL => 0x0B,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL => 0x0C,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN => 0x0D,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP => 0x0E,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID => 0x0F,
+ PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS => 0x10,
+ PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 => 0x11,
+ PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 => 0x12,
+ PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR => 0x00, // does not exist in BIFF8
+ PHPExcel_Style_Fill::FILL_GRADIENT_PATH => 0x00, // does not exist in BIFF8
+ );
- /**
- * Map of BIFF2-BIFF8 codes for horizontal alignment
- * @static array of int
- *
- */
- private static $_mapHAlign = array( PHPExcel_Style_Alignment::HORIZONTAL_GENERAL => 0,
- PHPExcel_Style_Alignment::HORIZONTAL_LEFT => 1,
- PHPExcel_Style_Alignment::HORIZONTAL_CENTER => 2,
- PHPExcel_Style_Alignment::HORIZONTAL_RIGHT => 3,
- PHPExcel_Style_Alignment::HORIZONTAL_FILL => 4,
- PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY => 5,
- PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6,
- );
- /**
- * Map to BIFF2-BIFF8 codes for horizontal alignment
- *
- * @param string $hAlign
- * @return int
- */
- private function _mapHAlign($hAlign)
- {
- if (isset(self::$_mapHAlign[$hAlign]))
- return self::$_mapHAlign[$hAlign];
- return 0;
- }
+ /**
+ * Map fill type
+ *
+ * @param string $fillType
+ * @return int
+ */
+ private static function mapFillType($fillType)
+ {
+ if (isset(self::$mapFillTypes[$fillType])) {
+ return self::$mapFillTypes[$fillType];
+ }
+ return 0x00;
+ }
- /**
- * Map of BIFF2-BIFF8 codes for vertical alignment
- * @static array of int
- *
- */
- private static $_mapVAlign = array( PHPExcel_Style_Alignment::VERTICAL_TOP => 0,
- PHPExcel_Style_Alignment::VERTICAL_CENTER => 1,
- PHPExcel_Style_Alignment::VERTICAL_BOTTOM => 2,
- PHPExcel_Style_Alignment::VERTICAL_JUSTIFY => 3,
- );
- /**
- * Map to BIFF2-BIFF8 codes for vertical alignment
- *
- * @param string $vAlign
- * @return int
- */
- private static function _mapVAlign($vAlign) {
- if (isset(self::$_mapVAlign[$vAlign]))
- return self::$_mapVAlign[$vAlign];
- return 2;
- }
+ /**
+ * Map of BIFF2-BIFF8 codes for horizontal alignment
+ * @static array of int
+ *
+ */
+ private static $mapHAlignments = array(
+ PHPExcel_Style_Alignment::HORIZONTAL_GENERAL => 0,
+ PHPExcel_Style_Alignment::HORIZONTAL_LEFT => 1,
+ PHPExcel_Style_Alignment::HORIZONTAL_CENTER => 2,
+ PHPExcel_Style_Alignment::HORIZONTAL_RIGHT => 3,
+ PHPExcel_Style_Alignment::HORIZONTAL_FILL => 4,
+ PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY => 5,
+ PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6,
+ );
- /**
- * Map to BIFF8 codes for text rotation angle
- *
- * @param int $textRotation
- * @return int
- */
- private static function _mapTextRotation($textRotation) {
- if ($textRotation >= 0) {
- return $textRotation;
- }
- if ($textRotation == -165) {
- return 255;
- }
- if ($textRotation < 0) {
- return 90 - $textRotation;
- }
- }
+ /**
+ * Map to BIFF2-BIFF8 codes for horizontal alignment
+ *
+ * @param string $hAlign
+ * @return int
+ */
+ private function mapHAlign($hAlign)
+ {
+ if (isset(self::$mapHAlignments[$hAlign])) {
+ return self::$mapHAlignments[$hAlign];
+ }
+ return 0;
+ }
- /**
- * Map locked
- *
- * @param string
- * @return int
- */
- private static function _mapLocked($locked) {
- switch ($locked) {
- case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 1;
- case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1;
- case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0;
- default: return 1;
- }
- }
+ /**
+ * Map of BIFF2-BIFF8 codes for vertical alignment
+ * @static array of int
+ *
+ */
+ private static $mapVAlignments = array(
+ PHPExcel_Style_Alignment::VERTICAL_TOP => 0,
+ PHPExcel_Style_Alignment::VERTICAL_CENTER => 1,
+ PHPExcel_Style_Alignment::VERTICAL_BOTTOM => 2,
+ PHPExcel_Style_Alignment::VERTICAL_JUSTIFY => 3,
+ );
- /**
- * Map hidden
- *
- * @param string
- * @return int
- */
- private static function _mapHidden($hidden) {
- switch ($hidden) {
- case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 0;
- case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1;
- case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0;
- default: return 0;
- }
- }
+ /**
+ * Map to BIFF2-BIFF8 codes for vertical alignment
+ *
+ * @param string $vAlign
+ * @return int
+ */
+ private static function mapVAlign($vAlign)
+ {
+ if (isset(self::$mapVAlignments[$vAlign])) {
+ return self::$mapVAlignments[$vAlign];
+ }
+ return 2;
+ }
+ /**
+ * Map to BIFF8 codes for text rotation angle
+ *
+ * @param int $textRotation
+ * @return int
+ */
+ private static function mapTextRotation($textRotation)
+ {
+ if ($textRotation >= 0) {
+ return $textRotation;
+ } elseif ($textRotation == -165) {
+ return 255;
+ } elseif ($textRotation < 0) {
+ return 90 - $textRotation;
+ }
+ }
+
+ /**
+ * Map locked
+ *
+ * @param string
+ * @return int
+ */
+ private static function mapLocked($locked)
+ {
+ switch ($locked) {
+ case PHPExcel_Style_Protection::PROTECTION_INHERIT:
+ return 1;
+ case PHPExcel_Style_Protection::PROTECTION_PROTECTED:
+ return 1;
+ case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED:
+ return 0;
+ default:
+ return 1;
+ }
+ }
+
+ /**
+ * Map hidden
+ *
+ * @param string
+ * @return int
+ */
+ private static function mapHidden($hidden)
+ {
+ switch ($hidden) {
+ case PHPExcel_Style_Protection::PROTECTION_INHERIT:
+ return 0;
+ case PHPExcel_Style_Protection::PROTECTION_PROTECTED:
+ return 1;
+ case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED:
+ return 0;
+ default:
+ return 0;
+ }
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Exception.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Exception.php
index 1715587a..bfa00568 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Exception.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Exception.php
@@ -1,8 +1,9 @@
line = $line;
- $e->file = $file;
- throw $e;
- }
+class PHPExcel_Writer_Exception extends PHPExcel_Exception
+{
+ /**
+ * Error handler callback
+ *
+ * @param mixed $code
+ * @param mixed $string
+ * @param mixed $file
+ * @param mixed $line
+ * @param mixed $context
+ */
+ public static function errorHandlerCallback($code, $string, $file, $line, $context)
+ {
+ $e = new self($string, $code);
+ $e->line = $line;
+ $e->file = $file;
+ throw $e;
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
index 63c5d478..31d7c63a 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
@@ -1,8 +1,9 @@
phpExcel = $phpExcel;
+ $this->defaultFont = $this->phpExcel->getDefaultStyle()->getFont();
+ }
- /**
- * Generate the Navigation block
- *
- * @var boolean
- */
- private $_generateSheetNavigationBlock = true;
+ /**
+ * Save PHPExcel to file
+ *
+ * @param string $pFilename
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function save($pFilename = null)
+ {
+ // garbage collect
+ $this->phpExcel->garbageCollect();
- /**
- * Create a new PHPExcel_Writer_HTML
- *
- * @param PHPExcel $phpExcel PHPExcel object
- */
- public function __construct(PHPExcel $phpExcel) {
- $this->_phpExcel = $phpExcel;
- $this->_defaultFont = $this->_phpExcel->getDefaultStyle()->getFont();
- }
+ $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog();
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false);
+ $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
+ PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
- /**
- * Save PHPExcel to file
- *
- * @param string $pFilename
- * @throws PHPExcel_Writer_Exception
- */
- public function save($pFilename = null) {
- // garbage collect
- $this->_phpExcel->garbageCollect();
+ // Build CSS
+ $this->buildCSS(!$this->useInlineCss);
- $saveDebugLog = PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->getWriteDebugLog();
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog(FALSE);
- $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
- PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
+ // Open file
+ $fileHandle = fopen($pFilename, 'wb+');
+ if ($fileHandle === false) {
+ throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing.");
+ }
- // Build CSS
- $this->buildCSS(!$this->_useInlineCss);
+ // Write headers
+ fwrite($fileHandle, $this->generateHTMLHeader(!$this->useInlineCss));
- // Open file
- $fileHandle = fopen($pFilename, 'wb+');
- if ($fileHandle === false) {
- throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing.");
- }
+ // Write navigation (tabs)
+ if ((!$this->isPdf) && ($this->generateSheetNavigationBlock)) {
+ fwrite($fileHandle, $this->generateNavigation());
+ }
- // Write headers
- fwrite($fileHandle, $this->generateHTMLHeader(!$this->_useInlineCss));
+ // Write data
+ fwrite($fileHandle, $this->generateSheetData());
- // Write navigation (tabs)
- if ((!$this->_isPdf) && ($this->_generateSheetNavigationBlock)) {
- fwrite($fileHandle, $this->generateNavigation());
- }
+ // Write footer
+ fwrite($fileHandle, $this->generateHTMLFooter());
- // Write data
- fwrite($fileHandle, $this->generateSheetData());
+ // Close file
+ fclose($fileHandle);
- // Write footer
- fwrite($fileHandle, $this->generateHTMLFooter());
+ PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
+ PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
+ }
- // Close file
- fclose($fileHandle);
+ /**
+ * Map VAlign
+ *
+ * @param string $vAlign Vertical alignment
+ * @return string
+ */
+ private function mapVAlign($vAlign)
+ {
+ switch ($vAlign) {
+ case PHPExcel_Style_Alignment::VERTICAL_BOTTOM:
+ return 'bottom';
+ case PHPExcel_Style_Alignment::VERTICAL_TOP:
+ return 'top';
+ case PHPExcel_Style_Alignment::VERTICAL_CENTER:
+ case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY:
+ return 'middle';
+ default:
+ return 'baseline';
+ }
+ }
- PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
- PHPExcel_Calculation::getInstance($this->_phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
- }
+ /**
+ * Map HAlign
+ *
+ * @param string $hAlign Horizontal alignment
+ * @return string|false
+ */
+ private function mapHAlign($hAlign)
+ {
+ switch ($hAlign) {
+ case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL:
+ return false;
+ case PHPExcel_Style_Alignment::HORIZONTAL_LEFT:
+ return 'left';
+ case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT:
+ return 'right';
+ case PHPExcel_Style_Alignment::HORIZONTAL_CENTER:
+ case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS:
+ return 'center';
+ case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY:
+ return 'justify';
+ default:
+ return false;
+ }
+ }
- /**
- * Map VAlign
- *
- * @param string $vAlign Vertical alignment
- * @return string
- */
- private function _mapVAlign($vAlign) {
- switch ($vAlign) {
- case PHPExcel_Style_Alignment::VERTICAL_BOTTOM: return 'bottom';
- case PHPExcel_Style_Alignment::VERTICAL_TOP: return 'top';
- case PHPExcel_Style_Alignment::VERTICAL_CENTER:
- case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY: return 'middle';
- default: return 'baseline';
- }
- }
+ /**
+ * Map border style
+ *
+ * @param int $borderStyle Sheet index
+ * @return string
+ */
+ private function mapBorderStyle($borderStyle)
+ {
+ switch ($borderStyle) {
+ case PHPExcel_Style_Border::BORDER_NONE:
+ return 'none';
+ case PHPExcel_Style_Border::BORDER_DASHDOT:
+ return '1px dashed';
+ case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
+ return '1px dotted';
+ case PHPExcel_Style_Border::BORDER_DASHED:
+ return '1px dashed';
+ case PHPExcel_Style_Border::BORDER_DOTTED:
+ return '1px dotted';
+ case PHPExcel_Style_Border::BORDER_DOUBLE:
+ return '3px double';
+ case PHPExcel_Style_Border::BORDER_HAIR:
+ return '1px solid';
+ case PHPExcel_Style_Border::BORDER_MEDIUM:
+ return '2px solid';
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
+ return '2px dashed';
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
+ return '2px dotted';
+ case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
+ return '2px dashed';
+ case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
+ return '2px dashed';
+ case PHPExcel_Style_Border::BORDER_THICK:
+ return '3px solid';
+ case PHPExcel_Style_Border::BORDER_THIN:
+ return '1px solid';
+ default:
+ // map others to thin
+ return '1px solid';
+ }
+ }
- /**
- * Map HAlign
- *
- * @param string $hAlign Horizontal alignment
- * @return string|false
- */
- private function _mapHAlign($hAlign) {
- switch ($hAlign) {
- case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL: return false;
- case PHPExcel_Style_Alignment::HORIZONTAL_LEFT: return 'left';
- case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT: return 'right';
- case PHPExcel_Style_Alignment::HORIZONTAL_CENTER:
- case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS: return 'center';
- case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY: return 'justify';
- default: return false;
- }
- }
+ /**
+ * Get sheet index
+ *
+ * @return int
+ */
+ public function getSheetIndex()
+ {
+ return $this->sheetIndex;
+ }
- /**
- * Map border style
- *
- * @param int $borderStyle Sheet index
- * @return string
- */
- private function _mapBorderStyle($borderStyle) {
- switch ($borderStyle) {
- case PHPExcel_Style_Border::BORDER_NONE: return 'none';
- case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed';
- case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted';
- case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed';
- case PHPExcel_Style_Border::BORDER_DOTTED: return '1px dotted';
- case PHPExcel_Style_Border::BORDER_DOUBLE: return '3px double';
- case PHPExcel_Style_Border::BORDER_HAIR: return '1px solid';
- case PHPExcel_Style_Border::BORDER_MEDIUM: return '2px solid';
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: return '2px dashed';
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: return '2px dotted';
- case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: return '2px dashed';
- case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: return '2px dashed';
- case PHPExcel_Style_Border::BORDER_THICK: return '3px solid';
- case PHPExcel_Style_Border::BORDER_THIN: return '1px solid';
- default: return '1px solid'; // map others to thin
- }
- }
+ /**
+ * Set sheet index
+ *
+ * @param int $pValue Sheet index
+ * @return PHPExcel_Writer_HTML
+ */
+ public function setSheetIndex($pValue = 0)
+ {
+ $this->sheetIndex = $pValue;
+ return $this;
+ }
- /**
- * Get sheet index
- *
- * @return int
- */
- public function getSheetIndex() {
- return $this->_sheetIndex;
- }
+ /**
+ * Get sheet index
+ *
+ * @return boolean
+ */
+ public function getGenerateSheetNavigationBlock()
+ {
+ return $this->generateSheetNavigationBlock;
+ }
- /**
- * Set sheet index
- *
- * @param int $pValue Sheet index
- * @return PHPExcel_Writer_HTML
- */
- public function setSheetIndex($pValue = 0) {
- $this->_sheetIndex = $pValue;
- return $this;
- }
+ /**
+ * Set sheet index
+ *
+ * @param boolean $pValue Flag indicating whether the sheet navigation block should be generated or not
+ * @return PHPExcel_Writer_HTML
+ */
+ public function setGenerateSheetNavigationBlock($pValue = true)
+ {
+ $this->generateSheetNavigationBlock = (bool) $pValue;
+ return $this;
+ }
- /**
- * Get sheet index
- *
- * @return boolean
- */
- public function getGenerateSheetNavigationBlock() {
- return $this->_generateSheetNavigationBlock;
- }
+ /**
+ * Write all sheets (resets sheetIndex to NULL)
+ */
+ public function writeAllSheets()
+ {
+ $this->sheetIndex = null;
+ return $this;
+ }
- /**
- * Set sheet index
- *
- * @param boolean $pValue Flag indicating whether the sheet navigation block should be generated or not
- * @return PHPExcel_Writer_HTML
- */
- public function setGenerateSheetNavigationBlock($pValue = true) {
- $this->_generateSheetNavigationBlock = (bool) $pValue;
- return $this;
- }
+ /**
+ * Generate HTML header
+ *
+ * @param boolean $pIncludeStyles Include styles?
+ * @return string
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function generateHTMLHeader($pIncludeStyles = false)
+ {
+ // PHPExcel object known?
+ if (is_null($this->phpExcel)) {
+ throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.');
+ }
- /**
- * Write all sheets (resets sheetIndex to NULL)
- */
- public function writeAllSheets() {
- $this->_sheetIndex = null;
- return $this;
- }
+ // Construct HTML
+ $properties = $this->phpExcel->getProperties();
+ $html = '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+ $html .= '' . PHP_EOL;
+ $html .= ' ' . PHP_EOL;
+ $html .= ' ' . PHP_EOL;
+ if ($properties->getTitle() > '') {
+ $html .= ' ';
- for ($col = 'A'; $col != $colMax; ++$col) {
- $html .= ' ';
- }
- return $html;
- }
-
-
- /**
- * Generate image tag in cell
- *
- * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet
- * @param string $coordinates Cell coordinates
- * @return string
- * @throws PHPExcel_Writer_Exception
- */
- private function _writeImageInCell(PHPExcel_Worksheet $pSheet, $coordinates) {
- // Construct HTML
- $html = '';
-
- // Write images
- foreach ($pSheet->getDrawingCollection() as $drawing) {
- if ($drawing instanceof PHPExcel_Worksheet_Drawing) {
- if ($drawing->getCoordinates() == $coordinates) {
- $filename = $drawing->getPath();
-
- // Strip off eventual '.'
- if (substr($filename, 0, 1) == '.') {
- $filename = substr($filename, 1);
- }
-
- // Prepend images root
- $filename = $this->getImagesRoot() . $filename;
-
- // Strip off eventual '.'
- if (substr($filename, 0, 1) == '.' && substr($filename, 0, 2) != './') {
- $filename = substr($filename, 1);
- }
-
- // Convert UTF8 data to PCDATA
- $filename = htmlspecialchars($filename);
-
- $html .= PHP_EOL;
- if ((!$this->_embedImages) || ($this->_isPdf)) {
- $imageData = $filename;
- } else {
- $imageDetails = getimagesize($filename);
- if ($fp = fopen($filename,"rb", 0)) {
- $picture = fread($fp,filesize($filename));
- fclose($fp);
- // base64 encode the binary data, then break it
- // into chunks according to RFC 2045 semantics
- $base64 = chunk_split(base64_encode($picture));
- $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64;
- } else {
- $imageData = $filename;
- }
- }
-
- $html .= '';
- $html .= $this->_writeImageInCell($pSheet, $col.$row);
- if ($this->_includeCharts) {
- $html .= $this->_writeChartInCell($pSheet, $col.$row);
- }
- $html .= ' ';
- }
- ++$row;
- $html .= '';
- $html .= '
' . PHP_EOL;
- $html .= '
' . PHP_EOL;
- } else {
- $style = isset($this->_cssStyles['table']) ?
- $this->_assembleCSS($this->_cssStyles['table']) : '';
-
- if ($this->_isPdf && $pSheet->getShowGridlines()) {
- $html .= '
' . PHP_EOL;
- } else {
- $html .= '
- $html .= $this->_generateTableFooter();
-
- // insert page break
- $html .= '';
-
- // open table again: ' . PHP_EOL;
- }
- }
-
- // Write
' . PHP_EOL;
-
- // Return
- return $html;
- }
-
- /**
- * Generate row
- *
- * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet
- * @param array $pValues Array containing cells in a row
- * @param int $pRow Row number (0-based)
- * @return string
- * @throws PHPExcel_Writer_Exception
- */
- private function _generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow = 0, $cellType = 'td') {
- if (is_array($pValues)) {
- // Construct HTML
- $html = '';
-
- // Sheet index
- $sheetIndex = $pSheet->getParent()->getIndex($pSheet);
-
- // DomPDF and breaks
- if ($this->_isPdf && count($pSheet->getBreaks()) > 0) {
- $breaks = $pSheet->getBreaks();
-
- // check if a break is needed before this row
- if (isset($breaks['A' . $pRow])) {
- // close table: +
' . PHP_EOL;
- } else {
- $style = isset($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow])
- ? $this->_assembleCSS($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : '';
-
- $html .= ' ' . PHP_EOL;
- }
-
- // Write cells
- $colNum = 0;
- foreach ($pValues as $cellAddress) {
- $cell = ($cellAddress > '') ? $pSheet->getCell($cellAddress) : '';
- $coordinate = PHPExcel_Cell::stringFromColumnIndex($colNum) . ($pRow + 1);
- if (!$this->_useInlineCss) {
- $cssClass = '';
- $cssClass = 'column' . $colNum;
- } else {
- $cssClass = array();
- if ($cellType == 'th') {
- if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
- $this->_cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
- }
- } else {
- if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
- $this->_cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
+ }
+
+ // Write row if there are HTML table cells in it
+ if (!isset($this->isSpannedRow[$sheet->getParent()->getIndex($sheet)][$row])) {
+ // Start a new rowData
+ $rowData = array();
+ // Loop through columns
+ $column = $dimension[0][0] - 1;
+ while ($column++ < $dimension[1][0]) {
+ // Cell exists?
+ if ($sheet->cellExistsByColumnAndRow($column, $row)) {
+ $rowData[$column] = PHPExcel_Cell::stringFromColumnIndex($column) . $row;
+ } else {
+ $rowData[$column] = '';
}
}
- }
- $colSpan = 1;
- $rowSpan = 1;
+ $html .= $this->generateRow($sheet, $rowData, $row - 1, $cellType);
+ }
- // initialize
- $cellData = ' ';
+ // ?
+ if ($row == $theadEnd) {
+ $html .= ' ' . PHP_EOL;
+ }
+ }
+ $html .= $this->extendRowsForChartsAndImages($sheet, $row);
- // PHPExcel_Cell
- if ($cell instanceof PHPExcel_Cell) {
- $cellData = '';
- if (is_null($cell->getParent())) {
- $cell->attach($pSheet);
- }
- // Value
- if ($cell->getValue() instanceof PHPExcel_RichText) {
- // Loop through rich text elements
- $elements = $cell->getValue()->getRichTextElements();
- foreach ($elements as $element) {
- // Rich text start?
- if ($element instanceof PHPExcel_RichText_Run) {
- $cellData .= '';
+ // Close table body.
+ $html .= ' ' . PHP_EOL;
- if ($element->getFont()->getSuperScript()) {
- $cellData .= '';
- } else if ($element->getFont()->getSubScript()) {
- $cellData .= '';
- }
- }
+ // Write table footer
+ $html .= $this->generateTableFooter();
- // Convert UTF8 data to PCDATA
- $cellText = $element->getText();
- $cellData .= htmlspecialchars($cellText);
+ // Writing PDF?
+ if ($this->isPdf) {
+ if (is_null($this->sheetIndex) && $sheetId + 1 < $this->phpExcel->getSheetCount()) {
+ $html .= '';
+ }
+ }
- if ($element instanceof PHPExcel_RichText_Run) {
- if ($element->getFont()->getSuperScript()) {
- $cellData .= '';
- } else if ($element->getFont()->getSubScript()) {
- $cellData .= '';
- }
+ // Next sheet
+ ++$sheetId;
+ }
- $cellData .= '';
- }
- }
- } else {
- if ($this->_preCalculateFormulas) {
- $cellData = PHPExcel_Style_NumberFormat::toFormattedString(
- $cell->getCalculatedValue(),
- $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getNumberFormat()->getFormatCode(),
- array($this, 'formatColor')
- );
- } else {
- $cellData = PHPExcel_Style_NumberFormat::toFormattedString(
- $cell->getValue(),
- $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getNumberFormat()->getFormatCode(),
- array($this, 'formatColor')
- );
- }
- $cellData = htmlspecialchars($cellData);
- if ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSuperScript()) {
- $cellData = ''.$cellData.'';
- } elseif ($pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() )->getFont()->getSubScript()) {
- $cellData = ''.$cellData.'';
- }
- }
+ return $html;
+ }
- // Converts the cell content so that spaces occuring at beginning of each new line are replaced by
- // Example: " Hello\n to the world" is converted to " Hello\n to the world"
- $cellData = preg_replace("/(?m)(?:^|\\G) /", ' ', $cellData);
+ /**
+ * Generate sheet tabs
+ *
+ * @return string
+ * @throws PHPExcel_Writer_Exception
+ */
+ public function generateNavigation()
+ {
+ // PHPExcel object known?
+ if (is_null($this->phpExcel)) {
+ throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.');
+ }
- // convert newline "\n" to '
'
- $cellData = nl2br($cellData);
+ // Fetch sheets
+ $sheets = array();
+ if (is_null($this->sheetIndex)) {
+ $sheets = $this->phpExcel->getAllSheets();
+ } else {
+ $sheets[] = $this->phpExcel->getSheet($this->sheetIndex);
+ }
- // Extend CSS class?
- if (!$this->_useInlineCss) {
- $cssClass .= ' style' . $cell->getXfIndex();
- $cssClass .= ' ' . $cell->getDataType();
- } else {
+ // Construct HTML
+ $html = '';
+
+ // Only if there are more than 1 sheets
+ if (count($sheets) > 1) {
+ // Loop all sheets
+ $sheetId = 0;
+
+ $html .= '' . PHP_EOL;
+ }
+
+ return $html;
+ }
+
+ private function extendRowsForChartsAndImages(PHPExcel_Worksheet $pSheet, $row)
+ {
+ $rowMax = $row;
+ $colMax = 'A';
+ if ($this->includeCharts) {
+ foreach ($pSheet->getChartCollection() as $chart) {
+ if ($chart instanceof PHPExcel_Chart) {
+ $chartCoordinates = $chart->getTopLeftPosition();
+ $chartTL = PHPExcel_Cell::coordinateFromString($chartCoordinates['cell']);
+ $chartCol = PHPExcel_Cell::columnIndexFromString($chartTL[0]);
+ if ($chartTL[1] > $rowMax) {
+ $rowMax = $chartTL[1];
+ if ($chartCol > PHPExcel_Cell::columnIndexFromString($colMax)) {
+ $colMax = $chartTL[0];
+ }
+ }
+ }
+ }
+ }
+
+ foreach ($pSheet->getDrawingCollection() as $drawing) {
+ if ($drawing instanceof PHPExcel_Worksheet_Drawing) {
+ $imageTL = PHPExcel_Cell::coordinateFromString($drawing->getCoordinates());
+ $imageCol = PHPExcel_Cell::columnIndexFromString($imageTL[0]);
+ if ($imageTL[1] > $rowMax) {
+ $rowMax = $imageTL[1];
+ if ($imageCol > PHPExcel_Cell::columnIndexFromString($colMax)) {
+ $colMax = $imageTL[0];
+ }
+ }
+ }
+ }
+
+ $html = '';
+ $colMax++;
+ while ($row <= $rowMax) {
+ $html .= '';
+ for ($col = 'A'; $col != $colMax; ++$col) {
+ $html .= ' ';
+ }
+ return $html;
+ }
+
+
+ /**
+ * Generate image tag in cell
+ *
+ * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet
+ * @param string $coordinates Cell coordinates
+ * @return string
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeImageInCell(PHPExcel_Worksheet $pSheet, $coordinates)
+ {
+ // Construct HTML
+ $html = '';
+
+ // Write images
+ foreach ($pSheet->getDrawingCollection() as $drawing) {
+ if ($drawing instanceof PHPExcel_Worksheet_Drawing) {
+ if ($drawing->getCoordinates() == $coordinates) {
+ $filename = $drawing->getPath();
+
+ // Strip off eventual '.'
+ if (substr($filename, 0, 1) == '.') {
+ $filename = substr($filename, 1);
+ }
+
+ // Prepend images root
+ $filename = $this->getImagesRoot() . $filename;
+
+ // Strip off eventual '.'
+ if (substr($filename, 0, 1) == '.' && substr($filename, 0, 2) != './') {
+ $filename = substr($filename, 1);
+ }
+
+ // Convert UTF8 data to PCDATA
+ $filename = htmlspecialchars($filename);
+
+ $html .= PHP_EOL;
+ if ((!$this->embedImages) || ($this->isPdf)) {
+ $imageData = $filename;
+ } else {
+ $imageDetails = getimagesize($filename);
+ if ($fp = fopen($filename, "rb", 0)) {
+ $picture = fread($fp, filesize($filename));
+ fclose($fp);
+ // base64 encode the binary data, then break it
+ // into chunks according to RFC 2045 semantics
+ $base64 = chunk_split(base64_encode($picture));
+ $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64;
+ } else {
+ $imageData = $filename;
+ }
+ }
+
+ $html .= '';
+ $html .= $this->writeImageInCell($pSheet, $col.$row);
+ if ($this->includeCharts) {
+ $html .= $this->writeChartInCell($pSheet, $col.$row);
+ }
+ $html .= ' ';
+ }
+ ++$row;
+ $html .= '';
+ $html .= '
';
+ }
+ }
+
+ return $html;
+ }
+
+ /**
+ * Generate chart tag in cell
+ *
+ * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet
+ * @param string $coordinates Cell coordinates
+ * @return string
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function writeChartInCell(PHPExcel_Worksheet $pSheet, $coordinates)
+ {
+ // Construct HTML
+ $html = '';
+
+ // Write charts
+ foreach ($pSheet->getChartCollection() as $chart) {
+ if ($chart instanceof PHPExcel_Chart) {
+ $chartCoordinates = $chart->getTopLeftPosition();
+ if ($chartCoordinates['cell'] == $coordinates) {
+ $chartFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/'.uniqid().'.png';
+ if (!$chart->render($chartFileName)) {
+ return;
+ }
+
+ $html .= PHP_EOL;
+ $imageDetails = getimagesize($chartFileName);
+ if ($fp = fopen($chartFileName, "rb", 0)) {
+ $picture = fread($fp, filesize($chartFileName));
+ fclose($fp);
+ // base64 encode the binary data, then break it
+ // into chunks according to RFC 2045 semantics
+ $base64 = chunk_split(base64_encode($picture));
+ $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64;
+
+ $html .= '
' . PHP_EOL;
+ $html .= '
' . PHP_EOL;
+ } else {
+ $style = isset($this->cssStyles['table']) ?
+ $this->assembleCSS($this->cssStyles['table']) : '';
+
+ if ($this->isPdf && $pSheet->getShowGridlines()) {
+ $html .= '
' . PHP_EOL;
+ } else {
+ $html .= '
+ $html .= $this->generateTableFooter();
+
+ // insert page break
+ $html .= '';
+
+ // open table again: ' . PHP_EOL;
+ }
+ }
+
+ // Write
' . PHP_EOL;
+
+ return $html;
+ }
+
+ /**
+ * Generate row
+ *
+ * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet
+ * @param array $pValues Array containing cells in a row
+ * @param int $pRow Row number (0-based)
+ * @return string
+ * @throws PHPExcel_Writer_Exception
+ */
+ private function generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow = 0, $cellType = 'td')
+ {
+ if (is_array($pValues)) {
+ // Construct HTML
+ $html = '';
+
+ // Sheet index
+ $sheetIndex = $pSheet->getParent()->getIndex($pSheet);
+
+ // DomPDF and breaks
+ if ($this->isPdf && count($pSheet->getBreaks()) > 0) {
+ $breaks = $pSheet->getBreaks();
+
+ // check if a break is needed before this row
+ if (isset($breaks['A' . $pRow])) {
+ // close table: +
' . PHP_EOL;
+ } else {
+ $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow])
+ ? $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : '';
+
+ $html .= ' ' . PHP_EOL;
+ }
+
+ // Write cells
+ $colNum = 0;
+ foreach ($pValues as $cellAddress) {
+ $cell = ($cellAddress > '') ? $pSheet->getCell($cellAddress) : '';
+ $coordinate = PHPExcel_Cell::stringFromColumnIndex($colNum) . ($pRow + 1);
+ if (!$this->useInlineCss) {
+ $cssClass = '';
+ $cssClass = 'column' . $colNum;
+ } else {
+ $cssClass = array();
+ if ($cellType == 'th') {
+ if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) {
+ $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum];
+ }
+ } else {
+ if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) {
+ $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum];
+ }
+ }
+ }
+ $colSpan = 1;
+ $rowSpan = 1;
+
+ // initialize
+ $cellData = ' ';
+
+ // PHPExcel_Cell
+ if ($cell instanceof PHPExcel_Cell) {
+ $cellData = '';
+ if (is_null($cell->getParent())) {
+ $cell->attach($pSheet);
+ }
+ // Value
+ if ($cell->getValue() instanceof PHPExcel_RichText) {
+ // Loop through rich text elements
+ $elements = $cell->getValue()->getRichTextElements();
+ foreach ($elements as $element) {
+ // Rich text start?
+ if ($element instanceof PHPExcel_RichText_Run) {
+ $cellData .= '';
+
+ if ($element->getFont()->getSuperScript()) {
+ $cellData .= '';
+ } elseif ($element->getFont()->getSubScript()) {
+ $cellData .= '';
+ }
+ }
+
+ // Convert UTF8 data to PCDATA
+ $cellText = $element->getText();
+ $cellData .= htmlspecialchars($cellText);
+
+ if ($element instanceof PHPExcel_RichText_Run) {
+ if ($element->getFont()->getSuperScript()) {
+ $cellData .= '';
+ } elseif ($element->getFont()->getSubScript()) {
+ $cellData .= '';
+ }
+
+ $cellData .= '';
+ }
+ }
+ } else {
+ if ($this->preCalculateFormulas) {
+ $cellData = PHPExcel_Style_NumberFormat::toFormattedString(
+ $cell->getCalculatedValue(),
+ $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode(),
+ array($this, 'formatColor')
+ );
+ } else {
+ $cellData = PHPExcel_Style_NumberFormat::toFormattedString(
+ $cell->getValue(),
+ $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode(),
+ array($this, 'formatColor')
+ );
+ }
+ $cellData = htmlspecialchars($cellData);
+ if ($pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont()->getSuperScript()) {
+ $cellData = ''.$cellData.'';
+ } elseif ($pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont()->getSubScript()) {
+ $cellData = ''.$cellData.'';
+ }
+ }
+
+ // Converts the cell content so that spaces occuring at beginning of each new line are replaced by
+ // Example: " Hello\n to the world" is converted to " Hello\n to the world"
+ $cellData = preg_replace("/(?m)(?:^|\\G) /", ' ', $cellData);
+
+ // convert newline "\n" to '
'
+ $cellData = nl2br($cellData);
+
+ // Extend CSS class?
+ if (!$this->useInlineCss) {
+ $cssClass .= ' style' . $cell->getXfIndex();
+ $cssClass .= ' ' . $cell->getDataType();
+ } else {
if ($cellType == 'th') {
- if (isset($this->_cssStyles['th.style' . $cell->getXfIndex()])) {
- $cssClass = array_merge($cssClass, $this->_cssStyles['th.style' . $cell->getXfIndex()]);
+ if (isset($this->cssStyles['th.style' . $cell->getXfIndex()])) {
+ $cssClass = array_merge($cssClass, $this->cssStyles['th.style' . $cell->getXfIndex()]);
}
} else {
- if (isset($this->_cssStyles['td.style' . $cell->getXfIndex()])) {
- $cssClass = array_merge($cssClass, $this->_cssStyles['td.style' . $cell->getXfIndex()]);
+ if (isset($this->cssStyles['td.style' . $cell->getXfIndex()])) {
+ $cssClass = array_merge($cssClass, $this->cssStyles['td.style' . $cell->getXfIndex()]);
}
}
- // General horizontal alignment: Actual horizontal alignment depends on dataType
- $sharedStyle = $pSheet->getParent()->getCellXfByIndex( $cell->getXfIndex() );
- if ($sharedStyle->getAlignment()->getHorizontal() == PHPExcel_Style_Alignment::HORIZONTAL_GENERAL
- && isset($this->_cssStyles['.' . $cell->getDataType()]['text-align']))
- {
- $cssClass['text-align'] = $this->_cssStyles['.' . $cell->getDataType()]['text-align'];
- }
- }
- }
+ // General horizontal alignment: Actual horizontal alignment depends on dataType
+ $sharedStyle = $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex());
+ if ($sharedStyle->getAlignment()->getHorizontal() == PHPExcel_Style_Alignment::HORIZONTAL_GENERAL
+ && isset($this->cssStyles['.' . $cell->getDataType()]['text-align'])) {
+ $cssClass['text-align'] = $this->cssStyles['.' . $cell->getDataType()]['text-align'];
+ }
+ }
+ }
- // Hyperlink?
- if ($pSheet->hyperlinkExists($coordinate) && !$pSheet->getHyperlink($coordinate)->isInternal()) {
- $cellData = '' . $cellData . '';
- }
+ // Hyperlink?
+ if ($pSheet->hyperlinkExists($coordinate) && !$pSheet->getHyperlink($coordinate)->isInternal()) {
+ $cellData = '' . $cellData . '';
+ }
- // Should the cell be written or is it swallowed by a rowspan or colspan?
- $writeCell = ! ( isset($this->_isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])
- && $this->_isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum] );
+ // Should the cell be written or is it swallowed by a rowspan or colspan?
+ $writeCell = !(isset($this->isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])
+ && $this->isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]);
- // Colspan and Rowspan
- $colspan = 1;
- $rowspan = 1;
- if (isset($this->_isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])) {
- $spans = $this->_isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum];
- $rowSpan = $spans['rowspan'];
- $colSpan = $spans['colspan'];
+ // Colspan and Rowspan
+ $colspan = 1;
+ $rowspan = 1;
+ if (isset($this->isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])) {
+ $spans = $this->isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum];
+ $rowSpan = $spans['rowspan'];
+ $colSpan = $spans['colspan'];
- // Also apply style from last cell in merge to fix borders -
- // relies on !important for non-none border declarations in _createCSSStyleBorder
- $endCellCoord = PHPExcel_Cell::stringFromColumnIndex($colNum + $colSpan - 1) . ($pRow + $rowSpan);
- if (!$this->_useInlineCss) {
- $cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex();
- }
- }
+ // Also apply style from last cell in merge to fix borders -
+ // relies on !important for non-none border declarations in createCSSStyleBorder
+ $endCellCoord = PHPExcel_Cell::stringFromColumnIndex($colNum + $colSpan - 1) . ($pRow + $rowSpan);
+ if (!$this->useInlineCss) {
+ $cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex();
+ }
+ }
- // Write
- if ($writeCell) {
- // Column start
- $html .= ' <' . $cellType;
- if (!$this->_useInlineCss) {
- $html .= ' class="' . $cssClass . '"';
- } else {
- //** Necessary redundant code for the sake of PHPExcel_Writer_PDF **
- // We must explicitly write the width of the element because TCPDF
- // does not recognize e.g. element because TCPDF
+ // does not recognize e.g. element because TCPDF
- // does not recognize e.g.
- if (isset($this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'])) {
- $height = $this->_cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'];
- $cssClass['height'] = $height;
- }
- //** end of redundant code **
+ // We must also explicitly write the height of the element because TCPDF
+ // does not recognize e.g.
+ if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'])) {
+ $height = $this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'];
+ $cssClass['height'] = $height;
+ }
+ //** end of redundant code **
- $html .= ' style="' . $this->_assembleCSS($cssClass) . '"';
- }
- if ($colSpan > 1) {
- $html .= ' colspan="' . $colSpan . '"';
- }
- if ($rowSpan > 1) {
- $html .= ' rowspan="' . $rowSpan . '"';
- }
- $html .= '>';
+ $html .= ' style="' . $this->assembleCSS($cssClass) . '"';
+ }
+ if ($colSpan > 1) {
+ $html .= ' colspan="' . $colSpan . '"';
+ }
+ if ($rowSpan > 1) {
+ $html .= ' rowspan="' . $rowSpan . '"';
+ }
+ $html .= '>';
- // Image?
- $html .= $this->_writeImageInCell($pSheet, $coordinate);
+ // Image?
+ $html .= $this->writeImageInCell($pSheet, $coordinate);
- // Chart?
- if ($this->_includeCharts) {
- $html .= $this->_writeChartInCell($pSheet, $coordinate);
- }
+ // Chart?
+ if ($this->includeCharts) {
+ $html .= $this->writeChartInCell($pSheet, $coordinate);
+ }
- // Cell data
- $html .= $cellData;
+ // Cell data
+ $html .= $cellData;
- // Column end
- $html .= ''.$cellType.'>' . PHP_EOL;
- }
+ // Column end
+ $html .= ''.$cellType.'>' . PHP_EOL;
+ }
- // Next column
- ++$colNum;
- }
+ // Next column
+ ++$colNum;
+ }
- // Write row end
- $html .= ' ' . PHP_EOL;
+ // Write row end
+ $html .= ' ' . PHP_EOL;
- // Return
- return $html;
- } else {
- throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
- }
- }
+ // Return
+ return $html;
+ } else {
+ throw new PHPExcel_Writer_Exception("Invalid parameters passed.");
+ }
+ }
- /**
- * Takes array where of CSS properties / values and converts to CSS string
- *
- * @param array
- * @return string
- */
- private function _assembleCSS($pValue = array())
- {
- $pairs = array();
- foreach ($pValue as $property => $value) {
- $pairs[] = $property . ':' . $value;
- }
- $string = implode('; ', $pairs);
+ /**
+ * Takes array where of CSS properties / values and converts to CSS string
+ *
+ * @param array
+ * @return string
+ */
+ private function assembleCSS($pValue = array())
+ {
+ $pairs = array();
+ foreach ($pValue as $property => $value) {
+ $pairs[] = $property . ':' . $value;
+ }
+ $string = implode('; ', $pairs);
- return $string;
- }
+ return $string;
+ }
- /**
- * Get images root
- *
- * @return string
- */
- public function getImagesRoot() {
- return $this->_imagesRoot;
- }
+ /**
+ * Get images root
+ *
+ * @return string
+ */
+ public function getImagesRoot()
+ {
+ return $this->imagesRoot;
+ }
- /**
- * Set images root
- *
- * @param string $pValue
- * @return PHPExcel_Writer_HTML
- */
- public function setImagesRoot($pValue = '.') {
- $this->_imagesRoot = $pValue;
- return $this;
- }
+ /**
+ * Set images root
+ *
+ * @param string $pValue
+ * @return PHPExcel_Writer_HTML
+ */
+ public function setImagesRoot($pValue = '.')
+ {
+ $this->imagesRoot = $pValue;
+ return $this;
+ }
- /**
- * Get embed images
- *
- * @return boolean
- */
- public function getEmbedImages() {
- return $this->_embedImages;
- }
+ /**
+ * Get embed images
+ *
+ * @return boolean
+ */
+ public function getEmbedImages()
+ {
+ return $this->embedImages;
+ }
- /**
- * Set embed images
- *
- * @param boolean $pValue
- * @return PHPExcel_Writer_HTML
- */
- public function setEmbedImages($pValue = '.') {
- $this->_embedImages = $pValue;
- return $this;
- }
+ /**
+ * Set embed images
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Writer_HTML
+ */
+ public function setEmbedImages($pValue = '.')
+ {
+ $this->embedImages = $pValue;
+ return $this;
+ }
- /**
- * Get use inline CSS?
- *
- * @return boolean
- */
- public function getUseInlineCss() {
- return $this->_useInlineCss;
- }
+ /**
+ * Get use inline CSS?
+ *
+ * @return boolean
+ */
+ public function getUseInlineCss()
+ {
+ return $this->useInlineCss;
+ }
- /**
- * Set use inline CSS?
- *
- * @param boolean $pValue
- * @return PHPExcel_Writer_HTML
- */
- public function setUseInlineCss($pValue = false) {
- $this->_useInlineCss = $pValue;
- return $this;
- }
+ /**
+ * Set use inline CSS?
+ *
+ * @param boolean $pValue
+ * @return PHPExcel_Writer_HTML
+ */
+ public function setUseInlineCss($pValue = false)
+ {
+ $this->useInlineCss = $pValue;
+ return $this;
+ }
- /**
- * Add color to formatted string as inline style
- *
- * @param string $pValue Plain formatted value without color
- * @param string $pFormat Format code
- * @return string
- */
- public function formatColor($pValue, $pFormat)
- {
- // Color information, e.g. [Red] is always at the beginning
- $color = null; // initialize
- $matches = array();
+ /**
+ * Add color to formatted string as inline style
+ *
+ * @param string $pValue Plain formatted value without color
+ * @param string $pFormat Format code
+ * @return string
+ */
+ public function formatColor($pValue, $pFormat)
+ {
+ // Color information, e.g. [Red] is always at the beginning
+ $color = null; // initialize
+ $matches = array();
- $color_regex = '/^\\[[a-zA-Z]+\\]/';
- if (preg_match($color_regex, $pFormat, $matches)) {
- $color = str_replace('[', '', $matches[0]);
- $color = str_replace(']', '', $color);
- $color = strtolower($color);
- }
+ $color_regex = '/^\\[[a-zA-Z]+\\]/';
+ if (preg_match($color_regex, $pFormat, $matches)) {
+ $color = str_replace('[', '', $matches[0]);
+ $color = str_replace(']', '', $color);
+ $color = strtolower($color);
+ }
- // convert to PCDATA
- $value = htmlspecialchars($pValue);
+ // convert to PCDATA
+ $value = htmlspecialchars($pValue);
- // color span tag
- if ($color !== null) {
- $value = '' . $value . '';
- }
+ // color span tag
+ if ($color !== null) {
+ $value = '' . $value . '';
+ }
- return $value;
- }
+ return $value;
+ }
- /**
- * Calculate information about HTML colspan and rowspan which is not always the same as Excel's
- */
- private function _calculateSpans()
- {
- // Identify all cells that should be omitted in HTML due to cell merge.
- // In HTML only the upper-left cell should be written and it should have
- // appropriate rowspan / colspan attribute
- $sheetIndexes = $this->_sheetIndex !== null ?
- array($this->_sheetIndex) : range(0, $this->_phpExcel->getSheetCount() - 1);
+ /**
+ * Calculate information about HTML colspan and rowspan which is not always the same as Excel's
+ */
+ private function calculateSpans()
+ {
+ // Identify all cells that should be omitted in HTML due to cell merge.
+ // In HTML only the upper-left cell should be written and it should have
+ // appropriate rowspan / colspan attribute
+ $sheetIndexes = $this->sheetIndex !== null ?
+ array($this->sheetIndex) : range(0, $this->phpExcel->getSheetCount() - 1);
- foreach ($sheetIndexes as $sheetIndex) {
- $sheet = $this->_phpExcel->getSheet($sheetIndex);
+ foreach ($sheetIndexes as $sheetIndex) {
+ $sheet = $this->phpExcel->getSheet($sheetIndex);
- $candidateSpannedRow = array();
+ $candidateSpannedRow = array();
- // loop through all Excel merged cells
- foreach ($sheet->getMergeCells() as $cells) {
- list($cells, ) = PHPExcel_Cell::splitRange($cells);
- $first = $cells[0];
- $last = $cells[1];
+ // loop through all Excel merged cells
+ foreach ($sheet->getMergeCells() as $cells) {
+ list($cells,) = PHPExcel_Cell::splitRange($cells);
+ $first = $cells[0];
+ $last = $cells[1];
- list($fc, $fr) = PHPExcel_Cell::coordinateFromString($first);
- $fc = PHPExcel_Cell::columnIndexFromString($fc) - 1;
+ list($fc, $fr) = PHPExcel_Cell::coordinateFromString($first);
+ $fc = PHPExcel_Cell::columnIndexFromString($fc) - 1;
- list($lc, $lr) = PHPExcel_Cell::coordinateFromString($last);
- $lc = PHPExcel_Cell::columnIndexFromString($lc) - 1;
+ list($lc, $lr) = PHPExcel_Cell::coordinateFromString($last);
+ $lc = PHPExcel_Cell::columnIndexFromString($lc) - 1;
- // loop through the individual cells in the individual merge
- $r = $fr - 1;
- while($r++ < $lr) {
- // also, flag this row as a HTML row that is candidate to be omitted
- $candidateSpannedRow[$r] = $r;
+ // loop through the individual cells in the individual merge
+ $r = $fr - 1;
+ while ($r++ < $lr) {
+ // also, flag this row as a HTML row that is candidate to be omitted
+ $candidateSpannedRow[$r] = $r;
- $c = $fc - 1;
- while($c++ < $lc) {
- if ( !($c == $fc && $r == $fr) ) {
- // not the upper-left cell (should not be written in HTML)
- $this->_isSpannedCell[$sheetIndex][$r][$c] = array(
- 'baseCell' => array($fr, $fc),
- );
- } else {
- // upper-left is the base cell that should hold the colspan/rowspan attribute
- $this->_isBaseCell[$sheetIndex][$r][$c] = array(
- 'xlrowspan' => $lr - $fr + 1, // Excel rowspan
- 'rowspan' => $lr - $fr + 1, // HTML rowspan, value may change
- 'xlcolspan' => $lc - $fc + 1, // Excel colspan
- 'colspan' => $lc - $fc + 1, // HTML colspan, value may change
- );
- }
- }
- }
- }
+ $c = $fc - 1;
+ while ($c++ < $lc) {
+ if (!($c == $fc && $r == $fr)) {
+ // not the upper-left cell (should not be written in HTML)
+ $this->isSpannedCell[$sheetIndex][$r][$c] = array(
+ 'baseCell' => array($fr, $fc),
+ );
+ } else {
+ // upper-left is the base cell that should hold the colspan/rowspan attribute
+ $this->isBaseCell[$sheetIndex][$r][$c] = array(
+ 'xlrowspan' => $lr - $fr + 1, // Excel rowspan
+ 'rowspan' => $lr - $fr + 1, // HTML rowspan, value may change
+ 'xlcolspan' => $lc - $fc + 1, // Excel colspan
+ 'colspan' => $lc - $fc + 1, // HTML colspan, value may change
+ );
+ }
+ }
+ }
+ }
- // Identify which rows should be omitted in HTML. These are the rows where all the cells
- // participate in a merge and the where base cells are somewhere above.
- $countColumns = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn());
- foreach ($candidateSpannedRow as $rowIndex) {
- if (isset($this->_isSpannedCell[$sheetIndex][$rowIndex])) {
- if (count($this->_isSpannedCell[$sheetIndex][$rowIndex]) == $countColumns) {
- $this->_isSpannedRow[$sheetIndex][$rowIndex] = $rowIndex;
- };
- }
- }
+ // Identify which rows should be omitted in HTML. These are the rows where all the cells
+ // participate in a merge and the where base cells are somewhere above.
+ $countColumns = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn());
+ foreach ($candidateSpannedRow as $rowIndex) {
+ if (isset($this->isSpannedCell[$sheetIndex][$rowIndex])) {
+ if (count($this->isSpannedCell[$sheetIndex][$rowIndex]) == $countColumns) {
+ $this->isSpannedRow[$sheetIndex][$rowIndex] = $rowIndex;
+ };
+ }
+ }
- // For each of the omitted rows we found above, the affected rowspans should be subtracted by 1
- if ( isset($this->_isSpannedRow[$sheetIndex]) ) {
- foreach ($this->_isSpannedRow[$sheetIndex] as $rowIndex) {
- $adjustedBaseCells = array();
- $c = -1;
- $e = $countColumns - 1;
- while($c++ < $e) {
- $baseCell = $this->_isSpannedCell[$sheetIndex][$rowIndex][$c]['baseCell'];
+ // For each of the omitted rows we found above, the affected rowspans should be subtracted by 1
+ if (isset($this->isSpannedRow[$sheetIndex])) {
+ foreach ($this->isSpannedRow[$sheetIndex] as $rowIndex) {
+ $adjustedBaseCells = array();
+ $c = -1;
+ $e = $countColumns - 1;
+ while ($c++ < $e) {
+ $baseCell = $this->isSpannedCell[$sheetIndex][$rowIndex][$c]['baseCell'];
- if ( !in_array($baseCell, $adjustedBaseCells) ) {
- // subtract rowspan by 1
- --$this->_isBaseCell[$sheetIndex][ $baseCell[0] ][ $baseCell[1] ]['rowspan'];
- $adjustedBaseCells[] = $baseCell;
- }
- }
- }
- }
+ if (!in_array($baseCell, $adjustedBaseCells)) {
+ // subtract rowspan by 1
+ --$this->isBaseCell[$sheetIndex][ $baseCell[0] ][ $baseCell[1] ]['rowspan'];
+ $adjustedBaseCells[] = $baseCell;
+ }
+ }
+ }
+ }
- // TODO: Same for columns
- }
+ // TODO: Same for columns
+ }
- // We have calculated the spans
- $this->_spansAreCalculated = true;
- }
+ // We have calculated the spans
+ $this->spansAreCalculated = true;
+ }
- private function _setMargins(PHPExcel_Worksheet $pSheet) {
- $htmlPage = '@page { ';
- $htmlBody = 'body { ';
+ private function setMargins(PHPExcel_Worksheet $pSheet)
+ {
+ $htmlPage = '@page { ';
+ $htmlBody = 'body { ';
- $left = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()) . 'in; ';
- $htmlPage .= 'left-margin: ' . $left;
- $htmlBody .= 'left-margin: ' . $left;
- $right = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()) . 'in; ';
- $htmlPage .= 'right-margin: ' . $right;
- $htmlBody .= 'right-margin: ' . $right;
- $top = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()) . 'in; ';
- $htmlPage .= 'top-margin: ' . $top;
- $htmlBody .= 'top-margin: ' . $top;
- $bottom = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()) . 'in; ';
- $htmlPage .= 'bottom-margin: ' . $bottom;
- $htmlBody .= 'bottom-margin: ' . $bottom;
+ $left = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()) . 'in; ';
+ $htmlPage .= 'margin-left: ' . $left;
+ $htmlBody .= 'margin-left: ' . $left;
+ $right = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()) . 'in; ';
+ $htmlPage .= 'margin-right: ' . $right;
+ $htmlBody .= 'margin-right: ' . $right;
+ $top = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()) . 'in; ';
+ $htmlPage .= 'margin-top: ' . $top;
+ $htmlBody .= 'margin-top: ' . $top;
+ $bottom = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()) . 'in; ';
+ $htmlPage .= 'margin-bottom: ' . $bottom;
+ $htmlBody .= 'margin-bottom: ' . $bottom;
- $htmlPage .= "}\n";
- $htmlBody .= "}\n";
+ $htmlPage .= "}\n";
+ $htmlBody .= "}\n";
- return "\n";
- }
-
+ return "\n";
+ }
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/IWriter.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/IWriter.php
index f0b94b9e..c7cfe740 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/IWriter.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/IWriter.php
@@ -1,8 +1,9 @@
- * @link http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html
- */
class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
{
/**
@@ -42,14 +32,14 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
*
* @var PHPExcel_Writer_OpenDocument_WriterPart[]
*/
- private $_writerParts = array();
+ private $writerParts = array();
/**
* Private PHPExcel
*
* @var PHPExcel
*/
- private $_spreadSheet;
+ private $spreadSheet;
/**
* Create a new PHPExcel_Writer_OpenDocument
@@ -71,7 +61,7 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
);
foreach ($writerPartsArray as $writer => $class) {
- $this->_writerParts[$writer] = new $class($this);
+ $this->writerParts[$writer] = new $class($this);
}
}
@@ -83,8 +73,8 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
*/
public function getWriterPart($pPartName = '')
{
- if ($pPartName != '' && isset($this->_writerParts[strtolower($pPartName)])) {
- return $this->_writerParts[strtolower($pPartName)];
+ if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) {
+ return $this->writerParts[strtolower($pPartName)];
} else {
return null;
}
@@ -96,14 +86,14 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
* @param string $pFilename
* @throws PHPExcel_Writer_Exception
*/
- public function save($pFilename = NULL)
+ public function save($pFilename = null)
{
- if (!$this->_spreadSheet) {
+ if (!$this->spreadSheet) {
throw new PHPExcel_Writer_Exception('PHPExcel object unassigned.');
}
// garbage collect
- $this->_spreadSheet->garbageCollect();
+ $this->spreadSheet->garbageCollect();
// If $pFilename is php://output or php://stdout, make it a temporary file...
$originalFilename = $pFilename;
@@ -114,15 +104,15 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
}
}
- $objZip = $this->_createZip($pFilename);
+ $objZip = $this->createZip($pFilename);
$objZip->addFromString('META-INF/manifest.xml', $this->getWriterPart('meta_inf')->writeManifest());
$objZip->addFromString('Thumbnails/thumbnail.png', $this->getWriterPart('thumbnails')->writeThumbnail());
- $objZip->addFromString('content.xml', $this->getWriterPart('content')->write());
- $objZip->addFromString('meta.xml', $this->getWriterPart('meta')->write());
- $objZip->addFromString('mimetype', $this->getWriterPart('mimetype')->write());
+ $objZip->addFromString('content.xml', $this->getWriterPart('content')->write());
+ $objZip->addFromString('meta.xml', $this->getWriterPart('meta')->write());
+ $objZip->addFromString('mimetype', $this->getWriterPart('mimetype')->write());
$objZip->addFromString('settings.xml', $this->getWriterPart('settings')->write());
- $objZip->addFromString('styles.xml', $this->getWriterPart('styles')->write());
+ $objZip->addFromString('styles.xml', $this->getWriterPart('styles')->write());
// Close file
if ($objZip->close() === false) {
@@ -145,7 +135,7 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
* @throws PHPExcel_Writer_Exception
* @return ZipArchive
*/
- private function _createZip($pFilename)
+ private function createZip($pFilename)
{
// Create new ZIP file and open it for writing
$zipClass = PHPExcel_Settings::getZipClass();
@@ -178,8 +168,8 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
*/
public function getPHPExcel()
{
- if ($this->_spreadSheet !== null) {
- return $this->_spreadSheet;
+ if ($this->spreadSheet !== null) {
+ return $this->spreadSheet;
} else {
throw new PHPExcel_Writer_Exception('No PHPExcel assigned.');
}
@@ -194,7 +184,7 @@ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements P
*/
public function setPHPExcel(PHPExcel $pPHPExcel = null)
{
- $this->_spreadSheet = $pPHPExcel;
+ $this->spreadSheet = $pPHPExcel;
return $this;
}
}
diff --git a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Cell/Comment.php b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Cell/Comment.php
index 88406ed1..f1e98a16 100644
--- a/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Cell/Comment.php
+++ b/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/Cell/Comment.php
@@ -2,7 +2,7 @@
/**
* PHPExcel
*
- * Copyright (c) 2006 - 2014 PHPExcel
+ * Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,8 +20,8 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_OpenDocument
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
@@ -31,7 +31,7 @@
*
* @category PHPExcel
* @package PHPExcel_Writer_OpenDocument
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
+ * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
* @author Alexander Pervakov DAVERAGE
+Returns the average of selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The Average yield of Apple trees over 10\' in height');
+$worksheet->setCellValue('B12', '=DAVERAGE(A4:E10,"Yield",A1:B2)');
+
+$worksheet->setCellValue('A13', 'The Average age of all Apple and Pear trees in the orchard');
+$worksheet->setCellValue('B13', '=DAVERAGE(A4:E10,3,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:B2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DAVERAGE() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DAVERAGE() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DCOUNT.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DCOUNT.php
new file mode 100644
index 00000000..ece2b1f3
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DCOUNT.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+DCOUNT
+Counts the cells that contain numbers in a database.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The Number of Apple trees over 10\' in height');
+$worksheet->setCellValue('B12', '=DCOUNT(A4:E10,"Yield",A1:B2)');
+
+$worksheet->setCellValue('A13', 'The Number of Apple and Pear trees in the orchard');
+$worksheet->setCellValue('B13', '=DCOUNT(A4:E10,3,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:B2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DCOUNT() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DCOUNT() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DGET.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DGET.php
new file mode 100644
index 00000000..51d7dd61
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DGET.php
@@ -0,0 +1,86 @@
+
+
+
+
+
+DGET
+Extracts a single value from a column of a list or database that matches conditions that you specify.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The height of the Apple tree between 10\' and 16\' tall');
+$worksheet->setCellValue('B12', '=DGET(A4:E10,"Height",A1:F2)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+echo 'ALL' . '
';
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMAX.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMAX.php
new file mode 100644
index 00000000..1a2d22a4
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMAX.php
@@ -0,0 +1,89 @@
+
+
+
+
+
+DMAX
+Returns the maximum value from selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The tallest tree in the orchard');
+$worksheet->setCellValue('B12', '=DMAX(A4:E10,"Height",A4:E10)');
+
+$worksheet->setCellValue('A13', 'The Oldest apple tree in the orchard');
+$worksheet->setCellValue('B13', '=DMAX(A4:E10,3,A1:A2)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+echo 'ALL' . '
';
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMIN.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMIN.php
new file mode 100644
index 00000000..d6f23a6a
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DMIN.php
@@ -0,0 +1,89 @@
+
+
+
+
+
+DMIN
+Returns the minimum value from selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The shortest tree in the orchard');
+$worksheet->setCellValue('B12', '=DMIN(A4:E10,"Height",A4:E10)');
+
+$worksheet->setCellValue('A13', 'The Youngest apple tree in the orchard');
+$worksheet->setCellValue('B13', '=DMIN(A4:E10,3,A1:A2)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+echo 'ALL' . '
';
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DMIN() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DMIN() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DPRODUCT.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DPRODUCT.php
new file mode 100644
index 00000000..e5e629ed
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DPRODUCT.php
@@ -0,0 +1,87 @@
+
+
+
+
+
+DPRODUCT
+Multiplies the values in a column of a list or database that match conditions that you specify.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The product of the yields of all Apple trees over 10\' in the orchard');
+$worksheet->setCellValue('B12', '=DPRODUCT(A4:E10,"Yield",A1:B2)');
+
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+echo 'ALL' . '
';
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DMAX() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEV.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEV.php
new file mode 100644
index 00000000..c26df0e9
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEV.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+DSTDEV
+Estimates the standard deviation based on a sample of selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The estimated standard deviation in the yield of Apple and Pear trees');
+$worksheet->setCellValue('B12', '=DSTDEV(A4:E10,"Yield",A1:A3)');
+
+$worksheet->setCellValue('A13', 'The estimated standard deviation in height of Apple and Pear trees');
+$worksheet->setCellValue('B13', '=DSTDEV(A4:E10,2,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DSTDEV() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DSTDEV() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEVP.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEVP.php
new file mode 100644
index 00000000..9b353454
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DSTDEVP.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+DSTDEVP
+Calculates the standard deviation based on the entire population of selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The standard deviation in the yield of Apple and Pear trees');
+$worksheet->setCellValue('B12', '=DSTDEVP(A4:E10,"Yield",A1:A3)');
+
+$worksheet->setCellValue('A13', 'The standard deviation in height of Apple and Pear trees');
+$worksheet->setCellValue('B13', '=DSTDEVP(A4:E10,2,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DSTDEVP() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DSTDEVP() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVAR.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVAR.php
new file mode 100644
index 00000000..e425f776
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVAR.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+DVAR
+Estimates variance based on a sample from selected database entries.
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The estimated variance in the yield of Apple and Pear trees');
+$worksheet->setCellValue('B12', '=DVAR(A4:E10,"Yield",A1:A3)');
+
+$worksheet->setCellValue('A13', 'The estimated variance in height of Apple and Pear trees');
+$worksheet->setCellValue('B13', '=DVAR(A4:E10,2,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DVAR() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DVAR() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVARP.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVARP.php
new file mode 100644
index 00000000..e1cfc8e3
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/Database/DVARP.php
@@ -0,0 +1,90 @@
+
+
+
+
+
+DVARP
+Calculates variance based on the entire population of selected database entries,
+getActiveSheet();
+
+// Add some data
+$database = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit' ),
+ array( 'Apple', 18, 20, 14, 105.00 ),
+ array( 'Pear', 12, 12, 10, 96.00 ),
+ array( 'Cherry', 13, 14, 9, 105.00 ),
+ array( 'Apple', 14, 15, 10, 75.00 ),
+ array( 'Pear', 9, 8, 8, 76.80 ),
+ array( 'Apple', 8, 9, 6, 45.00 ),
+ );
+$criteria = array( array( 'Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height' ),
+ array( '="=Apple"', '>10', NULL, NULL, NULL, '<16' ),
+ array( '="=Pear"', NULL, NULL, NULL, NULL, NULL )
+ );
+
+$worksheet->fromArray( $criteria, NULL, 'A1' );
+$worksheet->fromArray( $database, NULL, 'A4' );
+
+$worksheet->setCellValue('A12', 'The variance in the yield of Apple and Pear trees');
+$worksheet->setCellValue('B12', '=DVARP(A4:E10,"Yield",A1:A3)');
+
+$worksheet->setCellValue('A13', 'The variance in height of Apple and Pear trees');
+$worksheet->setCellValue('B13', '=DVARP(A4:E10,2,A1:A3)');
+
+
+echo '
';
+
+
+echo 'Database
';
+
+$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
+var_dump($databaseData);
+
+
+echo '
';
+
+
+// Test the formulae
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A12")->getValue() .'
';
+echo 'DVARP() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'
';
+
+echo 'Criteria
';
+
+$criteriaData = $worksheet->rangeToArray('A1:A3',null,true,true,true);
+var_dump($criteriaData);
+
+echo $worksheet->getCell("A13")->getValue() .'
';
+echo 'DVARP() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATE.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATE.php
new file mode 100644
index 00000000..979d1f5e
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATE.php
@@ -0,0 +1,83 @@
+
+
+
+
+
+DATE
+Returns the serial number of a particular date.
+getActiveSheet();
+
+// Add some data
+$testDates = array( array(2012,3,26), array(2012,2,29), array(2012,4,1), array(2012,12,25),
+ array(2012,10,31), array(2012,11,5), array(2012,1,1), array(2012,3,17),
+ array(2011,2,29), array(7,5,3), array(2012,13,1), array(2012,11,45),
+ array(2012,0,0), array(2012,1,0), array(2012,0,1),
+ array(2012,-2,2), array(2012,2,-2), array(2012,-2,-2),
+ );
+$testDateCount = count($testDates);
+
+$worksheet->fromArray($testDates,NULL,'A1',true);
+
+for ($row = 1; $row <= $testDateCount; ++$row) {
+ $worksheet->setCellValue('D'.$row, '=DATE(A'.$row.',B'.$row.',C'.$row.')');
+ $worksheet->setCellValue('E'.$row, '=D'.$row);
+}
+$worksheet->getStyle('E1:E'.$testDateCount)
+ ->getNumberFormat()
+ ->setFormatCode('yyyy-mmm-dd');
+
+
+echo '
';
+
+
+// Test the formulae
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATEVALUE.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATEVALUE.php
new file mode 100644
index 00000000..4d5d8c26
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/DATEVALUE.php
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+ Date Value
+ Formula
+ Excel DateStamp
+ Formatted DateStamp
+
+ Year
+ Month
+ Day
+
+ ';
+ echo ' ';
+ }
+ ?>
+' , $worksheet->getCell('A'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('C'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('D'.$row)->getValue() , ' ';
+ echo '' , $worksheet->getCell('D'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('E'.$row)->getFormattedValue() , ' ';
+ echo 'DATEVALUE
+Converts a date in the form of text to a serial number.
+getActiveSheet();
+
+// Add some data
+$testDates = array( '26 March 2012', '29 Feb 2012', 'April 1, 2012', '25/12/2012',
+ '2012-Oct-31', '5th November', 'January 1st', 'April 2012',
+ '17-03', '03-2012', '29 Feb 2011', '03-05-07',
+ '03-MAY-07', '03-13-07',
+ );
+$testDateCount = count($testDates);
+
+for($row = 1; $row <= $testDateCount; ++$row) {
+ $worksheet->setCellValue('A'.$row, $testDates[$row-1]);
+ $worksheet->setCellValue('B'.$row, '=DATEVALUE(A'.$row.')');
+ $worksheet->setCellValue('C'.$row, '=B'.$row);
+}
+
+$worksheet->getStyle('C1:C'.$testDateCount)
+ ->getNumberFormat()
+ ->setFormatCode('yyyy-mmm-dd');
+
+
+echo '
';
+
+
+// Test the formulae
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIME.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIME.php
new file mode 100644
index 00000000..f4522768
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIME.php
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+ ';
+ echo 'Date String
+ Formula
+ Excel DateStamp
+ Formatted DateStamp
+ ' , $worksheet->getCell('A'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('C'.$row)->getFormattedValue() , ' ';
+ echo '';
+ }
+ ?>
+TIME
+Returns the serial number of a particular time.
+getActiveSheet();
+
+// Add some data
+$testDates = array( array(3,15), array(13,15), array(15,15,15), array(3,15,30),
+ array(15,15,15), array(5), array(9,15,0), array(9,15,-1),
+ array(13,-14,-15), array(0,0,-1)
+ );
+$testDateCount = count($testDates);
+
+$worksheet->fromArray($testDates,NULL,'A1',true);
+
+for ($row = 1; $row <= $testDateCount; ++$row) {
+ $worksheet->setCellValue('D'.$row, '=TIME(A'.$row.',B'.$row.',C'.$row.')');
+ $worksheet->setCellValue('E'.$row, '=D'.$row);
+}
+$worksheet->getStyle('E1:E'.$testDateCount)
+ ->getNumberFormat()
+ ->setFormatCode('hh:mm:ss');
+
+
+echo '
';
+
+
+// Test the formulae
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIMEVALUE.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIMEVALUE.php
new file mode 100644
index 00000000..89e0ba49
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/DateTime/TIMEVALUE.php
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+ Date Value
+ Formula
+ Excel TimeStamp
+ Formatted TimeStamp
+
+ Hour
+ Minute
+ Second
+
+ ';
+ echo ' ';
+ }
+ ?>
+' , $worksheet->getCell('A'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('C'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('D'.$row)->getValue() , ' ';
+ echo '' , $worksheet->getCell('D'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('E'.$row)->getFormattedValue() , ' ';
+ echo 'TIMEVALUE
+Converts a time in the form of text to a serial number.
+getActiveSheet();
+
+// Add some data
+$testDates = array( '3:15', '13:15', '15:15:15', '3:15 AM', '3:15 PM', '5PM', '9:15AM', '13:15AM'
+ );
+$testDateCount = count($testDates);
+
+for($row = 1; $row <= $testDateCount; ++$row) {
+ $worksheet->setCellValue('A'.$row, $testDates[$row-1]);
+ $worksheet->setCellValue('B'.$row, '=TIMEVALUE(A'.$row.')');
+ $worksheet->setCellValue('C'.$row, '=B'.$row);
+}
+
+$worksheet->getStyle('C1:C'.$testDateCount)
+ ->getNumberFormat()
+ ->setFormatCode('hh:mm:ss');
+
+
+echo '
';
+
+
+// Test the formulae
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/index.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/index.php
new file mode 100644
index 00000000..f0905530
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Calculations/index.php
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+ ';
+ echo 'Time String
+ Formula
+ Excel TimeStamp
+ Formatted TimeStamp
+ ' , $worksheet->getCell('A'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getValue() , ' ';
+ echo '' , $worksheet->getCell('B'.$row)->getFormattedValue() , ' ';
+ echo '' , $worksheet->getCell('C'.$row)->getFormattedValue() , ' ';
+ echo '';
+ }
+ ?>
+' . pathinfo($exampleType,PATHINFO_BASENAME) . ' Function Examples
';
+
+ $exampleList = glob('./'.$exampleType.'/*.php');
+
+ foreach($exampleList as $exampleFile) {
+ $fileData = file_get_contents($exampleFile);
+
+ $h1Pattern = '#(.*?)
#';
+ $h2Pattern = '#(.*?)
#';
+
+ if (preg_match($h1Pattern, $fileData, $out)) {
+ $h1Text = $out[1];
+ $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : '';
+
+ echo '',$h1Text,'
';
+ if ($h2Text > '') {
+ echo $h2Text,'
';
+ }
+ }
+
+ }
+}
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader01.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader01.php
new file mode 100644
index 00000000..f881af01
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader01.php
@@ -0,0 +1,42 @@
+
+
+
+
+
+PHPExcel Reader Example #01
+Simple File Reader using PHPExcel_IOFactory::load()
+';
+$objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader02.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader02.php
new file mode 100644
index 00000000..51b36e57
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader02.php
@@ -0,0 +1,50 @@
+
+
+
+
+
+PHPExcel Reader Example #02
+Simple File Reader using a Specified Reader
+';
+$objReader = new PHPExcel_Reader_Excel5();
+// $objReader = new PHPExcel_Reader_Excel2007();
+// $objReader = new PHPExcel_Reader_Excel2003XML();
+// $objReader = new PHPExcel_Reader_OOCalc();
+// $objReader = new PHPExcel_Reader_SYLK();
+// $objReader = new PHPExcel_Reader_Gnumeric();
+// $objReader = new PHPExcel_Reader_CSV();
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader03.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader03.php
new file mode 100644
index 00000000..1c571d3c
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader03.php
@@ -0,0 +1,51 @@
+
+
+
+
+
+PHPExcel Reader Example #03
+Simple File Reader using the PHPExcel_IOFactory to Return a Reader
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader04.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader04.php
new file mode 100644
index 00000000..a18c7118
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader04.php
@@ -0,0 +1,47 @@
+
+
+
+
+
+PHPExcel Reader Example #04
+Simple File Reader using the PHPExcel_IOFactory to Identify a Reader to Use
+';
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with the identified reader type
';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader05.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader05.php
new file mode 100644
index 00000000..9bee5b47
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader05.php
@@ -0,0 +1,51 @@
+
+
+
+
+
+PHPExcel Reader Example #05
+Simple File Reader using the "Read Data Only" Option
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Turning Formatting off for Load
';
+$objReader->setReadDataOnly(true);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader06.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader06.php
new file mode 100644
index 00000000..6997a38b
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader06.php
@@ -0,0 +1,54 @@
+
+
+
+
+
+PHPExcel Reader Example #06
+Simple File Reader Loading All WorkSheets
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Loading all WorkSheets
';
+$objReader->setLoadAllSheets();
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo $sheetIndex,' -> ',$loadedSheetName,'
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader07.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader07.php
new file mode 100644
index 00000000..0d86ea74
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader07.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+PHPExcel Reader Example #07
+Simple File Reader Loading a Single Named WorkSheet
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Loading Sheet "',$sheetname,'" only
';
+$objReader->setLoadSheetsOnly($sheetname);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo $sheetIndex,' -> ',$loadedSheetName,'
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader08.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader08.php
new file mode 100644
index 00000000..c6a44601
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader08.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+PHPExcel Reader Example #08
+Simple File Reader Loading Several Named WorkSheets
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Loading Sheet',((count($sheetnames) == 1) ? '' : 's'),' "',implode('" and "',$sheetnames),'" only
';
+$objReader->setLoadSheetsOnly($sheetnames);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo $sheetIndex,' -> ',$loadedSheetName,'
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader09.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader09.php
new file mode 100644
index 00000000..a6cd1442
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader09.php
@@ -0,0 +1,71 @@
+
+
+
+
+
+PHPExcel Reader Example #09
+Simple File Reader Using a Read Filter
+= 1 && $row <= 7) {
+ if (in_array($column,range('A','E'))) {
+ return true;
+ }
+ }
+ return false;
+ }
+}
+
+$filterSubset = new MyReadFilter();
+
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Loading Sheet "',$sheetname,'" only
';
+$objReader->setLoadSheetsOnly($sheetname);
+echo 'Loading Sheet using filter
';
+$objReader->setReadFilter($filterSubset);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader10.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader10.php
new file mode 100644
index 00000000..d608c646
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader10.php
@@ -0,0 +1,82 @@
+
+
+
+
+
+PHPExcel Reader Example #10
+Simple File Reader Using a Configurable Read Filter
+_startRow = $startRow;
+ $this->_endRow = $endRow;
+ $this->_columns = $columns;
+ }
+
+ public function readCell($column, $row, $worksheetName = '') {
+ if ($row >= $this->_startRow && $row <= $this->_endRow) {
+ if (in_array($column,$this->_columns)) {
+ return true;
+ }
+ }
+ return false;
+ }
+}
+
+$filterSubset = new MyReadFilter(9,15,range('G','K'));
+
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+echo 'Loading Sheet "',$sheetname,'" only
';
+$objReader->setLoadSheetsOnly($sheetname);
+echo 'Loading Sheet using configurable filter
';
+$objReader->setReadFilter($filterSubset);
+$objPHPExcel = $objReader->load($inputFileName);
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader11.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader11.php
new file mode 100644
index 00000000..becdb63b
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader11.php
@@ -0,0 +1,91 @@
+
+
+
+
+
+PHPExcel Reader Example #11
+Reading a Workbook in "Chunks" Using a Configurable Read Filter (Version 1)
+_startRow = $startRow;
+ $this->_endRow = $startRow + $chunkSize;
+ }
+
+ public function readCell($column, $row, $worksheetName = '') {
+ // Only read the heading row, and the rows that were configured in the constructor
+ if (($row == 1) || ($row >= $this->_startRow && $row < $this->_endRow)) {
+ return true;
+ }
+ return false;
+ }
+}
+
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+/** Create a new Reader of the type defined in $inputFileType **/
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+
+
+echo '
';
+
+
+/** Define how many rows we want for each "chunk" **/
+$chunkSize = 20;
+
+/** Loop to read our worksheet in "chunk size" blocks **/
+for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
+ echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow+$chunkSize-1),'
';
+ /** Create a new Instance of our Read Filter, passing in the limits on which rows we want to read **/
+ $chunkFilter = new chunkReadFilter($startRow,$chunkSize);
+ /** Tell the Reader that we want to use the new Read Filter that we've just Instantiated **/
+ $objReader->setReadFilter($chunkFilter);
+ /** Load only the rows that match our filter from $inputFileName to a PHPExcel Object **/
+ $objPHPExcel = $objReader->load($inputFileName);
+
+ // Do some processing here
+
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader12.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader12.php
new file mode 100644
index 00000000..1df90cd3
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader12.php
@@ -0,0 +1,94 @@
+
+
+
+
+
+PHPExcel Reader Example #12
+Reading a Workbook in "Chunks" Using a Configurable Read Filter (Version 2)
+_startRow = $startRow;
+ $this->_endRow = $startRow + $chunkSize;
+ }
+
+ public function readCell($column, $row, $worksheetName = '') {
+ // Only read the heading row, and the rows that are configured in $this->_startRow and $this->_endRow
+ if (($row == 1) || ($row >= $this->_startRow && $row < $this->_endRow)) {
+ return true;
+ }
+ return false;
+ }
+}
+
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+/** Create a new Reader of the type defined in $inputFileType **/
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+
+
+echo '
';
+
+
+/** Define how many rows we want to read for each "chunk" **/
+$chunkSize = 20;
+/** Create a new Instance of our Read Filter **/
+$chunkFilter = new chunkReadFilter();
+
+/** Tell the Reader that we want to use the Read Filter that we've Instantiated **/
+$objReader->setReadFilter($chunkFilter);
+
+/** Loop to read our worksheet in "chunk size" blocks **/
+for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
+ echo 'Loading WorkSheet using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow+$chunkSize-1),'
';
+ /** Tell the Read Filter, the limits on which rows we want to read this iteration **/
+ $chunkFilter->setRows($startRow,$chunkSize);
+ /** Load only the rows that match our filter from $inputFileName to a PHPExcel Object **/
+ $objPHPExcel = $objReader->load($inputFileName);
+
+ // Do some processing here
+
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader13.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader13.php
new file mode 100644
index 00000000..255501f2
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader13.php
@@ -0,0 +1,60 @@
+
+
+
+
+
+PHPExcel Reader Example #13
+Simple File Reader for Multiple CSV Files
+';
+$objPHPExcel = $objReader->load($inputFileName);
+$objPHPExcel->getActiveSheet()->setTitle(pathinfo($inputFileName,PATHINFO_BASENAME));
+foreach($inputFileNames as $sheet => $inputFileName) {
+ echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' into WorkSheet #',($sheet+2),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+ $objReader->setSheetIndex($sheet+1);
+ $objReader->loadIntoExisting($inputFileName,$objPHPExcel);
+ $objPHPExcel->getActiveSheet()->setTitle(pathinfo($inputFileName,PATHINFO_BASENAME));
+}
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo 'Worksheet #',$sheetIndex,' -> ',$loadedSheetName,'
';
+ $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader14.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader14.php
new file mode 100644
index 00000000..bef1916c
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader14.php
@@ -0,0 +1,105 @@
+
+
+
+
+
+PHPExcel Reader Example #14
+Reading a Large CSV file in "Chunks" to split across multiple Worksheets
+_startRow = $startRow;
+ $this->_endRow = $startRow + $chunkSize;
+ }
+
+ public function readCell($column, $row, $worksheetName = '') {
+ // Only read the heading row, and the rows that are configured in $this->_startRow and $this->_endRow
+ if (($row == 1) || ($row >= $this->_startRow && $row < $this->_endRow)) {
+ return true;
+ }
+ return false;
+ }
+}
+
+
+echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'
';
+/** Create a new Reader of the type defined in $inputFileType **/
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+
+
+echo '
';
+
+
+/** Define how many rows we want to read for each "chunk" **/
+$chunkSize = 100;
+/** Create a new Instance of our Read Filter **/
+$chunkFilter = new chunkReadFilter();
+
+/** Tell the Reader that we want to use the Read Filter that we've Instantiated **/
+/** and that we want to store it in contiguous rows/columns **/
+$objReader->setReadFilter($chunkFilter)
+ ->setContiguous(true);
+
+
+/** Instantiate a new PHPExcel object manually **/
+$objPHPExcel = new PHPExcel();
+
+/** Set a sheet index **/
+$sheet = 0;
+/** Loop to read our worksheet in "chunk size" blocks **/
+/** $startRow is set to 2 initially because we always read the headings in row #1 **/
+for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
+ echo 'Loading WorkSheet #',($sheet+1),' using configurable filter for headings row 1 and for rows ',$startRow,' to ',($startRow+$chunkSize-1),'
';
+ /** Tell the Read Filter, the limits on which rows we want to read this iteration **/
+ $chunkFilter->setRows($startRow,$chunkSize);
+
+ /** Increment the worksheet index pointer for the Reader **/
+ $objReader->setSheetIndex($sheet);
+ /** Load only the rows that match our filter into a new worksheet in the PHPExcel Object **/
+ $objReader->loadIntoExisting($inputFileName,$objPHPExcel);
+ /** Set the worksheet title (to reference the "sheet" of data that we've loaded) **/
+ /** and increment the sheet index as well **/
+ $objPHPExcel->getActiveSheet()->setTitle('Country Data #'.(++$sheet));
+}
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo 'Worksheet #',$sheetIndex,' -> ',$loadedSheetName,'
';
+ $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,false,false,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader15.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader15.php
new file mode 100644
index 00000000..bb68e905
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader15.php
@@ -0,0 +1,71 @@
+
+
+
+
+
+PHPExcel Reader Example #15
+Simple File Reader for Tab-Separated Value File using the Advanced Value Binder
+';
+$objReader->setDelimiter("\t");
+$objPHPExcel = $objReader->load($inputFileName);
+$objPHPExcel->getActiveSheet()->setTitle(pathinfo($inputFileName,PATHINFO_BASENAME));
+
+
+echo '
';
+
+echo $objPHPExcel->getSheetCount(),' worksheet',(($objPHPExcel->getSheetCount() == 1) ? '' : 's'),' loaded
';
+$loadedSheetNames = $objPHPExcel->getSheetNames();
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo 'Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Formatted)
';
+ $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+echo '
';
+
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo 'Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Unformatted)
';
+ $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,false,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+echo '
';
+
+foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) {
+ echo 'Worksheet #',$sheetIndex,' -> ',$loadedSheetName,' (Raw)
';
+ $objPHPExcel->setActiveSheetIndexByName($loadedSheetName);
+ $sheetData = $objPHPExcel->getActiveSheet()->toArray(null,false,false,true);
+ var_dump($sheetData);
+ echo '
';
+}
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader16.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader16.php
new file mode 100644
index 00000000..62d82ea9
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader16.php
@@ -0,0 +1,46 @@
+
+
+
+
+
+PHPExcel Reader Example #16
+Handling Loader Exceptions using Try/Catch
+';
+try {
+ $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
+} catch(PHPExcel_Reader_Exception $e) {
+ die('Error loading file "'.pathinfo($inputFileName,PATHINFO_BASENAME).'": '.$e->getMessage());
+}
+
+
+echo '
';
+
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
+var_dump($sheetData);
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader17.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader17.php
new file mode 100644
index 00000000..1f77c561
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader17.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+PHPExcel Reader Example #17
+Simple File Reader Loading Several Named WorkSheets
+';
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+
+
+/** Read the list of Worksheet Names from the Workbook file **/
+echo 'Read the list of Worksheets in the WorkBook
';
+$worksheetNames = $objReader->listWorksheetNames($inputFileName);
+
+echo 'There are ',count($worksheetNames),' worksheet',((count($worksheetNames) == 1) ? '' : 's'),' in the workbook
';
+foreach($worksheetNames as $worksheetName) {
+ echo $worksheetName,'
';
+}
+
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader18.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader18.php
new file mode 100644
index 00000000..438d8869
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader18.php
@@ -0,0 +1,50 @@
+
+
+
+
+
+PHPExcel Reader Example #18
+Reading list of WorkSheets without loading entire file
+';
+
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+$worksheetNames = $objReader->listWorksheetNames($inputFileName);
+
+echo 'Worksheet Names
';
+echo '';
+foreach ($worksheetNames as $worksheetName) {
+ echo '
';
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader19.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader19.php
new file mode 100644
index 00000000..2f3eaaf2
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/exampleReader19.php
@@ -0,0 +1,53 @@
+
+
+
+
+
+PHPExcel Reader Example #19
+Reading WorkSheet information without loading entire file
+';
+
+$objReader = PHPExcel_IOFactory::createReader($inputFileType);
+$worksheetData = $objReader->listWorksheetInfo($inputFileName);
+
+echo 'Worksheet Information
';
+echo '';
+foreach ($worksheetData as $worksheet) {
+ echo '
';
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.csv b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.csv
new file mode 100644
index 00000000..6344d9f8
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.csv
@@ -0,0 +1,4 @@
+First Name,Last Name,Nationality,Gender,Date of Birth,Time of Birth,Date/Time,PHP Coder,Sanity %Age
+Mark,Baker,British,M,19-Dec-1960,01:30,=E2+F2,TRUE,32%
+Toni,Baker,British,F,24-Nov-1950,20:00,=E3+F3,FALSE,95%
+Rachel,Baker,British,F,7-Dec-1982,00:15,=E4+F4,FALSE,100%
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.tsv b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.tsv
new file mode 100644
index 00000000..35de4763
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.tsv
@@ -0,0 +1,4 @@
+First Name Last Name Nationality Gender Date of Birth Time of Birth Date/Time PHP Coder Sanity %Age
+Mark Baker British M 19-Dec-1960 01:30 =E2+F2 TRUE 32%
+Toni Baker British F 24-Nov-1950 20:00 =E3+F3 FALSE 95%
+Rachel Baker British F 7-Dec-1982 00:15 =E4+F4 FALSE 100%
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.xls b/vendor/phpoffice/phpexcel/Documentation/Examples/Reader/sampleData/example1.xls
new file mode 100644
index 0000000000000000000000000000000000000000..bd9bb110b9a41b0aab816ba9e20682ee5bb43aea
GIT binary patch
literal 22528
zcmeHPd2AfldH-g)%R?l!yhO^f#EePVk|
';
+ echo 'Rows: ', $worksheet['totalRows'], ' Columns: ', $worksheet['totalColumns'], '
';
+ echo 'Cell Range: A1:', $worksheet['lastColumnLetter'], $worksheet['totalRows'];
+ echo 'dlUbLYGH~5+TfcsclE(DU=RRcR>+f|Ys
zvF&ONJ7U|RePzUQ=c}y29V*4H!5u0k6V%Y5QtVjkP$_n-aj&e5l1`OkM@gqjv8!jN
zO0lD)Q>EC|le=rBf4fwQ?cXkyV*9sCrPxu@rBZDFazC#0FFwcwWP4_fO0hk&My1%E
zS))>H&vYv%*Ql4VD?EZl=4mH`_ZjxLUKT?x_5k~P6ZaeBAvh*W{v)=#6uOpO&834O
ziHf--ax3AHV3oqm7dz{e{8LKa!26q&lUO2+dR~9xcmM6jCnnmy@av7Tb<
PHPExcel Reading WorkBook Data Example #01
+Read the WorkBook Properties
+load($inputFileName);
+
+
+echo '
';
+
+/** Read the document's creator property **/
+$creator = $objPHPExcel->getProperties()->getCreator();
+echo 'Document Creator: ',$creator,'
';
+
+/** Read the Date when the workbook was created (as a PHP timestamp value) **/
+$creationDatestamp = $objPHPExcel->getProperties()->getCreated();
+/** Format the date and time using the standard PHP date() function **/
+$creationDate = date('l, d<\s\up>S\s\up> F Y',$creationDatestamp);
+$creationTime = date('g:i A',$creationDatestamp);
+echo 'Created On: ',$creationDate,' at ',$creationTime,'
';
+
+/** Read the name of the last person to modify this workbook **/
+$modifiedBy = $objPHPExcel->getProperties()->getLastModifiedBy();
+echo 'Last Modified By: ',$modifiedBy,'
';
+
+/** Read the Date when the workbook was last modified (as a PHP timestamp value) **/
+$modifiedDatestamp = $objPHPExcel->getProperties()->getModified();
+/** Format the date and time using the standard PHP date() function **/
+$modifiedDate = date('l, d<\s\up>S\s\up> F Y',$modifiedDatestamp);
+$modifiedTime = date('g:i A',$modifiedDatestamp);
+echo 'Last Modified On: ',$modifiedDate,' at ',$modifiedTime,'
';
+
+/** Read the workbook title property **/
+$workbookTitle = $objPHPExcel->getProperties()->getTitle();
+echo 'Title: ',$workbookTitle,'
';
+
+/** Read the workbook description property **/
+$description = $objPHPExcel->getProperties()->getDescription();
+echo 'Description: ',$description,'
';
+
+/** Read the workbook subject property **/
+$subject = $objPHPExcel->getProperties()->getSubject();
+echo 'Subject: ',$subject,'
';
+
+/** Read the workbook keywords property **/
+$keywords = $objPHPExcel->getProperties()->getKeywords();
+echo 'Keywords: ',$keywords,'
';
+
+/** Read the workbook category property **/
+$category = $objPHPExcel->getProperties()->getCategory();
+echo 'Category: ',$category,'
';
+
+/** Read the workbook company property **/
+$company = $objPHPExcel->getProperties()->getCompany();
+echo 'Company: ',$company,'
';
+
+/** Read the workbook manager property **/
+$manager = $objPHPExcel->getProperties()->getManager();
+echo 'Manager: ',$manager,'
';
+
+
+?>
+
+
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader02.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader02.php
new file mode 100644
index 00000000..b8c359d3
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader02.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+PHPExcel Reading WorkBook Data Example #02
+Read a list of Custom Properties for a WorkBook
+load($inputFileName);
+
+
+echo '
';
+
+/** Read an array list of any custom properties for this document **/
+$customPropertyList = $objPHPExcel->getProperties()->getCustomProperties();
+
+echo 'Custom Property names:
';
+foreach($customPropertyList as $customPropertyName) {
+ echo $customPropertyName,'
';
+}
+
+
+
+?>
+
+
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader03.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader03.php
new file mode 100644
index 00000000..8fb350d4
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader03.php
@@ -0,0 +1,80 @@
+
+
+
+
+
+PHPExcel Reading WorkBook Data Example #03
+Read Custom Property Values for a WorkBook
+load($inputFileName);
+
+
+echo '
';
+
+/** Read an array list of any custom properties for this document **/
+$customPropertyList = $objPHPExcel->getProperties()->getCustomProperties();
+
+echo 'Custom Properties:
';
+/** Loop through the list of custom properties **/
+foreach($customPropertyList as $customPropertyName) {
+ echo '',$customPropertyName,': ';
+ /** Retrieve the property value **/
+ $propertyValue = $objPHPExcel->getProperties()->getCustomPropertyValue($customPropertyName);
+ /** Retrieve the property type **/
+ $propertyType = $objPHPExcel->getProperties()->getCustomPropertyType($customPropertyName);
+
+ /** Manipulate properties as appropriate for display purposes **/
+ switch($propertyType) {
+ case 'i' : // integer
+ $propertyType = 'integer number';
+ break;
+ case 'f' : // float
+ $propertyType = 'floating point number';
+ break;
+ case 's' : // string
+ $propertyType = 'string';
+ break;
+ case 'd' : // date
+ $propertyValue = date('l, d<\s\up>S\s\up> F Y g:i A',$propertyValue);
+ $propertyType = 'date';
+ break;
+ case 'b' : // boolean
+ $propertyValue = ($propertyValue) ? 'TRUE' : 'FALSE';
+ $propertyType = 'boolean';
+ break;
+ }
+
+ echo $propertyValue,' (',$propertyType,')
';
+}
+
+
+
+?>
+
+
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader04.php b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader04.php
new file mode 100644
index 00000000..05ff6374
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/exampleWorkBookReader04.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+PHPExcel Reading WorkBook Data Example #04
+Get a List of the Worksheets in a WorkBook
+load($inputFileName);
+
+
+echo '
';
+
+echo 'Reading the number of Worksheets in the WorkBook
';
+/** Use the PHPExcel object's getSheetCount() method to get a count of the number of WorkSheets in the WorkBook */
+$sheetCount = $objPHPExcel->getSheetCount();
+echo 'There ',(($sheetCount == 1) ? 'is' : 'are'),' ',$sheetCount,' WorkSheet',(($sheetCount == 1) ? '' : 's'),' in the WorkBook
';
+
+echo 'Reading the names of Worksheets in the WorkBook
';
+/** Use the PHPExcel object's getSheetNames() method to get an array listing the names/titles of the WorkSheets in the WorkBook */
+$sheetNames = $objPHPExcel->getSheetNames();
+foreach($sheetNames as $sheetIndex => $sheetName) {
+ echo 'WorkSheet #',$sheetIndex,' is named "',$sheetName,'"
';
+}
+
+
+?>
+
+
diff --git a/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/sampleData/example1.xls b/vendor/phpoffice/phpexcel/Documentation/Examples/Reading WorkBook Data/sampleData/example1.xls
new file mode 100644
index 0000000000000000000000000000000000000000..0db0efdcdb6da3a7a99f5e347f034f78c3c57fce
GIT binary patch
literal 20992
zcmeHP3v3+48UFWtj?WJqJ8>Q)#M#*7ZRcS-;msv+0*P>f1wo`LRk+xDiIt0OE@v=O
zqnJ{vs!$3x4K+y%6ewz;yj!SBn;;>m#L*%OqJ)S-l|~>?5oxOm1YEyw_V#Xf?{>Wu
z(W=s|GrK$g&V2LDKaZXN-?_Z>hx)hfestE`;yTWkGWjf1DU)n+4fhMJc%9&RCc~(8
zU4VOtO2_|^1}Y(.*?)
#';
+ $h2Pattern = '#(.*?)
#';
+
+ if (preg_match($h1Pattern, $fileData, $out)) {
+ $h1Text = $out[1];
+ $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : '';
+
+ echo '',$h1Text,'
';
+ if (($h2Text > '') &&
+ (pathinfo($exampleType,PATHINFO_BASENAME) != 'Calculations')) {
+ echo $h2Text,'
';
+ }
+ }
+
+ }
+}
+
+?>
+
+
\ No newline at end of file
diff --git a/vendor/phpoffice/phpexcel/Documentation/FunctionListByCategory.txt b/vendor/phpoffice/phpexcel/Documentation/FunctionListByCategory.txt
new file mode 100644
index 00000000..b23d9a11
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/FunctionListByCategory.txt
@@ -0,0 +1,377 @@
+CATEGORY_CUBE
+ CUBEKPIMEMBER *** Not yet Implemented
+ CUBEMEMBER *** Not yet Implemented
+ CUBEMEMBERPROPERTY *** Not yet Implemented
+ CUBERANKEDMEMBER *** Not yet Implemented
+ CUBESET *** Not yet Implemented
+ CUBESETCOUNT *** Not yet Implemented
+ CUBEVALUE *** Not yet Implemented
+
+CATEGORY_DATABASE
+ DAVERAGE PHPExcel_Calculation_Database::DAVERAGE
+ DCOUNT PHPExcel_Calculation_Database::DCOUNT
+ DCOUNTA PHPExcel_Calculation_Database::DCOUNTA
+ DGET PHPExcel_Calculation_Database::DGET
+ DMAX PHPExcel_Calculation_Database::DMAX
+ DMIN PHPExcel_Calculation_Database::DMIN
+ DPRODUCT PHPExcel_Calculation_Database::DPRODUCT
+ DSTDEV PHPExcel_Calculation_Database::DSTDEV
+ DSTDEVP PHPExcel_Calculation_Database::DSTDEVP
+ DSUM PHPExcel_Calculation_Database::DSUM
+ DVAR PHPExcel_Calculation_Database::DVAR
+ DVARP PHPExcel_Calculation_Database::DVARP
+
+CATEGORY_DATE_AND_TIME
+ DATE PHPExcel_Calculation_DateTime::DATE
+ DATEDIF PHPExcel_Calculation_DateTime::DATEDIF
+ DATEVALUE PHPExcel_Calculation_DateTime::DATEVALUE
+ DAY PHPExcel_Calculation_DateTime::DAYOFMONTH
+ DAYS360 PHPExcel_Calculation_DateTime::DAYS360
+ EDATE PHPExcel_Calculation_DateTime::EDATE
+ EOMONTH PHPExcel_Calculation_DateTime::EOMONTH
+ HOUR PHPExcel_Calculation_DateTime::HOUROFDAY
+ MINUTE PHPExcel_Calculation_DateTime::MINUTEOFHOUR
+ MONTH PHPExcel_Calculation_DateTime::MONTHOFYEAR
+ NETWORKDAYS PHPExcel_Calculation_DateTime::NETWORKDAYS
+ NOW PHPExcel_Calculation_DateTime::DATETIMENOW
+ SECOND PHPExcel_Calculation_DateTime::SECONDOFMINUTE
+ TIME PHPExcel_Calculation_DateTime::TIME
+ TIMEVALUE PHPExcel_Calculation_DateTime::TIMEVALUE
+ TODAY PHPExcel_Calculation_DateTime::DATENOW
+ WEEKDAY PHPExcel_Calculation_DateTime::DAYOFWEEK
+ WEEKNUM PHPExcel_Calculation_DateTime::WEEKOFYEAR
+ WORKDAY PHPExcel_Calculation_DateTime::WORKDAY
+ YEAR PHPExcel_Calculation_DateTime::YEAR
+ YEARFRAC PHPExcel_Calculation_DateTime::YEARFRAC
+
+CATEGORY_ENGINEERING
+ BESSELI PHPExcel_Calculation_Engineering::BESSELI
+ BESSELJ PHPExcel_Calculation_Engineering::BESSELJ
+ BESSELK PHPExcel_Calculation_Engineering::BESSELK
+ BESSELY PHPExcel_Calculation_Engineering::BESSELY
+ BIN2DEC PHPExcel_Calculation_Engineering::BINTODEC
+ BIN2HEX PHPExcel_Calculation_Engineering::BINTOHEX
+ BIN2OCT PHPExcel_Calculation_Engineering::BINTOOCT
+ COMPLEX PHPExcel_Calculation_Engineering::COMPLEX
+ CONVERT PHPExcel_Calculation_Engineering::CONVERTUOM
+ DEC2BIN PHPExcel_Calculation_Engineering::DECTOBIN
+ DEC2HEX PHPExcel_Calculation_Engineering::DECTOHEX
+ DEC2OCT PHPExcel_Calculation_Engineering::DECTOOCT
+ DELTA PHPExcel_Calculation_Engineering::DELTA
+ ERF PHPExcel_Calculation_Engineering::ERF
+ ERFC PHPExcel_Calculation_Engineering::ERFC
+ GESTEP PHPExcel_Calculation_Engineering::GESTEP
+ HEX2BIN PHPExcel_Calculation_Engineering::HEXTOBIN
+ HEX2DEC PHPExcel_Calculation_Engineering::HEXTODEC
+ HEX2OCT PHPExcel_Calculation_Engineering::HEXTOOCT
+ IMABS PHPExcel_Calculation_Engineering::IMABS
+ IMAGINARY PHPExcel_Calculation_Engineering::IMAGINARY
+ IMARGUMENT PHPExcel_Calculation_Engineering::IMARGUMENT
+ IMCONJUGATE PHPExcel_Calculation_Engineering::IMCONJUGATE
+ IMCOS PHPExcel_Calculation_Engineering::IMCOS
+ IMDIV PHPExcel_Calculation_Engineering::IMDIV
+ IMEXP PHPExcel_Calculation_Engineering::IMEXP
+ IMLN PHPExcel_Calculation_Engineering::IMLN
+ IMLOG10 PHPExcel_Calculation_Engineering::IMLOG10
+ IMLOG2 PHPExcel_Calculation_Engineering::IMLOG2
+ IMPOWER PHPExcel_Calculation_Engineering::IMPOWER
+ IMPRODUCT PHPExcel_Calculation_Engineering::IMPRODUCT
+ IMREAL PHPExcel_Calculation_Engineering::IMREAL
+ IMSIN PHPExcel_Calculation_Engineering::IMSIN
+ IMSQRT PHPExcel_Calculation_Engineering::IMSQRT
+ IMSUB PHPExcel_Calculation_Engineering::IMSUB
+ IMSUM PHPExcel_Calculation_Engineering::IMSUM
+ OCT2BIN PHPExcel_Calculation_Engineering::OCTTOBIN
+ OCT2DEC PHPExcel_Calculation_Engineering::OCTTODEC
+ OCT2HEX PHPExcel_Calculation_Engineering::OCTTOHEX
+
+CATEGORY_FINANCIAL
+ ACCRINT PHPExcel_Calculation_Financial::ACCRINT
+ ACCRINTM PHPExcel_Calculation_Financial::ACCRINTM
+ AMORDEGRC PHPExcel_Calculation_Financial::AMORDEGRC
+ AMORLINC PHPExcel_Calculation_Financial::AMORLINC
+ COUPDAYBS PHPExcel_Calculation_Financial::COUPDAYBS
+ COUPDAYS PHPExcel_Calculation_Financial::COUPDAYS
+ COUPDAYSNC PHPExcel_Calculation_Financial::COUPDAYSNC
+ COUPNCD PHPExcel_Calculation_Financial::COUPNCD
+ COUPNUM PHPExcel_Calculation_Financial::COUPNUM
+ COUPPCD PHPExcel_Calculation_Financial::COUPPCD
+ CUMIPMT PHPExcel_Calculation_Financial::CUMIPMT
+ CUMPRINC PHPExcel_Calculation_Financial::CUMPRINC
+ DB PHPExcel_Calculation_Financial::DB
+ DDB PHPExcel_Calculation_Financial::DDB
+ DISC PHPExcel_Calculation_Financial::DISC
+ DOLLARDE PHPExcel_Calculation_Financial::DOLLARDE
+ DOLLARFR PHPExcel_Calculation_Financial::DOLLARFR
+ DURATION *** Not yet Implemented
+ EFFECT PHPExcel_Calculation_Financial::EFFECT
+ FV PHPExcel_Calculation_Financial::FV
+ FVSCHEDULE PHPExcel_Calculation_Financial::FVSCHEDULE
+ INTRATE PHPExcel_Calculation_Financial::INTRATE
+ IPMT PHPExcel_Calculation_Financial::IPMT
+ IRR PHPExcel_Calculation_Financial::IRR
+ ISPMT PHPExcel_Calculation_Financial::ISPMT
+ MDURATION *** Not yet Implemented
+ MIRR PHPExcel_Calculation_Financial::MIRR
+ NOMINAL PHPExcel_Calculation_Financial::NOMINAL
+ NPER PHPExcel_Calculation_Financial::NPER
+ NPV PHPExcel_Calculation_Financial::NPV
+ ODDFPRICE *** Not yet Implemented
+ ODDFYIELD *** Not yet Implemented
+ ODDLPRICE *** Not yet Implemented
+ ODDLYIELD *** Not yet Implemented
+ PMT PHPExcel_Calculation_Financial::PMT
+ PPMT PHPExcel_Calculation_Financial::PPMT
+ PRICE PHPExcel_Calculation_Financial::PRICE
+ PRICEDISC PHPExcel_Calculation_Financial::PRICEDISC
+ PRICEMAT PHPExcel_Calculation_Financial::PRICEMAT
+ PV PHPExcel_Calculation_Financial::PV
+ RATE PHPExcel_Calculation_Financial::RATE
+ RECEIVED PHPExcel_Calculation_Financial::RECEIVED
+ SLN PHPExcel_Calculation_Financial::SLN
+ SYD PHPExcel_Calculation_Financial::SYD
+ TBILLEQ PHPExcel_Calculation_Financial::TBILLEQ
+ TBILLPRICE PHPExcel_Calculation_Financial::TBILLPRICE
+ TBILLYIELD PHPExcel_Calculation_Financial::TBILLYIELD
+ USDOLLAR *** Not yet Implemented
+ VDB *** Not yet Implemented
+ XIRR PHPExcel_Calculation_Financial::XIRR
+ XNPV PHPExcel_Calculation_Financial::XNPV
+ YIELD *** Not yet Implemented
+ YIELDDISC PHPExcel_Calculation_Financial::YIELDDISC
+ YIELDMAT PHPExcel_Calculation_Financial::YIELDMAT
+
+CATEGORY_INFORMATION
+ CELL *** Not yet Implemented
+ ERROR.TYPE PHPExcel_Calculation_Functions::ERROR_TYPE
+ INFO *** Not yet Implemented
+ ISBLANK PHPExcel_Calculation_Functions::IS_BLANK
+ ISERR PHPExcel_Calculation_Functions::IS_ERR
+ ISERROR PHPExcel_Calculation_Functions::IS_ERROR
+ ISEVEN PHPExcel_Calculation_Functions::IS_EVEN
+ ISLOGICAL PHPExcel_Calculation_Functions::IS_LOGICAL
+ ISNA PHPExcel_Calculation_Functions::IS_NA
+ ISNONTEXT PHPExcel_Calculation_Functions::IS_NONTEXT
+ ISNUMBER PHPExcel_Calculation_Functions::IS_NUMBER
+ ISODD PHPExcel_Calculation_Functions::IS_ODD
+ ISREF *** Not yet Implemented
+ ISTEXT PHPExcel_Calculation_Functions::IS_TEXT
+ N PHPExcel_Calculation_Functions::N
+ NA PHPExcel_Calculation_Functions::NA
+ TYPE PHPExcel_Calculation_Functions::TYPE
+ VERSION PHPExcel_Calculation_Functions::VERSION
+
+CATEGORY_LOGICAL
+ AND PHPExcel_Calculation_Logical::LOGICAL_AND
+ FALSE PHPExcel_Calculation_Logical::FALSE
+ IF PHPExcel_Calculation_Logical::STATEMENT_IF
+ IFERROR PHPExcel_Calculation_Logical::IFERROR
+ NOT PHPExcel_Calculation_Logical::NOT
+ OR PHPExcel_Calculation_Logical::LOGICAL_OR
+ TRUE PHPExcel_Calculation_Logical::TRUE
+
+CATEGORY_LOOKUP_AND_REFERENCE
+ ADDRESS PHPExcel_Calculation_LookupRef::CELL_ADDRESS
+ AREAS *** Not yet Implemented
+ CHOOSE PHPExcel_Calculation_LookupRef::CHOOSE
+ COLUMN PHPExcel_Calculation_LookupRef::COLUMN
+ COLUMNS PHPExcel_Calculation_LookupRef::COLUMNS
+ GETPIVOTDATA *** Not yet Implemented
+ HLOOKUP PHPExcel_Calculation_LookupRef::HLOOKUP
+ HYPERLINK PHPExcel_Calculation_LookupRef::HYPERLINK
+ INDEX PHPExcel_Calculation_LookupRef::INDEX
+ INDIRECT PHPExcel_Calculation_LookupRef::INDIRECT
+ LOOKUP PHPExcel_Calculation_LookupRef::LOOKUP
+ MATCH PHPExcel_Calculation_LookupRef::MATCH
+ OFFSET PHPExcel_Calculation_LookupRef::OFFSET
+ ROW PHPExcel_Calculation_LookupRef::ROW
+ ROWS PHPExcel_Calculation_LookupRef::ROWS
+ RTD *** Not yet Implemented
+ TRANSPOSE PHPExcel_Calculation_LookupRef::TRANSPOSE
+ VLOOKUP PHPExcel_Calculation_LookupRef::VLOOKUP
+
+CATEGORY_MATH_AND_TRIG
+ ABS abs
+ ACOS acos
+ ACOSH acosh
+ ASIN asin
+ ASINH asinh
+ ATAN atan
+ ATAN2 PHPExcel_Calculation_MathTrig::REVERSE_ATAN2
+ ATANH atanh
+ CEILING PHPExcel_Calculation_MathTrig::CEILING
+ COMBIN PHPExcel_Calculation_MathTrig::COMBIN
+ COS cos
+ COSH cosh
+ DEGREES rad2deg
+ EVEN PHPExcel_Calculation_MathTrig::EVEN
+ EXP exp
+ FACT PHPExcel_Calculation_MathTrig::FACT
+ FACTDOUBLE PHPExcel_Calculation_MathTrig::FACTDOUBLE
+ FLOOR PHPExcel_Calculation_MathTrig::FLOOR
+ GCD PHPExcel_Calculation_MathTrig::GCD
+ INT PHPExcel_Calculation_MathTrig::INT
+ LCM PHPExcel_Calculation_MathTrig::LCM
+ LN log
+ LOG PHPExcel_Calculation_MathTrig::LOG_BASE
+ LOG10 log10
+ MDETERM PHPExcel_Calculation_MathTrig::MDETERM
+ MINVERSE PHPExcel_Calculation_MathTrig::MINVERSE
+ MMULT PHPExcel_Calculation_MathTrig::MMULT
+ MOD PHPExcel_Calculation_MathTrig::MOD
+ MROUND PHPExcel_Calculation_MathTrig::MROUND
+ MULTINOMIAL PHPExcel_Calculation_MathTrig::MULTINOMIAL
+ ODD PHPExcel_Calculation_MathTrig::ODD
+ PI pi
+ POWER PHPExcel_Calculation_MathTrig::POWER
+ PRODUCT PHPExcel_Calculation_MathTrig::PRODUCT
+ QUOTIENT PHPExcel_Calculation_MathTrig::QUOTIENT
+ RADIANS deg2rad
+ RAND PHPExcel_Calculation_MathTrig::RAND
+ RANDBETWEEN PHPExcel_Calculation_MathTrig::RAND
+ ROMAN PHPExcel_Calculation_MathTrig::ROMAN
+ ROUND round
+ ROUNDDOWN PHPExcel_Calculation_MathTrig::ROUNDDOWN
+ ROUNDUP PHPExcel_Calculation_MathTrig::ROUNDUP
+ SERIESSUM PHPExcel_Calculation_MathTrig::SERIESSUM
+ SIGN PHPExcel_Calculation_MathTrig::SIGN
+ SIN sin
+ SINH sinh
+ SQRT sqrt
+ SQRTPI PHPExcel_Calculation_MathTrig::SQRTPI
+ SUBTOTAL PHPExcel_Calculation_MathTrig::SUBTOTAL
+ SUM PHPExcel_Calculation_MathTrig::SUM
+ SUMIF PHPExcel_Calculation_MathTrig::SUMIF
+ SUMIFS *** Not yet Implemented
+ SUMPRODUCT PHPExcel_Calculation_MathTrig::SUMPRODUCT
+ SUMSQ PHPExcel_Calculation_MathTrig::SUMSQ
+ SUMX2MY2 PHPExcel_Calculation_MathTrig::SUMX2MY2
+ SUMX2PY2 PHPExcel_Calculation_MathTrig::SUMX2PY2
+ SUMXMY2 PHPExcel_Calculation_MathTrig::SUMXMY2
+ TAN tan
+ TANH tanh
+ TRUNC PHPExcel_Calculation_MathTrig::TRUNC
+
+CATEGORY_STATISTICAL
+ AVEDEV PHPExcel_Calculation_Statistical::AVEDEV
+ AVERAGE PHPExcel_Calculation_Statistical::AVERAGE
+ AVERAGEA PHPExcel_Calculation_Statistical::AVERAGEA
+ AVERAGEIF PHPExcel_Calculation_Statistical::AVERAGEIF
+ AVERAGEIFS *** Not yet Implemented
+ BETADIST PHPExcel_Calculation_Statistical::BETADIST
+ BETAINV PHPExcel_Calculation_Statistical::BETAINV
+ BINOMDIST PHPExcel_Calculation_Statistical::BINOMDIST
+ CHIDIST PHPExcel_Calculation_Statistical::CHIDIST
+ CHIINV PHPExcel_Calculation_Statistical::CHIINV
+ CHITEST *** Not yet Implemented
+ CONFIDENCE PHPExcel_Calculation_Statistical::CONFIDENCE
+ CORREL PHPExcel_Calculation_Statistical::CORREL
+ COUNT PHPExcel_Calculation_Statistical::COUNT
+ COUNTA PHPExcel_Calculation_Statistical::COUNTA
+ COUNTBLANK PHPExcel_Calculation_Statistical::COUNTBLANK
+ COUNTIF PHPExcel_Calculation_Statistical::COUNTIF
+ COUNTIFS *** Not yet Implemented
+ COVAR PHPExcel_Calculation_Statistical::COVAR
+ CRITBINOM PHPExcel_Calculation_Statistical::CRITBINOM
+ DEVSQ PHPExcel_Calculation_Statistical::DEVSQ
+ EXPONDIST PHPExcel_Calculation_Statistical::EXPONDIST
+ FDIST *** Not yet Implemented
+ FINV *** Not yet Implemented
+ FISHER PHPExcel_Calculation_Statistical::FISHER
+ FISHERINV PHPExcel_Calculation_Statistical::FISHERINV
+ FORECAST PHPExcel_Calculation_Statistical::FORECAST
+ FREQUENCY *** Not yet Implemented
+ FTEST *** Not yet Implemented
+ GAMMADIST PHPExcel_Calculation_Statistical::GAMMADIST
+ GAMMAINV PHPExcel_Calculation_Statistical::GAMMAINV
+ GAMMALN PHPExcel_Calculation_Statistical::GAMMALN
+ GEOMEAN PHPExcel_Calculation_Statistical::GEOMEAN
+ GROWTH PHPExcel_Calculation_Statistical::GROWTH
+ HARMEAN PHPExcel_Calculation_Statistical::HARMEAN
+ HYPGEOMDIST PHPExcel_Calculation_Statistical::HYPGEOMDIST
+ INTERCEPT PHPExcel_Calculation_Statistical::INTERCEPT
+ KURT PHPExcel_Calculation_Statistical::KURT
+ LARGE PHPExcel_Calculation_Statistical::LARGE
+ LINEST PHPExcel_Calculation_Statistical::LINEST
+ LOGEST PHPExcel_Calculation_Statistical::LOGEST
+ LOGINV PHPExcel_Calculation_Statistical::LOGINV
+ LOGNORMDIST PHPExcel_Calculation_Statistical::LOGNORMDIST
+ MAX PHPExcel_Calculation_Statistical::MAX
+ MAXA PHPExcel_Calculation_Statistical::MAXA
+ MAXIF PHPExcel_Calculation_Statistical::MAXIF
+ MEDIAN PHPExcel_Calculation_Statistical::MEDIAN
+ MEDIANIF *** Not yet Implemented
+ MIN PHPExcel_Calculation_Statistical::MIN
+ MINA PHPExcel_Calculation_Statistical::MINA
+ MINIF PHPExcel_Calculation_Statistical::MINIF
+ MODE PHPExcel_Calculation_Statistical::MODE
+ NEGBINOMDIST PHPExcel_Calculation_Statistical::NEGBINOMDIST
+ NORMDIST PHPExcel_Calculation_Statistical::NORMDIST
+ NORMINV PHPExcel_Calculation_Statistical::NORMINV
+ NORMSDIST PHPExcel_Calculation_Statistical::NORMSDIST
+ NORMSINV PHPExcel_Calculation_Statistical::NORMSINV
+ PEARSON PHPExcel_Calculation_Statistical::CORREL
+ PERCENTILE PHPExcel_Calculation_Statistical::PERCENTILE
+ PERCENTRANK PHPExcel_Calculation_Statistical::PERCENTRANK
+ PERMUT PHPExcel_Calculation_Statistical::PERMUT
+ POISSON PHPExcel_Calculation_Statistical::POISSON
+ PROB *** Not yet Implemented
+ QUARTILE PHPExcel_Calculation_Statistical::QUARTILE
+ RANK PHPExcel_Calculation_Statistical::RANK
+ RSQ PHPExcel_Calculation_Statistical::RSQ
+ SKEW PHPExcel_Calculation_Statistical::SKEW
+ SLOPE PHPExcel_Calculation_Statistical::SLOPE
+ SMALL PHPExcel_Calculation_Statistical::SMALL
+ STANDARDIZE PHPExcel_Calculation_Statistical::STANDARDIZE
+ STDEV PHPExcel_Calculation_Statistical::STDEV
+ STDEVA PHPExcel_Calculation_Statistical::STDEVA
+ STDEVP PHPExcel_Calculation_Statistical::STDEVP
+ STDEVPA PHPExcel_Calculation_Statistical::STDEVPA
+ STEYX PHPExcel_Calculation_Statistical::STEYX
+ TDIST PHPExcel_Calculation_Statistical::TDIST
+ TINV PHPExcel_Calculation_Statistical::TINV
+ TREND PHPExcel_Calculation_Statistical::TREND
+ TRIMMEAN PHPExcel_Calculation_Statistical::TRIMMEAN
+ TTEST *** Not yet Implemented
+ VAR PHPExcel_Calculation_Statistical::VARFunc
+ VARA PHPExcel_Calculation_Statistical::VARA
+ VARP PHPExcel_Calculation_Statistical::VARP
+ VARPA PHPExcel_Calculation_Statistical::VARPA
+ WEIBULL PHPExcel_Calculation_Statistical::WEIBULL
+ ZTEST PHPExcel_Calculation_Statistical::ZTEST
+
+CATEGORY_TEXT_AND_DATA
+ ASC *** Not yet Implemented
+ BAHTTEXT *** Not yet Implemented
+ CHAR PHPExcel_Calculation_TextData::CHARACTER
+ CLEAN PHPExcel_Calculation_TextData::TRIMNONPRINTABLE
+ CODE PHPExcel_Calculation_TextData::ASCIICODE
+ CONCATENATE PHPExcel_Calculation_TextData::CONCATENATE
+ DOLLAR PHPExcel_Calculation_TextData::DOLLAR
+ EXACT *** Not yet Implemented
+ FIND PHPExcel_Calculation_TextData::SEARCHSENSITIVE
+ FINDB PHPExcel_Calculation_TextData::SEARCHSENSITIVE
+ FIXED PHPExcel_Calculation_TextData::FIXEDFORMAT
+ JIS *** Not yet Implemented
+ LEFT PHPExcel_Calculation_TextData::LEFT
+ LEFTB PHPExcel_Calculation_TextData::LEFT
+ LEN PHPExcel_Calculation_TextData::STRINGLENGTH
+ LENB PHPExcel_Calculation_TextData::STRINGLENGTH
+ LOWER PHPExcel_Calculation_TextData::LOWERCASE
+ MID PHPExcel_Calculation_TextData::MID
+ MIDB PHPExcel_Calculation_TextData::MID
+ PHONETIC *** Not yet Implemented
+ PROPER PHPExcel_Calculation_TextData::PROPERCASE
+ REPLACE PHPExcel_Calculation_TextData::REPLACE
+ REPLACEB PHPExcel_Calculation_TextData::REPLACE
+ REPT str_repeat
+ RIGHT PHPExcel_Calculation_TextData::RIGHT
+ RIGHTB PHPExcel_Calculation_TextData::RIGHT
+ SEARCH PHPExcel_Calculation_TextData::SEARCHINSENSITIVE
+ SEARCHB PHPExcel_Calculation_TextData::SEARCHINSENSITIVE
+ SUBSTITUTE PHPExcel_Calculation_TextData::SUBSTITUTE
+ T PHPExcel_Calculation_TextData::RETURNSTRING
+ TEXT PHPExcel_Calculation_TextData::TEXTFORMAT
+ TRIM PHPExcel_Calculation_TextData::TRIMSPACES
+ UPPER PHPExcel_Calculation_TextData::UPPERCASE
+ VALUE PHPExcel_Calculation_TextData::VALUE
diff --git a/vendor/phpoffice/phpexcel/Documentation/FunctionListByName.txt b/vendor/phpoffice/phpexcel/Documentation/FunctionListByName.txt
new file mode 100644
index 00000000..45a9daf7
--- /dev/null
+++ b/vendor/phpoffice/phpexcel/Documentation/FunctionListByName.txt
@@ -0,0 +1,381 @@
+ABS CATEGORY_MATH_AND_TRIG abs
+ACCRINT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::ACCRINT
+ACCRINTM CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::ACCRINTM
+ACOS CATEGORY_MATH_AND_TRIG acos
+ACOSH CATEGORY_MATH_AND_TRIG acosh
+ADDRESS CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::CELL_ADDRESS
+AMORDEGRC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::AMORDEGRC
+AMORLINC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::AMORLINC
+AND CATEGORY_LOGICAL PHPExcel_Calculation_Logical::LOGICAL_AND
+AREAS CATEGORY_LOOKUP_AND_REFERENCE *** Not yet Implemented
+ASC CATEGORY_TEXT_AND_DATA *** Not yet Implemented
+ASIN CATEGORY_MATH_AND_TRIG asin
+ASINH CATEGORY_MATH_AND_TRIG asinh
+ATAN CATEGORY_MATH_AND_TRIG atan
+ATAN2 CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::REVERSE_ATAN2
+ATANH CATEGORY_MATH_AND_TRIG atanh
+AVEDEV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::AVEDEV
+AVERAGE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::AVERAGE
+AVERAGEA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::AVERAGEA
+AVERAGEIF CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::AVERAGEIF
+AVERAGEIFS CATEGORY_STATISTICAL *** Not yet Implemented
+
+BAHTTEXT CATEGORY_TEXT_AND_DATA *** Not yet Implemented
+BESSELI CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BESSELI
+BESSELJ CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BESSELJ
+BESSELK CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BESSELK
+BESSELY CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BESSELY
+BETADIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::BETADIST
+BETAINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::BETAINV
+BIN2DEC CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BINTODEC
+BIN2HEX CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BINTOHEX
+BIN2OCT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::BINTOOCT
+BINOMDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::BINOMDIST
+
+CEILING CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::CEILING
+CELL CATEGORY_INFORMATION *** Not yet Implemented
+CHAR CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::CHARACTER
+CHIDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CHIDIST
+CHIINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CHIINV
+CHITEST CATEGORY_STATISTICAL *** Not yet Implemented
+CHOOSE CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::CHOOSE
+CLEAN CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::TRIMNONPRINTABLE
+CODE CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::ASCIICODE
+COLUMN CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::COLUMN
+COLUMNS CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::COLUMNS
+COMBIN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::COMBIN
+COMPLEX CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::COMPLEX
+CONCATENATE CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::CONCATENATE
+CONFIDENCE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CONFIDENCE
+CONVERT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::CONVERTUOM
+CORREL CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CORREL
+COS CATEGORY_MATH_AND_TRIG cos
+COSH CATEGORY_MATH_AND_TRIG cosh
+COUNT CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::COUNT
+COUNTA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::COUNTA
+COUNTBLANK CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::COUNTBLANK
+COUNTIF CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::COUNTIF
+COUNTIFS CATEGORY_STATISTICAL *** Not yet Implemented
+COUPDAYBS CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPDAYBS
+COUPDAYS CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPDAYS
+COUPDAYSNC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPDAYSNC
+COUPNCD CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPNCD
+COUPNUM CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPNUM
+COUPPCD CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::COUPPCD
+COVAR CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::COVAR
+CRITBINOM CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CRITBINOM
+CUBEKPIMEMBER CATEGORY_CUBE *** Not yet Implemented
+CUBEMEMBER CATEGORY_CUBE *** Not yet Implemented
+CUBEMEMBERPROPERTY CATEGORY_CUBE *** Not yet Implemented
+CUBERANKEDMEMBER CATEGORY_CUBE *** Not yet Implemented
+CUBESET CATEGORY_CUBE *** Not yet Implemented
+CUBESETCOUNT CATEGORY_CUBE *** Not yet Implemented
+CUBEVALUE CATEGORY_CUBE *** Not yet Implemented
+CUMIPMT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::CUMIPMT
+CUMPRINC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::CUMPRINC
+
+DATE CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DATE
+DATEDIF CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DATEDIF
+DATEVALUE CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DATEVALUE
+DAVERAGE CATEGORY_DATABASE PHPExcel_Calculation_Database::DAVERAGE
+DAY CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DAYOFMONTH
+DAYS360 CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DAYS360
+DB CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::DB
+DCOUNT CATEGORY_DATABASE PHPExcel_Calculation_Database::DCOUNT
+DCOUNTA CATEGORY_DATABASE PHPExcel_Calculation_Database::DCOUNTA
+DDB CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::DDB
+DEC2BIN CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::DECTOBIN
+DEC2HEX CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::DECTOHEX
+DEC2OCT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::DECTOOCT
+DEGREES CATEGORY_MATH_AND_TRIG rad2deg
+DELTA CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::DELTA
+DEVSQ CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::DEVSQ
+DGET CATEGORY_DATABASE PHPExcel_Calculation_Database::DGET
+DISC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::DISC
+DMAX CATEGORY_DATABASE PHPExcel_Calculation_Database::DMAX
+DMIN CATEGORY_DATABASE PHPExcel_Calculation_Database::DMIN
+DOLLAR CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::DOLLAR
+DOLLARDE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::DOLLARDE
+DOLLARFR CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::DOLLARFR
+DPRODUCT CATEGORY_DATABASE PHPExcel_Calculation_Database::DPRODUCT
+DSTDEV CATEGORY_DATABASE PHPExcel_Calculation_Database::DSTDEV
+DSTDEVP CATEGORY_DATABASE PHPExcel_Calculation_Database::DSTDEVP
+DSUM CATEGORY_DATABASE PHPExcel_Calculation_Database::DSUM
+DURATION CATEGORY_FINANCIAL *** Not yet Implemented
+DVAR CATEGORY_DATABASE PHPExcel_Calculation_Database::DVAR
+DVARP CATEGORY_DATABASE PHPExcel_Calculation_Database::DVARP
+
+EDATE CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::EDATE
+EFFECT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::EFFECT
+EOMONTH CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::EOMONTH
+ERF CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::ERF
+ERFC CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::ERFC
+ERROR.TYPE CATEGORY_INFORMATION PHPExcel_Calculation_Functions::ERROR_TYPE
+EVEN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::EVEN
+EXACT CATEGORY_TEXT_AND_DATA *** Not yet Implemented
+EXP CATEGORY_MATH_AND_TRIG exp
+EXPONDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::EXPONDIST
+
+FACT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::FACT
+FACTDOUBLE CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::FACTDOUBLE
+FALSE CATEGORY_LOGICAL PHPExcel_Calculation_Logical::FALSE
+FDIST CATEGORY_STATISTICAL *** Not yet Implemented
+FIND CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::SEARCHSENSITIVE
+FINDB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::SEARCHSENSITIVE
+FINV CATEGORY_STATISTICAL *** Not yet Implemented
+FISHER CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::FISHER
+FISHERINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::FISHERINV
+FIXED CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::FIXEDFORMAT
+FLOOR CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::FLOOR
+FORECAST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::FORECAST
+FREQUENCY CATEGORY_STATISTICAL *** Not yet Implemented
+FTEST CATEGORY_STATISTICAL *** Not yet Implemented
+FV CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::FV
+FVSCHEDULE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::FVSCHEDULE
+
+GAMMADIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::GAMMADIST
+GAMMAINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::GAMMAINV
+GAMMALN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::GAMMALN
+GCD CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::GCD
+GEOMEAN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::GEOMEAN
+GESTEP CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::GESTEP
+GETPIVOTDATA CATEGORY_LOOKUP_AND_REFERENCE *** Not yet Implemented
+GROWTH CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::GROWTH
+
+HARMEAN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::HARMEAN
+HEX2BIN CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::HEXTOBIN
+HEX2DEC CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::HEXTODEC
+HEX2OCT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::HEXTOOCT
+HLOOKUP CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::HLOOKUP
+HOUR CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::HOUROFDAY
+HYPERLINK CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::HYPERLINK
+HYPGEOMDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::HYPGEOMDIST
+
+IF CATEGORY_LOGICAL PHPExcel_Calculation_Logical::STATEMENT_IF
+IFERROR CATEGORY_LOGICAL PHPExcel_Calculation_Logical::IFERROR
+IMABS CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMABS
+IMAGINARY CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMAGINARY
+IMARGUMENT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMARGUMENT
+IMCONJUGATE CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMCONJUGATE
+IMCOS CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMCOS
+IMDIV CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMDIV
+IMEXP CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMEXP
+IMLN CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMLN
+IMLOG10 CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMLOG10
+IMLOG2 CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMLOG2
+IMPOWER CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMPOWER
+IMPRODUCT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMPRODUCT
+IMREAL CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMREAL
+IMSIN CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMSIN
+IMSQRT CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMSQRT
+IMSUB CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMSUB
+IMSUM CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::IMSUM
+INDEX CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::INDEX
+INDIRECT CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::INDIRECT
+INFO CATEGORY_INFORMATION *** Not yet Implemented
+INT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::INT
+INTERCEPT CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::INTERCEPT
+INTRATE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::INTRATE
+IPMT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::IPMT
+IRR CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::IRR
+ISBLANK CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_BLANK
+ISERR CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_ERR
+ISERROR CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_ERROR
+ISEVEN CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_EVEN
+ISLOGICAL CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_LOGICAL
+ISNA CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_NA
+ISNONTEXT CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_NONTEXT
+ISNUMBER CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_NUMBER
+ISODD CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_ODD
+ISPMT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::ISPMT
+ISREF CATEGORY_INFORMATION *** Not yet Implemented
+ISTEXT CATEGORY_INFORMATION PHPExcel_Calculation_Functions::IS_TEXT
+
+JIS CATEGORY_TEXT_AND_DATA *** Not yet Implemented
+
+KURT CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::KURT
+
+LARGE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::LARGE
+LCM CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::LCM
+LEFT CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::LEFT
+LEFTB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::LEFT
+LEN CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::STRINGLENGTH
+LENB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::STRINGLENGTH
+LINEST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::LINEST
+LN CATEGORY_MATH_AND_TRIG log
+LOG CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::LOG_BASE
+LOG10 CATEGORY_MATH_AND_TRIG log10
+LOGEST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::LOGEST
+LOGINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::LOGINV
+LOGNORMDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::LOGNORMDIST
+LOOKUP CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::LOOKUP
+LOWER CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::LOWERCASE
+
+MATCH CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::MATCH
+MAX CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MAX
+MAXA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MAXA
+MAXIF CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MAXIF
+MDETERM CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MDETERM
+MDURATION CATEGORY_FINANCIAL *** Not yet Implemented
+MEDIAN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MEDIAN
+MEDIANIF CATEGORY_STATISTICAL *** Not yet Implemented
+MID CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::MID
+MIDB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::MID
+MIN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MIN
+MINA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MINA
+MINIF CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MINIF
+MINUTE CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::MINUTEOFHOUR
+MINVERSE CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MINVERSE
+MIRR CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::MIRR
+MMULT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MMULT
+MOD CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MOD
+MODE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::MODE
+MONTH CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::MONTHOFYEAR
+MROUND CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MROUND
+MULTINOMIAL CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::MULTINOMIAL
+
+N CATEGORY_INFORMATION PHPExcel_Calculation_Functions::N
+NA CATEGORY_INFORMATION PHPExcel_Calculation_Functions::NA
+NEGBINOMDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::NEGBINOMDIST
+NETWORKDAYS CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::NETWORKDAYS
+NOMINAL CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::NOMINAL
+NORMDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::NORMDIST
+NORMINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::NORMINV
+NORMSDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::NORMSDIST
+NORMSINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::NORMSINV
+NOT CATEGORY_LOGICAL PHPExcel_Calculation_Logical::NOT
+NOW CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DATETIMENOW
+NPER CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::NPER
+NPV CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::NPV
+
+OCT2BIN CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::OCTTOBIN
+OCT2DEC CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::OCTTODEC
+OCT2HEX CATEGORY_ENGINEERING PHPExcel_Calculation_Engineering::OCTTOHEX
+ODD CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::ODD
+ODDFPRICE CATEGORY_FINANCIAL *** Not yet Implemented
+ODDFYIELD CATEGORY_FINANCIAL *** Not yet Implemented
+ODDLPRICE CATEGORY_FINANCIAL *** Not yet Implemented
+ODDLYIELD CATEGORY_FINANCIAL *** Not yet Implemented
+OFFSET CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::OFFSET
+OR CATEGORY_LOGICAL PHPExcel_Calculation_Logical::LOGICAL_OR
+
+PEARSON CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::CORREL
+PERCENTILE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::PERCENTILE
+PERCENTRANK CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::PERCENTRANK
+PERMUT CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::PERMUT
+PHONETIC CATEGORY_TEXT_AND_DATA *** Not yet Implemented
+PI CATEGORY_MATH_AND_TRIG pi
+PMT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PMT
+POISSON CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::POISSON
+POWER CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::POWER
+PPMT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PPMT
+PRICE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PRICE
+PRICEDISC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PRICEDISC
+PRICEMAT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PRICEMAT
+PROB CATEGORY_STATISTICAL *** Not yet Implemented
+PRODUCT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::PRODUCT
+PROPER CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::PROPERCASE
+PV CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::PV
+
+QUARTILE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::QUARTILE
+QUOTIENT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::QUOTIENT
+
+RADIANS CATEGORY_MATH_AND_TRIG deg2rad
+RAND CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::RAND
+RANDBETWEEN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::RAND
+RANK CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::RANK
+RATE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::RATE
+RECEIVED CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::RECEIVED
+REPLACE CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::REPLACE
+REPLACEB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::REPLACE
+REPT CATEGORY_TEXT_AND_DATA str_repeat
+RIGHT CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::RIGHT
+RIGHTB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::RIGHT
+ROMAN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::ROMAN
+ROUND CATEGORY_MATH_AND_TRIG round
+ROUNDDOWN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::ROUNDDOWN
+ROUNDUP CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::ROUNDUP
+ROW CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::ROW
+ROWS CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::ROWS
+RSQ CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::RSQ
+RTD CATEGORY_LOOKUP_AND_REFERENCE *** Not yet Implemented
+
+SEARCH CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::SEARCHINSENSITIVE
+SEARCHB CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::SEARCHINSENSITIVE
+SECOND CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::SECONDOFMINUTE
+SERIESSUM CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SERIESSUM
+SIGN CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SIGN
+SIN CATEGORY_MATH_AND_TRIG sin
+SINH CATEGORY_MATH_AND_TRIG sinh
+SKEW CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::SKEW
+SLN CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::SLN
+SLOPE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::SLOPE
+SMALL CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::SMALL
+SQRT CATEGORY_MATH_AND_TRIG sqrt
+SQRTPI CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SQRTPI
+STANDARDIZE CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STANDARDIZE
+STDEV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STDEV
+STDEVA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STDEVA
+STDEVP CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STDEVP
+STDEVPA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STDEVPA
+STEYX CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::STEYX
+SUBSTITUTE CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::SUBSTITUTE
+SUBTOTAL CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUBTOTAL
+SUM CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUM
+SUMIF CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMIF
+SUMIFS CATEGORY_MATH_AND_TRIG *** Not yet Implemented
+SUMPRODUCT CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMPRODUCT
+SUMSQ CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMSQ
+SUMX2MY2 CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMX2MY2
+SUMX2PY2 CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMX2PY2
+SUMXMY2 CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::SUMXMY2
+SYD CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::SYD
+
+T CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::RETURNSTRING
+TAN CATEGORY_MATH_AND_TRIG tan
+TANH CATEGORY_MATH_AND_TRIG tanh
+TBILLEQ CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::TBILLEQ
+TBILLPRICE CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::TBILLPRICE
+TBILLYIELD CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::TBILLYIELD
+TDIST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::TDIST
+TEXT CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::TEXTFORMAT
+TIME CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::TIME
+TIMEVALUE CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::TIMEVALUE
+TINV CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::TINV
+TODAY CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DATENOW
+TRANSPOSE CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::TRANSPOSE
+TREND CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::TREND
+TRIM CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::TRIMSPACES
+TRIMMEAN CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::TRIMMEAN
+TRUE CATEGORY_LOGICAL PHPExcel_Calculation_Logical::TRUE
+TRUNC CATEGORY_MATH_AND_TRIG PHPExcel_Calculation_MathTrig::TRUNC
+TTEST CATEGORY_STATISTICAL *** Not yet Implemented
+TYPE CATEGORY_INFORMATION PHPExcel_Calculation_Functions::TYPE
+
+UPPER CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::UPPERCASE
+USDOLLAR CATEGORY_FINANCIAL *** Not yet Implemented
+
+VALUE CATEGORY_TEXT_AND_DATA PHPExcel_Calculation_TextData::VALUE
+VAR CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::VARFunc
+VARA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::VARA
+VARP CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::VARP
+VARPA CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::VARPA
+VDB CATEGORY_FINANCIAL *** Not yet Implemented
+VERSION CATEGORY_INFORMATION PHPExcel_Calculation_Functions::VERSION
+VLOOKUP CATEGORY_LOOKUP_AND_REFERENCE PHPExcel_Calculation_LookupRef::VLOOKUP
+
+WEEKDAY CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::DAYOFWEEK
+WEEKNUM CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::WEEKOFYEAR
+WEIBULL CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::WEIBULL
+WORKDAY CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::WORKDAY
+
+XIRR CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::XIRR
+XNPV CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::XNPV
+
+YEAR CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::YEAR
+YEARFRAC CATEGORY_DATE_AND_TIME PHPExcel_Calculation_DateTime::YEARFRAC
+YIELD CATEGORY_FINANCIAL *** Not yet Implemented
+YIELDDISC CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::YIELDDISC
+YIELDMAT CATEGORY_FINANCIAL PHPExcel_Calculation_Financial::YIELDMAT
+
+ZTEST CATEGORY_STATISTICAL PHPExcel_Calculation_Statistical::ZTEST
diff --git a/vendor/phpoffice/phpexcel/Documentation/Functionality Cross-Reference.xls b/vendor/phpoffice/phpexcel/Documentation/Functionality Cross-Reference.xls
new file mode 100644
index 0000000000000000000000000000000000000000..227fd612f0a99ae0c2b318f36d8ad63b4513ed93
GIT binary patch
literal 38912
zcmeHw3v`^vb>8gawRk^BfTTo`%Qrv~A_-6w^&$w61i2tUf&eH|epFrp3vxvei!2tl
zs8|sk+ovb7lh~9ax0X^naa=o!o5YV=j_c^ry7B2Lt?H=uapLNvO5^yXwN64SZQSJ8
zM!#?7f6SeIVBt7zlH$ktcmKIFb6<1soyR}3c=$Q{|_ZYd@mK^agMfrwM&rjJ>a(yDC+#sZE5EhH=3zn1(LP~ml*p~De
z
cF&OT+?)6T!*Q4^tZnNjB9&tIj)YmFs=)`Fs>Q8Fs{0}Fs@s