*
* @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
{
- protected $thumb;
-
- function show()
- {
- $this->thumb = parent::getThumbInfo();
- if (!empty($this->thumb)) {
- parent::show();
- }
-
- }
-
- function getThumbInfo()
- {
- return $this->thumb;
- }
-
function showLink() {
$this->out->elementStart('a', $this->linkAttr());
$this->showRepresentation();