@@ -55,6 +55,8 @@ class ai_manager_utils {
5555 * @param bool $includedeleted if log entries which are marked as deleted, should be included in the result
5656 * @param string $fields Comma separated list of SQL fields that should be contained in the result, defaults to all fields
5757 * @param array $purposes Array of purpose name strings that should be returned. If empty, all purposes will be returned.
58+ * @param int $limit the maximum number of records to return, sorted by timecreated descending.
59+ * If 0, all records will be returned.
5860 * @return array array of records of the log table
5961 */
6062 public static function get_log_entries (
@@ -122,8 +124,7 @@ public static function get_log_entries(
122124 /**
123125 * Retrieves the entries from the request_log table and structures it for delivering them to the "view prompts" table.
124126 *
125- * External function that delivers this data: @param int $contextid The main context id the prompts should be retrieved
126- *
127+ * @param int $contextid the main context id the prompts should be retrieved for
127128 * @param int $userid the id of the user to retrieve the prompts
128129 * @param int $time the time since when the prompts should be retrieved
129130 * @return array complex structured array containing the prompts
@@ -309,7 +310,9 @@ public static function get_connector_instance_by_purpose(string $purpose, ?int $
309310 * API function to get all needed information about the AI configuration for a user.
310311 *
311312 * @param stdClass $user the user to retrieve the information for
313+ * @param int $contextid the contextid on which the availability should be determined
312314 * @param ?string $tenant the tenant to retrieve the information for. If null, the current tenant will be used
315+ * @param ?array $selectedpurposes array of purpose strings to check. If empty all purposes will be checked
313316 * @return array complex associative array containing all the needed configurations
314317 */
315318 public static function get_ai_config (
0 commit comments