/** */ public function __get($name) { switch ($name) { case 'linked': return $this->_storage instanceof IMP_Compose_Attachment_Linked; } return parent::__get($name); }