PHP 클래스 SqlHandler, PHP-Fusion

파일 보기 프로젝트 열기: php-fusion/PHP-Fusion 1 사용 예제들

보호된 메소드들

메소드 설명
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.

메소드 상세

add_column() 보호된 정적인 메소드

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

build_table() 보호된 정적인 메소드

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

drop_column() 보호된 정적인 메소드

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

drop_table() 보호된 정적인 메소드

Drop table
protected static drop_table ( $old_table )

move_column() 보호된 정적인 메소드

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() 보호된 정적인 메소드

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
리턴 boolean | mixed | PDOStatement | resource

transfer_table() 보호된 정적인 메소드

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