Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 95444
Status: new
Priority: 0/
Queue: OpenOffice-OODoc

Owner: Nobody in particular
Requestors: marksteinerp [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: lacking functionality in getUserProperty and related methods
Date: Wed, 7 May 2014 17:21:57 +0200
To: bug-OpenOffice-OODoc [...]
From: Peter Marksteiner <marksteinerp [...]>
Download (untitled) / with headers
text/plain 814b
Hello, The suite of methods for retrieving user-defined properties in OpenOffice::OODoc::Meta lacks important functionality. Consider the following task: you want to retrieve the name, type and value of all user-defined properties. Let $meta be a metadata object created by $meta = odfMeta(file => 'some_file'); $meta->getUserPropertyElements() gives a list of all user-defined properties. The elements of this list are property element objects. Now I can feed such a property element to getUserProperty and to getUserPropertyElement. The former gives type and value, the latter is basically a noop since it returns the input object. Neither method gives the element name. The problem can easily be solved using the deprecated user_defined() method, but not using the recommended methods. Regards, Peter --

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to