|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| XMLDBAction () | |
| __construct () | |
| init () | |
| getDoesGenerate () | |
| getError () | |
| getOutput () | |
| getPostAction () | |
| getTitle () | |
| loadStrings ($strings) | |
| invoke () | |
| launch ($action) | |
| upgrade_savepoint_php ($structure) | |
Data Fields | |
| $does_generate | |
| $title | |
| $str | |
| $output | |
| $errormsg | |
| $postaction | |
| $sesskey_protected | |
Definition at line 35 of file XMLDBAction.class.php.
| __construct | ( | ) |
Constructor to keep PHP5 happy
Definition at line 67 of file XMLDBAction.class.php.

| getDoesGenerate | ( | ) |
returns the type of output of the file
Definition at line 88 of file XMLDBAction.class.php.
| getError | ( | ) |
getError method, returns the last error string. Used if the invoke() methods returns false
Definition at line 96 of file XMLDBAction.class.php.
| getOutput | ( | ) |
getOutput method, returns the output generated by the action. Used after execution of the invoke() methods if they return true
Definition at line 104 of file XMLDBAction.class.php.
| getPostAction | ( | ) |
getPostAction method, returns the action to launch after executing another one
Definition at line 112 of file XMLDBAction.class.php.

| getTitle | ( | ) |
getTitle method returns the title of the action (that is part of the $str array attribute
Definition at line 120 of file XMLDBAction.class.php.
| init | ( | ) |
Init method, every subclass will have its own, always calling the parent one
Reimplemented in check_foreign_keys, XMLDBCheckAction, save_xml_file, check_bigints, edit_table, check_oracle_semantics, edit_xml_file, main_view, view_reserved_words, check_defaults, check_indexes, edit_field_save, edit_index_save, edit_key_save, generate_all_documentation, get_db_directories, new_table_from_mysql, view_structure_php, view_structure_sql, view_table_php, view_table_sql, delete_field, delete_index, delete_key, delete_table, delete_xml_file, edit_field, edit_key, edit_table_save, edit_xml_file_save, generate_documentation, load_xml_file, load_xml_files, move_updown_field, move_updown_index, move_updown_key, move_updown_table, new_field, new_index, new_key, new_table, revert_changes, unload_xml_file, view_field_xml, view_index_xml, view_key_xml, view_structure_xml, view_table_xml, view_xml, create_xml_file, edit_index, and template.
Definition at line 75 of file XMLDBAction.class.php.

| invoke | ( | ) |
main invoke method, it sets the postaction attribute if possible and checks sesskey_protected if needed
Reimplemented in edit_table, edit_xml_file, main_view, XMLDBCheckAction, edit_key_save, edit_field_save, view_table_php, edit_index_save, view_reserved_words, edit_field, edit_key, edit_index, get_db_directories, save_xml_file, view_structure_php, edit_table_save, generate_all_documentation, load_xml_file, new_table_from_mysql, view_xml, load_xml_files, view_structure_sql, view_table_sql, create_xml_file, delete_field, delete_index, delete_key, delete_table, delete_xml_file, generate_documentation, revert_changes, unload_xml_file, view_field_xml, view_index_xml, view_key_xml, view_structure_xml, view_table_xml, edit_xml_file_save, move_updown_field, move_updown_index, move_updown_key, move_updown_table, new_field, new_index, new_key, new_table, and template.
Definition at line 148 of file XMLDBAction.class.php.

| launch | ( | $ | action | ) |
launch method, used to easily call invoke methods between actions
Definition at line 173 of file XMLDBAction.class.php.

| loadStrings | ( | $ | strings | ) |
loadStrings method, loads the required strings specified in the array parameter
Definition at line 128 of file XMLDBAction.class.php.

| upgrade_savepoint_php | ( | $ | structure | ) |
This function will generate the PHP code needed to implement the upgrade_xxxx_savepoint() php calls in upgrade code generated from the editor. It's used by the view_structure_php and view_table_php actions
| xmldb_structure | structure object containing all the info |
Definition at line 217 of file XMLDBAction.class.php.


| XMLDBAction | ( | ) |
Constructor
Definition at line 60 of file XMLDBAction.class.php.


| $does_generate |
Definition at line 37 of file XMLDBAction.class.php.
| $errormsg |
Definition at line 50 of file XMLDBAction.class.php.
| $output |
Definition at line 47 of file XMLDBAction.class.php.
| $postaction |
Definition at line 53 of file XMLDBAction.class.php.
| $sesskey_protected |
Definition at line 55 of file XMLDBAction.class.php.
| $str |
Definition at line 44 of file XMLDBAction.class.php.
| $title |
Definition at line 41 of file XMLDBAction.class.php.