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