mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Insert Note 7 in Projektarbeite, Projektarbeit kopieren
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user