azure-storage-blob\src\Blob\Models\BlockList.php
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
addCommittedEntry(string $blockId) : void
Addds committed block entry.
Parameters
Name | Type | Description |
---|---|---|
$blockId | string | The block id. |
addEntry(string $blockId, string $type) : void
Adds new entry to the block list entries.
Parameters
Name | Type | Description |
---|---|---|
$blockId | string | The block id. |
$type | string | The entry type, you can use BlobBlockType. |
addLatestEntry(string $blockId) : void
Addds latest block entry.
Parameters
Name | Type | Description |
---|---|---|
$blockId | string | The block id. |
addUncommittedEntry(string $blockId) : void
Addds uncommitted block entry.
Parameters
Name | Type | Description |
---|---|---|
$blockId | string | The block id. |
create(array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block> $array) : \MicrosoftAzure\Storage\Blob\Models\BlockList
static
Creates block list from array of blocks.
Parameters
Returns
Name | Type | Description |
---|---|---|
$array | array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block> | The blocks array. |
Type | Description |
---|---|
\MicrosoftAzure\Storage\Blob\Models\BlockList |
getEntries() : array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block>
Gets all blob block entries.
Returns
Type | Description |
---|---|
array<mixed,\MicrosoftAzure\Storage\Blob\Models\Block> |