23 $docProps = $this->spreadsheet->getProperties();
24 foreach ($gnmXML->Summary->Item as $summaryItem) {
25 $propertyName = $summaryItem->name;
26 $propertyValue = $summaryItem->{
'val-string'};
27 switch ($propertyName) {
29 $docProps->setTitle(trim($propertyValue));
33 $docProps->setDescription(trim($propertyValue));
37 $docProps->setKeywords(trim($propertyValue));
41 $docProps->setCategory(trim($propertyValue));
45 $docProps->setManager(trim($propertyValue));
49 $docProps->setCreator(trim($propertyValue));
50 $docProps->setLastModifiedBy(trim($propertyValue));
54 $docProps->setCompany(trim($propertyValue));
63 $docProps = $this->spreadsheet->getProperties();
64 foreach ($officePropertyDC as $propertyName => $propertyValue) {
65 $propertyValue = trim((
string) $propertyValue);
66 switch ($propertyName) {
68 $docProps->setTitle($propertyValue);
72 $docProps->setSubject($propertyValue);
76 $docProps->setCreator($propertyValue);
77 $docProps->setLastModifiedBy($propertyValue);
81 $creationDate = $propertyValue;
82 $docProps->setModified($creationDate);
86 $docProps->setDescription($propertyValue);
95 $docProps = $this->spreadsheet->getProperties();
96 foreach ($officePropertyMeta as $propertyName => $propertyValue) {
97 if ($propertyValue !== null) {
99 $propertyValue = trim((
string) $propertyValue);
100 switch ($propertyName) {
102 $docProps->setKeywords($propertyValue);
105 case 'initial-creator':
106 $docProps->setCreator($propertyValue);
107 $docProps->setLastModifiedBy($propertyValue);
110 case 'creation-date':
111 $creationDate = $propertyValue;
112 $docProps->setCreated($creationDate);
127 $docProps = $this->spreadsheet->getProperties();
130 $docProps->setCompany($propertyValue);
134 $docProps->setCategory($propertyValue);
138 $docProps->setManager($propertyValue);
147 if (!empty($officeXML)) {
148 $officeDocXML = $officeXML->{
'document-meta'};
149 $officeDocMetaXML = $officeDocXML->meta;
151 foreach ($officeDocMetaXML as $officePropertyData) {
158 } elseif (isset($gnmXML->Summary)) {
readProperties(SimpleXMLElement $xml, SimpleXMLElement $gnmXML)
docPropertiesMeta(SimpleXMLElement $officePropertyMeta)
if(array_key_exists('yes', $_REQUEST)) $attributes
__construct(Spreadsheet $spreadsheet)
docPropertiesDC(SimpleXMLElement $officePropertyDC)
docPropertiesOld(SimpleXMLElement $gnmXML)
userDefinedProperties(string $attrName, string $propertyValue)