PHP Class SqlHandler, PHP-Fusion

Mostrar archivo Open project: php-fusion/PHP-Fusion Class Usage Examples

Protected Methods

Method Description
add_column ( $table_name, $new_column_name, $field_attributes ) Add column to a specific table
build_table ( $new_table, $primary_column ) : boolean | mixed | null | PDOStatement | resource Function to build a new table
drop_column ( $table_name, $old_column_name ) Drop column of a table
drop_table ( $old_table ) Drop table
move_column ( $old_table, $new_table, $column_name ) Move a single column from one table to another
rename_column ( $table_name, $old_column_name, $new_column_name, $field_attributes ) : boolean | mixed | PDOStatement | resource Function to rename column name
transfer_table ( $old_table, $new_table ) Move old table to new table.

Method Details

add_column() protected static method

Add column to a specific table
protected static add_column ( $table_name, $new_column_name, $field_attributes )

build_table() protected static method

Function to build a new table
protected static build_table ( $new_table, $primary_column ) : boolean | mixed | null | PDOStatement | resource
$primary_column
return boolean | mixed | null | PDOStatement | resource

drop_column() protected static method

Drop column of a table
protected static drop_column ( $table_name, $old_column_name )
$table_name
$old_column_name

drop_table() protected static method

Drop table
protected static drop_table ( $old_table )

move_column() protected static method

Move a single column from one table to another
protected static move_column ( $old_table, $new_table, $column_name )
$old_table
$new_table
$column_name

rename_column() protected static method

Function to rename column name
protected static rename_column ( $table_name, $old_column_name, $new_column_name, $field_attributes ) : boolean | mixed | PDOStatement | resource
$table_name
$old_column_name
$new_column_name
return boolean | mixed | PDOStatement | resource

transfer_table() protected static method

Move old table to new table.
protected static transfer_table ( $old_table, $new_table )
$old_table
$new_table