NotificationManager::getMgrDelegate PHP Method

getMgrDelegate() protected method

protected getMgrDelegate ( $notificationType, $assocType, $assocId )
    protected function getMgrDelegate($notificationType, $assocType, $assocId)
    {
        switch ($notificationType) {
            case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
            case NOTIFICATION_TYPE_VISIT_CATALOG:
                assert($assocType == ASSOC_TYPE_SUBMISSION && is_numeric($assocId));
                import('classes.notification.managerDelegate.ApproveSubmissionNotificationManager');
                return new ApproveSubmissionNotificationManager($notificationType);
        }
        // Otherwise, fall back on parent class
        return parent::getMgrDelegate($notificationType, $assocType, $assocId);
    }