Insert Note 7 in Projektarbeite, Projektarbeit kopieren

This commit is contained in:
ma0068
2023-10-09 10:58:11 +02:00
parent f695f3d7dc
commit 182c6531fa
2 changed files with 115 additions and 7 deletions
@@ -10,6 +10,8 @@ class Projektarbeit_model extends DB_Model
parent::__construct();
$this->dbTable = 'lehre.tbl_projektarbeit';
$this->pk = 'projektarbeit_id';
$this->load->model('education/Projektarbeit_model', 'ProjektarbeitModel');
}
/**
@@ -79,8 +81,6 @@ class Projektarbeit_model extends DB_Model
$now = new DateTime();
//$this->addSelect($this->dbTable.'.*');
$this->addSelect($this->dbTable.'.projektarbeit_id');
$this->addSelect($this->dbTable.'.titel');
$this->addSelect($this->dbTable.'.student_uid');
@@ -104,10 +104,14 @@ class Projektarbeit_model extends DB_Model
$this->db->where('pa.datum >', '2022-09-01');
//$this->db->where('pa.fixtermin', 'TRUE');
$this->db->where('pa.abgabedatum', NULL);
//TODO(MANU) get date with NOW
$this->db->where('pa.datum < ', '2023-10-04');
$this->addLimit(10);
//TODO(MANU) check if note null: ausreichend?
$this->db->where($this->dbTable. '.note', NULL);
$this->addLimit(1);
return $this->loadWhere([
'pa.fixtermin' => 'TRUE',