Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • runBackup: This is where your main logic goes. This method is called when a backup is requested

    Code Block
    languagephp
    /**
     * Run Backup Method used by other modules
     *
     * @param [type] $id
     * @param [type] $transaction
     *
     * @return void
     */
    $this->runBackuppublic function runBackup($id,$transaction);


Backup Helper Methods

...

  • runRestore: This is where your main logic goes. This method is called when a restore is requested

    Code Block
    /**
     * Run Restore Method used by other modules
     *
     * @return void
     */
    $this->runRestorepublic function runRestore();


  • reset: Typically during restore modules are "reset" by uninstalling and reinstalling the module by executing the reset() method. You can override this in your own class to prevent the default action or perform other actions

    Code Block
    languagephp
    /**
     * The reset method is run right before the restore method is executed
     * 
     * You can override this and add custom code here
     * 
     * Example. Framework skips this method by overwriting it and doing nothing
     *
     * @return void
     */
    public function reset() {


...

  • processLegacy: Process Legacy Method used by other modules

    Code Block
    languagephp
    /**
     * Process Legacy Method used by other modules
     *
     * @param PDO $pdo The pdo connection for the temporary database
     * @param array $data An array with 'manifest', 'astdb', 'settings', 'features' as arrays
     * @param array $tables is a list of tables we determined belong to the module
     * @param array $unknownTables is an array of tables we don't have an owner for
     * @return void
     */
    $this->processLegacypublic function processLegacy($pdo, $data, $tables, $unknownTables)


...