|
| apply_date_offset ($value) |
| Apply course startdate offset based in original course startdate and course_offset_startdate setting Note we are using one static cache here, but by restoreid, so it's ok for concurrence/multiple executions in the same request.
|
|
| decrypt ($value) |
| Returns symmetric-key AES-256 decryption of base64 encoded contents.
|
|
| destroy () |
| Destroy all circular references.
|
|
| execute () |
| This function will perform all the actions necessary to achieve the execution of the plan/part/task.
|
|
| get_name () |
|
| log ($message, $level, $a=null, $depth=null, $display=false) |
| This function will be responsible for handling the params, and to call to the corresponding logger->process() once all modifications in params have been performed.
|
|
| set_task ($task) |
|
Execution step that, conditionally (if there isn't preloaded information), will load all the needed roles to backup_temp_ids.
They will be stored with "role" itemname. Also it will perform one automatic mapping to roles existing in the target site, based in permissions of the user performing the restore, archetypes and other bits. At the end, each original role will have its associated target role or 0 if it's going to be skipped. Note we wrap everything over one restore_dbops method, as far as the same stuff is going to be also executed by restore prechecks
restore_step::decrypt |
( |
| $value | ) |
|
|
inherited |
Returns symmetric-key AES-256 decryption of base64 encoded contents.
This method is used in restore operations to decrypt contents encrypted with encrypted_final_element automatically decoding (base64) and decrypting contents using the key stored in backup_encryptkey config.
Requires openssl, cipher availability, and key existence (backup automatically sets it if missing). Integrity is provided via HMAC.
- Parameters
-
- Return values
-
string|null | decoded and decrypted value or null if the operation can not be performed. |