Files
monpas/application/models/monpas/Versies_model.php
T
2021-07-10 16:25:16 +02:00

34 lines
902 B
PHP

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**Versies_model maart 2015 */
class Versies_model extends MY_Model{
protected $tablename = 'tb_versies';
function __construct(){
parent::__construct();
$models = array('');
$this->load->model($models);
}
function getallversies($module){
$this->sql="SELECT id, naam, ingangsdatum,systemnorm, actief
FROM tb_versies
WHERE modulenr = {$module}
ORDER BY ingangsdatum DESC";
return $this->get_query_result();
}
function getversie($id){
$this->sql="SELECT id, naam, ingangsdatum,systemnorm, actief
FROM tb_versies
WHERE id = {$id}";
return $this->get_query_row();
}
function getversiesbymodule($module){
$this->sql = "SELECT id, naam, ingangsdatum
FROM tb_versies
WHERE actief = 1
AND modulenr = {$module}";
return $this->get_query_result();
}
}