mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
docs spellchecker fixes
This commit is contained in:
parent
b832bbddd9
commit
39b5371c32
6 changed files with 17 additions and 17 deletions
|
@ -108,7 +108,7 @@ abstract class backup_activity_task extends backup_task {
|
||||||
// Create the activity directory
|
// Create the activity directory
|
||||||
$this->add_step(new create_taskbasepath_directory('create_activity_directory'));
|
$this->add_step(new create_taskbasepath_directory('create_activity_directory'));
|
||||||
|
|
||||||
// Generate the module.xml file, contaning general information for the
|
// Generate the module.xml file, containing general information for the
|
||||||
// activity and from its related course_modules record and availability
|
// activity and from its related course_modules record and availability
|
||||||
$this->add_step(new backup_module_structure_step('module_info', 'module.xml'));
|
$this->add_step(new backup_module_structure_step('module_info', 'module.xml'));
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ class mnethosturl_final_element extends backup_final_element {
|
||||||
*
|
*
|
||||||
* This class overwrites the standard fill_values() method, so it gets intercepted
|
* This class overwrites the standard fill_values() method, so it gets intercepted
|
||||||
* for each file record being set to xml, in order to copy, at the same file, the
|
* for each file record being set to xml, in order to copy, at the same file, the
|
||||||
* phisical file from moodle file storage to backup file storage
|
* physical file from moodle file storage to backup file storage
|
||||||
*
|
*
|
||||||
* TODO: Finish phpdocs
|
* TODO: Finish phpdocs
|
||||||
*/
|
*/
|
||||||
|
@ -104,6 +104,6 @@ class file_nested_element extends backup_nested_element {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of backup_optigroup_element to be used by subplugins stuff.
|
* Implementation of backup_optigroup_element to be used by subplugins stuff.
|
||||||
* Split just for better separation and future especialitation
|
* Split just for better separation and future specialisation
|
||||||
*/
|
*/
|
||||||
class backup_subplugin_element extends backup_optigroup_element { }
|
class backup_subplugin_element extends backup_optigroup_element { }
|
||||||
|
|
|
@ -83,7 +83,7 @@ abstract class backup_plan_builder {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the final task, responsible for outputing
|
// Add the final task, responsible for outputting
|
||||||
// all the global xml files (groups, users,
|
// all the global xml files (groups, users,
|
||||||
// gradebook, questions, roles, files...) and
|
// gradebook, questions, roles, files...) and
|
||||||
// the main moodle_backup.xml file
|
// the main moodle_backup.xml file
|
||||||
|
@ -108,7 +108,7 @@ abstract class backup_plan_builder {
|
||||||
|
|
||||||
$plan = $controller->get_plan();
|
$plan = $controller->get_plan();
|
||||||
|
|
||||||
// Add the activity task, responsible for outputing
|
// Add the activity task, responsible for outputting
|
||||||
// all the module related information
|
// all the module related information
|
||||||
$plan->add_task(backup_factory::get_backup_activity_task($controller->get_format(), $id));
|
$plan->add_task(backup_factory::get_backup_activity_task($controller->get_format(), $id));
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ abstract class backup_plan_builder {
|
||||||
|
|
||||||
$plan = $controller->get_plan();
|
$plan = $controller->get_plan();
|
||||||
|
|
||||||
// Add the section task, responsible for outputing
|
// Add the section task, responsible for outputting
|
||||||
// all the section related information
|
// all the section related information
|
||||||
$plan->add_task(backup_factory::get_backup_section_task($controller->get_format(), $id));
|
$plan->add_task(backup_factory::get_backup_section_task($controller->get_format(), $id));
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ abstract class backup_plan_builder {
|
||||||
|
|
||||||
$plan = $controller->get_plan();
|
$plan = $controller->get_plan();
|
||||||
|
|
||||||
// Add the course task, responsible for outputing
|
// Add the course task, responsible for outputting
|
||||||
// all the course related information
|
// all the course related information
|
||||||
$plan->add_task(backup_factory::get_backup_course_task($controller->get_format(), $id));
|
$plan->add_task(backup_factory::get_backup_course_task($controller->get_format(), $id));
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ class backup_activities_setting extends backup_generic_setting {}
|
||||||
/**
|
/**
|
||||||
* root setting to control if backup will generate anonymized
|
* root setting to control if backup will generate anonymized
|
||||||
* user info or no, depends of @backup_users_setting so only is
|
* user info or no, depends of @backup_users_setting so only is
|
||||||
* availabe if the former is enabled (apart from security
|
* available if the former is enabled (apart from security
|
||||||
* that can change it
|
* that can change it
|
||||||
*/
|
*/
|
||||||
class backup_anonymize_setting extends root_backup_setting {}
|
class backup_anonymize_setting extends root_backup_setting {}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class create_and_clean_temp_stuff extends backup_execution_step {
|
||||||
/**
|
/**
|
||||||
* delete the temp dir used by backup/restore (conditionally),
|
* delete the temp dir used by backup/restore (conditionally),
|
||||||
* delete old directories and drop tem ids table. Note we delete
|
* delete old directories and drop tem ids table. Note we delete
|
||||||
* the directory but not the correspondig log file that will be
|
* the directory but not the corresponding log file that will be
|
||||||
* there for, at least, 4 hours - only delete_old_backup_dirs()
|
* there for, at least, 4 hours - only delete_old_backup_dirs()
|
||||||
* deletes log files (for easier access to them)
|
* deletes log files (for easier access to them)
|
||||||
*/
|
*/
|
||||||
|
@ -74,7 +74,7 @@ class create_taskbasepath_directory extends backup_execution_step {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abtract tructure step, parent of all the activity structure steps. Used to wrap the
|
* Abstract structure step, parent of all the activity structure steps. Used to wrap the
|
||||||
* activity structure definition within the main <activity ...> tag. Also provides
|
* activity structure definition within the main <activity ...> tag. Also provides
|
||||||
* subplugin support for activities (that must be properly declared)
|
* subplugin support for activities (that must be properly declared)
|
||||||
*/
|
*/
|
||||||
|
@ -108,7 +108,7 @@ abstract class backup_activity_structure_step extends backup_structure_step {
|
||||||
$optigroup = new backup_optigroup($optigroupname, null, $multiple);
|
$optigroup = new backup_optigroup($optigroupname, null, $multiple);
|
||||||
$element->add_child($optigroup); // Add optigroup to stay connected since beginning
|
$element->add_child($optigroup); // Add optigroup to stay connected since beginning
|
||||||
|
|
||||||
// Get all the optigroup_elements, looking across al the subplugin dirs
|
// Get all the optigroup_elements, looking across all the subplugin dirs
|
||||||
$elements = array();
|
$elements = array();
|
||||||
$subpluginsdirs = get_plugin_list($subplugintype);
|
$subpluginsdirs = get_plugin_list($subplugintype);
|
||||||
foreach ($subpluginsdirs as $name => $subpluginsdir) {
|
foreach ($subpluginsdirs as $name => $subpluginsdir) {
|
||||||
|
@ -150,7 +150,7 @@ abstract class backup_activity_structure_step extends backup_structure_step {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abtract structure step, parent of all the block structure steps. Used to wrap the
|
* Abstract structure step, parent of all the block structure steps. Used to wrap the
|
||||||
* block structure definition within the main <block ...> tag
|
* block structure definition within the main <block ...> tag
|
||||||
*/
|
*/
|
||||||
abstract class backup_block_structure_step extends backup_structure_step {
|
abstract class backup_block_structure_step extends backup_structure_step {
|
||||||
|
@ -178,7 +178,7 @@ abstract class backup_block_structure_step extends backup_structure_step {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* structure step that will generate the module.xml file for the activity,
|
* structure step that will generate the module.xml file for the activity,
|
||||||
* acummulating various information about the activity, annotating groupings
|
* accumulating various information about the activity, annotating groupings
|
||||||
* and completion/avail conf
|
* and completion/avail conf
|
||||||
*/
|
*/
|
||||||
class backup_module_structure_step extends backup_structure_step {
|
class backup_module_structure_step extends backup_structure_step {
|
||||||
|
@ -222,7 +222,7 @@ class backup_module_structure_step extends backup_structure_step {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* structure step that will genereate the section.xml file for the section
|
* structure step that will generate the section.xml file for the section
|
||||||
* annotating files
|
* annotating files
|
||||||
*/
|
*/
|
||||||
class backup_section_structure_step extends backup_structure_step {
|
class backup_section_structure_step extends backup_structure_step {
|
||||||
|
@ -893,7 +893,7 @@ class backup_users_structure_step extends backup_structure_step {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* structure step in charge of constructing the block.xml file for one
|
* structure step in charge of constructing the block.xml file for one
|
||||||
* given block (intance and positions). If the block has custom DB structure
|
* given block (instance and positions). If the block has custom DB structure
|
||||||
* that will go to a separate file (different step defined in block class)
|
* that will go to a separate file (different step defined in block class)
|
||||||
*/
|
*/
|
||||||
class backup_block_instance_structure_step extends backup_structure_step {
|
class backup_block_instance_structure_step extends backup_structure_step {
|
||||||
|
@ -1294,7 +1294,7 @@ class backup_annotate_scales_from_outcomes extends backup_execution_step {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This step will generate all the user annotations for the already
|
* This step will generate all the user annotations for the already
|
||||||
* annottated (final) users. Need to do this here because each user
|
* annotated (final) users. Need to do this here because each user
|
||||||
* has its own context and structure tasks only are able to handle
|
* has its own context and structure tasks only are able to handle
|
||||||
* one context. Also, this step will guarantee that every user has
|
* one context. Also, this step will guarantee that every user has
|
||||||
* its context created (req for other steps)
|
* its context created (req for other steps)
|
||||||
|
|
|
@ -39,7 +39,7 @@ class backup_xml_transformer extends xml_contenttransformer {
|
||||||
$this->absolute_links_encoders = array();
|
$this->absolute_links_encoders = array();
|
||||||
$this->courseid = $courseid;
|
$this->courseid = $courseid;
|
||||||
// Check if we support unicode modifiers in regular expressions
|
// Check if we support unicode modifiers in regular expressions
|
||||||
$this->unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silenty, returning false,
|
$this->unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silently, returning false,
|
||||||
// if regexp libraries don't support unicode
|
// if regexp libraries don't support unicode
|
||||||
// Register all the available content link encoders
|
// Register all the available content link encoders
|
||||||
$this->absolute_links_encoders = $this->register_link_encoders();
|
$this->absolute_links_encoders = $this->register_link_encoders();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue