@@ -58,7 +58,7 @@ abstract class AbstractContainer extends AbstractElement
58
58
protected $ elements = array ();
59
59
60
60
/**
61
- * Container type Section|Header|Footer|Footnote|Endnote|Cell|TextRun|TextBox|ListItemRun
61
+ * Container type Section|Header|Footer|Footnote|Endnote|Cell|TextRun|TextBox|ListItemRun|TrackChange
62
62
*
63
63
* @var string
64
64
*/
@@ -83,7 +83,7 @@ public function __call($function, $args)
83
83
'ListItem ' , 'ListItemRun ' , 'Table ' , 'Image ' , 'Object ' ,
84
84
'Footnote ' , 'Endnote ' , 'CheckBox ' , 'TextBox ' , 'Field ' ,
85
85
'Line ' , 'Shape ' , 'Title ' , 'TOC ' , 'PageBreak ' ,
86
- 'Chart ' , 'FormField ' , 'SDT '
86
+ 'Chart ' , 'FormField ' , 'SDT ' , ' Comment '
87
87
);
88
88
$ functions = array ();
89
89
foreach ($ elements as $ element ) {
@@ -188,7 +188,7 @@ public function countElements()
188
188
private function checkValidity ($ method )
189
189
{
190
190
$ generalContainers = array (
191
- 'Section ' , 'Header ' , 'Footer ' , 'Footnote ' , 'Endnote ' , 'Cell ' , 'TextRun ' , 'TextBox ' , 'ListItemRun ' ,
191
+ 'Section ' , 'Header ' , 'Footer ' , 'Footnote ' , 'Endnote ' , 'Cell ' , 'TextRun ' , 'TextBox ' , 'ListItemRun ' , ' TrackChange ' ,
192
192
);
193
193
194
194
$ validContainers = array (
@@ -203,7 +203,8 @@ private function checkValidity($method)
203
203
'Shape ' => $ generalContainers ,
204
204
'FormField ' => $ generalContainers ,
205
205
'SDT ' => $ generalContainers ,
206
- 'TextRun ' => array ('Section ' , 'Header ' , 'Footer ' , 'Cell ' , 'TextBox ' ),
206
+ 'TrackChange ' => $ generalContainers ,
207
+ 'TextRun ' => array ('Section ' , 'Header ' , 'Footer ' , 'Cell ' , 'TextBox ' , 'TrackChange ' ),
207
208
'ListItem ' => array ('Section ' , 'Header ' , 'Footer ' , 'Cell ' , 'TextBox ' ),
208
209
'ListItemRun ' => array ('Section ' , 'Header ' , 'Footer ' , 'Cell ' , 'TextBox ' ),
209
210
'Table ' => array ('Section ' , 'Header ' , 'Footer ' , 'Cell ' , 'TextBox ' ),
0 commit comments