/** * Send notification to pending approvers of the given table * * @param Docman_ApprovalTable $table Approval table * * @return Void */ private function sendNotificationToPendingApprovers(Docman_ApprovalTable $table) { if ($table->isEnabled()) { switch ($table->getNotification()) { case PLUGIN_DOCMAN_APPROVAL_NOTIF_ALLATONCE: $this->notifyAllAtOnce($table); break; case PLUGIN_DOCMAN_APPROVAL_NOTIF_SEQUENTIAL: $this->notifyNextReviewer($table); break; default: break; } } }