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 string $author |
||
34 | * @param integer $revision |
||
35 | */ |
||
36 | public function __construct($author = '', $revision = 0) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function buildCoreXML() |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | private function getCoreProperties() |
||
72 | |||
73 | /** |
||
74 | * CreatedDate ex: '2016-08-30T15:52:19.00Z'; |
||
75 | * @return string |
||
76 | */ |
||
77 | private function created() |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | private function creator() |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | private function revision() |
||
97 | } |
||
98 |