initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**Documenten_model januari 2015 */
|
||||
|
||||
class Documenten_model extends MY_Model{
|
||||
|
||||
|
||||
protected $tablename = 'tb_documenten';
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
$models = array('');
|
||||
$this->load->model($models);
|
||||
}
|
||||
function gethandleidingen($orgid, $userrole){
|
||||
$this->sql = "SELECT id, schermnaam, documentnaam, nummer
|
||||
FROM tb_documenten
|
||||
WHERE soort = 1
|
||||
AND ({$userrole} & autorisatienivo)
|
||||
AND (organisatie_id = {$orgid} OR organisatie_id = 0)
|
||||
ORDER BY nummer, schermnaam";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user