initial commit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user