public function __get($name)
{
switch ($name) {
case 'linked':
return $this instanceof IMP_Compose_Attachment_Linked;
case 'link_url':
return $this->linked ? Horde::url('attachment.php', true, array('append_session' => -1))->add(array('id' => $this->_id, 'u' => $this->_user)) : null;
}
}