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); }
public function createUserRecords($userid, $user_records) { return DBHelper::performInsertQuery($this->db, self::$USERRECORDS_TABLENAME, $user_records); }