29 lines
677 B
PHP
29 lines
677 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/** Ondersteuningsvormen_model mei 2015 */
|
|
|
|
class Ondersteuningsvormen_model extends MY_Model{
|
|
|
|
|
|
protected $tablename = 'tb_ondersteuningsvormen';
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$models = array('');
|
|
$this->load->model($models);
|
|
}
|
|
function getvormen($orgid, $min, $max){
|
|
$this->sql="SELECT id, organisatie_id, naam, nivo
|
|
FROM tb_ondersteuningsvormen
|
|
WHERE (organisatie_id = 0 OR organisatie_id = {$orgid})
|
|
AND actief = 1
|
|
AND nivo BETWEEN {$min} AND {$max}
|
|
ORDER BY nivo, organisatie_id, volgorde ";
|
|
return $this->get_query_result();
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|