azure-storage-blob\src\Blob\Models\BlockList.php

Show: PublicProtectedPrivateinherited
Table of Contents
LICENSE: The MIT License (the "License") you may not use this file except in compliance with the License.

You may obtain a copy of the License at https://github.com/azure/azure-storage-php/LICENSE

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

PHP version 5

Author
Azure Storage PHP SDK  
Category
Microsoft  
Copyright
2016 Microsoft Corporation  
License
https://github.com/azure/azure-storage-php/LICENSE  
Link
https://github.com/azure/azure-storage-php  
Package
MicrosoftAzure\Storage\Blob\Models  

\MicrosoftAzure\Storage\Blob\Models\BlockList

Package: MicrosoftAzure\Storage\Blob\Models
Holds block list used for commitBlobBlocks
Author
Azure Storage PHP SDK  
Category
Microsoft  
Copyright
2016 Microsoft Corporation  
License
https://github.com/azure/azure-storage-php/LICENSE  
Link
https://github.com/azure/azure-storage-php  

Methods

methodpublicaddCommittedEntry(string $blockId) : void

Addds committed block entry.

Parameters
NameTypeDescription
$blockIdstring

The block id.

methodpublicaddEntry(string $blockId, string $type) : void

Adds new entry to the block list entries.

Parameters
NameTypeDescription
$blockIdstring

The block id.

$typestring

The entry type, you can use BlobBlockType.

methodpublicaddLatestEntry(string $blockId) : void

Addds latest block entry.

Parameters
NameTypeDescription
$blockIdstring

The block id.

methodpublicaddUncommittedEntry(string $blockId) : void

Addds uncommitted block entry.

Parameters
NameTypeDescription
$blockIdstring

The block id.

methodpubliccreate(array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block> $array) : \MicrosoftAzure\Storage\Blob\Models\BlockList
static

Creates block list from array of blocks.

Parameters
NameTypeDescription
$arrayarray<mixed,\MicrosoftAzure\Storage\Blob\Models\Block>

The blocks array.

Returns
TypeDescription
\MicrosoftAzure\Storage\Blob\Models\BlockList
methodpublicgetEntries() : array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block>

Gets all blob block entries.

Returns
TypeDescription
array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block>
methodpublicgetEntry(string $blockId) : \MicrosoftAzure\Storage\Blob\Models\Block

Gets blob block entry.

Parameters
NameTypeDescription
$blockIdstring

The id of the block.

Returns
TypeDescription
\MicrosoftAzure\Storage\Blob\Models\Block
Documentation was generated by phpDocumentor 2.9.1.