Basic implementation event signup
This commit is contained in:
		
							
								
								
									
										13
									
								
								modules/event-participants/Requests/class-bathrequest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/event-participants/Requests/class-bathrequest.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
<?php
 | 
			
		||||
namespace Bdp\Modules\EventParticipants\Reqeust;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
use Bdp\Libs\CommonModel;
 | 
			
		||||
 | 
			
		||||
class BathRequest {
 | 
			
		||||
	public static function send(CommonModel $participant) {
 | 
			
		||||
		return ($participant->badeerlaubnis == 'complete' || kompass_is_fullaged( $participant->geburtsdatum ) )
 | 
			
		||||
			? 'Schwimmer*in' :
 | 
			
		||||
			( $participant->badeerlaubnis == 'partial' ? '<b>Nicht</b>schwimmmer*in' : 'Keine Badeerlaubnis' );
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user