public function getAllAttachments()
    {
        $iTotalAttachments = $this->GetAttachmentsCount();
        $listAttachments = array();
        for ($index = 1; $index <= $iTotalAttachments; $index++) {
            array_push($listAttachments, $this->GetAttachment($index));
        }
        return $listAttachments;
    }