File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,14 @@ class DocumentProperties
116
116
private $ customProperties = [];
117
117
118
118
/**
119
- * Create a new \PhpOffice\PhpPresentation\DocumentProperties.
119
+ * status
120
+ *
121
+ * @var string
122
+ */
123
+ private $ status ;
124
+
125
+ /**
126
+ * Create a new \PhpOffice\PhpPresentation\DocumentProperties
120
127
*/
121
128
public function __construct ()
122
129
{
@@ -132,6 +139,7 @@ public function __construct()
132
139
$ this ->category = '' ;
133
140
$ this ->company = 'Microsoft Corporation ' ;
134
141
$ this ->revision = '' ;
142
+ $ this ->status = '' ;
135
143
}
136
144
137
145
/**
@@ -479,4 +487,27 @@ public function setRevision(string $pValue = ''): self
479
487
480
488
return $ this ;
481
489
}
490
+
491
+ /**
492
+ * Get Status
493
+ *
494
+ * @return string
495
+ */
496
+ public function getStatus ()
497
+ {
498
+ return $ this ->status ;
499
+ }
500
+
501
+ /**
502
+ * Set Status
503
+ *
504
+ * @param string $pValue
505
+ * @return \PhpOffice\PhpPresentation\DocumentProperties
506
+ */
507
+ public function setStatus ($ pValue = '' )
508
+ {
509
+ $ this ->status = $ pValue ;
510
+
511
+ return $ this ;
512
+ }
482
513
}
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ protected function loadDocumentProperties(string $sPart): void
229
229
'/cp:coreProperties/dcterms:created ' => 'setCreated ' ,
230
230
'/cp:coreProperties/dcterms:modified ' => 'setModified ' ,
231
231
'/cp:coreProperties/cp:revision ' => 'setRevision ' ,
232
+ '/cp:coreProperties/cp:contentStatus ' => 'setStatus ' ,
232
233
);
233
234
$ oProperties = $ this ->oPhpPresentation ->getDocumentProperties ();
234
235
foreach ($ arrayProperties as $ path => $ property ) {
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ public function render(): ZipInterface
73
73
// cp:revision
74
74
$ objWriter ->writeElement ('cp:revision ' , $ this ->oPresentation ->getDocumentProperties ()->getRevision ());
75
75
76
+ // cp:contentStatus
77
+ $ objWriter ->writeElement ('cp:contentStatus ' , $ this ->oPresentation ->getDocumentProperties ()->getStatus ());
78
+
76
79
// cp:category
77
80
$ objWriter ->writeElement ('cp:category ' , $ this ->oPresentation ->getDocumentProperties ()->getCategory ());
78
81
You can’t perform that action at this time.
0 commit comments