public function addConfirmation($confirmationMessage) { $confirmation = new message('message.tpl'); $confirmation->buildMessage('confirmation', $confirmationMessage); $this->confirmations[] = $confirmation; }