custom training price

This commit is contained in:
Tóth Richárd
2019-07-25 12:22:15 +02:00
parent 161453e9b5
commit 2c663d7ed1
20 changed files with 266 additions and 156 deletions

View File

@@ -3,9 +3,6 @@
/*
TRAINING osztály
Edzések
*/
class training {
@@ -16,13 +13,12 @@ class training {
private $tr_duration;
private $tr_note;
private $tr_locked;
private $tr_price;
private $tr_deleted;
private $coaches = array();
private $helpers = array();
public function set_tr_id($_tr_id) {
$this->tr_id = $_tr_id;
}
@@ -47,6 +43,10 @@ class training {
$this->tr_locked = $_tr_locked;
}
public function set_tr_price($_tr_price) {
$this->tr_price = $_tr_price;
}
public function set_tr_deleted($_tr_deleted) {
$this->tr_deleted = $_tr_deleted;
}
@@ -89,6 +89,10 @@ class training {
return $this->tr_locked;
}
public function get_tr_price() {
return $this->tr_price;
}
public function get_tr_deleted() {
return $this->tr_deleted;
}
@@ -209,6 +213,9 @@ class training {
if ($_training_value_array['tr_note'] == "") {
$_training_value_array['tr_note'] = null;
}
if ($_training_value_array['tr_price'] == "") {
$_training_value_array['tr_price'] = null;
}
$new_tr_id = $sql->insert_into('training', $_training_value_array);
log::register('new_training', $new_tr_id);
if (isset($coaches)) {