public function update($data, $primaryKey = 'id') { if (isset($data['pass'])) { $data['pass'] = md5($data['pass']); } parent::update($data); }
public function __construct($dbconnection = '') { parent::__construct(); if (!empty($dbconnection)) { $this->db = new Database($dbconnection); } }
/** * Methode : permet la navigation entre 2 element d'une meme table */ protected function navigation($id, $cal, $table) { return Model_Core::navigation($id, $cal, $table); }
/** * Loads the database instance, if the database is not already loaded. * * @return void */ public function __construct() { parent::__construct(); $this->session = Session::instance(); $this->uid = $this->session->get('uid'); }
public function delete() { $this->model->softDelete(Request_Helper::post('id')); }