*
* @return ListItem a list item for displaying the attachment
*/
- function newListItem($attachment)
+ function newListItem(File $attachment)
{
return new InlineAttachmentListItem($attachment, $this->out);
}
class InlineAttachmentListItem extends AttachmentListItem
{
- function show()
- {
- if ($this->attachment->isEnclosure()) {
- parent::show();
- }
- }
-
function showLink() {
$this->out->elementStart('a', $this->linkAttr());
$this->showRepresentation();