Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/backup/moodle2/backup_settingslib.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file is part of Moodle - http://moodle.org/
00004 //
00005 // Moodle is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // Moodle is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00017 
00025 // TODO: Reduce these to the minimum because ui/dependencies are 100% separated
00026 
00027 // Root backup settings
00028 
00032 class backup_generic_setting extends root_backup_setting {}
00033 
00037 class backup_filename_setting extends backup_generic_setting {
00038 
00039     public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
00040         parent::__construct($name, $vtype, $value, $visibility, $status);
00041     }
00042 
00043     public function set_ui($label, $value, array $options = null) {
00044         parent::make_ui(self::UI_HTML_TEXTFIELD, $label, null, $options);
00045         $this->set_value($value);
00046     }
00047 }
00048 
00054 class backup_users_setting extends backup_generic_setting {}
00055 
00061 class backup_activities_setting extends backup_generic_setting {}
00062 
00069 class backup_anonymize_setting extends root_backup_setting {}
00070 
00076 class backup_user_files_setting extends backup_anonymize_setting {}
00077 
00083 class backup_role_assignments_setting extends backup_anonymize_setting {}
00084 
00090 class backup_logs_setting extends backup_anonymize_setting {}
00091 
00097 class backup_comments_setting extends backup_anonymize_setting {}
00098 
00104 class backup_userscompletion_setting extends backup_anonymize_setting {}
00105 
00106 // Section backup settings
00107 
00111 class backup_section_generic_setting extends section_backup_setting {}
00112 
00117 class backup_section_included_setting extends section_backup_setting {}
00118 
00123 class backup_section_userinfo_setting extends section_backup_setting {}
00124 
00125 
00126 // Activity backup settings
00127 
00131 class backup_activity_generic_setting extends activity_backup_setting {}
00132 
00138 class backup_activity_included_setting extends activity_backup_setting {}
00139 
00144 class backup_activity_userinfo_setting extends activity_backup_setting {}
 All Data Structures Namespaces Files Functions Variables Enumerations