Container
extends AbstractElement
in package
Container element HTML writer.
Tags
Table of Contents
Properties
- $element : AbstractElement
- Element.
- $namespace : string
- Namespace; Can't use __NAMESPACE__ in inherited class (RTF).
- $parentWriter : HTML
- Parent writer.
- $withoutP : bool
- Without paragraph.
Methods
- __construct() : mixed
- Create new instance.
- setWithoutP() : void
- Set without paragraph.
- write() : string
- Write container.
Properties
$element
Element.
protected
AbstractElement
$element
$namespace
Namespace; Can't use __NAMESPACE__ in inherited class (RTF).
protected
string
$namespace
= 'PhpOffice\PhpWord\Writer\HTML\Element'
$parentWriter
Parent writer.
protected
HTML
$parentWriter
$withoutP
Without paragraph.
protected
bool
$withoutP
= false
Methods
__construct()
Create new instance.
public
__construct(HTML $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : HTML
- $element : AbstractElement
- $withoutP : bool = false
setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : void
Parameters
- $value : bool
write()
Write container.
public
write() : string