[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/backup/util/ui/ -> backup_moodleform.class.php (summary)

This file contains the generic moodleform bridge for the backup user interface as well as the individual forms that relate to the different stages the user interface can exist within.

Copyright: 2010 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 132 lines (5 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 3 classes

backup_initial_form:: (0 methods):

backup_schema_form:: (0 methods):

backup_confirmation_form:: (2 methods):
  definition_after_data()
  validation()

Defines 2 functions

  __construct()

Class: backup_initial_form  - X-Ref

Initial backup user interface stage moodleform.

Nothing to override we only need it defined so that moodleform doesn't get confused
between stages.

Class: backup_schema_form  - X-Ref

Schema backup user interface stage moodleform.

Nothing to override we only need it defined so that moodleform doesn't get confused
between stages.

Class: backup_confirmation_form  - X-Ref

Confirmation backup user interface stage moodleform.

Nothing to override we only need it defined so that moodleform doesn't get confused
between stages.

definition_after_data()   X-Ref
Adds the last elements, rules, settings etc to the form after data has been set.

We override this to add a rule and type to the filename setting.


validation($data, $files)   X-Ref
Validates the form.

Relies on the parent::validation for the bulk of the work.

param: array $data
param: array $files
return: array

Functions
Functions that are not part of a class:

__construct(backup_ui_stage $uistage, $action = null, $customdata = null, $method = 'post',$target = '', $attributes = null, $editable = true)   X-Ref
Creates the form

Overridden for type hinting on the first arg.

param: backup_ui_stage $uistage
param: moodle_url|string $action
param: mixed $customdata
param: string $method get|post
param: string $target
param: array $attributes
param: bool $editable



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1