More dataaccess stuff.
[rock.divinelegy.git] / DataAccess / Queries / StepMania / SimfileQueryConstraints.php
1 <?php
2
3 namespace DataAccess\Queries\StepMania;
4
5 use DataAccess\Queries\QueryConstraints;
6 use DataAccess\Queries\StepMania\ISimfileQueryConstraints;
7
8 class SimfileQueryConstraints extends QueryConstraints implements ISimfileQueryConstraints
9 {
10 public function hasFgChanges($bool)
11 {
12 return $this->where('fg_changes', '=', (int)$bool);
13 }
14 public function hasBgChanges($bool)
15 {
16 return $this->where('bg_changes', '=', (int)$bool);
17 }
18
19 public function stepsHaveRating($rating)
20 {
21 return $this->join('INNER', 'simfiles', 'id', 'steps', 'simfile_id')
22 ->where('steps.rating', '=', $rating);
23 }
24 public function hasDifficulty($difficulty){}
25
26 public function bpm($bpm)
27 {
28 return;
29 }
30 }