nieuwe versie
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Individuelescores
|
||||
{
|
||||
private $CI;
|
||||
private $userid;
|
||||
private $scores;
|
||||
private $score;
|
||||
|
||||
public function __construct( $orgversieid, $orguserid, $orgid)
|
||||
{
|
||||
$this->CI = & get_instance();
|
||||
$this->orgversieid = $orgversieid;
|
||||
$this->orgid = $orgid;
|
||||
$this->orguserid = $orguserid;
|
||||
$this->teller = 0;
|
||||
$this->handle();
|
||||
}
|
||||
|
||||
public function getScores(){
|
||||
return $this->scores;
|
||||
}
|
||||
|
||||
private function handle(){
|
||||
$this->setUserid();
|
||||
$this->setScores();
|
||||
$this->telScores();
|
||||
}
|
||||
|
||||
private function setUserid(){
|
||||
$this->userid = $this->CI->Orgusers_model->get_fieldvalue(['id' =>$this->orguserid], 'user_id');
|
||||
}
|
||||
|
||||
private function setScores(){
|
||||
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
|
||||
}
|
||||
private function telScores(){
|
||||
|
||||
foreach($this->scores as $index => $this->score){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user