PHP Class DemoCRUD, PDO4You

Afficher le fichier Open project: giovanniramos/pdo4you Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

All Selects
public allSelects ( )

multipleDelete() public méthode

Multiple Delete
public multipleDelete ( )

multipleInsert() public méthode

Multiple Insert
public multipleInsert ( )

multipleUpdate() public méthode

Multiple Update
public multipleUpdate ( )

select() public méthode

Default Select
public select ( $instance = null )

updateWhere() public méthode

Update Where
public updateWhere ( $desc, $id )