本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}