initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Description of Activiteiten x doelgroepen model
|
||||
*
|
||||
* @author Liesbeth
|
||||
* @date april 25 2013
|
||||
*/
|
||||
|
||||
class ModKosten extends MY_Model{
|
||||
|
||||
protected $tablename = 'tbActKosten';
|
||||
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
//$models = array();
|
||||
//$this->load->model($models);
|
||||
}
|
||||
function get_kosten_per_activiteit($actID){
|
||||
$this->sql = "SELECT id, omschrijving, kosten, activiteitID as actID
|
||||
FROM tbActKosten
|
||||
WHERE activiteitID = $actID" ;
|
||||
$results = $this->get_query_result();
|
||||
if (! empty($results)) {
|
||||
foreach ($results as $result) {
|
||||
$result->kosten = mysql2bedrag($result->kosten);
|
||||
};
|
||||
};
|
||||
return $results;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user