Skip to content

ListItem inhert from AbstractContainer better ? #230

Closed
@basjan

Description

@basjan

I came across the ListItem element and I was wondering if it would not be better if the ListItem was inherited from the AbstractContainer class instead of the AbstractElement class ?

At the moment a structure like:

  • Default font Strong again default
  • Next list item

Seems not possible at the moment.
Considering the other elements, it would be, in my opinion, more logical if one could code the following:

$listItemObject = $section->addListItem(); 
$listItemObject->addText('Default font');
$listItemObject->addText('Strong', array('bold'=>true));
$listItemObject->addText('again default');

$listItemObject = $section->addListItem();
$listItemObject->addText('Next list item');

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions