PKPNotificationOperationManager::isVisibleToAllUsers PHP Method

isVisibleToAllUsers() public method

public isVisibleToAllUsers ( $notificationType, $assocType, $assocId )
    function isVisibleToAllUsers($notificationType, $assocType, $assocId)
    {
        return false;
    }

Usage Example

コード例 #1
0
 /**
  * @copydoc PKPNotificationOperationManager::isVisibleToAllUsers()
  */
 public function isVisibleToAllUsers($notificationType, $assocType, $assocId)
 {
     $isVisible = parent::isVisibleToAllUsers($notificationType, $assocType, $assocId);
     switch ($notificationType) {
         case NOTIFICATION_TYPE_REVIEW_ROUND_STATUS:
         case NOTIFICATION_TYPE_APPROVE_SUBMISSION:
         case NOTIFICATION_TYPE_VISIT_CATALOG:
         case NOTIFICATION_TYPE_CONFIGURE_PAYMENT_METHOD:
             $isVisible = true;
             break;
         default:
             $delegateResult = $this->getByDelegate($notificationType, $assocType, $assocId, __FUNCTION__, array($notificationType, $assocType, $assocId));
             if (!is_null($delegateResult)) {
                 $isVisible = $delegateResult;
             }
             break;
     }
     return $isVisible;
 }