Moodle  2.2.1
http://www.collinsharper.com
backup Class Reference
Inheritance diagram for backup:
Collaboration diagram for backup:

Data Fields

const TYPE_1ACTIVITY = 'activity'
const TYPE_1SECTION = 'section'
const TYPE_1COURSE = 'course'
const FORMAT_MOODLE = 'moodle2'
const FORMAT_MOODLE1 = 'moodle1'
const FORMAT_IMSCC1 = 'imscc1'
const FORMAT_IMSCC11 = 'imscc11'
const FORMAT_UNKNOWN = 'unknown'
const INTERACTIVE_YES = true
const INTERACTIVE_NO = false
const MODE_GENERAL = 10
const MODE_IMPORT = 20
const MODE_HUB = 30
const MODE_SAMESITE = 40
const MODE_AUTOMATED = 50
const MODE_CONVERTED = 60
const TARGET_CURRENT_DELETING = 0
const TARGET_CURRENT_ADDING = 1
const TARGET_NEW_COURSE = 2
const TARGET_EXISTING_DELETING = 3
const TARGET_EXISTING_ADDING = 4
const EXECUTION_INMEDIATE = 1
const EXECUTION_DELAYED = 2
const STATUS_CREATED = 100
const STATUS_REQUIRE_CONV = 200
const STATUS_PLANNED = 300
const STATUS_CONFIGURED = 400
const STATUS_SETTING_UI = 500
const STATUS_NEED_PRECHECK = 600
const STATUS_AWAITING = 700
const STATUS_EXECUTING = 800
const STATUS_FINISHED_ERR = 900
const STATUS_FINISHED_OK = 1000
const LOG_DEBUG = 50
const LOG_INFO = 40
const LOG_WARNING = 30
const LOG_ERROR = 20
const LOG_NONE = 10
const VAR_COURSEID = -1
const VAR_SECTIONID = -11
const VAR_ACTIVITYID = -21
const VAR_MODID = -31
const VAR_MODNAME = -41
const VAR_BLOCKID = -51
const VAR_BLOCKNAME = -61
const VAR_CONTEXTID = -71
const VAR_PARENTID = -81
const VAR_BACKUPID = -1001
const VAR_BASEPATH = -1011
const OPERATION_BACKUP = 'backup'
const OPERATION_RESTORE = 'restore'
const VERSION = 2011063000
const RELEASE = '2.1'

Detailed Description

Abstract class defining common stuff to be used by the backup stuff

This class defines various constants and methods that will be used by different classes, all related with the backup process. Just provides the top hierarchy of the backup controller/worker stuff.

TODO: Finish phpdocs

Definition at line 34 of file backup.class.php.


Field Documentation

const EXECUTION_DELAYED = 2

Definition at line 69 of file backup.class.php.

Definition at line 68 of file backup.class.php.

const FORMAT_IMSCC1 = 'imscc1'

Definition at line 44 of file backup.class.php.

const FORMAT_IMSCC11 = 'imscc11'

Definition at line 45 of file backup.class.php.

const FORMAT_MOODLE = 'moodle2'

Definition at line 42 of file backup.class.php.

const FORMAT_MOODLE1 = 'moodle1'

Definition at line 43 of file backup.class.php.

const FORMAT_UNKNOWN = 'unknown'

Definition at line 46 of file backup.class.php.

const INTERACTIVE_NO = false

Definition at line 50 of file backup.class.php.

Definition at line 49 of file backup.class.php.

const LOG_DEBUG = 50

Definition at line 84 of file backup.class.php.

const LOG_ERROR = 20

Definition at line 87 of file backup.class.php.

const LOG_INFO = 40

Definition at line 85 of file backup.class.php.

const LOG_NONE = 10

Definition at line 88 of file backup.class.php.

const LOG_WARNING = 30

Definition at line 86 of file backup.class.php.

const MODE_AUTOMATED = 50

Definition at line 57 of file backup.class.php.

const MODE_CONVERTED = 60

Definition at line 58 of file backup.class.php.

const MODE_GENERAL = 10

Definition at line 53 of file backup.class.php.

const MODE_HUB = 30

Definition at line 55 of file backup.class.php.

const MODE_IMPORT = 20

Definition at line 54 of file backup.class.php.

const MODE_SAMESITE = 40

Definition at line 56 of file backup.class.php.

Definition at line 108 of file backup.class.php.

const OPERATION_RESTORE = 'restore'

Definition at line 109 of file backup.class.php.

const RELEASE = '2.1'

Definition at line 113 of file backup.class.php.

const STATUS_AWAITING = 700

Definition at line 78 of file backup.class.php.

const STATUS_CONFIGURED = 400

Definition at line 75 of file backup.class.php.

const STATUS_CREATED = 100

Definition at line 72 of file backup.class.php.

const STATUS_EXECUTING = 800

Definition at line 79 of file backup.class.php.

const STATUS_FINISHED_ERR = 900

Definition at line 80 of file backup.class.php.

const STATUS_FINISHED_OK = 1000

Definition at line 81 of file backup.class.php.

const STATUS_NEED_PRECHECK = 600

Definition at line 77 of file backup.class.php.

const STATUS_PLANNED = 300

Definition at line 74 of file backup.class.php.

const STATUS_REQUIRE_CONV = 200

Definition at line 73 of file backup.class.php.

const STATUS_SETTING_UI = 500

Definition at line 76 of file backup.class.php.

Definition at line 62 of file backup.class.php.

Definition at line 61 of file backup.class.php.

Definition at line 65 of file backup.class.php.

Definition at line 64 of file backup.class.php.

const TARGET_NEW_COURSE = 2

Definition at line 63 of file backup.class.php.

const TYPE_1ACTIVITY = 'activity'

Definition at line 37 of file backup.class.php.

const TYPE_1COURSE = 'course'

Definition at line 39 of file backup.class.php.

const TYPE_1SECTION = 'section'

Definition at line 38 of file backup.class.php.

const VAR_ACTIVITYID = -21

Definition at line 95 of file backup.class.php.

const VAR_BACKUPID = -1001

Definition at line 104 of file backup.class.php.

const VAR_BASEPATH = -1011

Definition at line 105 of file backup.class.php.

const VAR_BLOCKID = -51

Definition at line 98 of file backup.class.php.

const VAR_BLOCKNAME = -61

Definition at line 99 of file backup.class.php.

const VAR_CONTEXTID = -71

Definition at line 100 of file backup.class.php.

const VAR_COURSEID = -1

Definition at line 93 of file backup.class.php.

const VAR_MODID = -31

Definition at line 96 of file backup.class.php.

const VAR_MODNAME = -41

Definition at line 97 of file backup.class.php.

const VAR_PARENTID = -81

Definition at line 101 of file backup.class.php.

const VAR_SECTIONID = -11

Definition at line 94 of file backup.class.php.

const VERSION = 2011063000

Definition at line 112 of file backup.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations