Work in part

This commit is contained in:
2018-12-15 14:50:08 +09:00
parent 46be9eb7f4
commit 2a1c7da008
10 changed files with 1091 additions and 70 deletions

View File

@ -12,6 +12,7 @@ abstract class BDTables {
const FAVORITE = "favorite";
const EXERCISE = "exercise";
const TRAINING = "training";
const MUSCLES = "muscles";
}
?>

View File

@ -46,7 +46,7 @@ class Model {
$req->execute( $data );
}
public static function delete (string $tableName, array $data){
public static function delete( string $tableName, array $data ) {
$reqStr = 'DELETE FROM ' . $tableName . ' WHERE ';
$lastKey = endKey( $data );
foreach ( $data as $key => $value ) {
@ -63,7 +63,7 @@ class Model {
}
public static function update_order( string $tableName, array $data, string $newOrder) {
public static function update_order( string $tableName, array $data, string $newOrder ) {
$reqStr = 'UPDATE ' . $tableName . ' SET id_order = :newOrder WHERE ';
$lastKey = endKey( $data );
foreach ( $data as $key => $value ) {