/** * Reads the information about the attachment with the given database id * * @param $id integer the database identifier of the attachment * @return array the information about the attachment */ public function getAttachmentInfo($id) { $info = null; $attachment = new tlAttachment($id); if ($attachment->readFromDB($this->db)) { $info = $attachment->getInfo(); } return $info; }