PHP 클래스 InfyOm\Generator\Utils\TableFieldsGenerator

파일 보기 프로젝트 열기: infyomlabs/laravel-generator 1 사용 예제들

공개 메소드들

메소드 설명
generateFieldsFromTable ( $tableName )
getPrimaryKeyFromTable ( string $tableName ) : string | null
getTimestampFieldNames ( ) : array

비공개 메소드들

메소드 설명
generateDecimalInput ( Doctrine\DBAL\Schema\Column $column ) : string
generateFloatInput ( Doctrine\DBAL\Schema\Column $column ) : string
generateIntFieldInput ( string $name, string $type, Doctrine\DBAL\Schema\Column $column ) : string
generateSingleFieldInput ( $name, $type )
generateStringInput ( Doctrine\DBAL\Schema\Column $column, integer $length = 255 ) : string
generateTextInput ( Doctrine\DBAL\Schema\Column $column ) : string

메소드 상세

generateFieldsFromTable() 공개 정적인 메소드

public static generateFieldsFromTable ( $tableName )

getPrimaryKeyFromTable() 공개 정적인 메소드

public static getPrimaryKeyFromTable ( string $tableName ) : string | null
$tableName string
리턴 string | null The column name of the (simple) primary key

getTimestampFieldNames() 공개 정적인 메소드

public static getTimestampFieldNames ( ) : array
리턴 array the set of [created_at column name, updated_at column name]