Esempio n. 1
0
    /**
     * 
     * 
     * @param Joueur $joueur à tester si il est dans la partie or not
     * @return Slot|null
     */
    public function hasJoueur($joueur)
    {
        $data = queryLine('
			select *
			from partie
			natural join slot
			natural join joueur
			where partie_id=' . $this->getID() . '
			and joueur_id=' . $joueur->getID());
        return $data ? new Slot($data) : null;
    }