Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.1

Request #16483 Rewrite element modification system
Submitted: 2009-07-31 20:40 UTC
From: cweiske Assigned:
Status: Open Package: OpenDocument (version 0.2.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-07-31 20:40 UTC] cweiske (Christian Weiske)
Description: ------------ Currently, we have add*() methods in each element class. This duplicates a lot of code, which is not what we want. Since PHP doesn't support traits yet, we have to build a nice hierarchy and try to inherit as much as possible. We might also add some array access for easy adding, instead of using add*(): $element[] = 'This is a new paragraph'; $element[] = array('img', '/path/to/image'); We'll see.

Comments