ilUtil is a utility class in the ILIAS e-learning platform, which provides various helper functions for developers. One of its functions is sendQuestion(), which allows developers to send a question to a user via email or pop-up message.
In this example, we are using the sendQuestion() function to send an email question to a user with the email address 'user@email.com'. The subject and message of the email are provided as parameters.
Example 2: Sending a pop-up question to a user
$to_user_id = 1234; $message = 'Do you want to proceed?'; ilUtil::sendQuestion($to_user_id, $message, ilUtil::QUESTION_TYPE_POPUP);
In this example, we are using the sendQuestion() function to send a pop-up question to a user with the ID of 1234. The message of the pop-up is provided as a parameter, along with a constant indicating that we want to use the pop-up type of question.
Package/Library: ILIAS e-learning platform.
PHP ilUtil::sendQuestion - 30 examples found. These are the top rated real world PHP examples of ilUtil::sendQuestion extracted from open source projects. You can rate examples to help us improve the quality of examples.