当前位置: 首页>>代码示例>>PHP>>正文


PHP backup_mod_selected函数代码示例

本文整理汇总了PHP中backup_mod_selected函数的典型用法代码示例。如果您正苦于以下问题:PHP backup_mod_selected函数的具体用法?PHP backup_mod_selected怎么用?PHP backup_mod_selected使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了backup_mod_selected函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: stampcoll_backup_mods

/**
 * Backup all selected module instances
 *
 * Iterates thru all stamp collections; for each it checks if the one is 
 * included in the backup and calls stampcoll_backup_one_mod().
 *
 * @param resource $bf backup file resource
 * @param object $preferences Backup settings
 * @return boolean True if success, False if failure
 */
function stampcoll_backup_mods($bf, $preferences)
{
    $status = true;
    $stampcolls = get_records('stampcoll', 'course', $preferences->backup_course, 'id');
    foreach ($stampcolls as $stampcoll) {
        if (backup_mod_selected($preferences, 'stampcoll', $stampcoll->id)) {
            $status = stampcoll_backup_one_mod($bf, $preferences, $stampcoll);
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:21,代码来源:backuplib.php

示例2: lightboxgallery_backup_mods

function lightboxgallery_backup_mods($bf, $preferences)
{
    $status = true;
    if ($galleries = get_records('lightboxgallery', 'course', $preferences->backup_course, 'id')) {
        foreach ($galleries as $gallery) {
            if (backup_mod_selected($preferences, 'lightboxgallery', $gallery->id)) {
                $status = lightboxgallery_backup_one_mod($bf, $preferences, $gallery);
            }
        }
    }
    return $status;
}
开发者ID:itziko,项目名称:Moodle-jQuery-Lightbox-Gallery,代码行数:12,代码来源:backuplib.php

示例3: wwassignment_backup_mods

function wwassignment_backup_mods($bf, $preferences)
{
    $status = true;
    //Iterate over wwassignments
    if ($wwassignments = get_records("wwassignment", "course", $preferences->backup_course, "id")) {
        foreach ($wwassignments as $wwassignment) {
            if (backup_mod_selected($preferences, 'wwassignment', $wwassignment->id)) {
                $status = wwassignment_backup_one_mod($bf, $preferences, $wwassignment);
            }
        }
    }
    return $status;
}
开发者ID:bjornbe,项目名称:wwassignment,代码行数:13,代码来源:backuplib.php

示例4: ezproxy_backup_mods

function ezproxy_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over ezproxy table
    if ($ezproxys = get_records("ezproxy", "course", $preferences->backup_course, "id")) {
        foreach ($ezproxys as $ezproxy) {
            if (backup_mod_selected($preferences, 'ezproxy', $ezproxy->id)) {
                $status = ezproxy_backup_one_mod($bf, $preferences, $ezproxy);
            }
        }
    }
    return $status;
}
开发者ID:arshanam,项目名称:Moodle-ITScholars-LMS,代码行数:14,代码来源:backuplib.php

示例5: pagemenu_backup_mods

/**
 * Cycles through all of the pagemenu instances
 * in a course and calls {@link pagemenu_backup_one_mod()}
 * to backup each.
 *
 * @param object $bf Backup file
 * @param object $preferences Backup preferences
 * @return boolean
 **/
function pagemenu_backup_mods($bf, $preferences)
{
    $status = true;
    // Iterate over pagemenu table
    $pagemenus = get_records('pagemenu', 'course', $preferences->backup_course, 'id');
    if ($pagemenus) {
        foreach ($pagemenus as $pagemenu) {
            if (backup_mod_selected($preferences, 'pagemenu', $pagemenu->id)) {
                $status = pagemenu_backup_one_mod($bf, $preferences, $pagemenu);
            }
        }
    }
    return $status;
}
开发者ID:nadavkav,项目名称:MoodleTAO,代码行数:23,代码来源:backuplib.php

示例6: bigbluebuttonbn_backup_mods

function bigbluebuttonbn_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over bigbluebuttonbn table
    if ($bigbluebuttonbns = get_records("bigbluebuttonbn", "course", $preferences->backup_course, "id")) {
        foreach ($bigbluebuttonbns as $bigbluebuttonbn) {
            if (backup_mod_selected($preferences, 'bigbluebuttonbn', $bigbluebuttonbn->id)) {
                $status = bigbluebuttonbn_backup_one_mod($bf, $preferences, $bigbluebuttonbn);
            }
        }
    }
    return $status;
}
开发者ID:rrusso,项目名称:moodle-mod_bigbluebutton,代码行数:14,代码来源:backuplib.php

示例7: wiki_backup_mods

function wiki_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over wiki table
    if ($wikis = get_records("wiki", "course", $preferences->backup_course, "id")) {
        foreach ($wikis as $wiki) {
            if (backup_mod_selected($preferences, 'wiki', $wiki->id)) {
                wiki_backup_one_mod($bf, $preferences, $wiki);
            }
        }
    }
    return $status;
}
开发者ID:BackupTheBerlios,项目名称:samouk-svn,代码行数:14,代码来源:backuplib.php

示例8: podcaster_backup_mods

function podcaster_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over podcaster table
    if ($podcasters = get_records('podcaster', 'course', $preferences->backup_course, 'id')) {
        foreach ($podcasters as $podcaster) {
            if (backup_mod_selected($preferences, 'podcaster', $podcaster->id)) {
                $status = podcaster_backup_one_mod($bf, $preferences, $podcaster);
            }
        }
    }
    return $status;
}
开发者ID:NextEinstein,项目名称:riverhills,代码行数:14,代码来源:backuplib.php

示例9: accordion_backup_mods

function accordion_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over accord table
    if ($accordions = get_records("accordion", "course", $preferences->backup_course, "id")) {
        foreach ($accordions as $accordion) {
            if (backup_mod_selected($preferences, 'accordion', $accordion->id)) {
                $status = accord_backup_one_mod($bf, $preferences, $accordion);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例10: book_backup_mods

function book_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over book table
    if ($books = get_records('book', 'course', $preferences->backup_course, 'id')) {
        foreach ($books as $book) {
            if (backup_mod_selected($preferences, 'book', $book->id)) {
                $status = book_backup_one_mod($bf, $preferences, $book);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例11: checklist_backup_mods

function checklist_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    $checklists = get_records('checklist', 'course', $preferences->backup_course, 'id');
    if ($checklist) {
        foreach ($checklist as $checklist) {
            if (backup_mod_selected($preferences, 'checklist', $checklist->id)) {
                $status = checklist_backup_one_mod($bf, $preferences, $checklist);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例12: tab_backup_mods

function tab_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over tab table
    if ($tabs = get_records("tab", "course", $preferences->backup_course, "id")) {
        foreach ($tabs as $tab) {
            if (backup_mod_selected($preferences, 'tab', $tab->id)) {
                $status = tab_backup_one_mod($bf, $preferences, $tab);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例13: webquest_backup_mods

function webquest_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    $webquests = get_records("webquest", "course", $preferences->backup_course, "id");
    if ($webquests) {
        foreach ($webquests as $webquest) {
            if (backup_mod_selected($preferences, 'webquest', $webquest->id)) {
                $status = webquest_backup_one_mod($bf, $preferences, $webquest);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例14: netpublish_backup_mods

function netpublish_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over imagegallery table
    if ($netpublishes = get_records("netpublish", "course", $preferences->backup_course, "id")) {
        foreach ($netpublishes as $netpublish) {
            if (backup_mod_selected($preferences, 'netpublish', $netpublish->id)) {
                $status = netpublish_backup_one_mod($bf, $preferences, $netpublish);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php

示例15: skype_backup_mods

function skype_backup_mods($bf, $preferences)
{
    global $CFG;
    $status = true;
    ////Iterate over skype table
    if ($skypes = get_records("skype", "course", $preferences->backup_course, "id")) {
        foreach ($skypes as $skype) {
            if (backup_mod_selected($preferences, 'skype', $skype->id)) {
                $status = skype_backup_one_mod($bf, $preferences, $skype);
            }
        }
    }
    return $status;
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:14,代码来源:backuplib.php


注:本文中的backup_mod_selected函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。