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