poc move logic for single tags to libs, and add lib loading path and name to extra column in tbl_notiztyp

This commit is contained in:
Harald Bamberger
2026-04-09 08:36:13 +02:00
parent 49cbbfc50c
commit fdb037da96
2 changed files with 59 additions and 0 deletions
+17
View File
@@ -37,6 +37,23 @@ class TagJob extends JOB_Controller
]);
}
public function pocTagLibs()
{
$automatedTagsRes = $this->NotiztypModel->loadWhere(array('automatisiert' => true, 'taglib IS NOT NULL' => null));
//echo $this->NotiztypModel->db->last_query();
$automatedTags = hasData($automatedTagsRes) ? getData($automatedTagsRes) : [];
print_r($automatedTags);
foreach($automatedTags as $autoTag)
{
$taglib = strtolower(basename($autoTag->taglib));
$this->load->library($autoTag->taglib);
$ids = $this->$taglib->getZuordnungIds(array('studiensemester_kurzbz' => 'SS2026'));
print_r($ids);
}
}
public function rebuildAutomatedTags()
{
print_r( PHP_EOL . "Start Job rebuild" . PHP_EOL);