Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
restore_decode_processor Class Reference

Helper class that will perform all the necessary decoding tasks on restore. More...

Public Member Functions

 __construct ($restoreid, $sourcewwwroot, $targetwwwroot)
 
 add_content ($content)
 
 add_rule ($rule)
 
 decode_content ($content)
 Receive content from restore_decode_content objects and apply all the restore_decode_rules to them.
 
 execute ()
 Visit all the restore_decode_content providers that will cause decode_content() to be called for each content.
 

Static Public Member Functions

static register_link_decoders ($processor)
 Adds all the course/section/activity/block contents and rules.
 

Protected Member Functions

 precheck_content ($content)
 Perform some general checks in content.
 

Protected Attributes

 $contents
 
 $restoreid
 
 $rules
 
 $sourcewwwroot
 
 $targetwwwroot
 

Detailed Description

Helper class that will perform all the necessary decoding tasks on restore.

This class will register all the restore_decode_content and restore_decode_rule instances defined by the restore tasks in order to perform the complete decoding of links in the final task of the restore_plan execution.

By visiting each content provider will apply all the defined rules

TODO: Complete phpdocs

Member Function Documentation

◆ precheck_content()

restore_decode_processor::precheck_content ( $content)
protected

Perform some general checks in content.

Returning false rules processing is skipped


The documentation for this class was generated from the following file: