$elements
$elements : array
Media elements
Media collection
addElement(string $container, string $mediaType, string $source, \PhpOffice\PhpWord\Element\Image $image = null) : integer
Add new media element
| string | $container | section|headerx|footerx|footnote|endnote |
| string | $mediaType | image|object|link |
| string | $source | |
| \PhpOffice\PhpWord\Element\Image | $image |
addSectionMediaElement(string $src, string $type, \PhpOffice\PhpWord\Element\Image $image = null) : integer
Add new Section Media Element
| string | $src | |
| string | $type | |
| \PhpOffice\PhpWord\Element\Image | $image |
addSectionLinkElement(string $linkSrc) : integer
Add new Section Link Element
| string | $linkSrc |
| codeCoverageIgnore |
|---|
getSectionMediaElements(string $key = null) : array
Get Section Media Elements
| string | $key |
| codeCoverageIgnore |
|---|
countSectionMediaElements(string $key = null) : integer
Get Section Media Elements Count
| string | $key |
| codeCoverageIgnore |
|---|
addHeaderMediaElement(integer $headerCount, string $src, \PhpOffice\PhpWord\Element\Image $image = null) : integer
Add new Header Media Element
| integer | $headerCount | |
| string | $src | |
| \PhpOffice\PhpWord\Element\Image | $image |
| codeCoverageIgnore |
|---|
countHeaderMediaElements(string $key) : integer
Get Header Media Elements Count
| string | $key |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
addFooterMediaElement(integer $footerCount, string $src, \PhpOffice\PhpWord\Element\Image $image = null) : integer
Add new Footer Media Element
| integer | $footerCount | |
| string | $src | |
| \PhpOffice\PhpWord\Element\Image | $image |
| codeCoverageIgnore |
|---|
countFooterMediaElements(string $key) : integer
Get Footer Media Elements Count
| string | $key |
| codeCoverageIgnore |
|---|
| codeCoverageIgnore |
|---|
getElementsByType(string $container, string $type = null) : array
Get elements by media type
| string | $container | section|footnote|endnote |
| string | $type | image|object|link |
| since |
0.11.0 Splitted from |
|---|