call parent constructor in SDT and FormField
This commit is contained in:
parent
0bd396b5cb
commit
610d91e041
|
|
@ -45,6 +45,7 @@ Available Font style options:
|
|||
- ``color``. Font color, e.g. *FF0000*.
|
||||
- ``doubleStrikethrough``. Double strikethrough, *true* or *false*.
|
||||
- ``fgColor``. Font highlight color, e.g. *yellow*, *green*, *blue*.
|
||||
See ``\PhpOffice\PhpWord\Style\Font::FGCOLOR_...`` constants for more values
|
||||
- ``hint``. Font content type, *default*, *eastAsia*, or *cs*.
|
||||
- ``italic``. Italic, *true* or *false*.
|
||||
- ``name``. Font name, e.g. *Arial*.
|
||||
|
|
@ -54,7 +55,8 @@ Available Font style options:
|
|||
- ``strikethrough``. Strikethrough, *true* or *false*.
|
||||
- ``subScript``. Subscript, *true* or *false*.
|
||||
- ``superScript``. Superscript, *true* or *false*.
|
||||
- ``underline``. Underline, *dash*, *dotted*, etc.
|
||||
- ``underline``. Underline, *single*, *dash*, *dotted*, etc.
|
||||
See ``\PhpOffice\PhpWord\Style\Font::UNDERLINE_...`` constants for more values
|
||||
- ``lang``. Language, either a language code like *en-US*, *fr-BE*, etc. or an object (or as an array) if you need to set eastAsian or bidirectional languages
|
||||
See ``\PhpOffice\PhpWord\Style\Language`` class for some language codes.
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ class FormField extends Text
|
|||
*/
|
||||
public function __construct($type, $fontStyle = null, $paragraphStyle = null)
|
||||
{
|
||||
parent::__construct(null, $fontStyle, $paragraphStyle);
|
||||
$this->setType($type);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class SDT extends Text
|
|||
*/
|
||||
public function __construct($type, $fontStyle = null, $paragraphStyle = null)
|
||||
{
|
||||
parent::__construct(null, $fontStyle, $paragraphStyle);
|
||||
$this->setType($type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue