get formatted training price
This commit is contained in:
@@ -89,9 +89,14 @@ class training {
|
||||
return $this->tr_locked;
|
||||
}
|
||||
|
||||
public function get_tr_price() {
|
||||
public function get_tr_price($formatted = false) {
|
||||
if (!$formatted) {
|
||||
return $this->tr_price;
|
||||
}
|
||||
else {
|
||||
return number_format($this->tr_price, 0, ',', ' ');
|
||||
}
|
||||
}
|
||||
|
||||
public function get_tr_deleted() {
|
||||
return $this->tr_deleted;
|
||||
|
||||
Reference in New Issue
Block a user