- system/ vervangen door CodeIgniter 3.4.5 (pocketarc/codeigniter, PHP 8.2-8.5 compatibel) - config.php, mimes.php, user_agents.php en error-views bijgewerkt naar 3.4.5 - composer.json: php-constraint "^7.4 || ^8.0" zodat composer install op 8.3 werkt - PHP 8-fatals opgelost: count()/array-functies op FALSE/null, rekenen met lege strings, delen door nul, property zetten op FALSE, curly-brace string offsets, ongedefinieerde constanten, foute curl_setopt in Phantom_model::create_img - dynamic properties gedeclareerd in libraries, optionele parameters voor verplichte opgelost - vergelijkingen waar '' == 0 in PHP 8 anders uitvalt gecast naar (int) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Description of model
|
|
*
|
|
* @author Liesbeth
|
|
* @date april 25 2013
|
|
*/
|
|
|
|
class ModPartActKosten extends MY_Model{
|
|
|
|
protected $tablename = 'tbPartActKosten';
|
|
|
|
|
|
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 tbPartActKosten
|
|
WHERE activiteitID = $actID" ;
|
|
$results = $this->get_query_result();
|
|
if (! empty($results)) {
|
|
foreach ($results as $result) {
|
|
$result->kosten = mysql2bedrag($result->kosten);
|
|
};
|
|
};
|
|
return $results;
|
|
}
|
|
function get_kosten_per_regel($kostID){
|
|
$this->sql = "SELECT id, omschrijving, kosten , activiteitID as actID
|
|
FROM tbPartActKosten
|
|
WHERE id = $kostID" ;
|
|
$results = $this->get_query_row();
|
|
if (! $results) $results = new stdClass();
|
|
$results->kosten = mysql2bedrag($results->kosten);
|
|
return $results;
|
|
}
|
|
} |