How to use Location class

Best Cucumber Common Library code snippet using Location

api-2.json.php

Source:api-2.json.php Github

copy

Full Screen

1<?php2// This file was auto-generated from sdk-root/src/data/s3/2006-03-01/api-2.json3return [ 'version' => '2.0', 'metadata' => [ 'apiVersion' => '2006-03-01', 'checksumFormat' => 'md5', 'endpointPrefix' => 's3', 'globalEndpoint' => 's3.amazonaws.com', 'protocol' => 'rest-xml', 'serviceAbbreviation' => 'Amazon S3', 'serviceFullName' => 'Amazon Simple Storage Service', 'signatureVersion' => 'v4', 'timestampFormat' => 'rfc822', ], 'operations' => [ 'AbortMultipartUpload' => [ 'name' => 'AbortMultipartUpload', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'AbortMultipartUploadRequest', ], 'output' => [ 'shape' => 'AbortMultipartUploadOutput', ], 'errors' => [ [ 'shape' => 'NoSuchUpload', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadAbort.html', ], 'CompleteMultipartUpload' => [ 'name' => 'CompleteMultipartUpload', 'http' => [ 'method' => 'POST', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'CompleteMultipartUploadRequest', ], 'output' => [ 'shape' => 'CompleteMultipartUploadOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html', ], 'CopyObject' => [ 'name' => 'CopyObject', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'CopyObjectRequest', ], 'output' => [ 'shape' => 'CopyObjectOutput', ], 'errors' => [ [ 'shape' => 'ObjectNotInActiveTierError', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectCOPY.html', 'alias' => 'PutObjectCopy', ], 'CreateBucket' => [ 'name' => 'CreateBucket', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}', ], 'input' => [ 'shape' => 'CreateBucketRequest', ], 'output' => [ 'shape' => 'CreateBucketOutput', ], 'errors' => [ [ 'shape' => 'BucketAlreadyExists', ], [ 'shape' => 'BucketAlreadyOwnedByYou', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html', 'alias' => 'PutBucket', ], 'CreateMultipartUpload' => [ 'name' => 'CreateMultipartUpload', 'http' => [ 'method' => 'POST', 'requestUri' => '/{Bucket}/{Key+}?uploads', ], 'input' => [ 'shape' => 'CreateMultipartUploadRequest', ], 'output' => [ 'shape' => 'CreateMultipartUploadOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadInitiate.html', 'alias' => 'InitiateMultipartUpload', ], 'DeleteBucket' => [ 'name' => 'DeleteBucket', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}', ], 'input' => [ 'shape' => 'DeleteBucketRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETE.html', ], 'DeleteBucketCors' => [ 'name' => 'DeleteBucketCors', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?cors', ], 'input' => [ 'shape' => 'DeleteBucketCorsRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEcors.html', ], 'DeleteBucketLifecycle' => [ 'name' => 'DeleteBucketLifecycle', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?lifecycle', ], 'input' => [ 'shape' => 'DeleteBucketLifecycleRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETElifecycle.html', ], 'DeleteBucketPolicy' => [ 'name' => 'DeleteBucketPolicy', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?policy', ], 'input' => [ 'shape' => 'DeleteBucketPolicyRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEpolicy.html', ], 'DeleteBucketReplication' => [ 'name' => 'DeleteBucketReplication', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?replication', ], 'input' => [ 'shape' => 'DeleteBucketReplicationRequest', ], ], 'DeleteBucketTagging' => [ 'name' => 'DeleteBucketTagging', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?tagging', ], 'input' => [ 'shape' => 'DeleteBucketTaggingRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEtagging.html', ], 'DeleteBucketWebsite' => [ 'name' => 'DeleteBucketWebsite', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}?website', ], 'input' => [ 'shape' => 'DeleteBucketWebsiteRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEwebsite.html', ], 'DeleteObject' => [ 'name' => 'DeleteObject', 'http' => [ 'method' => 'DELETE', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'DeleteObjectRequest', ], 'output' => [ 'shape' => 'DeleteObjectOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectDELETE.html', ], 'DeleteObjects' => [ 'name' => 'DeleteObjects', 'http' => [ 'method' => 'POST', 'requestUri' => '/{Bucket}?delete', ], 'input' => [ 'shape' => 'DeleteObjectsRequest', ], 'output' => [ 'shape' => 'DeleteObjectsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html', 'alias' => 'DeleteMultipleObjects', ], 'GetBucketAccelerateConfiguration' => [ 'name' => 'GetBucketAccelerateConfiguration', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?accelerate', ], 'input' => [ 'shape' => 'GetBucketAccelerateConfigurationRequest', ], 'output' => [ 'shape' => 'GetBucketAccelerateConfigurationOutput', ], ], 'GetBucketAcl' => [ 'name' => 'GetBucketAcl', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?acl', ], 'input' => [ 'shape' => 'GetBucketAclRequest', ], 'output' => [ 'shape' => 'GetBucketAclOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETacl.html', ], 'GetBucketCors' => [ 'name' => 'GetBucketCors', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?cors', ], 'input' => [ 'shape' => 'GetBucketCorsRequest', ], 'output' => [ 'shape' => 'GetBucketCorsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETcors.html', ], 'GetBucketLifecycle' => [ 'name' => 'GetBucketLifecycle', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?lifecycle', ], 'input' => [ 'shape' => 'GetBucketLifecycleRequest', ], 'output' => [ 'shape' => 'GetBucketLifecycleOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html', 'deprecated' => true, ], 'GetBucketLifecycleConfiguration' => [ 'name' => 'GetBucketLifecycleConfiguration', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?lifecycle', ], 'input' => [ 'shape' => 'GetBucketLifecycleConfigurationRequest', ], 'output' => [ 'shape' => 'GetBucketLifecycleConfigurationOutput', ], ], 'GetBucketLocation' => [ 'name' => 'GetBucketLocation', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?location', ], 'input' => [ 'shape' => 'GetBucketLocationRequest', ], 'output' => [ 'shape' => 'GetBucketLocationOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlocation.html', ], 'GetBucketLogging' => [ 'name' => 'GetBucketLogging', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?logging', ], 'input' => [ 'shape' => 'GetBucketLoggingRequest', ], 'output' => [ 'shape' => 'GetBucketLoggingOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETlogging.html', ], 'GetBucketNotification' => [ 'name' => 'GetBucketNotification', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?notification', ], 'input' => [ 'shape' => 'GetBucketNotificationConfigurationRequest', ], 'output' => [ 'shape' => 'NotificationConfigurationDeprecated', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETnotification.html', 'deprecated' => true, ], 'GetBucketNotificationConfiguration' => [ 'name' => 'GetBucketNotificationConfiguration', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?notification', ], 'input' => [ 'shape' => 'GetBucketNotificationConfigurationRequest', ], 'output' => [ 'shape' => 'NotificationConfiguration', ], ], 'GetBucketPolicy' => [ 'name' => 'GetBucketPolicy', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?policy', ], 'input' => [ 'shape' => 'GetBucketPolicyRequest', ], 'output' => [ 'shape' => 'GetBucketPolicyOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETpolicy.html', ], 'GetBucketReplication' => [ 'name' => 'GetBucketReplication', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?replication', ], 'input' => [ 'shape' => 'GetBucketReplicationRequest', ], 'output' => [ 'shape' => 'GetBucketReplicationOutput', ], ], 'GetBucketRequestPayment' => [ 'name' => 'GetBucketRequestPayment', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?requestPayment', ], 'input' => [ 'shape' => 'GetBucketRequestPaymentRequest', ], 'output' => [ 'shape' => 'GetBucketRequestPaymentOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTrequestPaymentGET.html', ], 'GetBucketTagging' => [ 'name' => 'GetBucketTagging', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?tagging', ], 'input' => [ 'shape' => 'GetBucketTaggingRequest', ], 'output' => [ 'shape' => 'GetBucketTaggingOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETtagging.html', ], 'GetBucketVersioning' => [ 'name' => 'GetBucketVersioning', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?versioning', ], 'input' => [ 'shape' => 'GetBucketVersioningRequest', ], 'output' => [ 'shape' => 'GetBucketVersioningOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETversioningStatus.html', ], 'GetBucketWebsite' => [ 'name' => 'GetBucketWebsite', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?website', ], 'input' => [ 'shape' => 'GetBucketWebsiteRequest', ], 'output' => [ 'shape' => 'GetBucketWebsiteOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETwebsite.html', ], 'GetObject' => [ 'name' => 'GetObject', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'GetObjectRequest', ], 'output' => [ 'shape' => 'GetObjectOutput', ], 'errors' => [ [ 'shape' => 'NoSuchKey', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGET.html', ], 'GetObjectAcl' => [ 'name' => 'GetObjectAcl', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}/{Key+}?acl', ], 'input' => [ 'shape' => 'GetObjectAclRequest', ], 'output' => [ 'shape' => 'GetObjectAclOutput', ], 'errors' => [ [ 'shape' => 'NoSuchKey', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETacl.html', ], 'GetObjectTorrent' => [ 'name' => 'GetObjectTorrent', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}/{Key+}?torrent', ], 'input' => [ 'shape' => 'GetObjectTorrentRequest', ], 'output' => [ 'shape' => 'GetObjectTorrentOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETtorrent.html', ], 'HeadBucket' => [ 'name' => 'HeadBucket', 'http' => [ 'method' => 'HEAD', 'requestUri' => '/{Bucket}', ], 'input' => [ 'shape' => 'HeadBucketRequest', ], 'errors' => [ [ 'shape' => 'NoSuchBucket', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketHEAD.html', ], 'HeadObject' => [ 'name' => 'HeadObject', 'http' => [ 'method' => 'HEAD', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'HeadObjectRequest', ], 'output' => [ 'shape' => 'HeadObjectOutput', ], 'errors' => [ [ 'shape' => 'NoSuchKey', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectHEAD.html', ], 'ListBuckets' => [ 'name' => 'ListBuckets', 'http' => [ 'method' => 'GET', 'requestUri' => '/', ], 'output' => [ 'shape' => 'ListBucketsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTServiceGET.html', 'alias' => 'GetService', ], 'ListMultipartUploads' => [ 'name' => 'ListMultipartUploads', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?uploads', ], 'input' => [ 'shape' => 'ListMultipartUploadsRequest', ], 'output' => [ 'shape' => 'ListMultipartUploadsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListMPUpload.html', ], 'ListObjectVersions' => [ 'name' => 'ListObjectVersions', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}?versions', ], 'input' => [ 'shape' => 'ListObjectVersionsRequest', ], 'output' => [ 'shape' => 'ListObjectVersionsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETVersion.html', 'alias' => 'GetBucketObjectVersions', ], 'ListObjects' => [ 'name' => 'ListObjects', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}', ], 'input' => [ 'shape' => 'ListObjectsRequest', ], 'output' => [ 'shape' => 'ListObjectsOutput', ], 'errors' => [ [ 'shape' => 'NoSuchBucket', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGET.html', 'alias' => 'GetBucket', ], 'ListParts' => [ 'name' => 'ListParts', 'http' => [ 'method' => 'GET', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'ListPartsRequest', ], 'output' => [ 'shape' => 'ListPartsOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadListParts.html', ], 'PutBucketAccelerateConfiguration' => [ 'name' => 'PutBucketAccelerateConfiguration', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?accelerate', ], 'input' => [ 'shape' => 'PutBucketAccelerateConfigurationRequest', ], ], 'PutBucketAcl' => [ 'name' => 'PutBucketAcl', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?acl', ], 'input' => [ 'shape' => 'PutBucketAclRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTacl.html', ], 'PutBucketCors' => [ 'name' => 'PutBucketCors', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?cors', ], 'input' => [ 'shape' => 'PutBucketCorsRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTcors.html', ], 'PutBucketLifecycle' => [ 'name' => 'PutBucketLifecycle', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?lifecycle', ], 'input' => [ 'shape' => 'PutBucketLifecycleRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html', 'deprecated' => true, ], 'PutBucketLifecycleConfiguration' => [ 'name' => 'PutBucketLifecycleConfiguration', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?lifecycle', ], 'input' => [ 'shape' => 'PutBucketLifecycleConfigurationRequest', ], ], 'PutBucketLogging' => [ 'name' => 'PutBucketLogging', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?logging', ], 'input' => [ 'shape' => 'PutBucketLoggingRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTlogging.html', ], 'PutBucketNotification' => [ 'name' => 'PutBucketNotification', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?notification', ], 'input' => [ 'shape' => 'PutBucketNotificationRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTnotification.html', 'deprecated' => true, ], 'PutBucketNotificationConfiguration' => [ 'name' => 'PutBucketNotificationConfiguration', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?notification', ], 'input' => [ 'shape' => 'PutBucketNotificationConfigurationRequest', ], ], 'PutBucketPolicy' => [ 'name' => 'PutBucketPolicy', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?policy', ], 'input' => [ 'shape' => 'PutBucketPolicyRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTpolicy.html', ], 'PutBucketReplication' => [ 'name' => 'PutBucketReplication', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?replication', ], 'input' => [ 'shape' => 'PutBucketReplicationRequest', ], ], 'PutBucketRequestPayment' => [ 'name' => 'PutBucketRequestPayment', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?requestPayment', ], 'input' => [ 'shape' => 'PutBucketRequestPaymentRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTrequestPaymentPUT.html', ], 'PutBucketTagging' => [ 'name' => 'PutBucketTagging', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?tagging', ], 'input' => [ 'shape' => 'PutBucketTaggingRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTtagging.html', ], 'PutBucketVersioning' => [ 'name' => 'PutBucketVersioning', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?versioning', ], 'input' => [ 'shape' => 'PutBucketVersioningRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html', ], 'PutBucketWebsite' => [ 'name' => 'PutBucketWebsite', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}?website', ], 'input' => [ 'shape' => 'PutBucketWebsiteRequest', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html', ], 'PutObject' => [ 'name' => 'PutObject', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'PutObjectRequest', ], 'output' => [ 'shape' => 'PutObjectOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUT.html', ], 'PutObjectAcl' => [ 'name' => 'PutObjectAcl', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}/{Key+}?acl', ], 'input' => [ 'shape' => 'PutObjectAclRequest', ], 'output' => [ 'shape' => 'PutObjectAclOutput', ], 'errors' => [ [ 'shape' => 'NoSuchKey', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUTacl.html', ], 'RestoreObject' => [ 'name' => 'RestoreObject', 'http' => [ 'method' => 'POST', 'requestUri' => '/{Bucket}/{Key+}?restore', ], 'input' => [ 'shape' => 'RestoreObjectRequest', ], 'output' => [ 'shape' => 'RestoreObjectOutput', ], 'errors' => [ [ 'shape' => 'ObjectAlreadyInActiveTierError', ], ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectRestore.html', 'alias' => 'PostObjectRestore', ], 'UploadPart' => [ 'name' => 'UploadPart', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'UploadPartRequest', ], 'output' => [ 'shape' => 'UploadPartOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadUploadPart.html', ], 'UploadPartCopy' => [ 'name' => 'UploadPartCopy', 'http' => [ 'method' => 'PUT', 'requestUri' => '/{Bucket}/{Key+}', ], 'input' => [ 'shape' => 'UploadPartCopyRequest', ], 'output' => [ 'shape' => 'UploadPartCopyOutput', ], 'documentationUrl' => 'http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html', ], ], 'shapes' => [ 'AbortDate' => [ 'type' => 'timestamp', ], 'AbortIncompleteMultipartUpload' => [ 'type' => 'structure', 'members' => [ 'DaysAfterInitiation' => [ 'shape' => 'DaysAfterInitiation', ], ], ], 'AbortMultipartUploadOutput' => [ 'type' => 'structure', 'members' => [ 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'AbortMultipartUploadRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', 'UploadId', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', 'location' => 'querystring', 'locationName' => 'uploadId', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'AbortRuleId' => [ 'type' => 'string', ], 'AccelerateConfiguration' => [ 'type' => 'structure', 'members' => [ 'Status' => [ 'shape' => 'BucketAccelerateStatus', ], ], ], 'AcceptRanges' => [ 'type' => 'string', ], 'AccessControlPolicy' => [ 'type' => 'structure', 'members' => [ 'Grants' => [ 'shape' => 'Grants', 'locationName' => 'AccessControlList', ], 'Owner' => [ 'shape' => 'Owner', ], ], ], 'AllowedHeader' => [ 'type' => 'string', ], 'AllowedHeaders' => [ 'type' => 'list', 'member' => [ 'shape' => 'AllowedHeader', ], 'flattened' => true, ], 'AllowedMethod' => [ 'type' => 'string', ], 'AllowedMethods' => [ 'type' => 'list', 'member' => [ 'shape' => 'AllowedMethod', ], 'flattened' => true, ], 'AllowedOrigin' => [ 'type' => 'string', ], 'AllowedOrigins' => [ 'type' => 'list', 'member' => [ 'shape' => 'AllowedOrigin', ], 'flattened' => true, ], 'Body' => [ 'type' => 'blob', ], 'Bucket' => [ 'type' => 'structure', 'members' => [ 'Name' => [ 'shape' => 'BucketName', ], 'CreationDate' => [ 'shape' => 'CreationDate', ], ], ], 'BucketAccelerateStatus' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Suspended', ], ], 'BucketAlreadyExists' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'BucketAlreadyOwnedByYou' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'BucketCannedACL' => [ 'type' => 'string', 'enum' => [ 'private', 'public-read', 'public-read-write', 'authenticated-read', ], ], 'BucketLifecycleConfiguration' => [ 'type' => 'structure', 'required' => [ 'Rules', ], 'members' => [ 'Rules' => [ 'shape' => 'LifecycleRules', 'locationName' => 'Rule', ], ], ], 'BucketLocationConstraint' => [ 'type' => 'string', 'enum' => [ 'EU', 'eu-west-1', 'us-west-1', 'us-west-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1', 'cn-north-1', 'eu-central-1', ], ], 'BucketLoggingStatus' => [ 'type' => 'structure', 'members' => [ 'LoggingEnabled' => [ 'shape' => 'LoggingEnabled', ], ], ], 'BucketLogsPermission' => [ 'type' => 'string', 'enum' => [ 'FULL_CONTROL', 'READ', 'WRITE', ], ], 'BucketName' => [ 'type' => 'string', ], 'BucketVersioningStatus' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Suspended', ], ], 'Buckets' => [ 'type' => 'list', 'member' => [ 'shape' => 'Bucket', 'locationName' => 'Bucket', ], ], 'CORSConfiguration' => [ 'type' => 'structure', 'required' => [ 'CORSRules', ], 'members' => [ 'CORSRules' => [ 'shape' => 'CORSRules', 'locationName' => 'CORSRule', ], ], ], 'CORSRule' => [ 'type' => 'structure', 'required' => [ 'AllowedMethods', 'AllowedOrigins', ], 'members' => [ 'AllowedHeaders' => [ 'shape' => 'AllowedHeaders', 'locationName' => 'AllowedHeader', ], 'AllowedMethods' => [ 'shape' => 'AllowedMethods', 'locationName' => 'AllowedMethod', ], 'AllowedOrigins' => [ 'shape' => 'AllowedOrigins', 'locationName' => 'AllowedOrigin', ], 'ExposeHeaders' => [ 'shape' => 'ExposeHeaders', 'locationName' => 'ExposeHeader', ], 'MaxAgeSeconds' => [ 'shape' => 'MaxAgeSeconds', ], ], ], 'CORSRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'CORSRule', ], 'flattened' => true, ], 'CacheControl' => [ 'type' => 'string', ], 'CloudFunction' => [ 'type' => 'string', ], 'CloudFunctionConfiguration' => [ 'type' => 'structure', 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'Event' => [ 'shape' => 'Event', 'deprecated' => true, ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'CloudFunction' => [ 'shape' => 'CloudFunction', ], 'InvocationRole' => [ 'shape' => 'CloudFunctionInvocationRole', ], ], ], 'CloudFunctionInvocationRole' => [ 'type' => 'string', ], 'Code' => [ 'type' => 'string', ], 'CommonPrefix' => [ 'type' => 'structure', 'members' => [ 'Prefix' => [ 'shape' => 'Prefix', ], ], ], 'CommonPrefixList' => [ 'type' => 'list', 'member' => [ 'shape' => 'CommonPrefix', ], 'flattened' => true, ], 'CompleteMultipartUploadOutput' => [ 'type' => 'structure', 'members' => [ 'Location' => [ 'shape' => 'Location', ], 'Bucket' => [ 'shape' => 'BucketName', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'Expiration' => [ 'shape' => 'Expiration', 'location' => 'header', 'locationName' => 'x-amz-expiration', ], 'ETag' => [ 'shape' => 'ETag', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'CompleteMultipartUploadRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', 'UploadId', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'MultipartUpload' => [ 'shape' => 'CompletedMultipartUpload', 'locationName' => 'CompleteMultipartUpload', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'UploadId' => [ 'shape' => 'MultipartUploadId', 'location' => 'querystring', 'locationName' => 'uploadId', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], 'payload' => 'MultipartUpload', ], 'CompletedMultipartUpload' => [ 'type' => 'structure', 'members' => [ 'Parts' => [ 'shape' => 'CompletedPartList', 'locationName' => 'Part', ], ], ], 'CompletedPart' => [ 'type' => 'structure', 'members' => [ 'ETag' => [ 'shape' => 'ETag', ], 'PartNumber' => [ 'shape' => 'PartNumber', ], ], ], 'CompletedPartList' => [ 'type' => 'list', 'member' => [ 'shape' => 'CompletedPart', ], 'flattened' => true, ], 'Condition' => [ 'type' => 'structure', 'members' => [ 'HttpErrorCodeReturnedEquals' => [ 'shape' => 'HttpErrorCodeReturnedEquals', ], 'KeyPrefixEquals' => [ 'shape' => 'KeyPrefixEquals', ], ], ], 'ContentDisposition' => [ 'type' => 'string', ], 'ContentEncoding' => [ 'type' => 'string', ], 'ContentLanguage' => [ 'type' => 'string', ], 'ContentLength' => [ 'type' => 'integer', ], 'ContentMD5' => [ 'type' => 'string', ], 'ContentRange' => [ 'type' => 'string', ], 'ContentType' => [ 'type' => 'string', ], 'CopyObjectOutput' => [ 'type' => 'structure', 'members' => [ 'CopyObjectResult' => [ 'shape' => 'CopyObjectResult', ], 'Expiration' => [ 'shape' => 'Expiration', 'location' => 'header', 'locationName' => 'x-amz-expiration', ], 'CopySourceVersionId' => [ 'shape' => 'CopySourceVersionId', 'location' => 'header', 'locationName' => 'x-amz-copy-source-version-id', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], 'payload' => 'CopyObjectResult', ], 'CopyObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'CopySource', 'Key', ], 'members' => [ 'ACL' => [ 'shape' => 'ObjectCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CacheControl' => [ 'shape' => 'CacheControl', 'location' => 'header', 'locationName' => 'Cache-Control', ], 'ContentDisposition' => [ 'shape' => 'ContentDisposition', 'location' => 'header', 'locationName' => 'Content-Disposition', ], 'ContentEncoding' => [ 'shape' => 'ContentEncoding', 'location' => 'header', 'locationName' => 'Content-Encoding', ], 'ContentLanguage' => [ 'shape' => 'ContentLanguage', 'location' => 'header', 'locationName' => 'Content-Language', ], 'ContentType' => [ 'shape' => 'ContentType', 'location' => 'header', 'locationName' => 'Content-Type', ], 'CopySource' => [ 'shape' => 'CopySource', 'location' => 'header', 'locationName' => 'x-amz-copy-source', ], 'CopySourceIfMatch' => [ 'shape' => 'CopySourceIfMatch', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-match', ], 'CopySourceIfModifiedSince' => [ 'shape' => 'CopySourceIfModifiedSince', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-modified-since', ], 'CopySourceIfNoneMatch' => [ 'shape' => 'CopySourceIfNoneMatch', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-none-match', ], 'CopySourceIfUnmodifiedSince' => [ 'shape' => 'CopySourceIfUnmodifiedSince', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-unmodified-since', ], 'Expires' => [ 'shape' => 'Expires', 'location' => 'header', 'locationName' => 'Expires', ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'Metadata' => [ 'shape' => 'Metadata', 'location' => 'headers', 'locationName' => 'x-amz-meta-', ], 'MetadataDirective' => [ 'shape' => 'MetadataDirective', 'location' => 'header', 'locationName' => 'x-amz-metadata-directive', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'StorageClass' => [ 'shape' => 'StorageClass', 'location' => 'header', 'locationName' => 'x-amz-storage-class', ], 'WebsiteRedirectLocation' => [ 'shape' => 'WebsiteRedirectLocation', 'location' => 'header', 'locationName' => 'x-amz-website-redirect-location', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'CopySourceSSECustomerAlgorithm' => [ 'shape' => 'CopySourceSSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-algorithm', ], 'CopySourceSSECustomerKey' => [ 'shape' => 'CopySourceSSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-key', ], 'CopySourceSSECustomerKeyMD5' => [ 'shape' => 'CopySourceSSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-key-MD5', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'CopyObjectResult' => [ 'type' => 'structure', 'members' => [ 'ETag' => [ 'shape' => 'ETag', ], 'LastModified' => [ 'shape' => 'LastModified', ], ], ], 'CopyPartResult' => [ 'type' => 'structure', 'members' => [ 'ETag' => [ 'shape' => 'ETag', ], 'LastModified' => [ 'shape' => 'LastModified', ], ], ], 'CopySource' => [ 'type' => 'string', 'pattern' => '\\/.+\\/.+', ], 'CopySourceIfMatch' => [ 'type' => 'string', ], 'CopySourceIfModifiedSince' => [ 'type' => 'timestamp', ], 'CopySourceIfNoneMatch' => [ 'type' => 'string', ], 'CopySourceIfUnmodifiedSince' => [ 'type' => 'timestamp', ], 'CopySourceRange' => [ 'type' => 'string', ], 'CopySourceSSECustomerAlgorithm' => [ 'type' => 'string', ], 'CopySourceSSECustomerKey' => [ 'type' => 'string', 'sensitive' => true, ], 'CopySourceSSECustomerKeyMD5' => [ 'type' => 'string', ], 'CopySourceVersionId' => [ 'type' => 'string', ], 'CreateBucketConfiguration' => [ 'type' => 'structure', 'members' => [ 'LocationConstraint' => [ 'shape' => 'BucketLocationConstraint', ], ], ], 'CreateBucketOutput' => [ 'type' => 'structure', 'members' => [ 'Location' => [ 'shape' => 'Location', 'location' => 'header', 'locationName' => 'Location', ], ], ], 'CreateBucketRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'ACL' => [ 'shape' => 'BucketCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CreateBucketConfiguration' => [ 'shape' => 'CreateBucketConfiguration', 'locationName' => 'CreateBucketConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWrite' => [ 'shape' => 'GrantWrite', 'location' => 'header', 'locationName' => 'x-amz-grant-write', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], ], 'payload' => 'CreateBucketConfiguration', ], 'CreateMultipartUploadOutput' => [ 'type' => 'structure', 'members' => [ 'AbortDate' => [ 'shape' => 'AbortDate', 'location' => 'header', 'locationName' => 'x-amz-abort-date', ], 'AbortRuleId' => [ 'shape' => 'AbortRuleId', 'location' => 'header', 'locationName' => 'x-amz-abort-rule-id', ], 'Bucket' => [ 'shape' => 'BucketName', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'CreateMultipartUploadRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'ACL' => [ 'shape' => 'ObjectCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CacheControl' => [ 'shape' => 'CacheControl', 'location' => 'header', 'locationName' => 'Cache-Control', ], 'ContentDisposition' => [ 'shape' => 'ContentDisposition', 'location' => 'header', 'locationName' => 'Content-Disposition', ], 'ContentEncoding' => [ 'shape' => 'ContentEncoding', 'location' => 'header', 'locationName' => 'Content-Encoding', ], 'ContentLanguage' => [ 'shape' => 'ContentLanguage', 'location' => 'header', 'locationName' => 'Content-Language', ], 'ContentType' => [ 'shape' => 'ContentType', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Expires' => [ 'shape' => 'Expires', 'location' => 'header', 'locationName' => 'Expires', ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'Metadata' => [ 'shape' => 'Metadata', 'location' => 'headers', 'locationName' => 'x-amz-meta-', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'StorageClass' => [ 'shape' => 'StorageClass', 'location' => 'header', 'locationName' => 'x-amz-storage-class', ], 'WebsiteRedirectLocation' => [ 'shape' => 'WebsiteRedirectLocation', 'location' => 'header', 'locationName' => 'x-amz-website-redirect-location', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'CreationDate' => [ 'type' => 'timestamp', ], 'Date' => [ 'type' => 'timestamp', 'timestampFormat' => 'iso8601', ], 'Days' => [ 'type' => 'integer', ], 'DaysAfterInitiation' => [ 'type' => 'integer', ], 'Delete' => [ 'type' => 'structure', 'required' => [ 'Objects', ], 'members' => [ 'Objects' => [ 'shape' => 'ObjectIdentifierList', 'locationName' => 'Object', ], 'Quiet' => [ 'shape' => 'Quiet', ], ], ], 'DeleteBucketCorsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketLifecycleRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketPolicyRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketReplicationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketTaggingRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteBucketWebsiteRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'DeleteMarker' => [ 'type' => 'boolean', ], 'DeleteMarkerEntry' => [ 'type' => 'structure', 'members' => [ 'Owner' => [ 'shape' => 'Owner', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', ], 'IsLatest' => [ 'shape' => 'IsLatest', ], 'LastModified' => [ 'shape' => 'LastModified', ], ], ], 'DeleteMarkerVersionId' => [ 'type' => 'string', ], 'DeleteMarkers' => [ 'type' => 'list', 'member' => [ 'shape' => 'DeleteMarkerEntry', ], 'flattened' => true, ], 'DeleteObjectOutput' => [ 'type' => 'structure', 'members' => [ 'DeleteMarker' => [ 'shape' => 'DeleteMarker', 'location' => 'header', 'locationName' => 'x-amz-delete-marker', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'DeleteObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'MFA' => [ 'shape' => 'MFA', 'location' => 'header', 'locationName' => 'x-amz-mfa', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'DeleteObjectsOutput' => [ 'type' => 'structure', 'members' => [ 'Deleted' => [ 'shape' => 'DeletedObjects', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], 'Errors' => [ 'shape' => 'Errors', 'locationName' => 'Error', ], ], ], 'DeleteObjectsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Delete', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Delete' => [ 'shape' => 'Delete', 'locationName' => 'Delete', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'MFA' => [ 'shape' => 'MFA', 'location' => 'header', 'locationName' => 'x-amz-mfa', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], 'payload' => 'Delete', ], 'DeletedObject' => [ 'type' => 'structure', 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', ], 'DeleteMarker' => [ 'shape' => 'DeleteMarker', ], 'DeleteMarkerVersionId' => [ 'shape' => 'DeleteMarkerVersionId', ], ], ], 'DeletedObjects' => [ 'type' => 'list', 'member' => [ 'shape' => 'DeletedObject', ], 'flattened' => true, ], 'Delimiter' => [ 'type' => 'string', ], 'Destination' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', ], 'StorageClass' => [ 'shape' => 'StorageClass', ], ], ], 'DisplayName' => [ 'type' => 'string', ], 'ETag' => [ 'type' => 'string', ], 'EmailAddress' => [ 'type' => 'string', ], 'EncodingType' => [ 'type' => 'string', 'enum' => [ 'url', ], ], 'Error' => [ 'type' => 'structure', 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', ], 'Code' => [ 'shape' => 'Code', ], 'Message' => [ 'shape' => 'Message', ], ], ], 'ErrorDocument' => [ 'type' => 'structure', 'required' => [ 'Key', ], 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], ], ], 'Errors' => [ 'type' => 'list', 'member' => [ 'shape' => 'Error', ], 'flattened' => true, ], 'Event' => [ 'type' => 'string', 'enum' => [ 's3:ReducedRedundancyLostObject', 's3:ObjectCreated:*', 's3:ObjectCreated:Put', 's3:ObjectCreated:Post', 's3:ObjectCreated:Copy', 's3:ObjectCreated:CompleteMultipartUpload', 's3:ObjectRemoved:*', 's3:ObjectRemoved:Delete', 's3:ObjectRemoved:DeleteMarkerCreated', ], ], 'EventList' => [ 'type' => 'list', 'member' => [ 'shape' => 'Event', ], 'flattened' => true, ], 'Expiration' => [ 'type' => 'string', ], 'ExpirationStatus' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Disabled', ], ], 'ExpiredObjectDeleteMarker' => [ 'type' => 'boolean', ], 'Expires' => [ 'type' => 'timestamp', ], 'ExposeHeader' => [ 'type' => 'string', ], 'ExposeHeaders' => [ 'type' => 'list', 'member' => [ 'shape' => 'ExposeHeader', ], 'flattened' => true, ], 'FilterRule' => [ 'type' => 'structure', 'members' => [ 'Name' => [ 'shape' => 'FilterRuleName', ], 'Value' => [ 'shape' => 'FilterRuleValue', ], ], ], 'FilterRuleList' => [ 'type' => 'list', 'member' => [ 'shape' => 'FilterRule', ], 'flattened' => true, ], 'FilterRuleName' => [ 'type' => 'string', 'enum' => [ 'prefix', 'suffix', ], ], 'FilterRuleValue' => [ 'type' => 'string', ], 'GetBucketAccelerateConfigurationOutput' => [ 'type' => 'structure', 'members' => [ 'Status' => [ 'shape' => 'BucketAccelerateStatus', ], ], ], 'GetBucketAccelerateConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketAclOutput' => [ 'type' => 'structure', 'members' => [ 'Owner' => [ 'shape' => 'Owner', ], 'Grants' => [ 'shape' => 'Grants', 'locationName' => 'AccessControlList', ], ], ], 'GetBucketAclRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketCorsOutput' => [ 'type' => 'structure', 'members' => [ 'CORSRules' => [ 'shape' => 'CORSRules', 'locationName' => 'CORSRule', ], ], ], 'GetBucketCorsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketLifecycleConfigurationOutput' => [ 'type' => 'structure', 'members' => [ 'Rules' => [ 'shape' => 'LifecycleRules', 'locationName' => 'Rule', ], ], ], 'GetBucketLifecycleConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketLifecycleOutput' => [ 'type' => 'structure', 'members' => [ 'Rules' => [ 'shape' => 'Rules', 'locationName' => 'Rule', ], ], ], 'GetBucketLifecycleRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketLocationOutput' => [ 'type' => 'structure', 'members' => [ 'LocationConstraint' => [ 'shape' => 'BucketLocationConstraint', ], ], ], 'GetBucketLocationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketLoggingOutput' => [ 'type' => 'structure', 'members' => [ 'LoggingEnabled' => [ 'shape' => 'LoggingEnabled', ], ], ], 'GetBucketLoggingRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketNotificationConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketPolicyOutput' => [ 'type' => 'structure', 'members' => [ 'Policy' => [ 'shape' => 'Policy', ], ], 'payload' => 'Policy', ], 'GetBucketPolicyRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketReplicationOutput' => [ 'type' => 'structure', 'members' => [ 'ReplicationConfiguration' => [ 'shape' => 'ReplicationConfiguration', ], ], 'payload' => 'ReplicationConfiguration', ], 'GetBucketReplicationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketRequestPaymentOutput' => [ 'type' => 'structure', 'members' => [ 'Payer' => [ 'shape' => 'Payer', ], ], ], 'GetBucketRequestPaymentRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketTaggingOutput' => [ 'type' => 'structure', 'required' => [ 'TagSet', ], 'members' => [ 'TagSet' => [ 'shape' => 'TagSet', ], ], ], 'GetBucketTaggingRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketVersioningOutput' => [ 'type' => 'structure', 'members' => [ 'Status' => [ 'shape' => 'BucketVersioningStatus', ], 'MFADelete' => [ 'shape' => 'MFADeleteStatus', 'locationName' => 'MfaDelete', ], ], ], 'GetBucketVersioningRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetBucketWebsiteOutput' => [ 'type' => 'structure', 'members' => [ 'RedirectAllRequestsTo' => [ 'shape' => 'RedirectAllRequestsTo', ], 'IndexDocument' => [ 'shape' => 'IndexDocument', ], 'ErrorDocument' => [ 'shape' => 'ErrorDocument', ], 'RoutingRules' => [ 'shape' => 'RoutingRules', ], ], ], 'GetBucketWebsiteRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'GetObjectAclOutput' => [ 'type' => 'structure', 'members' => [ 'Owner' => [ 'shape' => 'Owner', ], 'Grants' => [ 'shape' => 'Grants', 'locationName' => 'AccessControlList', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'GetObjectAclRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'GetObjectOutput' => [ 'type' => 'structure', 'members' => [ 'Body' => [ 'shape' => 'Body', 'streaming' => true, ], 'DeleteMarker' => [ 'shape' => 'DeleteMarker', 'location' => 'header', 'locationName' => 'x-amz-delete-marker', ], 'AcceptRanges' => [ 'shape' => 'AcceptRanges', 'location' => 'header', 'locationName' => 'accept-ranges', ], 'Expiration' => [ 'shape' => 'Expiration', 'location' => 'header', 'locationName' => 'x-amz-expiration', ], 'Restore' => [ 'shape' => 'Restore', 'location' => 'header', 'locationName' => 'x-amz-restore', ], 'LastModified' => [ 'shape' => 'LastModified', 'location' => 'header', 'locationName' => 'Last-Modified', ], 'ContentLength' => [ 'shape' => 'ContentLength', 'location' => 'header', 'locationName' => 'Content-Length', ], 'ETag' => [ 'shape' => 'ETag', 'location' => 'header', 'locationName' => 'ETag', ], 'MissingMeta' => [ 'shape' => 'MissingMeta', 'location' => 'header', 'locationName' => 'x-amz-missing-meta', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'CacheControl' => [ 'shape' => 'CacheControl', 'location' => 'header', 'locationName' => 'Cache-Control', ], 'ContentDisposition' => [ 'shape' => 'ContentDisposition', 'location' => 'header', 'locationName' => 'Content-Disposition', ], 'ContentEncoding' => [ 'shape' => 'ContentEncoding', 'location' => 'header', 'locationName' => 'Content-Encoding', ], 'ContentLanguage' => [ 'shape' => 'ContentLanguage', 'location' => 'header', 'locationName' => 'Content-Language', ], 'ContentRange' => [ 'shape' => 'ContentRange', 'location' => 'header', 'locationName' => 'Content-Range', ], 'ContentType' => [ 'shape' => 'ContentType', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Expires' => [ 'shape' => 'Expires', 'location' => 'header', 'locationName' => 'Expires', ], 'WebsiteRedirectLocation' => [ 'shape' => 'WebsiteRedirectLocation', 'location' => 'header', 'locationName' => 'x-amz-website-redirect-location', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'Metadata' => [ 'shape' => 'Metadata', 'location' => 'headers', 'locationName' => 'x-amz-meta-', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'StorageClass' => [ 'shape' => 'StorageClass', 'location' => 'header', 'locationName' => 'x-amz-storage-class', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], 'ReplicationStatus' => [ 'shape' => 'ReplicationStatus', 'location' => 'header', 'locationName' => 'x-amz-replication-status', ], ], 'payload' => 'Body', ], 'GetObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'IfMatch' => [ 'shape' => 'IfMatch', 'location' => 'header', 'locationName' => 'If-Match', ], 'IfModifiedSince' => [ 'shape' => 'IfModifiedSince', 'location' => 'header', 'locationName' => 'If-Modified-Since', ], 'IfNoneMatch' => [ 'shape' => 'IfNoneMatch', 'location' => 'header', 'locationName' => 'If-None-Match', ], 'IfUnmodifiedSince' => [ 'shape' => 'IfUnmodifiedSince', 'location' => 'header', 'locationName' => 'If-Unmodified-Since', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'Range' => [ 'shape' => 'Range', 'location' => 'header', 'locationName' => 'Range', ], 'ResponseCacheControl' => [ 'shape' => 'ResponseCacheControl', 'location' => 'querystring', 'locationName' => 'response-cache-control', ], 'ResponseContentDisposition' => [ 'shape' => 'ResponseContentDisposition', 'location' => 'querystring', 'locationName' => 'response-content-disposition', ], 'ResponseContentEncoding' => [ 'shape' => 'ResponseContentEncoding', 'location' => 'querystring', 'locationName' => 'response-content-encoding', ], 'ResponseContentLanguage' => [ 'shape' => 'ResponseContentLanguage', 'location' => 'querystring', 'locationName' => 'response-content-language', ], 'ResponseContentType' => [ 'shape' => 'ResponseContentType', 'location' => 'querystring', 'locationName' => 'response-content-type', ], 'ResponseExpires' => [ 'shape' => 'ResponseExpires', 'location' => 'querystring', 'locationName' => 'response-expires', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'GetObjectTorrentOutput' => [ 'type' => 'structure', 'members' => [ 'Body' => [ 'shape' => 'Body', 'streaming' => true, ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], 'payload' => 'Body', ], 'GetObjectTorrentRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'Grant' => [ 'type' => 'structure', 'members' => [ 'Grantee' => [ 'shape' => 'Grantee', ], 'Permission' => [ 'shape' => 'Permission', ], ], ], 'GrantFullControl' => [ 'type' => 'string', ], 'GrantRead' => [ 'type' => 'string', ], 'GrantReadACP' => [ 'type' => 'string', ], 'GrantWrite' => [ 'type' => 'string', ], 'GrantWriteACP' => [ 'type' => 'string', ], 'Grantee' => [ 'type' => 'structure', 'required' => [ 'Type', ], 'members' => [ 'DisplayName' => [ 'shape' => 'DisplayName', ], 'EmailAddress' => [ 'shape' => 'EmailAddress', ], 'ID' => [ 'shape' => 'ID', ], 'Type' => [ 'shape' => 'Type', 'locationName' => 'xsi:type', 'xmlAttribute' => true, ], 'URI' => [ 'shape' => 'URI', ], ], 'xmlNamespace' => [ 'prefix' => 'xsi', 'uri' => 'http://www.w3.org/2001/XMLSchema-instance', ], ], 'Grants' => [ 'type' => 'list', 'member' => [ 'shape' => 'Grant', 'locationName' => 'Grant', ], ], 'HeadBucketRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], ], ], 'HeadObjectOutput' => [ 'type' => 'structure', 'members' => [ 'DeleteMarker' => [ 'shape' => 'DeleteMarker', 'location' => 'header', 'locationName' => 'x-amz-delete-marker', ], 'AcceptRanges' => [ 'shape' => 'AcceptRanges', 'location' => 'header', 'locationName' => 'accept-ranges', ], 'Expiration' => [ 'shape' => 'Expiration', 'location' => 'header', 'locationName' => 'x-amz-expiration', ], 'Restore' => [ 'shape' => 'Restore', 'location' => 'header', 'locationName' => 'x-amz-restore', ], 'LastModified' => [ 'shape' => 'LastModified', 'location' => 'header', 'locationName' => 'Last-Modified', ], 'ContentLength' => [ 'shape' => 'ContentLength', 'location' => 'header', 'locationName' => 'Content-Length', ], 'ETag' => [ 'shape' => 'ETag', 'location' => 'header', 'locationName' => 'ETag', ], 'MissingMeta' => [ 'shape' => 'MissingMeta', 'location' => 'header', 'locationName' => 'x-amz-missing-meta', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'CacheControl' => [ 'shape' => 'CacheControl', 'location' => 'header', 'locationName' => 'Cache-Control', ], 'ContentDisposition' => [ 'shape' => 'ContentDisposition', 'location' => 'header', 'locationName' => 'Content-Disposition', ], 'ContentEncoding' => [ 'shape' => 'ContentEncoding', 'location' => 'header', 'locationName' => 'Content-Encoding', ], 'ContentLanguage' => [ 'shape' => 'ContentLanguage', 'location' => 'header', 'locationName' => 'Content-Language', ], 'ContentType' => [ 'shape' => 'ContentType', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Expires' => [ 'shape' => 'Expires', 'location' => 'header', 'locationName' => 'Expires', ], 'WebsiteRedirectLocation' => [ 'shape' => 'WebsiteRedirectLocation', 'location' => 'header', 'locationName' => 'x-amz-website-redirect-location', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'Metadata' => [ 'shape' => 'Metadata', 'location' => 'headers', 'locationName' => 'x-amz-meta-', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'StorageClass' => [ 'shape' => 'StorageClass', 'location' => 'header', 'locationName' => 'x-amz-storage-class', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], 'ReplicationStatus' => [ 'shape' => 'ReplicationStatus', 'location' => 'header', 'locationName' => 'x-amz-replication-status', ], ], ], 'HeadObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'IfMatch' => [ 'shape' => 'IfMatch', 'location' => 'header', 'locationName' => 'If-Match', ], 'IfModifiedSince' => [ 'shape' => 'IfModifiedSince', 'location' => 'header', 'locationName' => 'If-Modified-Since', ], 'IfNoneMatch' => [ 'shape' => 'IfNoneMatch', 'location' => 'header', 'locationName' => 'If-None-Match', ], 'IfUnmodifiedSince' => [ 'shape' => 'IfUnmodifiedSince', 'location' => 'header', 'locationName' => 'If-Unmodified-Since', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'Range' => [ 'shape' => 'Range', 'location' => 'header', 'locationName' => 'Range', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'HostName' => [ 'type' => 'string', ], 'HttpErrorCodeReturnedEquals' => [ 'type' => 'string', ], 'HttpRedirectCode' => [ 'type' => 'string', ], 'ID' => [ 'type' => 'string', ], 'IfMatch' => [ 'type' => 'string', ], 'IfModifiedSince' => [ 'type' => 'timestamp', ], 'IfNoneMatch' => [ 'type' => 'string', ], 'IfUnmodifiedSince' => [ 'type' => 'timestamp', ], 'IndexDocument' => [ 'type' => 'structure', 'required' => [ 'Suffix', ], 'members' => [ 'Suffix' => [ 'shape' => 'Suffix', ], ], ], 'Initiated' => [ 'type' => 'timestamp', ], 'Initiator' => [ 'type' => 'structure', 'members' => [ 'ID' => [ 'shape' => 'ID', ], 'DisplayName' => [ 'shape' => 'DisplayName', ], ], ], 'IsLatest' => [ 'type' => 'boolean', ], 'IsTruncated' => [ 'type' => 'boolean', ], 'KeyMarker' => [ 'type' => 'string', ], 'KeyPrefixEquals' => [ 'type' => 'string', ], 'LambdaFunctionArn' => [ 'type' => 'string', ], 'LambdaFunctionConfiguration' => [ 'type' => 'structure', 'required' => [ 'LambdaFunctionArn', 'Events', ], 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'LambdaFunctionArn' => [ 'shape' => 'LambdaFunctionArn', 'locationName' => 'CloudFunction', ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'Filter' => [ 'shape' => 'NotificationConfigurationFilter', ], ], ], 'LambdaFunctionConfigurationList' => [ 'type' => 'list', 'member' => [ 'shape' => 'LambdaFunctionConfiguration', ], 'flattened' => true, ], 'LastModified' => [ 'type' => 'timestamp', ], 'LifecycleConfiguration' => [ 'type' => 'structure', 'required' => [ 'Rules', ], 'members' => [ 'Rules' => [ 'shape' => 'Rules', 'locationName' => 'Rule', ], ], ], 'LifecycleExpiration' => [ 'type' => 'structure', 'members' => [ 'Date' => [ 'shape' => 'Date', ], 'Days' => [ 'shape' => 'Days', ], 'ExpiredObjectDeleteMarker' => [ 'shape' => 'ExpiredObjectDeleteMarker', ], ], ], 'LifecycleRule' => [ 'type' => 'structure', 'required' => [ 'Prefix', 'Status', ], 'members' => [ 'Expiration' => [ 'shape' => 'LifecycleExpiration', ], 'ID' => [ 'shape' => 'ID', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Status' => [ 'shape' => 'ExpirationStatus', ], 'Transitions' => [ 'shape' => 'TransitionList', 'locationName' => 'Transition', ], 'NoncurrentVersionTransitions' => [ 'shape' => 'NoncurrentVersionTransitionList', 'locationName' => 'NoncurrentVersionTransition', ], 'NoncurrentVersionExpiration' => [ 'shape' => 'NoncurrentVersionExpiration', ], 'AbortIncompleteMultipartUpload' => [ 'shape' => 'AbortIncompleteMultipartUpload', ], ], ], 'LifecycleRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'LifecycleRule', ], 'flattened' => true, ], 'ListBucketsOutput' => [ 'type' => 'structure', 'members' => [ 'Buckets' => [ 'shape' => 'Buckets', ], 'Owner' => [ 'shape' => 'Owner', ], ], ], 'ListMultipartUploadsOutput' => [ 'type' => 'structure', 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', ], 'KeyMarker' => [ 'shape' => 'KeyMarker', ], 'UploadIdMarker' => [ 'shape' => 'UploadIdMarker', ], 'NextKeyMarker' => [ 'shape' => 'NextKeyMarker', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Delimiter' => [ 'shape' => 'Delimiter', ], 'NextUploadIdMarker' => [ 'shape' => 'NextUploadIdMarker', ], 'MaxUploads' => [ 'shape' => 'MaxUploads', ], 'IsTruncated' => [ 'shape' => 'IsTruncated', ], 'Uploads' => [ 'shape' => 'MultipartUploadList', 'locationName' => 'Upload', ], 'CommonPrefixes' => [ 'shape' => 'CommonPrefixList', ], 'EncodingType' => [ 'shape' => 'EncodingType', ], ], ], 'ListMultipartUploadsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Delimiter' => [ 'shape' => 'Delimiter', 'location' => 'querystring', 'locationName' => 'delimiter', ], 'EncodingType' => [ 'shape' => 'EncodingType', 'location' => 'querystring', 'locationName' => 'encoding-type', ], 'KeyMarker' => [ 'shape' => 'KeyMarker', 'location' => 'querystring', 'locationName' => 'key-marker', ], 'MaxUploads' => [ 'shape' => 'MaxUploads', 'location' => 'querystring', 'locationName' => 'max-uploads', ], 'Prefix' => [ 'shape' => 'Prefix', 'location' => 'querystring', 'locationName' => 'prefix', ], 'UploadIdMarker' => [ 'shape' => 'UploadIdMarker', 'location' => 'querystring', 'locationName' => 'upload-id-marker', ], ], ], 'ListObjectVersionsOutput' => [ 'type' => 'structure', 'members' => [ 'IsTruncated' => [ 'shape' => 'IsTruncated', ], 'KeyMarker' => [ 'shape' => 'KeyMarker', ], 'VersionIdMarker' => [ 'shape' => 'VersionIdMarker', ], 'NextKeyMarker' => [ 'shape' => 'NextKeyMarker', ], 'NextVersionIdMarker' => [ 'shape' => 'NextVersionIdMarker', ], 'Versions' => [ 'shape' => 'ObjectVersionList', 'locationName' => 'Version', ], 'DeleteMarkers' => [ 'shape' => 'DeleteMarkers', 'locationName' => 'DeleteMarker', ], 'Name' => [ 'shape' => 'BucketName', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Delimiter' => [ 'shape' => 'Delimiter', ], 'MaxKeys' => [ 'shape' => 'MaxKeys', ], 'CommonPrefixes' => [ 'shape' => 'CommonPrefixList', ], 'EncodingType' => [ 'shape' => 'EncodingType', ], ], ], 'ListObjectVersionsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Delimiter' => [ 'shape' => 'Delimiter', 'location' => 'querystring', 'locationName' => 'delimiter', ], 'EncodingType' => [ 'shape' => 'EncodingType', 'location' => 'querystring', 'locationName' => 'encoding-type', ], 'KeyMarker' => [ 'shape' => 'KeyMarker', 'location' => 'querystring', 'locationName' => 'key-marker', ], 'MaxKeys' => [ 'shape' => 'MaxKeys', 'location' => 'querystring', 'locationName' => 'max-keys', ], 'Prefix' => [ 'shape' => 'Prefix', 'location' => 'querystring', 'locationName' => 'prefix', ], 'VersionIdMarker' => [ 'shape' => 'VersionIdMarker', 'location' => 'querystring', 'locationName' => 'version-id-marker', ], ], ], 'ListObjectsOutput' => [ 'type' => 'structure', 'members' => [ 'IsTruncated' => [ 'shape' => 'IsTruncated', ], 'Marker' => [ 'shape' => 'Marker', ], 'NextMarker' => [ 'shape' => 'NextMarker', ], 'Contents' => [ 'shape' => 'ObjectList', ], 'Name' => [ 'shape' => 'BucketName', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Delimiter' => [ 'shape' => 'Delimiter', ], 'MaxKeys' => [ 'shape' => 'MaxKeys', ], 'CommonPrefixes' => [ 'shape' => 'CommonPrefixList', ], 'EncodingType' => [ 'shape' => 'EncodingType', ], ], ], 'ListObjectsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Delimiter' => [ 'shape' => 'Delimiter', 'location' => 'querystring', 'locationName' => 'delimiter', ], 'EncodingType' => [ 'shape' => 'EncodingType', 'location' => 'querystring', 'locationName' => 'encoding-type', ], 'Marker' => [ 'shape' => 'Marker', 'location' => 'querystring', 'locationName' => 'marker', ], 'MaxKeys' => [ 'shape' => 'MaxKeys', 'location' => 'querystring', 'locationName' => 'max-keys', ], 'Prefix' => [ 'shape' => 'Prefix', 'location' => 'querystring', 'locationName' => 'prefix', ], ], ], 'ListPartsOutput' => [ 'type' => 'structure', 'members' => [ 'AbortDate' => [ 'shape' => 'AbortDate', 'location' => 'header', 'locationName' => 'x-amz-abort-date', ], 'AbortRuleId' => [ 'shape' => 'AbortRuleId', 'location' => 'header', 'locationName' => 'x-amz-abort-rule-id', ], 'Bucket' => [ 'shape' => 'BucketName', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', ], 'PartNumberMarker' => [ 'shape' => 'PartNumberMarker', ], 'NextPartNumberMarker' => [ 'shape' => 'NextPartNumberMarker', ], 'MaxParts' => [ 'shape' => 'MaxParts', ], 'IsTruncated' => [ 'shape' => 'IsTruncated', ], 'Parts' => [ 'shape' => 'Parts', 'locationName' => 'Part', ], 'Initiator' => [ 'shape' => 'Initiator', ], 'Owner' => [ 'shape' => 'Owner', ], 'StorageClass' => [ 'shape' => 'StorageClass', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'ListPartsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', 'UploadId', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'MaxParts' => [ 'shape' => 'MaxParts', 'location' => 'querystring', 'locationName' => 'max-parts', ], 'PartNumberMarker' => [ 'shape' => 'PartNumberMarker', 'location' => 'querystring', 'locationName' => 'part-number-marker', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', 'location' => 'querystring', 'locationName' => 'uploadId', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'Location' => [ 'type' => 'string', ], 'LoggingEnabled' => [ 'type' => 'structure', 'members' => [ 'TargetBucket' => [ 'shape' => 'TargetBucket', ], 'TargetGrants' => [ 'shape' => 'TargetGrants', ], 'TargetPrefix' => [ 'shape' => 'TargetPrefix', ], ], ], 'MFA' => [ 'type' => 'string', ], 'MFADelete' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Disabled', ], ], 'MFADeleteStatus' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Disabled', ], ], 'Marker' => [ 'type' => 'string', ], 'MaxAgeSeconds' => [ 'type' => 'integer', ], 'MaxKeys' => [ 'type' => 'integer', ], 'MaxParts' => [ 'type' => 'integer', ], 'MaxUploads' => [ 'type' => 'integer', ], 'Message' => [ 'type' => 'string', ], 'Metadata' => [ 'type' => 'map', 'key' => [ 'shape' => 'MetadataKey', ], 'value' => [ 'shape' => 'MetadataValue', ], ], 'MetadataDirective' => [ 'type' => 'string', 'enum' => [ 'COPY', 'REPLACE', ], ], 'MetadataKey' => [ 'type' => 'string', ], 'MetadataValue' => [ 'type' => 'string', ], 'MissingMeta' => [ 'type' => 'integer', ], 'MultipartUpload' => [ 'type' => 'structure', 'members' => [ 'UploadId' => [ 'shape' => 'MultipartUploadId', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'Initiated' => [ 'shape' => 'Initiated', ], 'StorageClass' => [ 'shape' => 'StorageClass', ], 'Owner' => [ 'shape' => 'Owner', ], 'Initiator' => [ 'shape' => 'Initiator', ], ], ], 'MultipartUploadId' => [ 'type' => 'string', ], 'MultipartUploadList' => [ 'type' => 'list', 'member' => [ 'shape' => 'MultipartUpload', ], 'flattened' => true, ], 'NextKeyMarker' => [ 'type' => 'string', ], 'NextMarker' => [ 'type' => 'string', ], 'NextPartNumberMarker' => [ 'type' => 'integer', ], 'NextUploadIdMarker' => [ 'type' => 'string', ], 'NextVersionIdMarker' => [ 'type' => 'string', ], 'NoSuchBucket' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'NoSuchKey' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'NoSuchUpload' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'NoncurrentVersionExpiration' => [ 'type' => 'structure', 'members' => [ 'NoncurrentDays' => [ 'shape' => 'Days', ], ], ], 'NoncurrentVersionTransition' => [ 'type' => 'structure', 'members' => [ 'NoncurrentDays' => [ 'shape' => 'Days', ], 'StorageClass' => [ 'shape' => 'TransitionStorageClass', ], ], ], 'NoncurrentVersionTransitionList' => [ 'type' => 'list', 'member' => [ 'shape' => 'NoncurrentVersionTransition', ], 'flattened' => true, ], 'NotificationConfiguration' => [ 'type' => 'structure', 'members' => [ 'TopicConfigurations' => [ 'shape' => 'TopicConfigurationList', 'locationName' => 'TopicConfiguration', ], 'QueueConfigurations' => [ 'shape' => 'QueueConfigurationList', 'locationName' => 'QueueConfiguration', ], 'LambdaFunctionConfigurations' => [ 'shape' => 'LambdaFunctionConfigurationList', 'locationName' => 'CloudFunctionConfiguration', ], ], ], 'NotificationConfigurationDeprecated' => [ 'type' => 'structure', 'members' => [ 'TopicConfiguration' => [ 'shape' => 'TopicConfigurationDeprecated', ], 'QueueConfiguration' => [ 'shape' => 'QueueConfigurationDeprecated', ], 'CloudFunctionConfiguration' => [ 'shape' => 'CloudFunctionConfiguration', ], ], ], 'NotificationConfigurationFilter' => [ 'type' => 'structure', 'members' => [ 'Key' => [ 'shape' => 'S3KeyFilter', 'locationName' => 'S3Key', ], ], ], 'NotificationId' => [ 'type' => 'string', ], 'Object' => [ 'type' => 'structure', 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], 'LastModified' => [ 'shape' => 'LastModified', ], 'ETag' => [ 'shape' => 'ETag', ], 'Size' => [ 'shape' => 'Size', ], 'StorageClass' => [ 'shape' => 'ObjectStorageClass', ], 'Owner' => [ 'shape' => 'Owner', ], ], ], 'ObjectAlreadyInActiveTierError' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'ObjectCannedACL' => [ 'type' => 'string', 'enum' => [ 'private', 'public-read', 'public-read-write', 'authenticated-read', 'aws-exec-read', 'bucket-owner-read', 'bucket-owner-full-control', ], ], 'ObjectIdentifier' => [ 'type' => 'structure', 'required' => [ 'Key', ], 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', ], ], ], 'ObjectIdentifierList' => [ 'type' => 'list', 'member' => [ 'shape' => 'ObjectIdentifier', ], 'flattened' => true, ], 'ObjectKey' => [ 'type' => 'string', 'min' => 1, ], 'ObjectList' => [ 'type' => 'list', 'member' => [ 'shape' => 'Object', ], 'flattened' => true, ], 'ObjectNotInActiveTierError' => [ 'type' => 'structure', 'members' => [], 'exception' => true, ], 'ObjectStorageClass' => [ 'type' => 'string', 'enum' => [ 'STANDARD', 'REDUCED_REDUNDANCY', 'GLACIER', ], ], 'ObjectVersion' => [ 'type' => 'structure', 'members' => [ 'ETag' => [ 'shape' => 'ETag', ], 'Size' => [ 'shape' => 'Size', ], 'StorageClass' => [ 'shape' => 'ObjectVersionStorageClass', ], 'Key' => [ 'shape' => 'ObjectKey', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', ], 'IsLatest' => [ 'shape' => 'IsLatest', ], 'LastModified' => [ 'shape' => 'LastModified', ], 'Owner' => [ 'shape' => 'Owner', ], ], ], 'ObjectVersionId' => [ 'type' => 'string', ], 'ObjectVersionList' => [ 'type' => 'list', 'member' => [ 'shape' => 'ObjectVersion', ], 'flattened' => true, ], 'ObjectVersionStorageClass' => [ 'type' => 'string', 'enum' => [ 'STANDARD', ], ], 'Owner' => [ 'type' => 'structure', 'members' => [ 'DisplayName' => [ 'shape' => 'DisplayName', ], 'ID' => [ 'shape' => 'ID', ], ], ], 'Part' => [ 'type' => 'structure', 'members' => [ 'PartNumber' => [ 'shape' => 'PartNumber', ], 'LastModified' => [ 'shape' => 'LastModified', ], 'ETag' => [ 'shape' => 'ETag', ], 'Size' => [ 'shape' => 'Size', ], ], ], 'PartNumber' => [ 'type' => 'integer', ], 'PartNumberMarker' => [ 'type' => 'integer', ], 'Parts' => [ 'type' => 'list', 'member' => [ 'shape' => 'Part', ], 'flattened' => true, ], 'Payer' => [ 'type' => 'string', 'enum' => [ 'Requester', 'BucketOwner', ], ], 'Permission' => [ 'type' => 'string', 'enum' => [ 'FULL_CONTROL', 'WRITE', 'WRITE_ACP', 'READ', 'READ_ACP', ], ], 'Policy' => [ 'type' => 'string', ], 'Prefix' => [ 'type' => 'string', ], 'Protocol' => [ 'type' => 'string', 'enum' => [ 'http', 'https', ], ], 'PutBucketAccelerateConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'AccelerateConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'AccelerateConfiguration' => [ 'shape' => 'AccelerateConfiguration', 'locationName' => 'AccelerateConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'AccelerateConfiguration', ], 'PutBucketAclRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'ACL' => [ 'shape' => 'BucketCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'AccessControlPolicy' => [ 'shape' => 'AccessControlPolicy', 'locationName' => 'AccessControlPolicy', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWrite' => [ 'shape' => 'GrantWrite', 'location' => 'header', 'locationName' => 'x-amz-grant-write', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], ], 'payload' => 'AccessControlPolicy', ], 'PutBucketCorsRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'CORSConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CORSConfiguration' => [ 'shape' => 'CORSConfiguration', 'locationName' => 'CORSConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], ], 'payload' => 'CORSConfiguration', ], 'PutBucketLifecycleConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'LifecycleConfiguration' => [ 'shape' => 'BucketLifecycleConfiguration', 'locationName' => 'LifecycleConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'LifecycleConfiguration', ], 'PutBucketLifecycleRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'LifecycleConfiguration' => [ 'shape' => 'LifecycleConfiguration', 'locationName' => 'LifecycleConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'LifecycleConfiguration', ], 'PutBucketLoggingRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'BucketLoggingStatus', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'BucketLoggingStatus' => [ 'shape' => 'BucketLoggingStatus', 'locationName' => 'BucketLoggingStatus', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], ], 'payload' => 'BucketLoggingStatus', ], 'PutBucketNotificationConfigurationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'NotificationConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'NotificationConfiguration' => [ 'shape' => 'NotificationConfiguration', 'locationName' => 'NotificationConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'NotificationConfiguration', ], 'PutBucketNotificationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'NotificationConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'NotificationConfiguration' => [ 'shape' => 'NotificationConfigurationDeprecated', 'locationName' => 'NotificationConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'NotificationConfiguration', ], 'PutBucketPolicyRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Policy', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'Policy' => [ 'shape' => 'Policy', ], ], 'payload' => 'Policy', ], 'PutBucketReplicationRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'ReplicationConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'ReplicationConfiguration' => [ 'shape' => 'ReplicationConfiguration', 'locationName' => 'ReplicationConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'ReplicationConfiguration', ], 'PutBucketRequestPaymentRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'RequestPaymentConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'RequestPaymentConfiguration' => [ 'shape' => 'RequestPaymentConfiguration', 'locationName' => 'RequestPaymentConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'RequestPaymentConfiguration', ], 'PutBucketTaggingRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Tagging', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'Tagging' => [ 'shape' => 'Tagging', 'locationName' => 'Tagging', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'Tagging', ], 'PutBucketVersioningRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'VersioningConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'MFA' => [ 'shape' => 'MFA', 'location' => 'header', 'locationName' => 'x-amz-mfa', ], 'VersioningConfiguration' => [ 'shape' => 'VersioningConfiguration', 'locationName' => 'VersioningConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'VersioningConfiguration', ], 'PutBucketWebsiteRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'WebsiteConfiguration', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'WebsiteConfiguration' => [ 'shape' => 'WebsiteConfiguration', 'locationName' => 'WebsiteConfiguration', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], ], 'payload' => 'WebsiteConfiguration', ], 'PutObjectAclOutput' => [ 'type' => 'structure', 'members' => [ 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'PutObjectAclRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'ACL' => [ 'shape' => 'ObjectCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'AccessControlPolicy' => [ 'shape' => 'AccessControlPolicy', 'locationName' => 'AccessControlPolicy', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWrite' => [ 'shape' => 'GrantWrite', 'location' => 'header', 'locationName' => 'x-amz-grant-write', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], ], 'payload' => 'AccessControlPolicy', ], 'PutObjectOutput' => [ 'type' => 'structure', 'members' => [ 'Expiration' => [ 'shape' => 'Expiration', 'location' => 'header', 'locationName' => 'x-amz-expiration', ], 'ETag' => [ 'shape' => 'ETag', 'location' => 'header', 'locationName' => 'ETag', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'header', 'locationName' => 'x-amz-version-id', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'PutObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'ACL' => [ 'shape' => 'ObjectCannedACL', 'location' => 'header', 'locationName' => 'x-amz-acl', ], 'Body' => [ 'shape' => 'Body', 'streaming' => true, ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CacheControl' => [ 'shape' => 'CacheControl', 'location' => 'header', 'locationName' => 'Cache-Control', ], 'ContentDisposition' => [ 'shape' => 'ContentDisposition', 'location' => 'header', 'locationName' => 'Content-Disposition', ], 'ContentEncoding' => [ 'shape' => 'ContentEncoding', 'location' => 'header', 'locationName' => 'Content-Encoding', ], 'ContentLanguage' => [ 'shape' => 'ContentLanguage', 'location' => 'header', 'locationName' => 'Content-Language', ], 'ContentLength' => [ 'shape' => 'ContentLength', 'location' => 'header', 'locationName' => 'Content-Length', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'ContentType' => [ 'shape' => 'ContentType', 'location' => 'header', 'locationName' => 'Content-Type', ], 'Expires' => [ 'shape' => 'Expires', 'location' => 'header', 'locationName' => 'Expires', ], 'GrantFullControl' => [ 'shape' => 'GrantFullControl', 'location' => 'header', 'locationName' => 'x-amz-grant-full-control', ], 'GrantRead' => [ 'shape' => 'GrantRead', 'location' => 'header', 'locationName' => 'x-amz-grant-read', ], 'GrantReadACP' => [ 'shape' => 'GrantReadACP', 'location' => 'header', 'locationName' => 'x-amz-grant-read-acp', ], 'GrantWriteACP' => [ 'shape' => 'GrantWriteACP', 'location' => 'header', 'locationName' => 'x-amz-grant-write-acp', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'Metadata' => [ 'shape' => 'Metadata', 'location' => 'headers', 'locationName' => 'x-amz-meta-', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'StorageClass' => [ 'shape' => 'StorageClass', 'location' => 'header', 'locationName' => 'x-amz-storage-class', ], 'WebsiteRedirectLocation' => [ 'shape' => 'WebsiteRedirectLocation', 'location' => 'header', 'locationName' => 'x-amz-website-redirect-location', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], 'payload' => 'Body', ], 'QueueArn' => [ 'type' => 'string', ], 'QueueConfiguration' => [ 'type' => 'structure', 'required' => [ 'QueueArn', 'Events', ], 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'QueueArn' => [ 'shape' => 'QueueArn', 'locationName' => 'Queue', ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'Filter' => [ 'shape' => 'NotificationConfigurationFilter', ], ], ], 'QueueConfigurationDeprecated' => [ 'type' => 'structure', 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'Event' => [ 'shape' => 'Event', 'deprecated' => true, ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'Queue' => [ 'shape' => 'QueueArn', ], ], ], 'QueueConfigurationList' => [ 'type' => 'list', 'member' => [ 'shape' => 'QueueConfiguration', ], 'flattened' => true, ], 'Quiet' => [ 'type' => 'boolean', ], 'Range' => [ 'type' => 'string', ], 'Redirect' => [ 'type' => 'structure', 'members' => [ 'HostName' => [ 'shape' => 'HostName', ], 'HttpRedirectCode' => [ 'shape' => 'HttpRedirectCode', ], 'Protocol' => [ 'shape' => 'Protocol', ], 'ReplaceKeyPrefixWith' => [ 'shape' => 'ReplaceKeyPrefixWith', ], 'ReplaceKeyWith' => [ 'shape' => 'ReplaceKeyWith', ], ], ], 'RedirectAllRequestsTo' => [ 'type' => 'structure', 'required' => [ 'HostName', ], 'members' => [ 'HostName' => [ 'shape' => 'HostName', ], 'Protocol' => [ 'shape' => 'Protocol', ], ], ], 'ReplaceKeyPrefixWith' => [ 'type' => 'string', ], 'ReplaceKeyWith' => [ 'type' => 'string', ], 'ReplicationConfiguration' => [ 'type' => 'structure', 'required' => [ 'Role', 'Rules', ], 'members' => [ 'Role' => [ 'shape' => 'Role', ], 'Rules' => [ 'shape' => 'ReplicationRules', 'locationName' => 'Rule', ], ], ], 'ReplicationRule' => [ 'type' => 'structure', 'required' => [ 'Prefix', 'Status', 'Destination', ], 'members' => [ 'ID' => [ 'shape' => 'ID', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Status' => [ 'shape' => 'ReplicationRuleStatus', ], 'Destination' => [ 'shape' => 'Destination', ], ], ], 'ReplicationRuleStatus' => [ 'type' => 'string', 'enum' => [ 'Enabled', 'Disabled', ], ], 'ReplicationRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'ReplicationRule', ], 'flattened' => true, ], 'ReplicationStatus' => [ 'type' => 'string', 'enum' => [ 'COMPLETE', 'PENDING', 'FAILED', 'REPLICA', ], ], 'RequestCharged' => [ 'type' => 'string', 'enum' => [ 'requester', ], ], 'RequestPayer' => [ 'type' => 'string', 'enum' => [ 'requester', ], ], 'RequestPaymentConfiguration' => [ 'type' => 'structure', 'required' => [ 'Payer', ], 'members' => [ 'Payer' => [ 'shape' => 'Payer', ], ], ], 'ResponseCacheControl' => [ 'type' => 'string', ], 'ResponseContentDisposition' => [ 'type' => 'string', ], 'ResponseContentEncoding' => [ 'type' => 'string', ], 'ResponseContentLanguage' => [ 'type' => 'string', ], 'ResponseContentType' => [ 'type' => 'string', ], 'ResponseExpires' => [ 'type' => 'timestamp', ], 'Restore' => [ 'type' => 'string', ], 'RestoreObjectOutput' => [ 'type' => 'structure', 'members' => [ 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'RestoreObjectRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'VersionId' => [ 'shape' => 'ObjectVersionId', 'location' => 'querystring', 'locationName' => 'versionId', ], 'RestoreRequest' => [ 'shape' => 'RestoreRequest', 'locationName' => 'RestoreRequest', 'xmlNamespace' => [ 'uri' => 'http://s3.amazonaws.com/doc/2006-03-01/', ], ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], 'payload' => 'RestoreRequest', ], 'RestoreRequest' => [ 'type' => 'structure', 'required' => [ 'Days', ], 'members' => [ 'Days' => [ 'shape' => 'Days', ], ], ], 'Role' => [ 'type' => 'string', ], 'RoutingRule' => [ 'type' => 'structure', 'required' => [ 'Redirect', ], 'members' => [ 'Condition' => [ 'shape' => 'Condition', ], 'Redirect' => [ 'shape' => 'Redirect', ], ], ], 'RoutingRules' => [ 'type' => 'list', 'member' => [ 'shape' => 'RoutingRule', 'locationName' => 'RoutingRule', ], ], 'Rule' => [ 'type' => 'structure', 'required' => [ 'Prefix', 'Status', ], 'members' => [ 'Expiration' => [ 'shape' => 'LifecycleExpiration', ], 'ID' => [ 'shape' => 'ID', ], 'Prefix' => [ 'shape' => 'Prefix', ], 'Status' => [ 'shape' => 'ExpirationStatus', ], 'Transition' => [ 'shape' => 'Transition', ], 'NoncurrentVersionTransition' => [ 'shape' => 'NoncurrentVersionTransition', ], 'NoncurrentVersionExpiration' => [ 'shape' => 'NoncurrentVersionExpiration', ], 'AbortIncompleteMultipartUpload' => [ 'shape' => 'AbortIncompleteMultipartUpload', ], ], ], 'Rules' => [ 'type' => 'list', 'member' => [ 'shape' => 'Rule', ], 'flattened' => true, ], 'S3KeyFilter' => [ 'type' => 'structure', 'members' => [ 'FilterRules' => [ 'shape' => 'FilterRuleList', 'locationName' => 'FilterRule', ], ], ], 'SSECustomerAlgorithm' => [ 'type' => 'string', ], 'SSECustomerKey' => [ 'type' => 'string', 'sensitive' => true, ], 'SSECustomerKeyMD5' => [ 'type' => 'string', ], 'SSEKMSKeyId' => [ 'type' => 'string', 'sensitive' => true, ], 'ServerSideEncryption' => [ 'type' => 'string', 'enum' => [ 'AES256', 'aws:kms', ], ], 'Size' => [ 'type' => 'integer', ], 'StorageClass' => [ 'type' => 'string', 'enum' => [ 'STANDARD', 'REDUCED_REDUNDANCY', 'STANDARD_IA', ], ], 'Suffix' => [ 'type' => 'string', ], 'Tag' => [ 'type' => 'structure', 'required' => [ 'Key', 'Value', ], 'members' => [ 'Key' => [ 'shape' => 'ObjectKey', ], 'Value' => [ 'shape' => 'Value', ], ], ], 'TagSet' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', 'locationName' => 'Tag', ], ], 'Tagging' => [ 'type' => 'structure', 'required' => [ 'TagSet', ], 'members' => [ 'TagSet' => [ 'shape' => 'TagSet', ], ], ], 'TargetBucket' => [ 'type' => 'string', ], 'TargetGrant' => [ 'type' => 'structure', 'members' => [ 'Grantee' => [ 'shape' => 'Grantee', ], 'Permission' => [ 'shape' => 'BucketLogsPermission', ], ], ], 'TargetGrants' => [ 'type' => 'list', 'member' => [ 'shape' => 'TargetGrant', 'locationName' => 'Grant', ], ], 'TargetPrefix' => [ 'type' => 'string', ], 'TopicArn' => [ 'type' => 'string', ], 'TopicConfiguration' => [ 'type' => 'structure', 'required' => [ 'TopicArn', 'Events', ], 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'TopicArn' => [ 'shape' => 'TopicArn', 'locationName' => 'Topic', ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'Filter' => [ 'shape' => 'NotificationConfigurationFilter', ], ], ], 'TopicConfigurationDeprecated' => [ 'type' => 'structure', 'members' => [ 'Id' => [ 'shape' => 'NotificationId', ], 'Events' => [ 'shape' => 'EventList', 'locationName' => 'Event', ], 'Event' => [ 'shape' => 'Event', 'deprecated' => true, ], 'Topic' => [ 'shape' => 'TopicArn', ], ], ], 'TopicConfigurationList' => [ 'type' => 'list', 'member' => [ 'shape' => 'TopicConfiguration', ], 'flattened' => true, ], 'Transition' => [ 'type' => 'structure', 'members' => [ 'Date' => [ 'shape' => 'Date', ], 'Days' => [ 'shape' => 'Days', ], 'StorageClass' => [ 'shape' => 'TransitionStorageClass', ], ], ], 'TransitionList' => [ 'type' => 'list', 'member' => [ 'shape' => 'Transition', ], 'flattened' => true, ], 'TransitionStorageClass' => [ 'type' => 'string', 'enum' => [ 'GLACIER', 'STANDARD_IA', ], ], 'Type' => [ 'type' => 'string', 'enum' => [ 'CanonicalUser', 'AmazonCustomerByEmail', 'Group', ], ], 'URI' => [ 'type' => 'string', ], 'UploadIdMarker' => [ 'type' => 'string', ], 'UploadPartCopyOutput' => [ 'type' => 'structure', 'members' => [ 'CopySourceVersionId' => [ 'shape' => 'CopySourceVersionId', 'location' => 'header', 'locationName' => 'x-amz-copy-source-version-id', ], 'CopyPartResult' => [ 'shape' => 'CopyPartResult', ], 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], 'payload' => 'CopyPartResult', ], 'UploadPartCopyRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'CopySource', 'Key', 'PartNumber', 'UploadId', ], 'members' => [ 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'CopySource' => [ 'shape' => 'CopySource', 'location' => 'header', 'locationName' => 'x-amz-copy-source', ], 'CopySourceIfMatch' => [ 'shape' => 'CopySourceIfMatch', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-match', ], 'CopySourceIfModifiedSince' => [ 'shape' => 'CopySourceIfModifiedSince', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-modified-since', ], 'CopySourceIfNoneMatch' => [ 'shape' => 'CopySourceIfNoneMatch', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-none-match', ], 'CopySourceIfUnmodifiedSince' => [ 'shape' => 'CopySourceIfUnmodifiedSince', 'location' => 'header', 'locationName' => 'x-amz-copy-source-if-unmodified-since', ], 'CopySourceRange' => [ 'shape' => 'CopySourceRange', 'location' => 'header', 'locationName' => 'x-amz-copy-source-range', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'PartNumber' => [ 'shape' => 'PartNumber', 'location' => 'querystring', 'locationName' => 'partNumber', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', 'location' => 'querystring', 'locationName' => 'uploadId', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'CopySourceSSECustomerAlgorithm' => [ 'shape' => 'CopySourceSSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-algorithm', ], 'CopySourceSSECustomerKey' => [ 'shape' => 'CopySourceSSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-key', ], 'CopySourceSSECustomerKeyMD5' => [ 'shape' => 'CopySourceSSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-copy-source-server-side-encryption-customer-key-MD5', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], ], 'UploadPartOutput' => [ 'type' => 'structure', 'members' => [ 'ServerSideEncryption' => [ 'shape' => 'ServerSideEncryption', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption', ], 'ETag' => [ 'shape' => 'ETag', 'location' => 'header', 'locationName' => 'ETag', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'SSEKMSKeyId' => [ 'shape' => 'SSEKMSKeyId', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-aws-kms-key-id', ], 'RequestCharged' => [ 'shape' => 'RequestCharged', 'location' => 'header', 'locationName' => 'x-amz-request-charged', ], ], ], 'UploadPartRequest' => [ 'type' => 'structure', 'required' => [ 'Bucket', 'Key', 'PartNumber', 'UploadId', ], 'members' => [ 'Body' => [ 'shape' => 'Body', 'streaming' => true, ], 'Bucket' => [ 'shape' => 'BucketName', 'location' => 'uri', 'locationName' => 'Bucket', ], 'ContentLength' => [ 'shape' => 'ContentLength', 'location' => 'header', 'locationName' => 'Content-Length', ], 'ContentMD5' => [ 'shape' => 'ContentMD5', 'location' => 'header', 'locationName' => 'Content-MD5', ], 'Key' => [ 'shape' => 'ObjectKey', 'location' => 'uri', 'locationName' => 'Key', ], 'PartNumber' => [ 'shape' => 'PartNumber', 'location' => 'querystring', 'locationName' => 'partNumber', ], 'UploadId' => [ 'shape' => 'MultipartUploadId', 'location' => 'querystring', 'locationName' => 'uploadId', ], 'SSECustomerAlgorithm' => [ 'shape' => 'SSECustomerAlgorithm', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-algorithm', ], 'SSECustomerKey' => [ 'shape' => 'SSECustomerKey', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key', ], 'SSECustomerKeyMD5' => [ 'shape' => 'SSECustomerKeyMD5', 'location' => 'header', 'locationName' => 'x-amz-server-side-encryption-customer-key-MD5', ], 'RequestPayer' => [ 'shape' => 'RequestPayer', 'location' => 'header', 'locationName' => 'x-amz-request-payer', ], ], 'payload' => 'Body', ], 'Value' => [ 'type' => 'string', ], 'VersionIdMarker' => [ 'type' => 'string', ], 'VersioningConfiguration' => [ 'type' => 'structure', 'members' => [ 'MFADelete' => [ 'shape' => 'MFADelete', 'locationName' => 'MfaDelete', ], 'Status' => [ 'shape' => 'BucketVersioningStatus', ], ], ], 'WebsiteConfiguration' => [ 'type' => 'structure', 'members' => [ 'ErrorDocument' => [ 'shape' => 'ErrorDocument', ], 'IndexDocument' => [ 'shape' => 'IndexDocument', ], 'RedirectAllRequestsTo' => [ 'shape' => 'RedirectAllRequestsTo', ], 'RoutingRules' => [ 'shape' => 'RoutingRules', ], ], ], 'WebsiteRedirectLocation' => [ 'type' => 'string', ], ],];...

Full Screen

Full Screen

class.bolocation.inc.php

Source:class.bolocation.inc.php Github

copy

Full Screen

1<?php2 /**3 * phpGroupWare - property: a Facilities Management System.4 *5 * @author Sigurd Nes <sigurdne@online.no>6 * @copyright Copyright (C) 2003,2004,2005,2006,2007 Free Software Foundation, Inc. http://www.fsf.org/7 * This file is part of phpGroupWare.8 *9 * phpGroupWare is free software; you can redistribute it and/or modify10 * it under the terms of the GNU General Public License as published by11 * the Free Software Foundation; either version 2 of the License, or12 * (at your option) any later version.13 *14 * phpGroupWare is distributed in the hope that it will be useful,15 * but WITHOUT ANY WARRANTY; without even the implied warranty of16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17 * GNU General Public License for more details.18 *19 * You should have received a copy of the GNU General Public License20 * along with phpGroupWare; if not, write to the Free Software21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA22 *23 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License24 * @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/25 * @package property26 * @subpackage location27 * @version $Id$28 */29 /**30 * Description31 * @package property32 */33 class property_bolocation34 {35 var $start;36 var $query;37 var $filter;38 var $sort;39 var $order;40 var $cat_id;41 var $type_id;42 var $lookup;43 var $use_session;44 var $location_code;45 var $total_records;46 /**47 * @var object $custom reference to custom fields object48 */49 protected $custom;50 var $public_functions = array51 (52 'read' => true,53 'read_single' => true,54 'save' => true,55 'delete' => true,56 'get_locations_by_name' => true,57 'get_locations' => true58 );59 function __construct( $session = false )60 {61 $this->soadmin_location = CreateObject('property.soadmin_location');62 $this->bocommon = CreateObject('property.bocommon');63 $this->so = CreateObject('property.solocation', $this->bocommon);64 $this->custom = & $this->so->custom;65 $this->lookup = phpgw::get_var('lookup', 'bool');66 if ($session && !$this->lookup)67 {68 $this->read_sessiondata();69 $this->use_session = true;70 }71 $start = phpgw::get_var('start', 'int', 'REQUEST', 0);72 $query = phpgw::get_var('query');73 $sort = phpgw::get_var('sort');74 $order = phpgw::get_var('order');75 $filter = phpgw::get_var('filter', 'int');76 $cat_id = phpgw::get_var('cat_id');77 $lookup_tenant = phpgw::get_var('lookup_tenant', 'bool');78 $district_id = phpgw::get_var('district_id', 'int');79 $part_of_town_id = phpgw::get_var('part_of_town_id', 'int');80 $status = phpgw::get_var('status');81 $type_id = phpgw::get_var('type_id', 'int');82 $allrows = phpgw::get_var('allrows', 'bool');83 $location_code = phpgw::get_var('location_code');84 if ($location_code && !$type_id)85 {86 $type_id = count(explode('-', $location_code));87 }88 $this->start = $start ? $start : 0;89 $this->query = isset($query) && $query ? $query : '';90 $this->filter = isset($filter) && $filter ? $filter : '';91 $this->sort = isset($sort) && $sort ? $sort : $this->sort;92 $this->order = isset($order) && $order ? $order : $this->order;93 $this->cat_id = isset($cat_id) && $cat_id ? $cat_id : '';94 $this->part_of_town_id = isset($part_of_town_id) && $part_of_town_id ? $part_of_town_id : '';95 $this->district_id = isset($district_id) && $district_id ? $district_id : '';96 $this->status = isset($status) && $status ? $status : '';97 $this->type_id = isset($type_id) && $type_id ? $type_id : 1;98 $this->allrows = isset($allrows) && $allrows ? $allrows : '';99 $this->acl_location = '.location.' . $this->type_id;100 $this->location_code = isset($location_code) && $location_code ? $location_code : '';101 if (isset($_REQUEST['query']) && !$query && !isset($_REQUEST['block_query']))102 {103 $this->location_code = '';104 }105 }106 function read_sessiondata()107 {108 $referer = parse_url(phpgw::get_var('HTTP_REFERER', 'string', 'SERVER'));109 //cramirez@ccfirst.com validation evita NOTICE for JSON110 $referer_out = array();111 if (isset($referer['query']) && is_array($referer['query']))112 {113 parse_str($referer['query'], $referer_out);114 }115 $self_out = array();116 $self = parse_url(phpgw::get_var('QUERY_STRING', 'string', 'SERVER'));117 parse_str($self['path'], $self_out);118// if(isset($referer_out['menuaction']) && isset($self_out['menuaction']) && $referer_out['menuaction'] == $self_out['menuaction'])119 {120 $data = $GLOBALS['phpgw']->session->appsession('session_data', 'location');121 }122 $query = isset($data['query']) ? $data['query'] : '';123 $type_id = phpgw::get_var('type_id', 'int', 'REQUEST', 1);124 $query_temp = explode('-', $query);125 for ($i = 0; $i < $type_id; $i++)126 {127 if (isset($query_temp[$i]) && $query_temp[$i])128 {129 $query_location[] = $query_temp[$i];130 }131 }132 if (isset($query_location) && is_array($query_location))133 {134 $this->query = implode('-', $query_location);135 }136 else137 {138 $this->query = '';139 }140 $this->start = isset($data['start']) ? $data['start'] : '';141 $this->filter = isset($data['filter']) ? $data['filter'] : '';142 $this->sort = isset($data['sort']) ? $data['sort'] : '';143 $this->order = isset($data['order']) ? $data['order'] : '';144 ;145 $this->cat_id = isset($data['cat_id']) ? $data['cat_id'] : '';146 $this->part_of_town_id = isset($data['part_of_town_id']) ? $data['part_of_town_id'] : '';147 $this->district_id = isset($data['district_id']) ? $data['district_id'] : '';148 $this->status = isset($data['status']) ? $data['status'] : '';149 $this->type_id = isset($data['type_id']) ? $data['type_id'] : '';150 // $this->allrows = $data['allrows'];151 }152 function save_sessiondata( $data )153 {154 if ($this->use_session)155 {156 $GLOBALS['phpgw']->session->appsession('session_data', 'location', $data);157 }158 }159 function column_list( $selected = array(), $type_id = '', $allrows = '' )160 {161 if (!$selected)162 {163 $selected = isset($GLOBALS['phpgw_info']['user']['preferences']['property']['location_columns_' . $this->type_id . !!$this->lookup]) ? $GLOBALS['phpgw_info']['user']['preferences']['property']["location_columns_" . $this->type_id . !!$this->lookup] : '';164 }165 $filter = array('list' => ''); // translates to "list IS NULL"166 //$columns = $this->custom->find('property', '.location.' . $type_id, 0, '', '', '', true, false, $filter);167 $location_id = $GLOBALS['phpgw']->locations->get_id('property', ".location.{$this->type_id}");168 $columns = $this->so->get_column_list($location_id);169 $columns = array_merge($columns, $this->get_column_list());170 171 $values = array();172 foreach ($columns as $column)173 {174 $values[] = array175 (176 'id' => $column['id'],177 'name' => $column['input_text'],178 'selected' => in_array($column['id'], $selected),179 );180 }181 return $values;182 }183 function get_column_list()184 {185 $columns = array();186// $columns['category_text'] = array(187// 'id' => 'category_text',188// 'name' => lang('category'),189// 'sortable' => false190// );191 return $columns;192 }193 function select_status_list( $format = '', $selected = '' )194 {195 switch ($format)196 {197 case 'select':198 $GLOBALS['phpgw']->xslttpl->add_file(array('status_select'));199 break;200 case 'filter':201 $GLOBALS['phpgw']->xslttpl->add_file(array('status_filter'));202 break;203 }204 $list = $this->so->select_status_list($this->type_id);205 return $this->bocommon->select_list($selected, $list);206 }207 function read_entity_to_link( $location_code, $exact = false )208 {209 return $this->so->read_entity_to_link($location_code, $exact);210 }211 function get_owner_list( $format = '', $selected = '' )212 {213 switch ($format)214 {215 case 'select':216 $GLOBALS['phpgw']->xslttpl->add_file(array('owner_select'));217 break;218 case 'filter':219 $GLOBALS['phpgw']->xslttpl->add_file(array('owner_filter'));220 break;221 }222 $owners = $this->so->get_owner_list();223 return $this->bocommon->select_list($selected, $owners);224 }225 function get_owner_type_list( $format = '', $selected = '' )226 {227 switch ($format)228 {229 case 'select':230 $GLOBALS['phpgw']->xslttpl->add_file(array('owner_select'));231 break;232 case 'filter':233 $GLOBALS['phpgw']->xslttpl->add_file(array('owner_filter'));234 break;235 }236 $owners = $this->so->get_owner_type_list();237 return $this->bocommon->select_list($selected, $owners);238 }239 function initiate_ui_location( $data )240 {241 $config = CreateObject('phpgwapi.config', 'property');242 $config->read();243 if (isset($config->config_data['suppress_tenant']) && $config->config_data['suppress_tenant'])244 {245 $data['tenant'] = false;246 }247 unset($config);248 if (isset($data['lookup_type']))249 {250 switch ($data['lookup_type'])251 {252 case 'form':253 $GLOBALS['phpgw']->xslttpl->add_file(array('location_form'), ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'property'));254 break;255 case 'view':256 $GLOBALS['phpgw']->xslttpl->add_file(array('location_view'), ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'property'));257 break;258 case 'form2':259 $GLOBALS['phpgw']->xslttpl->add_file(array('location_form2'), ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'property'));260 break;261 case 'view2':262 $GLOBALS['phpgw']->xslttpl->add_file(array('location_view2'), ExecMethod('phpgwapi.phpgw.common.get_tpl_dir', 'property'));263 break;264 }265 }266 $GLOBALS['phpgw']->js->validate_file('tinybox2', 'packed', 'phpgwapi');267 $GLOBALS['phpgw']->css->add_external_file('phpgwapi/js/tinybox2/style.css');268 $filter_location = isset($data['filter_location']) ? $data['filter_location'] : '';269 $block_query = !!$filter_location;270 $location_link = "menuaction:'property.uilocation.index',lookup:1";271 $lookup_functions = array();272 $config = $this->soadmin_location->read_config('');273 $this->config = $config;274 //_debug_array($config);275 $location_types = $this->soadmin_location->select_location_type();276 $this->location_types = $location_types;277 if (!$data['type_id'] === 0 || $data['type_id'] == -1)278 {279 $data['type_id'] = count($location_types);280 }281 else if ($data['type_id'] == -2)282 {283 $data['type_id'] = 0;284 }285 //_debug_array($data);die();286 //_debug_array($location_types);287 $fm_location_cols = array();288 for ($i = 1; $i < ($data['type_id'] + 1); $i++)289 {290 $fm_location_cols_temp = $this->custom->find('property', '.location.' . $i, 0, '', '', '', true);291 foreach ($fm_location_cols_temp as & $entry)292 {293 $entry['location_type'] = $i;294 }295 $fm_location_cols = array_merge($fm_location_cols, $fm_location_cols_temp);296 }297 unset($fm_location_cols_temp);298 //_debug_array($fm_location_cols);299 for ($i = 0; $i < $data['type_id']; $i++)300 {301 $location['location'][$i]['input_type'] = 'text';302 $location['location'][$i]['input_name'] = 'loc' . ($i + 1);303 $input_name[] = $location['location'][$i]['input_name'];304 $insert_record['location'][] = $location['location'][$i]['input_name'];305 $location['location'][$i]['size'] = 5;306 $location['location'][$i]['name'] = $location_types[($i)]['name'];307 $location['location'][$i]['value'] = isset($data['values']['loc' . ($i + 1)]) ? $data['values']['loc' . ($i + 1)] : '';308 $location['location'][$i]['statustext'] = lang('click this link to select') . ' ' . $location_types[($i)]['name'];309 $location['location'][$i]['required'] = isset($data['required_level']) && $data['required_level'] == ($i + 1);310 $location['location'][$i]['extra'][0]['input_name'] = 'loc' . ($i + 1) . '_name';311 $input_name[] = $location['location'][$i]['extra'][0]['input_name'];312 $location['location'][$i]['extra'][0]['input_type'] = 'text';313 $location['location'][$i]['extra'][0]['size'] = 30;314 $location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc' . ($i + 1) . '()';315 $location['location'][$i]['extra'][0]['value'] = isset($data['values']['loc' . ($i + 1) . '_name']) ? $data['values']['loc' . ($i + 1) . '_name'] : '';316 $location['location'][$i]['lookup_function_call'] = 'lookup_loc' . ($i + 1) . '()';317 $location['location'][$i]['readonly'] = true;318 if (!isset($data['block_parent']) || $data['block_parent'] < ($i + 1))319 {320 $location['location'][$i]['lookup_link'] = true;321 $lookup_functions[] = array322 (323 'name' => 'lookup_loc' . ($i + 1) . '()',324 'filter_level' => $i,325 'link' => $location_link . ',type_id:' . ($i + 1) . ',lookup_name:' . $i,326// 'action' => 'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");'327 'action' => 'TINY.box.show({iframe:strURL, boxid:"frameless",width:1000,height:600,fixed:false,maskid:"darkmask",maskopacity:40, mask:true, animate:true, close: true});'328 );329 }330//_debug_array($data['no_link']);331 if (isset($data['no_link']) && $data['no_link'] && $data['no_link'] >= ($i + 3))332 {333 $location['location'][$i]['lookup_link'] = false;334 $location['location'][$i]['lookup_function_call'] = '';335 $location['location'][$i]['extra'][0]['lookup_function_call'] = '';336 $location['location'][$i]['lookup_link'] = false;337 $lookup_functions[$i]['link'] = $location_link . ',type_id:' . ($data['no_link'] - 1) . ',lookup_name:' . ($data['no_link'] - 2);338// $lookup_functions[$i]['action'] = 'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");';339 $lookup_functions[$i]['action'] = 'TINY.box.show({iframe:strURL, boxid:"frameless",width:1000,height:600,fixed:false,maskid:"darkmask",maskopacity:40, mask:true, animate:true, close: true});';340 $location['location'][$i]['statustext'] = lang('click this link to select') . ' ' . $location_types[($data['no_link'] - 2)]['name'];341 }342 if (isset($data['query_link']) && $i < ($data['type_id'] - 1))343 {344 for ($j = 1; $j < $i + 2; $j++)345 {346 $temp_location[] = $data['values']['loc' . ($j)];347 }348 $data['link_data']['query_location'] = implode('-', $temp_location);349 $location['location'][$i]['query_link'] = $GLOBALS['phpgw']->link('/index.php', $data['link_data']);350 unset($temp_location);351 }352 $m = $i;353 }354 $location_cols_count = count($fm_location_cols);355 for ($j = 0; $j < $location_cols_count; $j++)356 {357 $_lookup_link = true;358 if (isset($data['no_link']) && $data['no_link'])359 {360 $_lookup_link = false;361 if ($data['no_link'] < ($fm_location_cols[$j]['location_type'] + 2))362 {363 $_lookup_link = true;364 }365 }366 if ($fm_location_cols[$j]['lookup_form'] && $fm_location_cols[$j]['location_type'] == $data['type_id'])367 {368 $location['location'][$i]['input_type'] = 'text';369 $location['location'][$i]['input_name'] = $fm_location_cols[$j]['column_name'];370 $input_name[] = $location['location'][$i]['input_name'];371 $location['location'][$i]['size'] = 5;372 $location['location'][$i]['lookup_function_call'] = $_lookup_link ? "lookup_loc{$fm_location_cols[$j]['location_type']}()" : '';373 $location['location'][$i]['lookup_link'] = $_lookup_link;374 $location['location'][$i]['readonly'] = true;375 $location['location'][$i]['name'] = $fm_location_cols[$j]['input_text'];376 $location['location'][$i]['value'] = isset($data['values'][$fm_location_cols[$j]['column_name']]) ? $data['values'][$fm_location_cols[$j]['column_name']] : '';377 $location['location'][$i]['statustext'] = lang('click this link to select') . ' ' . $location_types[($fm_location_cols[$j]['location_type'] - 1)]['name'];378 $insert_record['additional_info'][] = array379 (380 'input_name' => $location['location'][$i]['input_name'],381 'input_text' => $fm_location_cols[$j]['input_text']382 );383 $i++;384 }385 }386 $config_count = count($config);387 for ($j = 0; $j < $config_count; $j++)388 {389 $_lookup_link = true;390 if (isset($data['no_link']) && $data['no_link'])391 {392 $_lookup_link = false;393 if ($data['no_link'] < ($config[$j]['location_type'] + 2))394 {395 $_lookup_link = true;396 }397 }398 if ($config[$j]['location_type'] <= $data['type_id'] && $config[$j]['lookup_form'])399 {400 if ($config[$j]['column_name'] == 'street_id' && $location_types[($data['type_id'] - 1)]['list_address'] == 1)401 {402 $location['location'][$i]['input_name'] = $config[$j]['column_name'];403 $input_name[] = 'street_id';404 $location['location'][$i]['lookup_link'] = $_lookup_link;405 $location['location'][$i]['lookup_function_call'] = $_lookup_link ? "lookup_loc{$config[$j]['location_type']}()" : '';406 $location['location'][$i]['name'] = lang('address');407 $location['location'][$i]['input_type'] = 'hidden';408 $location['location'][$i]['value'] = (isset($data['values'][$config[$j]['column_name']]) ? $data['values'][$config[$j]['column_name']] : '');409 $location['location'][$i]['extra'][0]['input_type'] = 'text';410 $location['location'][$i]['extra'][0]['input_name'] = 'street_name';411 $location['location'][$i]['extra'][0]['readonly'] = true;412 $input_name[] = $location['location'][$i]['extra'][0]['input_name'];413 $location['location'][$i]['extra'][0]['size'] = 30;414 $location['location'][$i]['extra'][0]['class'] = 'pure-u-3-4';415 $location['location'][$i]['extra'][0]['lookup_function_call'] = $_lookup_link ? "lookup_loc{$config[$j]['location_type']}()" : '';416 $location['location'][$i]['extra'][0]['value'] = (isset($data['values']['street_name']) ? $data['values']['street_name'] : '');417 $location['location'][$i]['extra'][1]['input_type'] = 'text';418 $location['location'][$i]['extra'][1]['input_name'] = 'street_number';419 $location['location'][$i]['extra'][1]['readonly'] = true;420 $input_name[] = $location['location'][$i]['extra'][1]['input_name'];421 $location['location'][$i]['extra'][1]['size'] = 6;422 $location['location'][$i]['extra'][1]['class'] = 'pure-u-1-6';423 $location['location'][$i]['extra'][1]['lookup_function_call'] = $_lookup_link ? "lookup_loc{$config[$j]['location_type']}()" : '';424 $location['location'][$i]['extra'][1]['value'] = (isset($data['values']['street_number']) ? $data['values']['street_number'] : '');425 $i++;426 }427 else if ($config[$j]['column_name'] == 'tenant_id' && $data['tenant'])428 {429 $m++;430 $lookup_functions[] = array431 (432 'name' => 'lookup_loc' . ($m + 1) . '()',433 'filter_level' => $m,434 'link' => $location_link . ',lookup_tenant:1,type_id:' . $config[$j]['location_type'] . ',lookup_name:' . $i,435// 'action' => 'Window1=window.open(strURL,"Search","left=50,top=100,width=1600,height=700,toolbar=no,scrollbars=yes,resizable=yes");'436 'action' => 'TINY.box.show({iframe:strURL, boxid:"frameless",width:1000,height:600,fixed:false,maskid:"darkmask",maskopacity:40, mask:true, animate:true, close: true});'437 );438 $location['location'][$i]['lookup_link'] = $_lookup_link;439 $location['location'][$i]['name'] = lang('Tenant');440 $location['location'][$i]['input_type'] = 'hidden';441 $location['location'][$i]['input_name'] = 'tenant_id';442 $input_name[] = $location['location'][$i]['input_name'];443 $location['location'][$i]['value'] = (isset($data['values'][$config[$j]['column_name']]) ? $data['values'][$config[$j]['column_name']] : '');444 $location['location'][$i]['lookup_function_call'] = 'lookup_loc' . ($m + 1) . '()';445 $location['location'][$i]['statustext'] = lang('tenant');446 $insert_record['extra']['tenant_id'] = 'tenant_id';447 $location['location'][$i]['extra'][0]['input_type'] = 'text';448 $location['location'][$i]['extra'][0]['input_name'] = 'last_name';449 $location['location'][$i]['extra'][0]['readonly'] = true;450 $input_name[] = $location['location'][$i]['extra'][0]['input_name'];451 $location['location'][$i]['extra'][0]['size'] = 15;452 $location['location'][$i]['extra'][0]['class'] = 'pure-u-1-2';453 $location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_loc' . ($m + 1) . '()';454 $location['location'][$i]['extra'][0]['value'] = (isset($data['values']['last_name']) ? $data['values']['last_name'] : '');455 $location['location'][$i]['extra'][0]['statustext'] = lang('last name');456 $location['location'][$i]['extra'][1]['input_type'] = 'text';457 $location['location'][$i]['extra'][1]['input_name'] = 'first_name';458 $location['location'][$i]['extra'][1]['readonly'] = true;459 $input_name[] = $location['location'][$i]['extra'][1]['input_name'];460 $location['location'][$i]['extra'][1]['size'] = 15;461 $location['location'][$i]['extra'][1]['class'] = 'pure-u-1-2';462 $location['location'][$i]['extra'][1]['lookup_function_call'] = 'lookup_loc' . ($m + 1) . '()';463 $location['location'][$i]['extra'][1]['value'] = (isset($data['values']['first_name']) ? $data['values']['first_name'] : '');464 $location['location'][$i]['extra'][1]['statustext'] = lang('first name');465 $i++;466 $location['location'][$i]['input_type'] = 'text';467 $location['location'][$i]['name'] = lang('Contact phone');468 $location['location'][$i]['input_name'] = 'contact_phone';469 $input_name[] = $location['location'][$i]['input_name'];470 $location['location'][$i]['size'] = 30;471 $location['location'][$i]['class'] = 'pure-u-1';472 $location['location'][$i]['lookup_function_call'] = '';//$lookup_functions[$m]['name'];473 $insert_record['extra']['contact_phone'] = 'contact_phone';474 $location['location'][$i]['value'] = (isset($data['values']['contact_phone']) ? $data['values']['contact_phone'] : '');475 $location['location'][$i]['statustext'] = lang('contact phone');476 $i++;477 }478 else if ($config[$j]['column_name'] != 'tenant_id' && $config[$j]['column_name'] != 'street_id')479 {480 $location['location'][$i]['input_name'] = $config[$j]['column_name'];481 $input_name[] = $location['location'][$i]['input_name'];482// $insert_record[] = $location['location'][$i]['input_name'];483 $location['location'][$i]['size'] = 5;484 $location['location'][$i]['class'] = 'pure-u-1-6';485 $location['location'][$i]['value'] = $data['location']['value'][$config[$j]['column_name']];486 $location['location'][$i]['lookup_function_call'] = 'lookup_loc' . $fm_location_cols[$j]['location_type'] . '()';487 $location['location'][$i]['lookup_link'] = $_lookup_link;488 $location['location'][$i]['name'] = $config[$j]['descr'];489 $location['location'][$i]['value'] = $data['values'][$config[$j]['column_name']];490 $location['location'][$i]['statustext'] = lang('click this link to select') . ' ' . $location_types[($fm_location_cols[$j]['location_type'] - 1)]['name'];491 $location['location'][$i]['input_type'] = 'text';492 $i++;493 }494 }495 }496 if (!isset($data['lookup_entity']) || !$data['lookup_entity'])497 {498 if (is_array($data['entity_data']))499 {500 $soadmin_entity = CreateObject('property.soadmin_entity');501 $soadmin_entity->type = 'entity';502 $soadmin_entity->type_app = 'property';503 foreach ($data['entity_data'] as $_entity_id => $_entity_info)504 {505 if (!$_entity_id)506 {507 continue;508 }509 $entity_lookup = $soadmin_entity->read_single($_entity_id);510 $data['lookup_entity'][] = array511 (512 'id' => $_entity_id,513 'name' => $entity_lookup['name']514 );515 }516 }517 }518 $input_name_entity = array();519 if (isset($data['lookup_entity']) && is_array($data['lookup_entity']))520 {521 foreach ($data['lookup_entity'] as $entity)522 {523 $m++;524 $p_cat_id = isset($data['entity_data'][$entity['id']]['p_cat_id']) ? $data['entity_data'][$entity['id']]['p_cat_id'] : '';525 $lookup_functions[] = array526 (527 'filter_level' => count($location_types),528 'name' => 'lookup_entity_' . $entity['id'] . '()',529 'link' => "menuaction:'property.uilookup.entity',location_type:{$data['type_id']},entity_id:{$entity['id']},cat_id:'{$p_cat_id}',location_code:'{$filter_location}',block_query:'{$block_query}'",530// 'action' => 'Window1=window.open(strURL,"Search","left=50,top=100,width=1200,height=700,toolbar=no,scrollbars=yes,resizable=yes");'531 'action' => 'TINY.box.show({iframe:strURL, boxid:"frameless",width:1000,height:600,fixed:false,maskid:"darkmask",maskopacity:40, mask:true, animate:true, close: true});'532 );533 $location['location'][$i]['input_type'] = 'text';534 $location['location'][$i]['input_name'] = 'entity_num_' . $entity['id'];535 $input_name_entity[] = 'entity_num_' . $entity['id'];536 $insert_record['extra']['entity_num_' . $entity['id']] = 'p_num';537 $location['location'][$i]['size'] = 8;538 $location['location'][$i]['class'] = 'pure-u-1-6';539 $location['location'][$i]['lookup_function_call'] = 'lookup_entity_' . $entity['id'] . '()';540 $location['location'][$i]['lookup_link'] = true;541 $location['location'][$i]['name'] = $entity['name'];542 if (is_array($data['entity_data']))543 {544 $location['location'][$i]['value'] = $data['entity_data'][$entity['id']]['p_num'];545 }546 $location['location'][$i]['statustext'] = lang('click this link to select') . ' ' . $entity['name'];547 $location['location'][$i]['extra'][0]['input_name'] = 'entity_cat_name_' . $entity['id'];548 $input_name_entity[] = $location['location'][$i]['extra'][0]['input_name'];549 $location['location'][$i]['extra'][0]['input_type'] = 'text';550 $location['location'][$i]['extra'][0]['size'] = 30;551 $location['location'][$i]['extra'][0]['class'] = 'pure-u-3-4';552 $location['location'][$i]['extra'][0]['lookup_function_call'] = 'lookup_entity_' . $entity['id'] . '()';553 $location['location'][$i]['extra'][0]['is_entity'] = true;554 if (is_array($data['entity_data']))555 {556 $location['location'][$i]['extra'][0]['value'] = $data['entity_data'][$entity['id']]['p_cat_name'];557 }558 $location['location'][$i]['extra'][1]['input_type'] = 'hidden';559 $location['location'][$i]['extra'][1]['input_name'] = 'entity_id_' . $entity['id'];560 $input_name_entity[] = 'entity_id_' . $entity['id'];561 $insert_record['extra']['entity_id_' . $entity['id']] = 'p_entity_id';562 if (is_array($data['entity_data']))563 {564 $location['location'][$i]['extra'][1]['value'] = $data['entity_data'][$entity['id']]['p_entity_id'];565 }566 $location['location'][$i]['extra'][2]['input_type'] = 'hidden';567 $location['location'][$i]['extra'][2]['input_name'] = 'cat_id_' . $entity['id'];568 $input_name_entity[] = 'cat_id_' . $entity['id'];569 $insert_record['extra']['cat_id_' . $entity['id']] = 'p_cat_id';570 if (is_array($data['entity_data']))571 {572 $location['location'][$i]['extra'][2]['value'] = $data['entity_data'][$entity['id']]['p_cat_id'];573 }574 $i++;575 }576 }577 phpgwapi_cache::session_set('property', 'lookup_fields', $input_name);578 phpgwapi_cache::session_set('property', 'lookup_fields_entity', $input_name_entity);579 if ($input_name_entity && is_array($input_name_entity))580 {581 $function_blank_entity_values = "function blank_entity_values()\n{\n";582 for ($k = 0; $k < count($input_name_entity); $k++)583 {584 $function_blank_entity_values .= "\tdocument.getElementsByName('{$input_name_entity[$k]}')[0].value = '';\n";585 }586 $function_blank_entity_values .= "}\n";587 $GLOBALS['phpgw']->js->add_code('', $function_blank_entity_values);588 }589 if (isset($insert_record))590 {591 phpgwapi_cache::session_set('property', 'insert_record', $insert_record);592 }593 if (isset($lookup_functions) && is_array($lookup_functions))594 {595 $_lookup_functions = "self.name='first_Window'\n";596 $filter_level = 0;597 for ($j = 0; $j < count($lookup_functions); $j++)598 {599 if (isset($lookup_functions[$j]['filter_level']) && $lookup_functions[$j]['filter_level'] > 0)600 {601 $lookup_functions[$j]['link'] .= ",block_query:block,location_code:filter";602 $_filter = array();603 for ($i = 1; $i <= $lookup_functions[$j]['filter_level']; $i++)604 {605 $_filter[] = "document.form.loc{$i}.value";606 }607 $filter_level = $lookup_functions[$j]['filter_level'];608 }609 else610 {611 $lookup_functions[$j]['link'] .= ",location_code:'{$filter_location}',block_query:'{$block_query}'";612 }613 $lookup_functions[$j]['link'] .= ",clear_state:1";614 $_lookup_functions .= <<<JS615 function {$lookup_functions[$j]['name']}616 {617JS;618 if ($filter_level)619 {620 $_lookup_functions .= <<<JS621 var block = '';622 var filter = '';623 var filter_level = {$filter_level};624 if (filter_level) 625 {626 for(i=1;i<=filter_level;i++)627 {628 if (typeof eval('document.form.loc'+i) != 'undefined')629 {630 if( eval('document.form.loc'+i+'.value'))631 {632 block = true;633 if(!filter)634 {635 filter = eval('document.form.loc'+i+'.value');636 }637 else638 {639 filter = filter + '-' + eval('document.form.loc'+i+'.value'); 640 }641 }642 }643 else644 {645 break;646 }647 }648 }649JS;650 }651 $_lookup_functions .= <<<JS652 var oArgs = {{$lookup_functions[$j]['link']}};653 var strURL = phpGWLink('index.php', oArgs);654 {$lookup_functions[$j]['action']}655 }656JS;657 }658 }659 $GLOBALS['phpgw']->js->add_code('', $_lookup_functions);660 if (isset($location) && is_array($location))661 {662 for ($i = 0; $i < count($location['location']); $i++)663 {664 $lookup_name[] = $location['location'][$i]['name'];665 }666 $GLOBALS['phpgw']->session->appsession('lookup_name', 'property', $lookup_name);667 return $location;668 }669 }670 function read( $data = array() )671 {672//_debug_array($data);673 if ($data['lookup'] && $data['location_code'])674 {675 $data['query'] = $data['query'] ? $data['query'] : $data['location_code'];676 }677// _debug_array($data);678 $locations = $this->so->read(array(679 'start' => $data['start'],680 'results' => $data['results'],681 'query' => $data['query'],682 'sort' => $data['sort'],683 'order' => $data['order'],684 'allrows' => isset($data['allrows']) ? $data['allrows'] : '',685 'dry_run' => $data['dry_run'],686 'lookup_tenant' => $data['lookup_tenant'],687 'filter_role_on_contact' => $data['filter_role_on_contact'],688 'role_id' => $data['role_id'],689 'control_registered' => $data['control_registered'],690 'control_id' => $data['control_id'],691 'filter' => $this->filter,692 'cat_id' => $this->cat_id,693 'type_id' => ($data['type_id']) ? $data['type_id'] : $this->type_id,694 'lookup' => $this->lookup,695 'district_id' => $this->district_id,696 'status' => $this->status,697 'part_of_town_id' => $this->part_of_town_id,698 'location_code' => $this->location_code699 ));700 $this->total_records = $this->so->total_records;701 $this->uicols = $this->so->uicols;702 $custom_cols = isset($GLOBALS['phpgw_info']['user']['preferences']['property']['location_columns_' . $this->type_id . !!$this->lookup]) ? $GLOBALS['phpgw_info']['user']['preferences']['property']["location_columns_" . $this->type_id . !!$this->lookup] : '';703 $column_list = $this->get_column_list();704 $get_vendor_names = false;705 foreach ($custom_cols as $col_id)706 {707 if (!ctype_digit($col_id))708 {709 $this->uicols['input_type'][] = 'text';710 $this->uicols['name'][] = $col_id;711 $this->uicols['descr'][] = $column_list[$col_id]['name'];712 $this->uicols['statustext'][] = $column_list[$col_id]['name'];713 $this->uicols['exchange'][] = false;714 $this->uicols['align'][] = '';715 $this->uicols['datatype'][] = false;716 $this->uicols['sortable'][] = $column_list[$col_id]['sortable'];717 $this->uicols['formatter'][] = $column_list[$col_id]['formatter'];718 $this->uicols['classname'][] = $column_list[$col_id]['classname'];719 if ($col_id == 'vendor_names')720 {721 $get_vendor_names = true;722 }723 }724 }725 return $locations;726 }727 function get_responsible( $data = array() )728 {729 static $names = array();730 $soresponsible = CreateObject('property.soresponsible');731 $contacts = createObject('phpgwapi.contacts');732 if ($data['user_id'] < 0 && $data['role_id'])733 {734 $account = $GLOBALS['phpgw']->accounts->get(abs($data['user_id']));735 $contact_id = $account->person_id;736 $data['filter_role_on_contact'] = $contact_id;737 }738 $locations = $this->read($data);739 foreach ($locations as & $location)740 {741 $responsible_item = $soresponsible->get_active_responsible_at_location($location['location_code'], $data['role_id']);742 $location['responsible_item'] = $responsible_item['id'];743 $location['responsible_contact'] = ''; //placeholder744 $location['responsible_contact_id'] = ''; //placeholder745 if(isset($responsible_item['contact_id']))746 {747 if(isset($names[$responsible_item['contact_id']]))748 {749 $location['responsible_contact'] = $names[$responsible_item['contact_id']];750 }751 else752 {753 if( $account_id = $GLOBALS['phpgw']->accounts->search_person($responsible_item['contact_id']))754 {755 $location['responsible_contact'] = $GLOBALS['phpgw']->accounts->get($account_id)->__toString();756 }757 else758 {759 $location['responsible_contact'] = $contacts->get_name_of_person_id($responsible_item['contact_id']);760 }761 $names[$responsible_item['contact_id']] = $location['responsible_contact'];762 }763 $location['responsible_contact_id'] = $responsible_item['contact_id'];764 }765 }766 //_debug_array($locations);767 return $locations;768 }769 function read_single( $data = '', $extra = array() )770 {771 if (is_array($data))772 {773 $location_code = $data['location_code'];774 $extra = $data['extra'];775 }776 else777 {778 $location_code = $data;779 }780 if (!$location_code)781 {782 return;783 }784 $location_array = explode('-', $location_code);785 $type_id = count($location_array);786 if (!isset($extra['noattrib']) || !$extra['noattrib'])787 {788 $values['attributes'] = $this->custom->find('property', '.location.' . $type_id, 0, '', 'ASC', 'attrib_sort', true, true);789 $values = $this->so->read_single($location_code, $values);790 $values = $this->custom->prepare($values, 'property', ".location.{$type_id}", $extra['view']);791 }792 else793 {794 $values = $this->so->read_single($location_code, array(), true);795 }796 if (isset($extra['tenant_id']) && $extra['tenant_id'] != 'lookup')797 {798 if ($extra['tenant_id'] > 0)799 {800 $tenant_data = $this->bocommon->read_single_tenant($extra['tenant_id']);801 $values['tenant_id'] = $extra['tenant_id'];802 $values['contact_phone'] = $extra['contact_phone'] ? $extra['contact_phone'] : $tenant_data['contact_phone'];803 $values['last_name'] = $tenant_data['last_name'];804 $values['first_name'] = $tenant_data['first_name'];805 }806 else807 {808 unset($values['tenant_id']);809 unset($values['contact_phone']);810 unset($values['last_name']);811 unset($values['first_name']);812 }813 }814 if (is_array($extra))815 {816 $values = $values + $extra;817 }818 return $values;819 }820 function read_single_old( $location_code = '', $extra = '' )821 {822 $location_data = $this->so->read_single($location_code);823 if (isset($extra['tenant_id']) && $extra['tenant_id'] != 'lookup')824 {825 if ($extra['tenant_id'] > 0)826 {827 $tenant_data = $this->bocommon->read_single_tenant($extra['tenant_id']);828 $location_data['tenant_id'] = $extra['tenant_id'];829 $location_data['contact_phone'] = $extra['contact_phone'] ? $extra['contact_phone'] : $tenant_data['contact_phone'];830 $location_data['last_name'] = $tenant_data['last_name'];831 $location_data['first_name'] = $tenant_data['first_name'];832 }833 else834 {835 unset($location_data['tenant_id']);836 unset($location_data['contact_phone']);837 unset($location_data['last_name']);838 unset($location_data['first_name']);839 }840 }841 if (is_array($extra))842 {843 $location_data = $location_data + $extra;844 }845 return $location_data;846 }847 function check_location( $location_code = '', $type_id = '' )848 {849 return $this->so->check_location($location_code, $type_id);850 }851 /**852 * Arrange attributes within groups853 *854 * @param string $location the name of the location of the attribute855 * @param array $attributes the array of the attributes to be grouped856 *857 * @return array the grouped attributes858 */859 public function get_attribute_groups( $location, $attributes = array() )860 {861 return $this->custom->get_attribute_groups('property', $location, $attributes);862 }863 function save( $location, $values_attribute, $action = '', $type_id = '', $location_code_parent = '' )864 {865 if (is_array($values_attribute))866 {867 $values_attribute = $this->custom->convert_attribute_save($values_attribute);868 }869 if ($action == 'edit')870 {871 if ($this->so->check_location($location['location_code'], $type_id))872 {873 $receipt = $this->so->edit($location, $values_attribute, $type_id);874 }875 else876 {877 $receipt['error'][] = array('msg' => lang('This location ID does not exist!'));878 }879 }880 else881 {882 if (!$receipt['error'])883 {884 $receipt = $this->so->add($location, $values_attribute, $type_id);885 }886 }887 $criteria = array888 (889 'appname' => 'property',890 'location' => ".location.{$type_id}",891 'allrows' => true892 );893 $custom_functions = $GLOBALS['phpgw']->custom_functions->find($criteria);894 foreach ($custom_functions as $entry)895 {896 // prevent path traversal897 if (preg_match('/\.\./', $entry['file_name']))898 {899 continue;900 }901 $file = PHPGW_SERVER_ROOT . "/property/inc/custom/{$GLOBALS['phpgw_info']['user']['domain']}/{$entry['file_name']}";902 if ($entry['active'] && is_file($file))903 {904 require_once $file;905 }906 }907 return $receipt;908 }909 /* function delete2($location_code)910 {911 $this->so->delete($location_code);912 } */913 function delete()914 {915 $location_code = phpgw::get_var('location_code', 'string', 'GET');916 $this->so->delete($location_code);917 }918 function update_cat()919 {920 return $this->so->update_cat();921 }922 function update_location()923 {924 return $this->so->update_location();925 }926 function read_summary( $data = array() )927 {928 $summary = $this->so->read_summary(array('filter' => $this->filter, 'type_id' => isset($data['type_id']) ? $data['type_id'] : '',929 'district_id' => $this->district_id, 'part_of_town_id' => $this->part_of_town_id));930 $this->uicols = $this->so->uicols;931 return $summary;932 }933 function select_change_type( $selected = '' )934 {935 $change_type[0]['id'] = 1;936 $change_type[0]['name'] = lang('Correct error');937 $change_type[1]['id'] = 2;938 $change_type[1]['name'] = lang('New values');939 return $this->bocommon->select_list($selected, $change_type);940 }941 function check_history( $location_code )942 {943 return $this->so->check_history($location_code);944 }945 function get_history( $location_code, $dry_run = false )946 {947 $history = $this->so->get_history($location_code, $dry_run);948 $this->uicols = $this->so->uicols;949 return $history;950 }951 function get_tenant_location( $tenant_id = '' )952 {953 return $this->so->get_tenant_location($tenant_id);954 }955 /**956 * Get a list of attributes957 *958 * @param string $location the name of the location959 *960 * @return array holding custom fields at this location961 */962 function find_attribute( $location )963 {964 return $this->custom->find('property', $location, 0, '', 'ASC', 'attrib_sort', true, true);965 }966 /**967 * Prepare custom attributes for ui968 *969 * @param array $values values and definitions of custom attributes970 * @param string $location the name of the location971 * @param bool $view_only if set - calendar listeners is not activated972 *973 * @return array values and definitions of custom attributes prepared for ui974 */975 function prepare_attribute( $values, $location, $view_only = false )976 {977 return $this->custom->prepare($values, 'property', $location, $view_only);978 }979 /**980 * Get location by name981 *982 * @return array array of hits983 */984 public function get_locations_by_name()985 {986 $data = array(987 'level' => phpgw::get_var('level', 'int'),988 'location_name' => phpgw::get_var('location_name')989 );990 return $this->so->get_locations_by_name($data);991 }992 /**993 * Get location name994 *995 * @return string location name996 */997 public function get_location_name( $location_code )998 {999 static $locations = array();1000 if (!isset($locations[$location_code]))1001 {1002 $_location_info = $this->read_single(array1003 (1004 'location_code' => $location_code,1005 'extra' => array('noattrib' => true)1006 )1007 );1008 $_loc_name_arr = array();1009 $_level = count(explode('-', $location_code)) + 1;1010 for ($i = 1; $i < $_level; $i++)1011 {1012 $_loc_name_arr[] = $_location_info["loc{$i}_name"];1013 }1014 $locations[$location_code] = implode(' | ', $_loc_name_arr);1015 }1016 return $locations[$location_code];1017 }1018 function get_item_id( $location_code )1019 {1020 return $this->so->get_item_id($location_code);1021 }1022 public function get_locations( )1023 {1024 $location_code = phpgw::get_var('query');1025 $values = $this->so->get_locations($location_code);1026 if($values)1027 {1028 $part = explode('-', $values[0]['id']);1029 $parent_level = count($part);1030 $_loc_arr = array();1031 for ($i = 0; $i < ($parent_level -1); $i++)1032 {1033 $_loc_arr[] = $part[$i];1034 }1035 $parent_location_code = implode('-', $_loc_arr);1036 if($parent_location_code)1037 {1038 array_unshift($values, array('id' => $parent_location_code, 'name' => $parent_location_code . '::' . $this->get_location_name($parent_location_code)));1039 }1040 }1041 return array('ResultSet' => array('Result' => $values));1042 }1043 function get_delivery_address($loc1 = '')1044 {1045 return $this->so->get_delivery_address($loc1);1046 }1047 function get_location_exception($location_code = '' )1048 {1049 return $this->so->get_location_exception($location_code, $alert_vendor = false);1050 }1051 }...

Full Screen

Full Screen

LocationSeeder.php

Source:LocationSeeder.php Github

copy

Full Screen

1<?php2namespace Database\Seeders;3use App\Models\Location;4use Illuminate\Database\Seeder;5class LocationSeeder extends Seeder6{7 private $locations = [8 ['location_name'=>'Dhaka', 'parent_id'=>0],9 ['location_name'=>'Faridpur', 'parent_id'=>0],10 ['location_name'=>'Gazipur', 'parent_id'=>0],11 ['location_name'=>'Gopalganj', 'parent_id'=>0],12 ['location_name'=>'Jamalpur', 'parent_id'=>0],13 ['location_name'=>'Kishoreganj', 'parent_id'=>0],14 ['location_name'=>'Madaripur', 'parent_id'=>0],15 ['location_name'=>'Manikganj', 'parent_id'=>0],16 ['location_name'=>'Munshiganj', 'parent_id'=>0],17 ['location_name'=>'Mymensingh', 'parent_id'=>0],18 ['location_name'=>'Narayanganj', 'parent_id'=>0],19 ['location_name'=>'Narsingdi', 'parent_id'=>0],20 ['location_name'=>'Netrokona', 'parent_id'=>0],21 ['location_name'=>'Rajbari', 'parent_id'=>0],22 ['location_name'=>'Shariatpur', 'parent_id'=>0],23 ['location_name'=>'Sherpur', 'parent_id'=>0],24 ['location_name'=>'Tangail', 'parent_id'=>0],25 ['location_name'=>'Bogra', 'parent_id'=>0],26 ['location_name'=>'Joypurhat', 'parent_id'=>0],27 ['location_name'=>'Naogaon', 'parent_id'=>0],28 ['location_name'=>'Natore', 'parent_id'=>0],29 ['location_name'=>'Nawabganj', 'parent_id'=>0],30 ['location_name'=>'Pabna', 'parent_id'=>0],31 ['location_name'=>'Rajshahi', 'parent_id'=>0],32 ['location_name'=>'Sirajgonj', 'parent_id'=>0],33 ['location_name'=>'Dinajpur', 'parent_id'=>0],34 ['location_name'=>'Gaibandha', 'parent_id'=>0],35 ['location_name'=>'Kurigram', 'parent_id'=>0],36 ['location_name'=>'Lalmonirhat', 'parent_id'=>0],37 ['location_name'=>'Nilphamari', 'parent_id'=>0],38 ['location_name'=>'Panchagarh', 'parent_id'=>0],39 ['location_name'=>'Rangpur', 'parent_id'=>0],40 ['location_name'=>'Thakurgaon', 'parent_id'=>0],41 ['location_name'=>'Barguna', 'parent_id'=>0],42 ['location_name'=>'Barisal', 'parent_id'=>0],43 ['location_name'=>'Bhola', 'parent_id'=>0],44 ['location_name'=>'Jhalokati', 'parent_id'=>0],45 ['location_name'=>'Patuakhali', 'parent_id'=>0],46 ['location_name'=>'Pirojpur', 'parent_id'=>0],47 ['location_name'=>'Bandarban', 'parent_id'=>0],48 ['location_name'=>'Brahmanbaria', 'parent_id'=>0],49 ['location_name'=>'Chandpur', 'parent_id'=>0],50 ['location_name'=>'Chittagong', 'parent_id'=>0],51 ['location_name'=>'Comilla', 'parent_id'=>0],52 ['location_name'=>'Cox\'s Bazar', 'parent_id'=>0],53 ['location_name'=>'Feni', 'parent_id'=>0],54 ['location_name'=>'Khagrachari', 'parent_id'=>0],55 ['location_name'=>'Lakshmipur', 'parent_id'=>0],56 ['location_name'=>'Noakhali', 'parent_id'=>0],57 ['location_name'=>'Rangamati', 'parent_id'=>0],58 ['location_name'=>'Habiganj', 'parent_id'=>0],59 ['location_name'=>'Maulvibazar', 'parent_id'=>0],60 ['location_name'=>'Sunamganj', 'parent_id'=>0],61 ['location_name'=>'Sylhet', 'parent_id'=>0],62 ['location_name'=>'Bagerhat', 'parent_id'=>0],63 ['location_name'=>'Chuadanga', 'parent_id'=>0],64 ['location_name'=>'Jessore', 'parent_id'=>0],65 ['location_name'=>'Jhenaidah', 'parent_id'=>0],66 ['location_name'=>'Khulna', 'parent_id'=>0],67 ['location_name'=>'Kushtia', 'parent_id'=>0],68 ['location_name'=>'Magura', 'parent_id'=>0],69 ['location_name'=>'Meherpur', 'parent_id'=>0],70 ['location_name'=>'Narail', 'parent_id'=>0],71 ['location_name'=>'Satkhira', 'parent_id'=>0],72 ['location_name'=>'Gulsan 1', 'parent_id'=>1],73 ['location_name'=>'Dhamrai Upazila', 'parent_id'=>1],74 ['location_name'=>'Dohar Upazila', 'parent_id'=>1],75 ['location_name'=>'Keraniganj Upazila', 'parent_id'=>1],76 ['location_name'=>'Nawabganj Upazila', 'parent_id'=>1],77 ['location_name'=>'Savar Upazila', 'parent_id'=>1],78 ['location_name'=>'Charbhadrasan Upazila', 'parent_id'=>2],79 ['location_name'=>'Sadarpur Upazila', 'parent_id'=>2],80 ['location_name'=>'Shaltha Upazila', 'parent_id'=>2],81 ['location_name'=>'Nagarkanda Upazila', 'parent_id'=>2],82 ['location_name'=>'Bhanga Upazila', 'parent_id'=>2],83 ['location_name'=>'Madhukhali Upazila', 'parent_id'=>2],84 ['location_name'=>'Alfadanga Upazila', 'parent_id'=>2],85 ['location_name'=>'Boalmari Upazila', 'parent_id'=>2],86 ['location_name'=>'Faridpur Sadar Upazila', 'parent_id'=>2],87 ['location_name'=>'Tongi', 'parent_id'=>3],88 ['location_name'=>'Kaliganj', 'parent_id'=>3],89 ['location_name'=>'Sripur', 'parent_id'=>3],90 ['location_name'=>'Kapasia', 'parent_id'=>3],91 ['location_name'=>'Kaliakior', 'parent_id'=>3],92 ['location_name'=>'Gazipur Sadar-Joydebpur', 'parent_id'=>3],93 ['location_name'=>'Kotalipara Upazila', 'parent_id'=>4],94 ['location_name'=>'Tungipara Upazila', 'parent_id'=>4],95 ['location_name'=>'Muksudpur Upazila', 'parent_id'=>4],96 ['location_name'=>'Kashiani Upazila', 'parent_id'=>4],97 ['location_name'=>'Gopalganj Sadar Upazila', 'parent_id'=>4],98 ['location_name'=>'Sarishabari Upazila', 'parent_id'=>5],99 ['location_name'=>'Melandaha Upazila', 'parent_id'=>5],100 ['location_name'=>'Narundi Police I.C', 'parent_id'=>5],101 ['location_name'=>'Madarganj Upazila', 'parent_id'=>5],102 ['location_name'=>'Jamalpur Sadar Upazila', 'parent_id'=>5],103 ['location_name'=>'Islampur Upazila', 'parent_id'=>5],104 ['location_name'=>'Baksiganj Upazila', 'parent_id'=>5],105 ['location_name'=>'Dewanganj Upazila', 'parent_id'=>5],106 ['location_name'=>'Tarail Upazila', 'parent_id'=>6],107 ['location_name'=> 'Pakundia Upazila', 'parent_id'=>6],108 ['location_name'=> 'Nikli Upazila', 'parent_id'=>6],109 ['location_name'=> 'Mithamain Upazila', 'parent_id'=>6],110 ['location_name'=> 'Kuliarchar Upazila', 'parent_id'=>6],111 ['location_name'=> 'Kishoreganj Sadar Upazila', 'parent_id'=>6],112 ['location_name'=> 'Karimganj Upazila', 'parent_id'=>6],113 ['location_name'=> 'Itna Upazila', 'parent_id'=>6],114 ['location_name'=> 'Astagram Upazila', 'parent_id'=>6],115 ['location_name'=> 'Bajitpur Upazila', 'parent_id'=>6],116 ['location_name'=> 'Hossainpur Upazila', 'parent_id'=>6],117 ['location_name'=> 'Bhairab Upazila', 'parent_id'=>6],118 ['location_name'=> 'Katiadi Upazila', 'parent_id'=>6],119 ['location_name'=> 'Kalkini', 'parent_id'=>7],120 ['location_name'=> 'Rajoir', 'parent_id'=>7],121 ['location_name'=> 'Madaripur Sadar', 'parent_id'=>7],122 ['location_name'=> 'Shibchar', 'parent_id'=>7],123 ['location_name'=> 'Harirampur Upazila', 'parent_id'=>8],124 ['location_name'=> 'Manikganj Sadar Upazila', 'parent_id'=>8],125 ['location_name'=> 'Daulatpur Upazila', 'parent_id'=>8],126 ['location_name'=> 'Ghior Upazila', 'parent_id'=>8],127 ['location_name'=> 'Singair Upazila', 'parent_id'=>8],128 ['location_name'=> 'Shibalaya Upazila', 'parent_id'=>8],129 ['location_name'=> 'Saturia Upazila', 'parent_id'=>8],130 ['location_name'=> 'Tongibari Upazila', 'parent_id'=>9],131 ['location_name'=> 'Sirajdikhan Upazila', 'parent_id'=>9],132 ['location_name'=> 'Munshiganj Sadar Upazila', 'parent_id'=>9],133 ['location_name'=> 'Sreenagar Upazila', 'parent_id'=>9],134 ['location_name'=> 'Gazaria Upazila', 'parent_id'=>9],135 ['location_name'=> 'Lohajang Upazila', 'parent_id'=>9],136 ['location_name'=> 'Nandail', 'parent_id'=>10],137 ['location_name'=> 'Phulpur', 'parent_id'=>10],138 ['location_name'=> 'Mymensingh Sadar', 'parent_id'=>10],139 ['location_name'=> 'Ishwarganj', 'parent_id'=>10],140 ['location_name'=> 'Gauripur', 'parent_id'=>10],141 ['location_name'=> 'Gaffargaon', 'parent_id'=>10],142 ['location_name'=> 'Fulbaria', 'parent_id'=>10],143 ['location_name'=> 'Dhobaura', 'parent_id'=>10],144 ['location_name'=> 'Trishal', 'parent_id'=>10],145 ['location_name'=> 'Haluaghat', 'parent_id'=>10],146 ['location_name'=> 'Bhaluka', 'parent_id'=>10],147 ['location_name'=> 'Muktagachha', 'parent_id'=>10],148 ['location_name'=> 'Rupganj Upazila', 'parent_id'=>11],149 ['location_name'=> 'Naryanganj Sadar Upazila', 'parent_id'=>11],150 ['location_name'=> 'Bandar', 'parent_id'=>11],151 ['location_name'=> 'Sonargaon Upazila', 'parent_id'=>11],152 ['location_name'=> 'Araihazar Upazila', 'parent_id'=>11],153 ['location_name'=> 'Siddirgonj Upazila', 'parent_id'=>11],154 ['location_name'=> 'Shibpur Upazila', 'parent_id'=>12],155 ['location_name'=> 'Raipura Upazila, Narsingdi', 'parent_id'=>12],156 ['location_name'=> 'Palash Upazila', 'parent_id'=>12],157 ['location_name'=> 'Narsingdi Sadar Upazila', 'parent_id'=>12],158 ['location_name'=> 'Monohardi Upazila', 'parent_id'=>12],159 ['location_name'=> 'Belabo Upazila', 'parent_id'=>12],160 ['location_name'=> 'Khaliajuri Upazilla', 'parent_id'=>13],161 ['location_name'=> 'Purbadhala Upazilla', 'parent_id'=>13],162 ['location_name'=> 'Netrakona-S Upazilla', 'parent_id'=>13],163 ['location_name'=> 'Mohanganj Upazilla', 'parent_id'=>13],164 ['location_name'=> 'Madan Upazilla', 'parent_id'=>13],165 ['location_name'=> 'Kalmakanda Upazilla', 'parent_id'=>13],166 ['location_name'=> 'Durgapur Upazilla', 'parent_id'=>13],167 ['location_name'=> 'Barhatta Upazilla', 'parent_id'=>13],168 ['location_name'=> 'Atpara Upazilla', 'parent_id'=>13],169 ['location_name'=> 'Kendua Upazilla', 'parent_id'=>13],170 ['location_name'=> 'Rajbari Sadar Upazila', 'parent_id'=>14],171 ['location_name'=> 'Kalukhali Upazila', 'parent_id'=>14],172 ['location_name'=> 'Pangsha Upazila', 'parent_id'=>14],173 ['location_name'=> 'Goalandaghat Upazila', 'parent_id'=>14],174 ['location_name'=> 'Baliakandi Upazila', 'parent_id'=>14],175 ['location_name'=> 'Gosairhat Upazila', 'parent_id'=>15],176 ['location_name'=> 'Bhedarganj Upazila', 'parent_id'=>15],177 ['location_name'=> 'Jajira Upazila', 'parent_id'=>15],178 ['location_name'=> 'Damudya Upazila', 'parent_id'=>15],179 ['location_name'=> 'Shariatpur Sadar -Palong', 'parent_id'=>15],180 ['location_name'=> 'Naria Upazila', 'parent_id'=>15],181 ['location_name'=> 'Sreebardi Upazila', 'parent_id'=>16],182 ['location_name'=> 'Sherpur Sadar Upazila', 'parent_id'=>16],183 ['location_name'=> 'Nalitabari Upazila', 'parent_id'=>16],184 ['location_name'=> 'Nakla Upazila', 'parent_id'=>16],185 ['location_name'=> 'Jhenaigati Upazila', 'parent_id'=>16],186 ['location_name'=> 'Tangail Sadar Upazila', 'parent_id'=>17],187 ['location_name'=> 'Sakhipur Upazila', 'parent_id'=>17],188 ['location_name'=> 'Basail Upazila', 'parent_id'=>17],189 ['location_name'=> 'Madhupur Upazila', 'parent_id'=>17],190 ['location_name'=> 'Ghatail Upazila', 'parent_id'=>17],191 ['location_name'=> 'Kalihati Upazila', 'parent_id'=>17],192 ['location_name'=> 'Dhanbari Upazila', 'parent_id'=>17],193 ['location_name'=> 'Bhuapur Upazila', 'parent_id'=>17],194 ['location_name'=> 'Delduar Upazila', 'parent_id'=>17],195 ['location_name'=> 'Gopalpur Upazila', 'parent_id'=>17],196 ['location_name'=> 'Mirzapur Upazila', 'parent_id'=>17],197 ['location_name'=> 'Nagarpur Upazila', 'parent_id'=>17],198 ['location_name'=> 'Sonatala', 'parent_id'=>18],199 ['location_name'=> 'Shibganj', 'parent_id'=>18],200 ['location_name'=> 'Sariakandi', 'parent_id'=>18],201 ['location_name'=> 'Sahajanpur', 'parent_id'=>18],202 ['location_name'=> 'Nandigram', 'parent_id'=>18],203 ['location_name'=> 'Kahaloo', 'parent_id'=>18],204 ['location_name'=> 'Adamdighi', 'parent_id'=>18],205 ['location_name'=> 'Gabtali', 'parent_id'=>18],206 ['location_name'=> 'Dhupchanchia', 'parent_id'=>18],207 ['location_name'=> 'Dhunat', 'parent_id'=>18],208 ['location_name'=> 'Bogra Sadar', 'parent_id'=>18],209 ['location_name'=> 'Panchbibi', 'parent_id'=>19],210 ['location_name'=> 'Khetlal', 'parent_id'=>19],211 ['location_name'=> 'Kalai', 'parent_id'=>19],212 ['location_name'=> 'Joypurhat S', 'parent_id'=>19],213 ['location_name'=> 'Akkelpur', 'parent_id'=>19],214 ['location_name'=> 'Patnitala Upazila', 'parent_id'=>20],215 ['location_name'=> 'Dhamoirhat Upazila', 'parent_id'=>20],216 ['location_name'=> 'Sapahar Upazila', 'parent_id'=>20],217 ['location_name'=> 'Porsha Upazila', 'parent_id'=>20],218 ['location_name'=> 'Badalgachhi Upazila', 'parent_id'=>20],219 ['location_name'=> 'Atrai Upazila', 'parent_id'=>20],220 ['location_name'=> 'Niamatpur Upazila', 'parent_id'=>20],221 ['location_name'=> 'Raninagar Upazila', 'parent_id'=>20],222 ['location_name'=> 'Manda Upazila', 'parent_id'=>20],223 ['location_name'=> 'Mohadevpur Upazila', 'parent_id'=>20],224 ['location_name'=> 'Naogaon Sadar Upazila', 'parent_id'=>20],225 ['location_name'=> 'Baraigram Upazila', 'parent_id'=>21],226 ['location_name'=> 'Natore Sadar Upazila', 'parent_id'=>21],227 ['location_name'=> 'Lalpur Upazila', 'parent_id'=>21],228 ['location_name'=> 'Bagatipara Upazila', 'parent_id'=>21],229 ['location_name'=> 'Shibganj Upazila', 'parent_id'=>22],230 ['location_name'=> 'Nawabganj Sadar Upazila', 'parent_id'=>22],231 ['location_name'=> 'Nachole Upazila', 'parent_id'=>22],232 ['location_name'=> 'Gomastapur Upazila', 'parent_id'=>22],233 ['location_name'=> 'Bholahat Upazila', 'parent_id'=>22],234 ['location_name'=> 'Sujanagar Upazila', 'parent_id'=>23],235 ['location_name'=> 'Santhia Upazila', 'parent_id'=>23],236 ['location_name'=> 'Pabna Sadar Upazila', 'parent_id'=>23],237 ['location_name'=> 'Ishwardi Upazila', 'parent_id'=>23],238 ['location_name'=> 'Faridpur Upazila', 'parent_id'=>23],239 ['location_name'=> 'Chatmohar Upazila', 'parent_id'=>23],240 ['location_name'=> 'Bhangura Upazila', 'parent_id'=>23],241 ['location_name'=> 'Bera Upazila', 'parent_id'=>23],242 ['location_name'=> 'Atgharia Upazila', 'parent_id'=>23],243 ['location_name'=> 'Godagari', 'parent_id'=>24],244 ['location_name'=> 'Tanore', 'parent_id'=>24],245 ['location_name'=> 'Puthia', 'parent_id'=>24],246 ['location_name'=> 'Paba', 'parent_id'=>24],247 ['location_name'=> 'Mohanpur', 'parent_id'=>24],248 ['location_name'=> 'Durgapur', 'parent_id'=>24],249 ['location_name'=> 'Charghat', 'parent_id'=>24],250 ['location_name'=> 'Bagmara', 'parent_id'=>24],251 ['location_name'=> 'Bagha', 'parent_id'=>24],252 ['location_name'=> 'Chauhali Upazila', 'parent_id'=>25],253 ['location_name'=> 'Ullahpara Upazila', 'parent_id'=>25],254 ['location_name'=> 'Tarash Upazila', 'parent_id'=>25],255 ['location_name'=> 'Shahjadpur Upazila', 'parent_id'=>25],256 ['location_name'=> 'Raiganj Upazila', 'parent_id'=>25],257 ['location_name'=> 'Kazipur Upazila', 'parent_id'=>25],258 ['location_name'=> 'Kamarkhanda Upazila', 'parent_id'=>25],259 ['location_name'=> 'Belkuchi Upazila', 'parent_id'=>25],260 ['location_name'=> 'Sirajganj Sadar Upazila', 'parent_id'=>25],261 ['location_name'=> 'Hakimpur Upazila', 'parent_id'=>26],262 ['location_name'=> 'Kaharole Upazila', 'parent_id'=>26],263 ['location_name'=> 'Khansama Upazila', 'parent_id'=>26],264 ['location_name'=> 'Dinajpur Sadar Upazila', 'parent_id'=>26],265 ['location_name'=> 'Nawabganj', 'parent_id'=>26],266 ['location_name'=> 'Parbatipur Upazila', 'parent_id'=>26],267 ['location_name'=> 'Ghoraghat Upazila', 'parent_id'=>26],268 ['location_name'=> 'Phulbari Upazila', 'parent_id'=>26],269 ['location_name'=> 'Chirirbandar Upazila', 'parent_id'=>26],270 ['location_name'=> 'Bochaganj Upazila', 'parent_id'=>26],271 ['location_name'=> 'Biral Upazila', 'parent_id'=>26],272 ['location_name'=> 'Birganj', 'parent_id'=>26],273 ['location_name'=> 'Birampur Upazila', 'parent_id'=>26],274 ['location_name'=> 'Sadullapur', 'parent_id'=>27],275 ['location_name'=> 'Saghata', 'parent_id'=>27],276 ['location_name'=> 'Sundarganj', 'parent_id'=>27],277 ['location_name'=> 'Palashbari', 'parent_id'=>27],278 ['location_name'=> 'Gaibandha sadar', 'parent_id'=>27],279 ['location_name'=> 'Fulchhari', 'parent_id'=>27],280 ['location_name'=> 'Gobindaganj', 'parent_id'=>27],281 ['location_name'=> 'Char Rajibpur', 'parent_id'=>28],282 ['location_name'=> 'Rowmari', 'parent_id'=>28],283 ['location_name'=> 'Chilmari', 'parent_id'=>28],284 ['location_name'=> 'Ulipur', 'parent_id'=>28],285 ['location_name'=> 'Rajarhat', 'parent_id'=>28],286 ['location_name'=> 'Phulbari', 'parent_id'=>28],287 ['location_name'=> 'Bhurungamari', 'parent_id'=>28],288 ['location_name'=> 'Nageshwari', 'parent_id'=>28],289 ['location_name'=> 'Kurigram Sadar', 'parent_id'=>28],290 ['location_name'=> 'Patgram', 'parent_id'=>29],291 ['location_name'=> 'Hatibandha', 'parent_id'=>29],292 ['location_name'=> 'Kaliganj', 'parent_id'=>29],293 ['location_name'=> 'Aditmari', 'parent_id'=>29],294 ['location_name'=> 'Lalmanirhat Sadar', 'parent_id'=>29],295 ['location_name'=> 'Dimla', 'parent_id'=>30],296 ['location_name'=> 'Domar', 'parent_id'=>30],297 ['location_name'=> 'Kishoreganj', 'parent_id'=>30],298 ['location_name'=> 'Jaldhaka', 'parent_id'=>30],299 ['location_name'=> 'Saidpur', 'parent_id'=>30],300 ['location_name'=> 'Nilphamari Sadar', 'parent_id'=>30],301 ['location_name'=> 'Panchagarh Sadar', 'parent_id'=>31],302 ['location_name'=> 'Debiganj', 'parent_id'=>31],303 ['location_name'=> 'Boda', 'parent_id'=>31],304 ['location_name'=> 'Atwari', 'parent_id'=>31],305 ['location_name'=> 'Tetulia', 'parent_id'=>31],306 ['location_name'=> 'Kaunia', 'parent_id'=>32],307 ['location_name'=> 'Badarganj', 'parent_id'=>32],308 ['location_name'=> 'Mithapukur', 'parent_id'=>32],309 ['location_name'=> 'Gangachara', 'parent_id'=>32],310 ['location_name'=> 'Rangpur Sadar', 'parent_id'=>32],311 ['location_name'=> 'Pirgachha', 'parent_id'=>32],312 ['location_name'=> 'Pirganj', 'parent_id'=>32],313 ['location_name'=> 'Taraganj', 'parent_id'=>32],314 ['location_name'=> 'Baliadangi Upazila', 'parent_id'=>33],315 ['location_name'=> 'Thakurgaon Sadar Upazila', 'parent_id'=>33],316 ['location_name'=> 'Pirganj Upazila', 'parent_id'=>33],317 ['location_name'=> 'Haripur Upazila', 'parent_id'=>33],318 ['location_name'=> 'Ranisankail Upazila', 'parent_id'=>33],319 ['location_name'=> 'Patharghata Upazila', 'parent_id'=>34],320 ['location_name'=> 'Betagi Upazila', 'parent_id'=>34],321 ['location_name'=> 'Barguna Sadar Upazila', 'parent_id'=>34],322 ['location_name'=> 'Bamna Upazila', 'parent_id'=>34],323 ['location_name'=> 'Taltali Upazila', 'parent_id'=>34],324 ['location_name'=> 'Amtali Upazila', 'parent_id'=>34],325 ['location_name'=> 'Gaurnadi Upazila', 'parent_id'=>35],326 ['location_name'=> 'Banaripara Upazila', 'parent_id'=>35],327 ['location_name'=> 'Hizla Upazila', 'parent_id'=>35],328 ['location_name'=> 'Mehendiganj Upazila', 'parent_id'=>35],329 ['location_name'=> 'Wazirpur Upazila', 'parent_id'=>35],330 ['location_name'=> 'Bakerganj Upazila', 'parent_id'=>35],331 ['location_name'=> 'Barisal Sadar Upazila', 'parent_id'=>35],332 ['location_name'=> 'Babuganj Upazila', 'parent_id'=>35],333 ['location_name'=> 'Muladi Upazila', 'parent_id'=>35],334 ['location_name'=> 'Agailjhara Upazila', 'parent_id'=>35],335 ['location_name'=> 'Daulatkhan Upazila', 'parent_id'=>36],336 ['location_name'=> 'Tazumuddin Upazila', 'parent_id'=>36],337 ['location_name'=> 'Manpura Upazila', 'parent_id'=>36],338 ['location_name'=> 'Lalmohan Upazila', 'parent_id'=>36],339 ['location_name'=> 'Char Fasson Upazila', 'parent_id'=>36],340 ['location_name'=> 'Burhanuddin Upazila', 'parent_id'=>36],341 ['location_name'=> 'Bhola Sadar Upazila', 'parent_id'=>36],342 ['location_name'=> 'Nalchity Upazila', 'parent_id'=>37],343 ['location_name'=> 'Rajapur Upazila', 'parent_id'=>37],344 ['location_name'=> 'Jhalokati Sadar Upazila', 'parent_id'=>37],345 ['location_name'=> 'Kathalia Upazila', 'parent_id'=>37],346 ['location_name'=> 'Mirzaganj Upazila', 'parent_id'=>38],347 ['location_name'=> 'Patuakhali Sadar Upazila', 'parent_id'=>38],348 ['location_name'=> 'Rangabali Upazila', 'parent_id'=>38],349 ['location_name'=> 'Dumki Upazila', 'parent_id'=>38],350 ['location_name'=> 'Kalapara Upazila', 'parent_id'=>38],351 ['location_name'=> 'Galachipa Upazila', 'parent_id'=>38],352 ['location_name'=> 'Dashmina Upazila', 'parent_id'=>38],353 ['location_name'=> 'Bauphal Upazila', 'parent_id'=>38],354 ['location_name'=> 'Zianagar', 'parent_id'=>39],355 ['location_name'=> 'Pirojpur Sadar', 'parent_id'=>39],356 ['location_name'=> 'Nazirpur', 'parent_id'=>39],357 ['location_name'=> 'Mathbaria', 'parent_id'=>39],358 ['location_name'=> 'Kaukhali', 'parent_id'=>39],359 ['location_name'=> 'Bhandaria', 'parent_id'=>39],360 ['location_name'=> 'Nesarabad', 'parent_id'=>39],361 ['location_name'=> 'Rowangchhari', 'parent_id'=>40],362 ['location_name'=> 'Ruma', 'parent_id'=>40],363 ['location_name'=> 'Ali kadam', 'parent_id'=>40],364 ['location_name'=> 'Naikhongchhari', 'parent_id'=>40],365 ['location_name'=> 'Lama', 'parent_id'=>40],366 ['location_name'=> 'Thanchi', 'parent_id'=>40],367 ['location_name'=> 'Bandarban Sadar', 'parent_id'=>40],368 ['location_name'=> 'Bancharampur Upazila', 'parent_id'=>41],369 ['location_name'=> 'Bijoynagar Upazila', 'parent_id'=>41],370 ['location_name'=> 'Ashuganj Upazila', 'parent_id'=>41],371 ['location_name'=> 'Akhaura Upazila', 'parent_id'=>41],372 ['location_name'=> 'Kasba Upazila', 'parent_id'=>41],373 ['location_name'=> 'Shahbazpur Town', 'parent_id'=>41],374 ['location_name'=> 'Sarail Upazila', 'parent_id'=>41],375 ['location_name'=> 'Nabinagar Upazila', 'parent_id'=>41],376 ['location_name'=> 'Nasirnagar Upazila', 'parent_id'=>41],377 ['location_name'=> 'Brahmanbaria Sadar Upazila', 'parent_id'=>41],378 ['location_name'=> 'Shahrasti', 'parent_id'=>42],379 ['location_name'=> 'Matlab Dakkhin', 'parent_id'=>42],380 ['location_name'=> 'Matlab Uttar', 'parent_id'=>42],381 ['location_name'=> 'Kachua', 'parent_id'=>42],382 ['location_name'=> 'Haziganj', 'parent_id'=>42],383 ['location_name'=> 'Faridganj', 'parent_id'=>42],384 ['location_name'=> 'Chandpur Sadar', 'parent_id'=>42],385 ['location_name'=> 'Haimchar', 'parent_id'=>42],386 ['location_name'=> 'Patiya Upazila', 'parent_id'=>43],387 ['location_name'=> 'Rangunia Upazila', 'parent_id'=>43],388 ['location_name'=> 'Raozan Upazila', 'parent_id'=>43],389 ['location_name'=> 'Sandwip Upazila', 'parent_id'=>43],390 ['location_name'=> 'Satkania Upazila', 'parent_id'=>43],391 ['location_name'=> 'Sitakunda Upazila', 'parent_id'=>43],392 ['location_name'=> 'Mirsharai Upazila', 'parent_id'=>43],393 ['location_name'=> 'Lohagara Upazila', 'parent_id'=>43],394 ['location_name'=> 'Hathazari Upazila', 'parent_id'=>43],395 ['location_name'=> 'Fatikchhari Upazila', 'parent_id'=>43],396 ['location_name'=> 'Chandanaish Upazila', 'parent_id'=>43],397 ['location_name'=> 'Khulshi', 'parent_id'=>43],398 ['location_name'=> 'Banshkhali Upazila', 'parent_id'=>43],399 ['location_name'=> 'Anwara Upazila', 'parent_id'=>43],400 ['location_name'=> 'Panchlaish', 'parent_id'=>43],401 ['location_name'=> 'Boalkhali Upazila', 'parent_id'=>43],402 ['location_name'=> 'Chittagong Port','parent_id'=>43],403 ['location_name'=> 'Chauddagram Upazila', 'parent_id'=>44],404 ['location_name'=> 'Monohorgonj Upazila', 'parent_id'=>44],405 ['location_name'=> 'Laksam Upazila', 'parent_id'=>44],406 ['location_name'=> 'Comilla Sadar Upazila', 'parent_id'=>44],407 ['location_name'=> 'Homna Upazila', 'parent_id'=>44],408 ['location_name'=> 'Debidwar Upazila', 'parent_id'=>44],409 ['location_name'=> 'Daudkandi Upazila', 'parent_id'=>44],410 ['location_name'=> 'Chandina Upazila', 'parent_id'=>44],411 ['location_name'=> 'Burichong Upazila', 'parent_id'=>44],412 ['location_name'=> 'Brahmanpara Upazila', 'parent_id'=>44],413 ['location_name'=> 'Barura Upazila', 'parent_id'=>44],414 ['location_name'=> 'Meghna Upazila', 'parent_id'=>44],415 ['location_name'=> 'Nangalkot Upazila', 'parent_id'=>44],416 ['location_name'=> 'Comilla Sadar South Upazila', 'parent_id'=>44],417 ['location_name'=> 'Titas Upazila', 'parent_id'=>44],418 ['location_name'=> 'Muradnagar Upazila', 'parent_id'=>44],419 ['location_name'=> 'Kutubdia Upazila', 'parent_id'=>45],420 ['location_name'=> 'Pekua Upazila', 'parent_id'=>45],421 ['location_name'=> 'Ukhia Upazila', 'parent_id'=>45],422 ['location_name'=> 'Teknaf Upazila', 'parent_id'=>45],423 ['location_name'=> 'Ramu Upazila', 'parent_id'=>45],424 ['location_name'=> 'Maheshkhali Upazila', 'parent_id'=>45],425 ['location_name'=> 'Cox\'s Bazar Sadar Upazila', 'parent_id'=>45],426 ['location_name'=> 'Chakaria Upazila', 'parent_id'=>45],427 ['location_name'=> 'Sonagazi', 'parent_id'=>46],428 ['location_name'=> 'Fhulgazi', 'parent_id'=>46],429 ['location_name'=> 'Parshuram', 'parent_id'=>46],430 ['location_name'=> 'Chagalnaiya', 'parent_id'=>46],431 ['location_name'=> 'Feni Sadar', 'parent_id'=>46],432 ['location_name'=> 'Daganbhyan', 'parent_id'=>46],433 ['location_name'=> 'Dighinala Upazila', 'parent_id'=>47],434 ['location_name'=> 'Ramgarh Upazila', 'parent_id'=>47],435 ['location_name'=> 'Panchhari Upazila', 'parent_id'=>47],436 ['location_name'=> 'Matiranga Upazila', 'parent_id'=>47],437 ['location_name'=> 'Mahalchhari Upazila', 'parent_id'=>47],438 ['location_name'=> 'Lakshmichhari Upazila', 'parent_id'=>47],439 ['location_name'=> 'Khagrachhari Upazila', 'parent_id'=>47],440 ['location_name'=> 'Manikchhari Upazila', 'parent_id'=>47],441 ['location_name'=> 'Lakshmipur Sadar Upazila', 'parent_id'=>48],442 ['location_name'=> 'Komol Nagar Upazila', 'parent_id'=>48],443 ['location_name'=> 'Ramgati Upazila', 'parent_id'=>48],444 ['location_name'=> 'Raipur Upazila', 'parent_id'=>48],445 ['location_name'=> 'Ramganj Upazila', 'parent_id'=>48],446 ['location_name'=> 'Chatkhil Upazila', 'parent_id'=>49],447 ['location_name'=> 'Begumganj Upazila', 'parent_id'=>49],448 ['location_name'=> 'Noakhali Sadar Upazila', 'parent_id'=>49],449 ['location_name'=> 'Shenbag Upazila', 'parent_id'=>49],450 ['location_name'=> 'Hatia Upazila', 'parent_id'=>49],451 ['location_name'=> 'Kobirhat Upazila', 'parent_id'=>49],452 ['location_name'=> 'Sonaimuri Upazila', 'parent_id'=>49],453 ['location_name'=> 'Suborno Char Upazila', 'parent_id'=>49],454 ['location_name'=> 'Companyganj Upazila', 'parent_id'=>49],455 ['location_name'=> 'Bagaichhari Upazila', 'parent_id'=>50],456 ['location_name'=> 'Kaptai Upazila', 'parent_id'=>50],457 ['location_name'=> 'Langadu Upazila', 'parent_id'=>50],458 ['location_name'=> 'Nannerchar Upazila', 'parent_id'=>50],459 ['location_name'=> 'Kaukhali Upazila', 'parent_id'=>50],460 ['location_name'=> 'Rajasthali Upazila', 'parent_id'=>50],461 ['location_name'=> 'Juraichhari Upazila', 'parent_id'=>50],462 ['location_name'=> 'Barkal Upazila', 'parent_id'=>50],463 ['location_name'=> 'Rangamati Sadar Upazila', 'parent_id'=>50],464 ['location_name'=> 'Belaichhari Upazila', 'parent_id'=>50],465 ['location_name'=> 'Nabiganj', 'parent_id'=>51],466 ['location_name'=> 'Madhabpur', 'parent_id'=>51],467 ['location_name'=> 'Lakhai', 'parent_id'=>51],468 ['location_name'=> 'Habiganj Sadar', 'parent_id'=>51],469 ['location_name'=> 'Chunarughat', 'parent_id'=>51],470 ['location_name'=> 'Shaistagonj Upazila', 'parent_id'=>51],471 ['location_name'=> 'Bahubal', 'parent_id'=>51],472 ['location_name'=> 'Ajmiriganj', 'parent_id'=>51],473 ['location_name'=> 'Baniachang', 'parent_id'=>51],474 ['location_name'=> 'Sreemangal', 'parent_id'=>52],475 ['location_name'=> 'Rajnagar', 'parent_id'=>52],476 ['location_name'=> 'Kulaura', 'parent_id'=>52],477 ['location_name'=> 'Kamalganj', 'parent_id'=>52],478 ['location_name'=> 'Barlekha', 'parent_id'=>52],479 ['location_name'=> 'Moulvibazar Sadar', 'parent_id'=>52],480 ['location_name'=> 'Juri', 'parent_id'=>52],481 ['location_name'=> 'Sulla', 'parent_id'=>53],482 ['location_name'=> 'Jamalganj', 'parent_id'=>53],483 ['location_name'=> 'Tahirpur', 'parent_id'=>53],484 ['location_name'=> 'Jagannathpur', 'parent_id'=>53],485 ['location_name'=> 'Dowarabazar', 'parent_id'=>53],486 ['location_name'=> 'Dharampasha', 'parent_id'=>53],487 ['location_name'=> 'Derai', 'parent_id'=>53],488 ['location_name'=> 'Chhatak', 'parent_id'=>53],489 ['location_name'=> 'Bishwamvarpur', 'parent_id'=>53],490 ['location_name'=> 'Shanthiganj', 'parent_id'=>53],491 ['location_name'=> 'Sunamganj Sadar', 'parent_id'=>53],492 ['location_name'=> 'Sylhet Sadar', 'parent_id'=>54],493 ['location_name'=> 'Beanibazar', 'parent_id'=>54],494 ['location_name'=> 'Bishwanath', 'parent_id'=>54],495 ['location_name'=> 'Balaganj', 'parent_id'=>54],496 ['location_name'=> 'Companiganj', 'parent_id'=>54],497 ['location_name'=> 'Golapganj', 'parent_id'=>54],498 ['location_name'=> 'Gowainghat', 'parent_id'=>54],499 ['location_name'=> 'Jaintiapur', 'parent_id'=>54],500 ['location_name'=> 'Kanaighat', 'parent_id'=>54],501 ['location_name'=> 'Fenchuganj', 'parent_id'=>54],502 ['location_name'=> 'Zakiganj', 'parent_id'=>54],503 ['location_name'=> 'Nobigonj', 'parent_id'=>54],504 ['location_name'=> 'Dakshin Surma Upazila', 'parent_id'=>54],505 ['location_name'=> 'Chitalmari Upazila', 'parent_id'=>55],506 ['location_name'=> 'Bagerhat Sadar Upazila', 'parent_id'=>55],507 ['location_name'=> 'Fakirhat Upazila', 'parent_id'=>55],508 ['location_name'=> 'Kachua Upazila', 'parent_id'=>55],509 ['location_name'=> 'Mollahat Upazila', 'parent_id'=>55],510 ['location_name'=> 'Mongla Upazila', 'parent_id'=>55],511 ['location_name'=> 'Morrelganj Upazila', 'parent_id'=>55],512 ['location_name'=> 'Rampal Upazila', 'parent_id'=>55],513 ['location_name'=> 'Sarankhola Upazila', 'parent_id'=>55],514 ['location_name'=> 'Chuadanga-S Upazila', 'parent_id'=>56],515 ['location_name'=> 'Jibannagar Upazila', 'parent_id'=>56],516 ['location_name'=> 'Alamdanga Upazila', 'parent_id'=>56],517 ['location_name'=> 'Damurhuda Upazila', 'parent_id'=>56],518 ['location_name'=> 'Manirampur Upazila', 'parent_id'=>57],519 ['location_name'=> 'Sharsha Upazila', 'parent_id'=>57],520 ['location_name'=> 'Jhikargachha Upazila', 'parent_id'=>57],521 ['location_name'=> 'Chaugachha Upazila', 'parent_id'=>57],522 ['location_name'=> 'Abhaynagar Upazila', 'parent_id'=>57],523 ['location_name'=> 'Jessore Sadar Upazila', 'parent_id'=>57],524 ['location_name'=> 'Bagherpara Upazila', 'parent_id'=>57],525 ['location_name'=> 'Keshabpur Upazila', 'parent_id'=>57],526 ['location_name'=> 'Harinakunda Upazila', 'parent_id'=>58],527 ['location_name'=> 'Shailkupa Upazila', 'parent_id'=>58],528 ['location_name'=> 'Kotchandpur Upazila', 'parent_id'=>58],529 ['location_name'=> 'Kaliganj Upazila', 'parent_id'=>58],530 ['location_name'=> 'Maheshpur Upazila', 'parent_id'=>58],531 ['location_name'=> 'Jhenaidah Sadar Upazila', 'parent_id'=>58],532 ['location_name'=> 'Batiaghata Upazila', 'parent_id'=>59],533 ['location_name'=> 'Dacope Upazila', 'parent_id'=>59],534 ['location_name'=> 'Dumuria Upazila', 'parent_id'=>59],535 ['location_name'=> 'Dighalia Upazila', 'parent_id'=>59],536 ['location_name'=> 'Koyra Upazila', 'parent_id'=>59],537 ['location_name'=> 'Paikgachha Upazila', 'parent_id'=>59],538 ['location_name'=> 'Rupsa Upazila', 'parent_id'=>59],539 ['location_name'=> 'Phultala Upazila', 'parent_id'=>59],540 ['location_name'=> 'Terokhada Upazila', 'parent_id'=>59],541 ['location_name'=> 'Mirpur', 'parent_id'=>60],542 ['location_name'=> 'Daulatpur', 'parent_id'=>60],543 ['location_name'=> 'Bheramara', 'parent_id'=>60],544 ['location_name'=> 'Khoksa', 'parent_id'=>60],545 ['location_name'=> 'Kumarkhali', 'parent_id'=>60],546 ['location_name'=> 'Kushtia Sadar', 'parent_id'=>60],547 ['location_name'=> 'Sreepur Upazila', 'parent_id'=>61],548 ['location_name'=> 'Magura Sadar Upazila', 'parent_id'=>61],549 ['location_name'=> 'Mohammadpur Upazila', 'parent_id'=>61],550 ['location_name'=> 'Shalikha Upazila', 'parent_id'=>61],551 ['location_name'=> 'Meherpur-S Upazila', 'parent_id'=>62],552 ['location_name'=> 'angni Upazila', 'parent_id'=>62],553 ['location_name'=> 'Mujib Nagar Upazila', 'parent_id'=>62],554 ['location_name'=> 'Kalia Upazilla', 'parent_id'=>63],555 ['location_name'=> 'Narail-S Upazilla', 'parent_id'=>63],556 ['location_name'=> 'Lohagara Upazilla', 'parent_id'=>63],557 ['location_name'=> 'Shyamnagar Upazila', 'parent_id'=>64],558 ['location_name'=> 'Kaliganj Upazila', 'parent_id'=>64],559 ['location_name'=> 'Kalaroa Upazila', 'parent_id'=>64],560 ['location_name'=> 'Tala Upazila', 'parent_id'=>64],561 ['location_name'=> 'Debhata Upazila', 'parent_id'=>64],562 ['location_name'=> 'Satkhira Sadar Upazila', 'parent_id'=>64],563 ['location_name'=> 'Assasuni Upazila', 'parent_id'=>64]564 ];565 /**566 * Run the database seeds.567 *568 * @return void569 */570 public function run()571 {572 Location::insert($this->locations);573 }574}...

Full Screen

Full Screen

location.views.inc

Source:location.views.inc Github

copy

Full Screen

1<?php2/**3 * @file4 * Views 3 support for Location.5 */6/**7 * @TODO:8 * Finish porting!9 * Write "relationships" -- see book.views.inc, upload.views.inc, nodequeue...10 */11/**12 * Implementation of hook_views_handlers().13 */14function location_views_handlers() {15 return array(16 'info' => array(17 'path' => drupal_get_path('module', 'location') . '/handlers',18 ),19 'handlers' => array(20 'location_views_handler_field_latitude' => array(21 'parent' => 'views_handler_field',22 ),23 'location_views_handler_field_longitude' => array(24 'parent' => 'location_views_handler_field_latitude',25 ),26 'location_views_handler_field_coordinates' => array(27 'parent' => 'location_views_handler_field_latitude',28 ),29 'location_handler_field_location_country' => array(30 'parent' => 'views_handler_field',31 ),32 'location_handler_filter_location_country' => array(33 'parent' => 'views_handler_filter_in_operator',34 ),35 'location_handler_argument_location_country' => array(36 'parent' => 'views_handler_argument',37 ),38 'location_handler_field_location_province' => array(39 'parent' => 'views_handler_field',40 ),41 'location_handler_filter_location_province' => array(42 'parent' => 'views_handler_filter',43 ),44 'location_handler_argument_location_province' => array(45 'parent' => 'views_handler_argument',46 ),47 'location_handler_argument_location_proximity' => array(48 'parent' => 'views_handler_argument',49 ),50 'location_handler_field_location_address' => array(51 'parent' => 'views_handler_field',52 ),53 'location_handler_field_location_street' => array(54 'parent' => 'views_handler_field',55 ),56 'location_handler_field_location_additional' => array(57 'parent' => 'views_handler_field',58 ),59 'location_views_handler_filter_proximity' => array(60 'parent' => 'views_handler_filter',61 ),62 'location_handler_field_location_distance' => array(63 'parent' => 'views_handler_field',64 ),65 'location_handler_sort_location_distance' => array(66 'parent' => 'views_handler_sort',67 ),68 'location_handler_sort_location_country' => array(69 'parent' => 'views_handler_sort',70 ),71 ),72 );73}74/**75 * Implementation of hook_views_data().76 */77function location_views_data() {78 // Location table -- basic table information.79 // Define the base group of this table. Fields that don't80 // have a group defined will go into this field by default.81 $data['location']['table']['group'] = t('Location', array(), array('context' => 'geolocation'));82 // Advertise this table as a possible base table.83 $data['location']['table']['base'] = array(84 'field' => 'lid',85 'title' => t('Location', array(), array('context' => 'geolocation')),86 'help' => t('Locations are addresses and map coordinates.'),87 'weight' => -10,88 );89 $data['location']['table']['join'] = array(90 // Location links to node through location_instance via lid.91 'node' => array(92 'left_table' => 'location_instance',93 'left_field' => 'lid',94 'field' => 'lid',95 ),96 // Location links to node_revision through location_instance via lid.97 'node_revision' => array(98 'left_table' => 'location_instance',99 'left_field' => 'lid',100 'field' => 'lid',101 ),102 // Location links to taxonomy_term_data through location_instance via lid.103 'taxonomy_term_data' => array(104 'left_table' => 'location_instance',105 'left_field' => 'lid',106 'field' => 'lid',107 ),108 // Location links to users through location_instance via lid.109 'users' => array(110 'left_table' => 'location_instance',111 'left_field' => 'lid',112 'field' => 'lid',113 ),114 );115 // Location table -- fields.116 $data['location']['lid'] = array(117 'title' => t('Lid'),118 // The help that appears on the UI.119 'help' => t('The location ID of the location.'),120 // Information for displaying the lid.121 'field' => array(122 'handler' => 'views_handler_field',123 'click sortable' => TRUE,124 ),125 // Information for accepting a lid as an argument126 /*127 'argument' => array(128 'handler' => 'views_handler_argument_node_nid',129 'name field' => 'title', // the field to display in the summary.130 'numeric' => TRUE,131 'validate type' => 'nid',132 ),133 */134 // Information for accepting a lid as a filter.135 'filter' => array(136 'handler' => 'views_handler_filter_numeric',137 'allow empty' => TRUE,138 ),139 // Information for sorting on a lid.140 'sort' => array(141 'handler' => 'views_handler_sort',142 ),143 );144 $data['location']['name'] = array(145 'title' => t('Name'),146 'help' => t('The name of the selected location.'),147 'field' => array(148 'click sortable' => TRUE,149 ),150 'filter' => array(151 'handler' => 'views_handler_filter_string',152 ),153 'sort' => array(154 'handler' => 'views_handler_sort',155 ),156 );157 // @@@ 1.x Conversion -- 'additional' => 'street', style 'additional'158 $data['location']['street'] = array(159 'title' => t('Street'),160 'help' => t('The street address of the selected location.'),161 'field' => array(162 'handler' => 'location_handler_field_location_street',163 'click sortable' => TRUE,164 ),165 'filter' => array(166 'handler' => 'views_handler_filter_string',167 ),168 'sort' => array(169 'handler' => 'views_handler_sort',170 ),171 );172 $data['location']['additional'] = array(173 'title' => t('Additional'),174 'help' => t('Additional street address of the selected location.'),175 'field' => array(176 'click sortable' => TRUE,177 ),178 'argument' => array(179 'handler' => 'views_handler_argument_string',180 // 'empty field name' => t('Unknown'),181 ),182 'filter' => array(183 'handler' => 'views_handler_filter_string',184 ),185 'sort' => array(186 'handler' => 'views_handler_sort',187 ),188 );189 $data['location']['city'] = array(190 'title' => t('City'),191 'help' => t('The city of the selected location.'),192 'field' => array(193 'click sortable' => TRUE,194 ),195 'argument' => array(196 'handler' => 'views_handler_argument_string',197 'empty field name' => t('Unknown'),198 ),199 'filter' => array(200 'handler' => 'views_handler_filter_string',201 ),202 'sort' => array(203 'handler' => 'views_handler_sort',204 ),205 );206 // @@@ 1.x Conversion -- 'province' => 'province', style 'name'; 'province_code' => 'province', style 'code'207 $data['location']['province'] = array(208 'title' => t('Province'),209 'help' => t('The province of the selected location.'),210 'field' => array(211 'handler' => 'location_handler_field_location_province',212 'click sortable' => TRUE,213 ),214 'argument' => array(215 'handler' => 'location_handler_argument_location_province',216 ),217 'filter' => array(218 'handler' => 'location_handler_filter_location_province',219 ),220 'sort' => array(221 'handler' => 'views_handler_sort',222 // TODO: needs handler to sort by name, not code.223 ),224 );225 $data['location']['postal_code'] = array(226 'title' => t('Postal Code'),227 'help' => t('The postal code of the selected location.'),228 'field' => array(229 'click sortable' => TRUE,230 ),231 'filter' => array(232 'handler' => 'views_handler_filter_string',233 ),234 'sort' => array(235 'handler' => 'views_handler_sort',236 ),237 );238 // @@@ 1.x Conversion -- 'country' => 'country', style 'name'; 'country_code' => 'country', style 'code'.239 $data['location']['country'] = array(240 'title' => t('Country'),241 'help' => t('The country of the selected location.'),242 'field' => array(243 'handler' => 'location_handler_field_location_country',244 'click sortable' => TRUE,245 ),246 'argument' => array(247 'handler' => 'location_handler_argument_location_country',248 ),249 'filter' => array(250 'handler' => 'location_handler_filter_location_country',251 ),252 'sort' => array(253 'handler' => 'location_handler_sort_location_country',254 ),255 );256 $data['location']['latitude'] = array(257 'title' => t('Latitude'),258 'help' => t('The latitude of the selected location.'),259 'field' => array(260 'handler' => 'location_views_handler_field_latitude',261 'click sortable' => TRUE,262 ),263 'filter' => array(264 'handler' => 'views_handler_filter_numeric',265 ),266 'sort' => array(267 'handler' => 'views_handler_sort',268 ),269 );270 $data['location']['longitude'] = array(271 'title' => t('Longitude'),272 'help' => t('The longitude of the selected location.'),273 'field' => array(274 'handler' => 'location_views_handler_field_longitude',275 'click sortable' => TRUE,276 ),277 'filter' => array(278 'handler' => 'views_handler_filter_numeric',279 ),280 'sort' => array(281 'handler' => 'views_handler_sort',282 ),283 );284 $data['location']['coordinates'] = array(285 'title' => t('Coordinates'),286 'help' => t("The coordinates of the selected location in 'lat, long' format."),287 'field' => array(288 // The handler adds the longitude.289 'field' => 'latitude',290 'handler' => 'location_views_handler_field_coordinates',291 'click sortable' => FALSE,292 ),293 );294 $data['location']['distance'] = array(295 'title' => t('Distance / Proximity'),296 'help' => t("The distance from the selected location and either the current user or a specific location."),297 'field' => array(298 'handler' => 'location_handler_field_location_distance',299 'click sortable' => TRUE,300 ),301 'sort' => array(302 'handler' => 'location_handler_sort_location_distance',303 ),304 'argument' => array(305 'handler' => 'location_handler_argument_location_proximity',306 ),307 'filter' => array(308 'handler' => 'location_views_handler_filter_proximity',309 ),310 );311 $data['location']['address'] = array(312 'title' => t('Address'),313 'help' => t('The entire address block for the location.'),314 'field' => array(315 'field' => 'lid',316 'handler' => 'location_handler_field_location_address',317 'element type' => 'div',318 ),319 );320 $data['location_instance']['table']['group'] = t('Location', array(), array('context' => 'geolocation'));321 $data['location_instance']['table']['join'] = array(322 'location' => array(323 'left_field' => 'lid',324 'field' => 'lid',325 ),326 'users' => array(327 'left_field' => 'uid',328 'field' => 'uid',329 ),330 'node' => array(331 'left_field' => 'vid',332 'field' => 'vid',333 ),334 'node_revision' => array(335 'left_field' => 'vid',336 'field' => 'vid',337 ),338 'taxonomy_term_data' => array(339 'left_field' => 'tid',340 'field' => 'vid',341 ),342 );343 // Tell the base tables about us.344 $data['node']['table']['join']['location'] = array(345 'left_table' => 'location_instance',346 'left_field' => 'vid',347 'field' => 'vid',348 );349 $data['node_revision']['table']['join']['location'] = array(350 'left_table' => 'location_instance',351 'left_field' => 'vid',352 'field' => 'vid',353 );354 $data['taxonomy_term_data']['table']['join']['location'] = array(355 'left_table' => 'location_instance',356 'left_field' => 'vid',357 'field' => 'tid',358 );359 $data['users']['table']['join']['location'] = array(360 'left_table' => 'location_instance',361 'left_field' => 'uid',362 'field' => 'uid',363 );364 return $data;365}366/**367 * Helper function for proximity handlers.368 *369 * Gets a list of available node location and cck location fields.370 *371 * @return array372 * An array of the location field options.373 */374function location_views_proximity_get_location_field_options() {375 // Get the CCK location field options.376 $field_options = array('node' => t('Node location'));377 if (module_exists('location_cck')) {378 $fields = field_info_fields();379 foreach ($fields as $field) {380 if ($field['module'] == 'location_cck') {381 $field_options[$field['field_name']] = t('CCK Location: @name', array('@name' => $field['field_name']));382 }383 }384 }385 return $field_options;386}387/**388 * Helper function for proximity handlers.389 *390 * Gets available arguments for argument related handler options.391 *392 * @param object $view393 * The view object.394 *395 * @return array...

Full Screen

Full Screen

location.go

Source:location.go Github

copy

Full Screen

2import (3 i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"4 i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"5)6// Location 7type Location struct {8 // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.9 additionalData map[string]interface{}10 // The street address of the location.11 address PhysicalAddressable12 // The geographic coordinates and elevation of the location.13 coordinates OutlookGeoCoordinatesable14 // The name associated with the location.15 displayName *string16 // Optional email address of the location.17 locationEmailAddress *string18 // The type of location. Possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only.19 locationType *LocationType20 // Optional URI representing the location.21 locationUri *string22 // The OdataType property23 odataType *string24 // For internal use only.25 uniqueId *string26 // For internal use only.27 uniqueIdType *LocationUniqueIdType28}29// NewLocation instantiates a new location and sets the default values.30func NewLocation()(*Location) {31 m := &Location{32 }33 m.SetAdditionalData(make(map[string]interface{}));34 odataTypeValue := "#microsoft.graph.location";35 m.SetOdataType(&odataTypeValue);36 return m37}38// CreateLocationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value39func CreateLocationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {40 if parseNode != nil {41 mappingValueNode, err := parseNode.GetChildNode("@odata.type")42 if err != nil {43 return nil, err44 }45 if mappingValueNode != nil {46 mappingValue, err := mappingValueNode.GetStringValue()47 if err != nil {48 return nil, err49 }50 if mappingValue != nil {51 switch *mappingValue {52 case "#microsoft.graph.locationConstraintItem":53 return NewLocationConstraintItem(), nil54 }55 }56 }57 }58 return NewLocation(), nil59}60// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.61func (m *Location) GetAdditionalData()(map[string]interface{}) {62 return m.additionalData63}64// GetAddress gets the address property value. The street address of the location.65func (m *Location) GetAddress()(PhysicalAddressable) {66 return m.address67}68// GetCoordinates gets the coordinates property value. The geographic coordinates and elevation of the location.69func (m *Location) GetCoordinates()(OutlookGeoCoordinatesable) {70 return m.coordinates71}72// GetDisplayName gets the displayName property value. The name associated with the location.73func (m *Location) GetDisplayName()(*string) {74 return m.displayName75}76// GetFieldDeserializers the deserialization information for the current model77func (m *Location) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {78 res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))79 res["address"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetObjectValue(CreatePhysicalAddressFromDiscriminatorValue , m.SetAddress)80 res["coordinates"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetObjectValue(CreateOutlookGeoCoordinatesFromDiscriminatorValue , m.SetCoordinates)81 res["displayName"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetDisplayName)82 res["locationEmailAddress"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetLocationEmailAddress)83 res["locationType"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetEnumValue(ParseLocationType , m.SetLocationType)84 res["locationUri"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetLocationUri)85 res["@odata.type"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetOdataType)86 res["uniqueId"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetStringValue(m.SetUniqueId)87 res["uniqueIdType"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetEnumValue(ParseLocationUniqueIdType , m.SetUniqueIdType)88 return res89}90// GetLocationEmailAddress gets the locationEmailAddress property value. Optional email address of the location.91func (m *Location) GetLocationEmailAddress()(*string) {92 return m.locationEmailAddress93}94// GetLocationType gets the locationType property value. The type of location. Possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only.95func (m *Location) GetLocationType()(*LocationType) {96 return m.locationType97}98// GetLocationUri gets the locationUri property value. Optional URI representing the location.99func (m *Location) GetLocationUri()(*string) {100 return m.locationUri101}102// GetOdataType gets the @odata.type property value. The OdataType property103func (m *Location) GetOdataType()(*string) {104 return m.odataType105}106// GetUniqueId gets the uniqueId property value. For internal use only.107func (m *Location) GetUniqueId()(*string) {108 return m.uniqueId109}110// GetUniqueIdType gets the uniqueIdType property value. For internal use only.111func (m *Location) GetUniqueIdType()(*LocationUniqueIdType) {112 return m.uniqueIdType113}114// Serialize serializes information the current object115func (m *Location) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {116 {117 err := writer.WriteObjectValue("address", m.GetAddress())118 if err != nil {119 return err120 }121 }122 {123 err := writer.WriteObjectValue("coordinates", m.GetCoordinates())124 if err != nil {125 return err126 }127 }128 {129 err := writer.WriteStringValue("displayName", m.GetDisplayName())130 if err != nil {131 return err132 }133 }134 {135 err := writer.WriteStringValue("locationEmailAddress", m.GetLocationEmailAddress())136 if err != nil {137 return err138 }139 }140 if m.GetLocationType() != nil {141 cast := (*m.GetLocationType()).String()142 err := writer.WriteStringValue("locationType", &cast)143 if err != nil {144 return err145 }146 }147 {148 err := writer.WriteStringValue("locationUri", m.GetLocationUri())149 if err != nil {150 return err151 }152 }153 {154 err := writer.WriteStringValue("@odata.type", m.GetOdataType())155 if err != nil {156 return err157 }158 }159 {160 err := writer.WriteStringValue("uniqueId", m.GetUniqueId())161 if err != nil {162 return err163 }164 }165 if m.GetUniqueIdType() != nil {166 cast := (*m.GetUniqueIdType()).String()167 err := writer.WriteStringValue("uniqueIdType", &cast)168 if err != nil {169 return err170 }171 }172 {173 err := writer.WriteAdditionalData(m.GetAdditionalData())174 if err != nil {175 return err176 }177 }178 return nil179}180// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.181func (m *Location) SetAdditionalData(value map[string]interface{})() {182 m.additionalData = value183}184// SetAddress sets the address property value. The street address of the location.185func (m *Location) SetAddress(value PhysicalAddressable)() {186 m.address = value187}188// SetCoordinates sets the coordinates property value. The geographic coordinates and elevation of the location.189func (m *Location) SetCoordinates(value OutlookGeoCoordinatesable)() {190 m.coordinates = value191}192// SetDisplayName sets the displayName property value. The name associated with the location.193func (m *Location) SetDisplayName(value *string)() {194 m.displayName = value195}196// SetLocationEmailAddress sets the locationEmailAddress property value. Optional email address of the location.197func (m *Location) SetLocationEmailAddress(value *string)() {198 m.locationEmailAddress = value199}200// SetLocationType sets the locationType property value. The type of location. Possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only.201func (m *Location) SetLocationType(value *LocationType)() {202 m.locationType = value203}204// SetLocationUri sets the locationUri property value. Optional URI representing the location.205func (m *Location) SetLocationUri(value *string)() {206 m.locationUri = value207}208// SetOdataType sets the @odata.type property value. The OdataType property209func (m *Location) SetOdataType(value *string)() {210 m.odataType = value211}212// SetUniqueId sets the uniqueId property value. For internal use only.213func (m *Location) SetUniqueId(value *string)() {214 m.uniqueId = value215}216// SetUniqueIdType sets the uniqueIdType property value. For internal use only.217func (m *Location) SetUniqueIdType(value *LocationUniqueIdType)() {218 m.uniqueIdType = value219}...

Full Screen

Full Screen

location_from_node.inc

Source:location_from_node.inc Github

copy

Full Screen

...80 * case where there are multiple locations attached to nodes, so the only81 * settings form element is the location offset to use (which defaults to 082 * for the first location in the node).83 *84 * If only location_cck is enabled, we see if there are any Location CCK85 * fields defined on any content types and present all of those as options for86 * the admin to select which Location CCK field should be used for the87 * relationship. Again, to handle multi-valued fields, we need to ask for an88 * offset.89 *90 * If both location_node and location_cck are enabled, the form presents two91 * radio buttons so the user selects which kind of location field they want to92 * use for the relationship, and we use the magic of CTools #dependency to93 * conditionally show/hide the appropriate sub-settings based on the currently94 * selected radio.95 */96function location_location_from_node_settings_form($form, &$form_state) {97 ctools_include('dependent');98 $location_type_options = array();99 $offset_options = array();100 for ($i = 0; $i < 10; $i++) {101 $offset_options[$i] = $i;102 }103 if (module_exists('location_node')) {104 $location_type_options['location_node'] = t('Use location directly saved in the node for this relationship');105 $form['location_node_offset'] = array(106 '#title' => t('Node location offset'),107 '#type' => 'select',108 '#options' => $offset_options,109 '#default_value' => isset($conf['location_node_offset']) ? $conf['location_node_offset'] : 0,110 '#description' => t(111 'If the nodes that will be used for this relationship have multiple locations, select which location you want to use.'112 ),113 '#process' => array('ctools_dependent_process'),114 '#dependency' => array('radio:relationship[relationship_settings][location_type]' => array('location_node')),115 '#weight' => 4,116 );117 }118 if (module_exists('location_cck')) {119 $cck_options = array();120 foreach (field_info_fields() as $field) {121 if ($field['type'] == 'location') {122 $cck_options[$field['field_name']] = check_plain($field['field_name']);123 }124 }125 if (!empty($cck_options)) {126 $form['location_cck_field_name'] = array(127 '#title' => t('Location CCK field to use for this relationship'),128 '#type' => 'select',129 '#options' => $cck_options,130 '#default_value' => isset($conf['location_cck_field_name']) ? $conf['location_cck_field_name'] : '',131 '#process' => array('ctools_dependent_process'),132 '#dependency' => array('radio:relationship[relationship_settings][location_type]' => array('location_cck')),133 '#prefix' => '<div class="clear-block">',134 '#suffix' => '</div>',135 '#weight' => 6,136 );137 $form['location_cck_field_offset'] = array(138 '#title' => t('Location CCK field offset'),139 '#type' => 'select',140 '#options' => $offset_options,141 '#default_value' => isset($conf['location_cck_field_offset']) ? $conf['location_cck_field_offset'] : 0,142 '#description' => t(143 'If the nodes that will be used for this relationship have multiple locations, select which location you want to use.'144 ),145 '#process' => array('ctools_dependent_process'),146 '#dependency' => array('radio:relationship[relationship_settings][location_type]' => array('location_cck')),147 '#weight' => 7,148 '#prefix' => '<div class="clear-block">',149 '#suffix' => '</div>',150 );151 // Since we have valid Location CCK fields on the site, present this as152 // an option for the location relationship.153 $location_type_options['location_cck'] = t('Use location CCK fields for this relationship');154 }155 }156 if (isset($location_type_options)) {157 if (count($location_type_options) > 1) {158 $form['location_type'] = array(159 '#title' => t('Location type'),160 '#type' => 'radios',161 '#options' => $location_type_options,162 '#default_value' => isset($conf['location_type']) ? $conf['location_type'] : '',163 '#weight' => 2,164 );165 }166 else {167 $form['location_type'] = array(168 '#type' => 'value',169 '#value' => reset(array_keys($location_type_options)),170 );171 }172 }173 return $form;...

Full Screen

Full Screen

api_locations.php

Source:api_locations.php Github

copy

Full Screen

1<?php2/*List all revisions3//revision 1.24*/5/* Verify that the Location code is valid, and doesn't already6 exist.*/7 function VerifyLocationCode($LocationCode, $i, $Errors) {8 if ((mb_strlen($LocationCode)<1) or (mb_strlen($LocationCode)>5)) {9 $Errors[$i] = IncorrectLocationCodeLength;10 }11 $Searchsql = "SELECT count(loccode)12 FROM locations13 WHERE loccode='".$LocationCode."'";14 $SearchResult=DB_query($Searchsql);15 $answer = DB_fetch_row($SearchResult);16 if ($answer[0] != 0) {17 $Errors[$i] = LocationCodeAlreadyExists;18 }19 return $Errors;20 }21/* Check that the Location Code exists*/22 function VerifyLocationExists($LocationCode, $i, $Errors) {23 $Searchsql = "SELECT count(loccode)24 FROM locations25 WHERE loccode='".$LocationCode."'";26 $SearchResult=DB_query($Searchsql);27 $answer = DB_fetch_array($SearchResult);28 if ($answer[0]==0) {29 $Errors[$i] = LocationCodeDoesntExist;30 }31 return $Errors;32 }33/* Check that the Location name is valid and is 50 characters or less long */34 function VerifyLocationName($LocationName, $i, $Errors) {35 if ((mb_strlen($LocationName)<1) or (mb_strlen($LocationName)>50)) {36 $Errors[$i] = IncorrectLocationNameLength;37 }38 return $Errors;39 }40/* Check that the tax province id is set up in the weberp database */41 function VerifyTaxProvinceId($TaxProvinceId , $i, $Errors) {42 $Searchsql = "SELECT COUNT(taxprovinceid)43 FROM taxprovinces44 WHERE taxprovinceid='".$TaxProvinceId."'";45 $SearchResult=DB_query($Searchsql);46 $answer = DB_fetch_row($SearchResult);47 if ($answer[0] == 0) {48 $Errors[$i] = TaxProvinceIdNotSetup;49 }50 return $Errors;51 }52/* This function returns a list of the stock location id's53 * currently setup on webERP54 */55 function GetLocationList($user, $password) {56 $Errors = array();57 $db = db($user, $password);58 if (gettype($db)=='integer') {59 $Errors[0]=NoAuthorisation;60 return $Errors;61 }62 $sql = "SELECT loccode FROM locations";63 $result = DB_query($sql);64 $i=0;65 while ($myrow=DB_fetch_array($result)) {66 $LocationList[$i]=$myrow[0];67 $i++;68 }69 return $LocationList;70 }71/* This function takes as a parameter a stock location id72 * and returns an array containing the details of the selected73 * location.74 */75 function GetLocationDetails($location, $user, $password) {76 $Errors = array();77 $db = db($user, $password);78 if (gettype($db)=='integer') {79 $Errors[0]=NoAuthorisation;80 return $Errors;81 }82 $sql = "SELECT * FROM locations WHERE loccode='".$location."'";83 $result = DB_query($sql);84 return DB_fetch_array($result);85 }86/* Inserts a Location in webERP.87 */88 function InsertLocation($Location, $user, $password) {89 $Errors = array();90 $db = db($user, $password);91 if (gettype($db)=='integer') {92 $Errors[0]=NoAuthorisation;93 return $Errors;94 }95 foreach ($Location as $key => $value) {96 $Location[$key] = DB_escape_string($value);97 }98 $Errors=VerifyLocationCode($Location['loccode'], sizeof($Errors), $Errors);99 $Errors=VerifyLocationName($Location['locationname'], sizeof($Errors), $Errors);100 $Errors=VerifyTaxProvinceId($Location['taxprovinceid'], sizeof($Errors), $Errors);101 if (isset($Location['deladd1'])){102 $Errors=VerifyAddressLine($Location['deladd1'], 40, sizeof($Errors), $Errors);103 }104 if (isset($Location['deladd2'])){105 $Errors=VerifyAddressLine($Location['deladd2'], 40, sizeof($Errors), $Errors);106 }107 if (isset($Location['deladd3'])){108 $Errors=VerifyAddressLine($Location['deladd3'], 40, sizeof($Errors), $Errors);109 }110 if (isset($Location['deladd4'])){111 $Errors=VerifyAddressLine($Location['deladd4'], 40, sizeof($Errors), $Errors);112 }113 if (isset($Location['deladd5'])){114 $Errors=VerifyAddressLine($Location['deladd5'], 20, sizeof($Errors), $Errors);115 }116 if (isset($Location['deladd6'])){117 $Errors=VerifyAddressLine($Location['deladd6'], 15, sizeof($Errors), $Errors);118 }119 if (isset($Location['tel'])){120 $Errors=VerifyPhoneNumber($Location['tel'], sizeof($Errors), $Errors);121 }122 if (isset($Location['fax'])){123 $Errors=VerifyFaxNumber($Location['fax'], sizeof($Errors), $Errors);124 }125 if (isset($Location['email'])){126 $Errors=VerifyEmailAddress($Location['email'], sizeof($Errors), $Errors);127 }128 if (isset($Location['contact'])){129 $Errors=VerifyContactName($Location['contact'], sizeof($Errors), $Errors);130 }131 $FieldNames='';132 $FieldValues='';133 foreach ($Location as $key => $value) {134 $FieldNames.=$key.', ';135 $FieldValues.='"'.$value.'", ';136 }137 if (sizeof($Errors)==0) {138 $sql = "INSERT INTO locations (" . mb_substr($FieldNames,0,-2) . ")139 VALUES ('" . mb_substr($FieldValues,0,-2) . "') ";140 $result = DB_query($sql);141 if (DB_error_no() != 0) {142 $Errors[0] = DatabaseUpdateFailed;143 } else {144 $Errors[0]=0;145 }146 }147 return $Errors;148 }149/* Modify a Location Details in webERP.150 */151 function ModifyLocation($Location, $user, $password) {152 $Errors = array();153 $db = db($user, $password);154 if (gettype($db)=='integer') {155 $Errors[0]=NoAuthorisation;156 return $Errors;157 }158 foreach ($Location as $key => $value) {159 $Location[$key] = DB_escape_string($value);160 }161 $Errors=VerifyLocationExists($Location['loccode'], sizeof($Errors), $Errors);162 $Errors=VerifyLocationName($Location['locationname'], sizeof($Errors), $Errors);163 $Errors=VerifyTaxProvinceId($Location['taxprovinceid'], sizeof($Errors), $Errors);164 if (isset($Location['deladd1'])){165 $Errors=VerifyAddressLine($Location['deladd1'], 40, sizeof($Errors), $Errors);166 }167 if (isset($Location['deladd2'])){168 $Errors=VerifyAddressLine($Location['deladd2'], 40, sizeof($Errors), $Errors);169 }170 if (isset($Location['deladd3'])){171 $Errors=VerifyAddressLine($Location['deladd3'], 40, sizeof($Errors), $Errors);172 }173 if (isset($Location['deladd4'])){174 $Errors=VerifyAddressLine($Location['deladd4'], 40, sizeof($Errors), $Errors);175 }176 if (isset($Location['deladd5'])){177 $Errors=VerifyAddressLine($Location['deladd5'], 20, sizeof($Errors), $Errors);178 }179 if (isset($Location['deladd6'])){180 $Errors=VerifyAddressLine($Location['deladd6'], 15, sizeof($Errors), $Errors);181 }182 if (isset($Location['tel'])){183 $Errors=VerifyPhoneNumber($Location['tel'], sizeof($Errors), $Errors);184 }185 if (isset($Location['fax'])){186 $Errors=VerifyFaxNumber($Location['fax'], sizeof($Errors), $Errors);187 }188 if (isset($Location['email'])){189 $Errors=VerifyEmailAddress($Location['email'], sizeof($Errors), $Errors);190 }191 if (isset($Location['contact'])){192 $Errors=VerifyContactName($Location['contact'], sizeof($Errors), $Errors);193 }194 $sql="UPDATE locations SET ";195 foreach ($Location as $key => $value) {196 $sql .= $key."='" . $value."', ";197 }198 $sql = mb_substr($sql,0,-2)." WHERE loccode='".$Location['loccode']."'";199 if (sizeof($Errors)==0) {200 $result = DB_query($sql);201 if (DB_error_no() != 0) {202 $Errors[0] = DatabaseUpdateFailed;203 } else {204 $Errors[0]=0;205 }206 }207 return $Errors;208 }209?>...

Full Screen

Full Screen

location.php

Source:location.php Github

copy

Full Screen

...28 </div>29 <?php if( get_option('dbem_use_select_for_locations') || !$EM_Event->can_manage('edit_locations','edit_others_locations') ) : ?> 30 <table class="em-location-data">31 <tr class="em-location-data-select">32 <th><?php esc_html_e('Location:','events-manager') ?> </th>33 <td> 34 <select name="location_id" id='location-select-id' size="1"> 35 <?php if(!get_option('dbem_require_location',true)): ?><option value="0"><?php esc_html_e('No Location','events-manager'); ?></option><?php endif; ?>36 <?php 37 $ddm_args = array('blog'=>false, 'private'=>$EM_Event->can_manage('read_private_locations'));38 $ddm_args['owner'] = (is_user_logged_in() && !current_user_can('read_others_locations')) ? get_current_user_id() : false;39 $locations = EM_Locations::get($ddm_args);40 $selected_location = !empty($EM_Event->location_id) || !empty($EM_Event->event_id) ? $EM_Event->location_id:get_option('dbem_default_location');41 foreach($locations as $EM_Location) {42 $selected = ($selected_location == $EM_Location->location_id) ? "selected='selected' " : '';43 if( $selected ) $found_location = true;44 ?> 45 <option value="<?php echo esc_attr($EM_Location->location_id) ?>" title="<?php echo esc_attr("{$EM_Location->location_latitude},{$EM_Location->location_longitude}"); ?>" <?php echo $selected ?>><?php echo esc_html($EM_Location->location_name); ?></option>46 <?php47 }48 if( empty($found_location) && !empty($EM_Event->location_id) ){49 $EM_Location = $EM_Event->get_location();50 if( $EM_Location->post_id ){51 ?>52 <option value="<?php echo esc_attr($EM_Location->location_id) ?>" title="<?php echo esc_attr("{$EM_Location->location_latitude},{$EM_Location->location_longitude}"); ?>" selected="selected"><?php echo esc_html($EM_Location->location_name); ?></option>53 <?php54 }55 }56 ?>57 </select>58 </td>59 </tr>60 </table>61 <?php else : ?>62 <table class="em-location-data">63 <?php 64 global $EM_Location;65 if( $EM_Event->location_id !== 0 ){66 $EM_Location = $EM_Event->get_location();67 }elseif(get_option('dbem_default_location') > 0){68 $EM_Location = em_get_location(get_option('dbem_default_location'));69 }else{70 $EM_Location = new EM_Location();71 }72 ?>73 <tr class="em-location-data-name">74 <th><?php _e ( 'Location Name:', 'events-manager')?></th>75 <td>76 <input id='location-id' name='location_id' type='hidden' value='<?php echo esc_attr($EM_Location->location_id); ?>' size='15' />77 <input id="location-name" type="text" name="location_name" value="<?php echo esc_attr($EM_Location->location_name, ENT_QUOTES); ?>" /><?php echo $required; ?> 78 <br />79 <em id="em-location-search-tip"><?php esc_html_e( 'Create a location or start typing to search a previously created location.', 'events-manager')?></em>80 <em id="em-location-reset" style="display:none;"><?php esc_html_e('You cannot edit saved locations here.', 'events-manager'); ?> <a href="#"><?php esc_html_e('Reset this form to create a location or search again.', 'events-manager')?></a></em>81 </td>82 </tr>83 <tr class="em-location-data-address">84 <th><?php _e ( 'Address:', 'events-manager')?>&nbsp;</th>85 <td>86 <input id="location-address" type="text" name="location_address" value="<?php echo esc_attr($EM_Location->location_address); ; ?>" /><?php echo $required; ?>87 </td>88 </tr>89 <tr class="em-location-data-town">90 <th><?php _e ( 'City/Town:', 'events-manager')?>&nbsp;</th>91 <td>92 <input id="location-town" type="text" name="location_town" value="<?php echo esc_attr($EM_Location->location_town); ?>" /><?php echo $required; ?>93 </td>94 </tr>95 <tr class="em-location-data-state">96 <th><?php _e ( 'State/County:', 'events-manager')?>&nbsp;</th>97 <td>98 <input id="location-state" type="text" name="location_state" value="<?php echo esc_attr($EM_Location->location_state); ?>" />99 </td>100 </tr>101 <tr class="em-location-data-postcode">102 <th><?php _e ( 'Postcode:', 'events-manager')?>&nbsp;</th>103 <td>104 <input id="location-postcode" type="text" name="location_postcode" value="<?php echo esc_attr($EM_Location->location_postcode); ?>" />105 </td>106 </tr>107 <tr class="em-location-data-region">108 <th><?php _e ( 'Region:', 'events-manager')?>&nbsp;</th>109 <td>110 <input id="location-region" type="text" name="location_region" value="<?php echo esc_attr($EM_Location->location_region); ?>" />111 </td>112 </tr>113 <tr class="em-location-data-country">114 <th><?php _e ( 'Country:', 'events-manager')?>&nbsp;</th>115 <td>116 <select id="location-country" name="location_country">117 <option value="0" <?php echo ( $EM_Location->location_country == '' && $EM_Location->location_id == '' && get_option('dbem_location_default_country') == '' ) ? 'selected="selected"':''; ?>><?php _e('none selected','events-manager'); ?></option>118 <?php foreach(em_get_countries() as $country_key => $country_name): ?>119 <option value="<?php echo esc_attr($country_key); ?>" <?php echo ( $EM_Location->location_country == $country_key || ($EM_Location->location_country == '' && $EM_Location->location_id == '' && get_option('dbem_location_default_country')==$country_key) ) ? 'selected="selected"':''; ?>><?php echo esc_html($country_name); ?></option>120 <?php endforeach; ?>121 </select><?php echo $required; ?>122 </td>123 </tr>124 </table>125 <?php endif; ?>126 <?php if ( get_option( 'dbem_gmap_is_active' ) ) em_locate_template('forms/map-container.php',true); ?>127 <br style="clear:both;" /> ...

Full Screen

Full Screen

Location

Using AI Code Generation

copy

Full Screen

1require_once 'CucumberCommonLibrary/Location.php';2$location = new CucumberCommonLibrary\Location();3$location->setLatitude(10.0);4$location->setLongitude(20.0);5echo $location->getLatitude();6echo $location->getLongitude();7$location->setLatitude(30.0);8$location->setLongitude(40.0);9echo $location->getLatitude();10echo $location->getLongitude();11$location->setLatitude(50.0);12$location->setLongitude(60.0);13echo $location->getLatitude();14echo $location->getLongitude();15$location->setLatitude(70.0);16$location->setLongitude(80.0);17echo $location->getLatitude();18echo $location->getLongitude();19$location->setLatitude(90.0);20$location->setLongitude(100.0);21echo $location->getLatitude();22echo $location->getLongitude();23$location->setLatitude(110.0);24$location->setLongitude(120.0);

Full Screen

Full Screen

Location

Using AI Code Generation

copy

Full Screen

1$location = new Location();2$location->setLatitude(34.0522342);3$location->setLongitude(-118.2436849);4$location->setAddress("Los Angeles, CA");5$location->setCountry("USA");6$location->setCity("Los Angeles");7$location->setZipCode("90012");8$location->setState("CA");9$user = new User();10$user->setFirstName("John");11$user->setLastName("Doe");12$user->setEmail("

Full Screen

Full Screen

Location

Using AI Code Generation

copy

Full Screen

1include_once "Cucumber/Common/Location.php";2$loc = new Location();3$loc->setLatitude(12.345);4$loc->setLongitude(67.890);5$loc->setAltitude(123);6$loc->setAccuracy(12.3);7$loc->setAltitudeAccuracy(12.3);8$loc->setHeading(12.3);9$loc->setSpeed(12.3);10$loc->setTimestamp(1234);11$loc->setAddress("Address");12$loc->setCountry("Country");13$loc->setCountryCode("CountryCode");14$loc->setRegion("Region");15$loc->setRegionCode("RegionCode");16$loc->setCity("City");17$loc->setPostalCode("PostalCode");18$loc->setStreet("Street");19$loc->setFeature("Feature");20$loc->setPhone("Phone");21$loc->setUrl("Url");22$loc->setEmail("Email");23$loc->setExtra("Extra");24echo $loc->getLatitude();25echo $loc->getLongitude();26echo $loc->getAltitude();27echo $loc->getAccuracy();28echo $loc->getAltitudeAccuracy();29echo $loc->getHeading();30echo $loc->getSpeed();31echo $loc->getTimestamp();32echo $loc->getAddress();33echo $loc->getCountry();34echo $loc->getCountryCode();35echo $loc->getRegion();36echo $loc->getRegionCode();37echo $loc->getCity();38echo $loc->getPostalCode();39echo $loc->getStreet();40echo $loc->getFeature();41echo $loc->getPhone();42echo $loc->getUrl();43echo $loc->getEmail();44echo $loc->getExtra();45echo $loc->toString();46include_once "Cucumber/Common/Location.php";47$loc = new Location();48$loc->setLatitude(12.345);49$loc->setLongitude(67.890);50$loc->setAltitude(123);51$loc->setAccuracy(12.3);52$loc->setAltitudeAccuracy(12.3);53$loc->setHeading(12.3);54$loc->setSpeed(12.3);55$loc->setTimestamp(1234);56$loc->setAddress("Address");57$loc->setCountry("Country");

Full Screen

Full Screen

Location

Using AI Code Generation

copy

Full Screen

1require_once 'Cucumber/Common/Location.php';2$location = new Cucumber_Common_Location();3$location->setLatitude(40.747921);4$location->setLongitude(-73.996933);5$location->setAddress('New York, NY');6$location->setCity('New York');7$location->setState('NY');8$location->setZip('10019');9$location->setCountry('USA');10$location->setPhone('212-123-4567');11$location->setFax('212-123-4568');12$location->setEmail('

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Cucumber Common Library automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used methods in Location

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful