本文整理匯總了PHP中question_attempt_step::rewrite_response_pluginfile_urls方法的典型用法代碼示例。如果您正苦於以下問題:PHP question_attempt_step::rewrite_response_pluginfile_urls方法的具體用法?PHP question_attempt_step::rewrite_response_pluginfile_urls怎麽用?PHP question_attempt_step::rewrite_response_pluginfile_urls使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類question_attempt_step
的用法示例。
在下文中一共展示了question_attempt_step::rewrite_response_pluginfile_urls方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rewrite_response_pluginfile_urls
/**
* Calls {@link question_rewrite_question_urls()} with appropriate parameters
* for content belonging to responses to this question.
*
* @param string $text the text to update the URLs in.
* @param int $contextid the id of the context the quba belongs to.
* @param string $name the variable name the files belong to.
* @param question_attempt_step $step the step the response is coming from.
* @return srting the content with the URLs rewritten.
*/
public function rewrite_response_pluginfile_urls($text, $contextid, $name, question_attempt_step $step)
{
return $step->rewrite_response_pluginfile_urls($text, $contextid, $name, $this->extra_file_path_components());
}