Result.class.php 666 Bytes
Newer Older
Robin Borgogno's avatar
Robin Borgogno committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

class Result extends Model {

   // ===========
   // = Statics =
   // ===========
   protected static $table_name = 'RESULT';

   public static function saveAwnser($values)
   {
       $stm = parent::exec('RESULT_SAVE',$values);
   }

   public static function returnResultGameID($values)
   {
       $stm = parent::exec('RESULT_GET',$values);
       return $stm->fetchAll();
   }

   public static function deleteLigne($values)
   {
       $stm = parent::exec('RESULT_DELETE',$values);
       return;
   }

Robin Borgogno's avatar
Robin Borgogno committed
27 28 29 30 31 32
   public static function getLigneByUserID($values)
   {
       $stm = parent::exec('GET_BY_USERID',$values);
       return $stm->fetchAll();
   }

Robin Borgogno's avatar
Robin Borgogno committed
33
}