2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: pagePart
|
|
|
|
description: pagePart attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: pagePart
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|blocks|Array of [PageBlock](../types/PageBlock.md) | Yes|
|
|
|
|
|photos|Array of [Photo](../types/Photo.md) | Yes|
|
|
|
|
|videos|Array of [Document](../types/Document.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Page](../types/Page.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-03-11 19:54:51 +01:00
|
|
|
$pagePart = ['_' => 'pagePart', 'blocks' => [PageBlock], 'photos' => [Photo], 'videos' => [Document], ];
|
2017-01-25 23:16:22 +01:00
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
pagePart={_='pagePart', blocks={PageBlock}, photos={Photo}, videos={Document}, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|