aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2024-05-06 11:36:19 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-05-06 11:36:19 +0000
commit81d4d624bdf79caff709fe9f23bf4d9fd6b90598 (patch)
tree143b853915bd8fd1f1863bb6b286e6c95d791890 /lib
parent57bd2457f68b705c706900394a88891fc2b3ad8d (diff)
remove obsolet functions, fixes #4002
Closes #4002 Merge request studip/studip!2851
Diffstat (limited to 'lib')
-rw-r--r--lib/functions.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/functions.php b/lib/functions.php
index b68658a..0e806aa 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -504,64 +504,6 @@ function check_and_set_date($tag, $monat, $jahr, $stunde, $minute, &$arr, $field
return $check;
}
-/**
- * reset the order-positions for the lecturers in the passed seminar,
- * starting at the passed position
- *
- * @param string $s_id the seminar to work on
- * @param int $position the position to start with
- * @deprecated since Stud.IP 5.3
- *
- * @return void
- */
-function re_sort_dozenten($s_id, $position)
-{
- $query = "UPDATE seminar_user
- SET position = position - 1
- WHERE Seminar_id = ? AND status = 'dozent' AND position > ?";
- $statement = DBManager::get()->prepare($query);
- $statement->execute([$s_id, $position]);
-}
-
-/**
- * reset the order-positions for the tutors in the passed seminar,
- * starting at the passed position
- *
- * @param string $s_id the seminar to work on
- * @param int $position the position to start with
- * @deprecated since Stud.IP 5.3
- *
- * @return void
- */
-function re_sort_tutoren($s_id, $position)
-{
- $query = "UPDATE seminar_user
- SET position = position - 1
- WHERE Seminar_id = ? AND status = 'tutor' AND position > ?";
- $statement = DBManager::get()->prepare($query);
- $statement->execute([$s_id, $position]);
-}
-
-/**
- * return the highest position-number increased by one for the
- * passed user-group in the passed seminar
- *
- * @param string $status can be on of 'tutor', 'dozent', ...
- * @param string $seminar_id the seminar to work on
- * @deprecated since Stud.IP 5.3
- *
- * @return int the next available position
- */
-function get_next_position($status, $seminar_id)
-{
- $query = "SELECT MAX(position) + 1
- FROM seminar_user
- WHERE Seminar_id = ? AND status = ?";
- $statement = DBManager::get()->prepare($query);
- $statement->execute([$seminar_id, $status]);
-
- return $statement->fetchColumn() ?: 0;
-}
/**
* converts a string to a float, depending on the locale