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

Public Member Functions

 init ()
 invoke ()
 create_table_php ($structure, $table)
 drop_table_php ($structure, $table)
 rename_table_php ($structure, $table)

Detailed Description

Definition at line 33 of file view_structure_php.class.php.


Member Function Documentation

create_table_php ( structure,
table 
)

This function will generate all the PHP code needed to create one table using XMLDB objects and functions

Parameters:
xmldb_structurestructure object containing all the info
stringtable table code to be created
Returns:
string PHP code to be used to create the table

Definition at line 159 of file view_structure_php.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

drop_table_php ( structure,
table 
)

This function will generate all the PHP code needed to drop one table using XMLDB objects and functions

Parameters:
xmldb_structurestructure object containing all the info
stringtable table code to be dropped
Returns:
string PHP code to be used to drop the table

Definition at line 239 of file view_structure_php.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

init ( )

Init method, every subclass will have its own

Reimplemented from XMLDBAction.

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

Here is the call graph for this function:

invoke ( )

Invoke method, every class will have its own returns true/false on completion, setting both errormsg and output as necessary

Reimplemented from XMLDBAction.

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

Here is the call graph for this function:

rename_table_php ( structure,
table 
)

This function will generate all the PHP code needed to rename one table using XMLDB objects and functions

Parameters:
xmldb_structurestructure object containing all the info
stringtable table code to be renamed
Returns:
string PHP code to be used to rename the table

Definition at line 282 of file view_structure_php.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:


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