/** * 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; }
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); } }
function __construct() { // Call the Model constructor parent::__construct(); }
/** * 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) { } }
/** * constructor * * @author Andy Bennett */ function __construct() { // Call the Model constructor parent::__construct(); $this->db = new SteamDatabase(); }