Blame view

modules/default/model/code.class.php 263 Bytes
8d65d0ce   andryeyev   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  Class Code{
   private $db;
   private $lang;
   
   function __construct($lang){
    $this->db = sdb::getInstance();
    $this->lang = $lang;
   }
  
   public function getID_code($code){
    return $this->db->getOne("select id from code where code=?",array($code));
   }
  
  }
  ?>