You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							748 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							748 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use App\Wrappers\DatabaseInteractions;
							 | 
						|
								use App\Wrappers\SQLQueryBuilderWrapper;
							 | 
						|
								use App\Wrappers\TwigWrapper;
							 | 
						|
								
							 | 
						|
								require_once __DIR__ . "/../../vendor/autoload.php";
							 | 
						|
								
							 | 
						|
								$db = new DatabaseInteractions();
							 | 
						|
								
							 | 
						|
								$tuneDetails = $db->RunOneSelect(
							 | 
						|
								    queryBuilder: SQLQueryBuilderWrapper::SELECT_ONE(
							 | 
						|
								        table: 'Tunes',
							 | 
						|
								        id: $_GET["tune-id"]
							 | 
						|
								    ),
							 | 
						|
								);
							 | 
						|
								
							 | 
						|
								$variants = $db->RunSelect(
							 | 
						|
								    queryBuilder: SQLQueryBuilderWrapper::SELECT(
							 | 
						|
								        table: 'TuneVariants',
							 | 
						|
								    )
							 | 
						|
								    ->where(cond: 'T.TuneID=:__tune_id__')
							 | 
						|
								    ->bindValue(name: '__tune_id__', value: $_GET["tune-id"])
							 | 
						|
								);
							 | 
						|
								
							 | 
						|
								TwigWrapper::RenderTwig(
							 | 
						|
								    target: "Pages/tune/uuid.html.twig",
							 | 
						|
								    arguments: [
							 | 
						|
								        "TuneDetails"=>$tuneDetails,
							 | 
						|
								        "TuneVariants"=>$variants,
							 | 
						|
								    ]
							 | 
						|
								);
							 | 
						|
								
							 | 
						|
								
							 |