function storeVmailResource($rid, $course_id, $block_id = '0')
{
    $voicetools = new Object();
    $voicetools->rid = $rid;
    $voicetools->course = $course_id;
    $voicetools->block = $block_id;
    return voicepresentation_store_new_element($voicetools);
}
Exemplo n.º 2
0
function voicepresentation_createResourceFromResource($rid, $new_rid, $new_course, $options = "0")
{
    $voicetools = get_record("voicepresentation_resources", "rid", $rid);
    $voicetools->id = null;
    $voicetools->rid = $new_rid;
    $voicetools->course = $new_course;
    $voicetools->fromrid = $rid;
    $voicetools->copyOptions = $options;
    return voicepresentation_store_new_element($voicetools);
}