/** * Retrieve notification mail type formmatted as a message within the reminder * * @param Docman_ApprovalTable $table The approval The approval table that its reminder notification will be sent * * @return PFUser */ private function getNotificationStyle(Docman_ApprovalTable $table) { $notifStyle = ''; switch ($table->getNotification()) { case PLUGIN_DOCMAN_APPROVAL_NOTIF_SEQUENTIAL: $notifStyle = $GLOBALS['Language']->getText('plugin_docman', 'approval_notif_mail_notif_seq', array($GLOBALS['sys_name'])); break; case PLUGIN_DOCMAN_APPROVAL_NOTIF_ALLATONCE: $notifStyle = $GLOBALS['Language']->getText('plugin_docman', 'approval_notif_mail_notif_all'); break; } return $notifStyle; }