PHP 클래스 FluentUtils, fluentpdo

파일 보기 프로젝트 열기: fpdo/fluentpdo 1 사용 예제들

공개 메소드들

메소드 설명
convertToNativeTypes ( PDOStatement $statement, $rows ) : copy Converts columns from strings to types according to PDOStatement::columnMeta http://stackoverflow.com/a/9952703/3006989
formatQuery ( string $query ) : string
toUpperWords ( string $string ) : string Convert "camelCaseWord" to "CAMEL CASE WORD"

메소드 상세

convertToNativeTypes() 공개 정적인 메소드

Converts columns from strings to types according to PDOStatement::columnMeta http://stackoverflow.com/a/9952703/3006989
public static convertToNativeTypes ( PDOStatement $statement, $rows ) : copy
$statement PDOStatement
리턴 copy of $assoc with matching type fields

formatQuery() 공개 정적인 메소드

public static formatQuery ( string $query ) : string
$query string
리턴 string

toUpperWords() 공개 정적인 메소드

Convert "camelCaseWord" to "CAMEL CASE WORD"
public static toUpperWords ( string $string ) : string
$string string
리턴 string