Beispiel #1
0
 public function update($data, $primaryKey = 'id')
 {
     if (isset($data['pass'])) {
         $data['pass'] = md5($data['pass']);
     }
     parent::update($data);
 }
Beispiel #2
0
 public function __construct($dbconnection = '')
 {
     parent::__construct();
     if (!empty($dbconnection)) {
         $this->db = new Database($dbconnection);
     }
 }
Beispiel #3
0
 /**
  * Methode : permet la navigation entre 2 element d'une meme table
  */
 protected function navigation($id, $cal, $table)
 {
     return Model_Core::navigation($id, $cal, $table);
 }
Beispiel #4
0
 /**
  * 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');
 }
Beispiel #5
0
 public function delete()
 {
     $this->model->softDelete(Request_Helper::post('id'));
 }