PHP Class DemoCRUD, PDO4You

Show file Open project: giovanniramos/pdo4you Class Usage Examples

Public Methods

Method Description
allSelects ( ) All Selects
multipleDelete ( ) Multiple Delete
multipleInsert ( ) Multiple Insert
multipleUpdate ( ) Multiple Update
select ( $instance = null ) Default Select
updateWhere ( $desc, $id ) Update Where

Private Methods

Method Description
fakeName ( $ucfirst = false ) Random name generator
getQuery ( $sql ) Format the Query
getResult ( $result, $show_lastid = false ) Format the Result
sanitize ( $data ) Sanitizes the result
sql ( ) Checks and returns the SQL query to the appropriate driver

Method Details

allSelects() public method

All Selects
public allSelects ( )

multipleDelete() public method

Multiple Delete
public multipleDelete ( )

multipleInsert() public method

Multiple Insert
public multipleInsert ( )

multipleUpdate() public method

Multiple Update
public multipleUpdate ( )

select() public method

Default Select
public select ( $instance = null )

updateWhere() public method

Update Where
public updateWhere ( $desc, $id )