PHP Class FluentUtils, fluentpdo

Mostra file Open project: fpdo/fluentpdo Class Usage Examples

Public Methods

Method Description
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"

Method Details

convertToNativeTypes() public static method

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
return copy of $assoc with matching type fields

formatQuery() public static method

public static formatQuery ( string $query ) : string
$query string
return string

toUpperWords() public static method

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