/** * returns an array of the message's attachments * * @return Model_Attachment[] */ function getAttachments() { $attachments = DAO_Attachment::getByMessageId($this->id); return $attachments; }