diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:41:30 +0000 |
| commit | 7cc46886fa8ce53bc2eb0f5ef867ca491e2e1229 (patch) | |
| tree | 7be5fc86c6b5bc6a9904e2ead959499190a9f8aa /lib/functions.php | |
| parent | f00164f6f8b823872d0934830a466aeb2af7114b (diff) | |
TIC 4392, closes #4392
Closes #4392
Merge request studip/studip!3207
Diffstat (limited to 'lib/functions.php')
| -rw-r--r-- | lib/functions.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/functions.php b/lib/functions.php index e1b29ed..5659aa5 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -425,28 +425,6 @@ function get_userid($username = "") /** - * Return an array containing the nodes of the sem-tree-path - * - * @param string $seminar_id the seminar to get the path for - * @param int $depth the depth - * @param string $delimeter a string to separate the path parts - * - * @return array - */ -function get_sem_tree_path($seminar_id, $depth = false, $delimeter = ">") -{ - $the_tree = TreeAbstract::GetInstance("StudipSemTree"); - $view = DbView::getView('sem_tree'); - $ret = []; - $view->params[0] = $seminar_id; - $rs = $view->get_query("view:SEMINAR_SEM_TREE_GET_IDS"); - while ($rs->next_record()){ - $ret[$rs->f('sem_tree_id')] = $the_tree->getShortPath($rs->f('sem_tree_id'), null, $delimeter, $depth ? $depth - 1 : 0); - } - return $ret; -} - -/** * check_and_set_date * * Checks if given date is valid and sets field in array accordingly. |
