make tagsArrayAC a computed and rename it to availableTags

This commit is contained in:
chfhtw
2026-04-27 10:03:36 +02:00
parent 9109ead81c
commit dfe05cbfa8
4 changed files with 9 additions and 57 deletions
@@ -11,21 +11,4 @@ class Bookmark_model extends DB_Model
$this->dbTable = 'dashboard.tbl_bookmark';
$this->pk = 'bookmark_id';
}
/**
* returns all bookmark tags of a user
*/
public function getAllBookmarkTags($uid)
{
$qry = "
SELECT array_agg(DISTINCT tag) AS data
FROM (
SELECT jsonb_array_elements_text(tag) AS tag
FROM dashboard.tbl_bookmark
WHERE uid = ?
) t;
";
return $this->execQuery($qry, array('uid' => $uid));
}
}