refactor TagJob, TagLib and single TagLibs for dynamic use of typeId, add temporary testfile application/libraries/tags/CoreFiftyFiveTagLib.php for testing person_id

This commit is contained in:
ma0068
2026-04-30 11:17:39 +02:00
parent 21eb95bb23
commit d1fa5f64c4
15 changed files with 211 additions and 157 deletions
+5 -4
View File
@@ -20,7 +20,7 @@ class Tag_Controller extends FHCAPI_Controller
'doneTag' => self::BERECHTIGUNG_KURZBZ,
'deleteTag' => self::BERECHTIGUNG_KURZBZ,
'getAllTags' => self::BERECHTIGUNG_KURZBZ,
'rebuildTagsPrestudent' => self::BERECHTIGUNG_KURZBZ,
'rebuildTagsForTypeId' => self::BERECHTIGUNG_KURZBZ,
];
$merged_permissions = array_merge($default_permissions, $permissions);
@@ -337,11 +337,12 @@ class Tag_Controller extends FHCAPI_Controller
$this->terminateWithSuccess(hasData($notiz) ? getData($notiz) : array());
}
public function rebuildTagsPrestudent()
public function rebuildTagsForTypeId()
{
$prestudent_id = $this->input->get('prestudent_id');
$id = $this->input->get('id');
$typeId = $this->input->get('typeId');
$result = $this->taglib->rebuildTagsForPrestudent($prestudent_id);
$result = $this->taglib->rebuildTagsForTypeId($typeId, $id);
if (isError($result))
return error ('Error occurred during updateAutomatedTags');