User.class.php 519 Bytes
Newer Older
Quentin Vrel's avatar
Quentin Vrel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

class User extends Model {

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

   // load all users from Db
   public static function getList() {
      $stm = parent::exec('USER_LIST');
      return $stm->fetchAll();
   }
15 16 17 18 19
   public static function getRow($id) {
      $stm = parent::exec('USER_GET_WITH_ID', ['id' => $id]);
      return $stm->fetchAll();
   }

quentin.vrel's avatar
quentin.vrel committed
20 21
   public static function updateUser($array) {
      $stm = parent::exec('USER_UPDATE', $array);
22 23 24
   }


Quentin Vrel's avatar
Quentin Vrel committed
25
}