initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Description of fasesmodel
|
||||
*
|
||||
* @author Liesbeth
|
||||
* @date 3 juni 2013
|
||||
*/
|
||||
|
||||
class Modfases extends MY_Model{
|
||||
|
||||
protected $tablename = 'tbFases';
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
//$models = array();
|
||||
//$this->load->model($models);
|
||||
}
|
||||
function get_fases(){
|
||||
$this->sql="SELECT id, naam
|
||||
FROM tbFases
|
||||
ORDER BY volgorde";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
function get_kleuren(){
|
||||
$this->sql =" SELECT naam, kleur
|
||||
FROM tbFases
|
||||
ORDER BY volgorde";
|
||||
$res = $this->get_query_result();
|
||||
$onb = (object) array("naam"=>"onbekend", "kleur"=>"#989898");
|
||||
array_unshift($res,$onb );
|
||||
return $res;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user