mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Abbrecher 2dos: Änderungen Wordings, neue Statusgründe preabbrecher, durchStgl, durchStud, update setAbbrecher
This commit is contained in:
@@ -316,4 +316,20 @@ class Prestudentstatus_model extends DB_Model
|
||||
|
||||
return $this->loadWhere($whereArr);
|
||||
}
|
||||
|
||||
/**
|
||||
* call like this:
|
||||
* $this->PrestudentstatusModel->withGrund('grund_kurzbz')->update($id, $otherData);
|
||||
* or:
|
||||
* $this->PrestudentstatusModel->withGrund('grund_kurzbz')->insert($otherData);
|
||||
* @param string $statusgrund_kurzbz
|
||||
* @return object $this
|
||||
*/
|
||||
public function withGrund($statusgrund_kurzbz)
|
||||
{
|
||||
if($statusgrund_kurzbz)
|
||||
$this->db->set('statusgrund_id', '(SELECT statusgrund_id FROM public.tbl_status_grund WHERE statusgrund_kurzbz =' . $this->db->escape($statusgrund_kurzbz) .')', FALSE);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user