コード例 #1
0
 /**
  * get the where query
  *
  * @param string $w 
  * @return void
  * @author Andy Bennett
  */
 function get_where($w = null)
 {
     if (!is_null($w)) {
         $where = array_merge($w, $where);
     }
     $t = parent::get_table();
     $where[$t . '.show'] = '1';
     return $where;
 }
コード例 #2
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->conf = Kohana::config('steamauth.steamauth');
     if ($this->conf->tables['primary']) {
         $this->set_table($this->conf->tables['primary']->table);
     }
 }
コード例 #3
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
 }
コード例 #4
0
 /**
  * delete an item from the gallery, pass the secondary tables to the parent object
  *
  * @param integer $id - the id of the item to be deleted
  * @return boolean
  * @author Andy Bennett
  */
 function delete_item($id)
 {
     try {
         // Now delete the item from the gallery and any associated secondary tables
         parent::delete_item($id);
     } catch (Exception $e) {
     }
 }
コード例 #5
0
 /**
  * constructor
  *
  * @author Andy Bennett
  */
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->db = new SteamDatabase();
 }