PKPNotificationOperationManager::getIconClass PHP Method

getIconClass() public method

public getIconClass ( $notification )
    function getIconClass($notification)
    {
        return '';
    }

Usage Example

コード例 #1
0
 /**
  * @copydoc PKPNotificationOperationManager::getNotificationContents()
  */
 public function getIconClass($notification)
 {
     $iconClass = parent::getIconClass($notification);
     switch ($notification->getType()) {
         case NOTIFICATION_TYPE_SUCCESS:
             return 'notifyIconSuccess';
         case NOTIFICATION_TYPE_WARNING:
             return 'notifyIconWarning';
         case NOTIFICATION_TYPE_ERROR:
             return 'notifyIconError';
         case NOTIFICATION_TYPE_INFORMATION:
             return 'notifyIconInfo';
         case NOTIFICATION_TYPE_FORBIDDEN:
             return 'notifyIconForbidden';
         case NOTIFICATION_TYPE_HELP:
             return 'notifyIconHelp';
         default:
             $delegateResult = $this->getByDelegate($notification->getType(), $notification->getAssocType(), $notification->getAssocId(), __FUNCTION__, array($notification));
             if ($delegateResult) {
                 $iconClass = $delegateResult;
             }
             return $iconClass;
     }
 }