src/PlaygroundGame/Mapper/PostVoteForm.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class PostVoteForm extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByGame($game) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findOneBy(array('postvote' => $game)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\PostVoteForm'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/PostVotePost.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class PostVotePost extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByGameId($post_vote) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findBy(array('post_vote' => $post_vote)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\PostVotePost'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/Prize.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class Prize extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByIdentifier($identifier) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findOneBy(array('identifier' => $identifier)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\Prize'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/PrizeCategory.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class PrizeCategory extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByIdentifier($identifier) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findOneBy(array('identifier' => $identifier)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\PrizeCategory'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/QuizAnswer.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class QuizAnswer extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByGameId($quiz) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findBy(array('quiz' => $quiz)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\QuizAnswer'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/QuizQuestion.php 1 location
|
@@ 7-23 (lines=17) @@
|
| 4 |
|
|
| 5 |
|
use PlaygroundGame\Mapper\AbstractMapper; |
| 6 |
|
|
| 7 |
|
class QuizQuestion extends AbstractMapper |
| 8 |
|
{ |
| 9 |
|
|
| 10 |
|
public function findByGameId($quiz) |
| 11 |
|
{ |
| 12 |
|
return $this->getEntityRepository()->findBy(array('quiz' => $quiz)); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
public function getEntityRepository() |
| 16 |
|
{ |
| 17 |
|
if (null === $this->er) { |
| 18 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\QuizQuestion'); |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
return $this->er; |
| 22 |
|
} |
| 23 |
|
} |
| 24 |
|
|
src/PlaygroundGame/Mapper/Mission.php 1 location
|
@@ 9-24 (lines=16) @@
|
| 6 |
|
use PlaygroundGame\Options\ModuleOptions; |
| 7 |
|
use PlaygroundGame\Mapper\Game; |
| 8 |
|
|
| 9 |
|
class Mission extends Game |
| 10 |
|
{ |
| 11 |
|
public function findByIdentifier($identifier) |
| 12 |
|
{ |
| 13 |
|
return $this->getEntityRepository()->findOneBy(array('identifier' => $identifier)); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
public function getEntityRepository() |
| 17 |
|
{ |
| 18 |
|
if (null === $this->er) { |
| 19 |
|
$this->er = $this->em->getRepository('PlaygroundGame\Entity\Mission'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
return $this->er; |
| 23 |
|
} |
| 24 |
|
} |
| 25 |
|
|