1 | <?php |
||
11 | class Core |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $author = 'Unknown Author'; |
||
15 | /** @var int */ |
||
16 | private $revision = 0; |
||
17 | /** @var string */ |
||
18 | private $urlCp = 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties'; |
||
19 | /** @var string */ |
||
20 | private $urlDc = 'http://purl.org/dc/elements/1.1/'; |
||
21 | /** @var string */ |
||
22 | private $urlDcType = 'http://purl.org/dc/dcmitype/'; |
||
23 | /** @var string */ |
||
24 | private $urlDcTerms = 'http://purl.org/dc/terms/'; |
||
25 | /** @var string */ |
||
26 | private $urlSchema = 'http://www.w3.org/2001/XMLSchema-instance'; |
||
27 | /** @var string */ |
||
28 | private $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; |
||
29 | |||
30 | /** |
||
31 | * Core constructor. |
||
32 | * |
||
33 | * @param integer $revision |
||
34 | */ |
||
35 | public function __construct($revision = 0) |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function buildCoreXML() |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | private function getCoreProperties() |
||
67 | |||
68 | /** |
||
69 | * CreatedDate ex: '2016-08-30T15:52:19.00Z'; |
||
70 | * @return string |
||
71 | */ |
||
72 | private function created() |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | private function creator() |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | private function revision() |
||
92 | |||
93 | /** |
||
94 | * @param string $author |
||
95 | * |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setAuthor($author) |
||
106 | } |
||
107 |