PHP 인터페이스 Fakerino\Core\Database\DbInterface

저자: Nicola Pietroluongo ([email protected])
파일 보기 프로젝트 열기: fakerino/fakerino 0 사용 예제들

공개 메소드들

메소드 설명
connect ( ) : boolean Makes a database connection.
getColumnLength ( integer $num ) : integer Returns the length of the $num column.
getColumnName ( integer $num ) : string Returns the name of the $num column.
getColumnType ( integer $num ) : string Returns the type of the $num column.
getFakeType ( string $columnType ) : string Gets the Fakerino columnType.
getTotalColumns ( ) : integer Gets the number of column in the table.
insert ( DbRowEntity $row ) : boolean Inserts row in $tableName.
isColumnAutoincrement ( integer $num ) : boolean Returns true if the column is autoincrement.
setTable ( string $tableName ) Sets the connection with the $tableName.

메소드 상세

connect() 공개 메소드

Makes a database connection.
public connect ( ) : boolean
리턴 boolean

getColumnLength() 공개 메소드

Returns the length of the $num column.
public getColumnLength ( integer $num ) : integer
$num integer
리턴 integer

getColumnName() 공개 메소드

Returns the name of the $num column.
public getColumnName ( integer $num ) : string
$num integer
리턴 string mixed

getColumnType() 공개 메소드

Returns the type of the $num column.
public getColumnType ( integer $num ) : string
$num integer
리턴 string

getFakeType() 공개 메소드

Gets the Fakerino columnType.
public getFakeType ( string $columnType ) : string
$columnType string
리턴 string

getTotalColumns() 공개 메소드

Gets the number of column in the table.
public getTotalColumns ( ) : integer
리턴 integer

insert() 공개 메소드

Inserts row in $tableName.
public insert ( DbRowEntity $row ) : boolean
$row DbRowEntity
리턴 boolean

isColumnAutoincrement() 공개 메소드

Returns true if the column is autoincrement.
public isColumnAutoincrement ( integer $num ) : boolean
$num integer
리턴 boolean

setTable() 공개 메소드

Sets the connection with the $tableName.
public setTable ( string $tableName )
$tableName string