big changes
everything with lease and expire dates
This commit is contained in:
@@ -16,8 +16,9 @@ class diary_entry {
|
||||
private $de_balance = 0; //a felhasználóhoz tartozó aktuális egyenleg
|
||||
private $de_has_discount = false; //van-e kedvzemény
|
||||
private $de_discount_id; //kedvezmény ID
|
||||
private $de_expired = 0;
|
||||
|
||||
function __construct($_pr_id, $_date, $_type, $_tpm, $_tpd, $_ft, $_tr = null, $_mod = null) {
|
||||
function __construct($_pr_id, $_date, $_type, $_tpm, $_tpd, $_ft, $_expired = 0, $_tr = null, $_mod = null) {
|
||||
$this->set_de_presence_id($_pr_id);
|
||||
$this->set_de_date($_date);
|
||||
$this->set_de_type($_type);
|
||||
@@ -26,7 +27,7 @@ class diary_entry {
|
||||
$this->set_de_first_two($_ft);
|
||||
$this->set_de_training($_tr);
|
||||
$this->set_de_money_deposit($_mod);
|
||||
|
||||
$this->set_de_expired($_expired);
|
||||
}
|
||||
|
||||
public function set_de_presence_id($_item) {
|
||||
@@ -83,6 +84,10 @@ class diary_entry {
|
||||
$this->de_discount_id = $_item;
|
||||
}
|
||||
|
||||
public function set_de_expired($_item) {
|
||||
$this->de_expired = $_item;
|
||||
}
|
||||
|
||||
public function get_de_presence_id() {
|
||||
return $this->de_presence_id;
|
||||
}
|
||||
@@ -131,6 +136,10 @@ class diary_entry {
|
||||
return $this->de_discount_id;
|
||||
}
|
||||
|
||||
public function get_de_expired() {
|
||||
return $this->de_expired;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user