initial commit

This commit is contained in:
2021-07-10 16:25:16 +02:00
parent bff57cbf45
commit 20fb7267a8
2426 changed files with 792090 additions and 0 deletions
@@ -0,0 +1,34 @@
<?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();
}
}