| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 1063 lines (44 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
view_table_php:: (18 methods):
init()
invoke()
add_field_php()
drop_field_php()
rename_field_php()
change_field_type_php()
change_field_precision_php()
change_field_unsigned_php()
change_field_notnull_php()
change_field_enum_php()
change_field_default_php()
add_key_php()
drop_key_php()
rename_key_php()
add_index_php()
drop_index_php()
rename_index_php()
upgrade_savepoint_php()
Class: view_table_php - X-Ref
| init() X-Ref |
| Init method, every subclass will have its own |
| invoke() X-Ref |
| Invoke method, every class will have its own returns true/false on completion, setting both errormsg and output as necessary |
| add_field_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to create one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to be created return: string PHP code to be used to create the field |
| drop_field_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to drop one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to be dropped return: string PHP code to be used to drop the field |
| rename_field_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to rename one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to be renamed return: string PHP code to be used to rename the field |
| change_field_type_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the type of one field using XMLDB objects and functions. Currently these conversions are supported: integer to char char to integer number to char char to number float to char char to float param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change precision |
| change_field_precision_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the precision of one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change precision |
| change_field_unsigned_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the unsigned/signed of one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change unsigned/signed |
| change_field_notnull_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the nullability of one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change null/not null |
| change_field_enum_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the enum values (check constraint) of one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change its enum |
| change_field_default_php($structure, $table, $field) X-Ref |
| This function will generate all the PHP code needed to change the default of one field using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string field field name to change null/not null |
| add_key_php($structure, $table, $key) X-Ref |
| This function will generate all the PHP code needed to create one key using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string key key name to be created return: string PHP code to be used to create the key |
| drop_key_php($structure, $table, $key) X-Ref |
| This function will generate all the PHP code needed to drop one key using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string key key name to be dropped return: string PHP code to be used to drop the key |
| rename_key_php($structure, $table, $key) X-Ref |
| This function will generate all the PHP code needed to rename one key using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string key key name to be renamed return: string PHP code to be used to rename the key |
| add_index_php($structure, $table, $index) X-Ref |
| This function will generate all the PHP code needed to create one index using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string index index name to be created return: string PHP code to be used to create the index |
| drop_index_php($structure, $table, $index) X-Ref |
| This function will generate all the PHP code needed to drop one index using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string index index name to be dropped return: string PHP code to be used to drop the index |
| rename_index_php($structure, $table, $index) X-Ref |
| This function will generate all the PHP code needed to rename one index using XMLDB objects and functions param: XMLDBStructure structure object containing all the info param: string table table name param: string index index name to be renamed return: string PHP code to be used to rename the index |
| upgrade_savepoint_php($structure) X-Ref |
| This function will generate the PHP code needed to implement the upgrade_xxxx_savepoint() php calls in upgrade code generated from the editor param: XMLDBStructure structure object containing all the info return: string PHP code to be used to stabilish a savepoint |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |