Ejemplo n.º 1
0
 public function saveWorkoutSegment($workout_id, $workout_segment)
 {
     /*
      * Input: $workout_segment = array(climb_type, ascent_type, grade_index, reps)
      * 
      * Output: array(result, insertID)
      */
     // Add workout_id to workout_segment array
     $workout_segment["workout_id"] = $workout_id;
     return DBHelper::performInsertQuery($this->db, "workout_segments", $workout_segment);
 }
Ejemplo n.º 2
0
 public function createUserRecords($userid, $user_records)
 {
     return DBHelper::performInsertQuery($this->db, self::$USERRECORDS_TABLENAME, $user_records);
 }