Files
2021-07-10 16:25:16 +02:00

33 lines
788 B
PHP

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Description of pijlers_model
*
* @author Theo Weijmer
* @date april 26, 2013 12:00 PM
*
*/
class Pijlers_model extends MY_Model{
protected $tablename = 'tbPijlers';
function __construct(){
parent::__construct();
$models = array('');
$this->load->model($models);
}
function get_pijlers($globVersie){
$this->sql="SELECT id, volgorde, naam , omschrijving
FROM tbPijlers
WHERE fw_versie = {$globVersie}
ORDER BY volgorde";
return $this->get_query_result();
}
function get_last_pijlers ($lastVersieID){
$this->sql = "SELECT id,volgorde, naam, omschrijving
FROM tbPijlers
WHERE fw_versie = {$lastVersieID}";
return $this->get_query_result();
}
}