add camp_money field

This commit is contained in:
2021-04-15 20:58:53 +02:00
parent a66774e19a
commit b25714ab6c
9 changed files with 363 additions and 299 deletions

View File

@@ -8,6 +8,7 @@ class camp_apply
private $capp_status = null;
private $capp_accept_date = null;
private $capp_camp_id = null;
private $capp_money;
/**
* get_s the value of capp_id.
@@ -153,6 +154,30 @@ class camp_apply
return $this;
}
/**
* get_s the value of capp_money.
*
* @return mixed
*/
public function get_capp_money()
{
return $this->capp_money;
}
/**
* Sets the value of capp_money.
*
* @param mixed $capp_money the capp money
*
* @return self
*/
private function set_capp_money($capp_money)
{
$this->capp_money = $capp_money;
return $this;
}
//STATIC!
public static function has_responsible_contact($_capp_id)
{
@@ -247,4 +272,13 @@ class camp_apply
'capp_camp_id' => $_camp,
], ['capp_id' => $_apply_id]);
}
public static function set_money($_money, $_capp_id)
{
global $sql;
$sql->update_table('camp_apply', [
'capp_money' => $_money,
], ['capp_id' => $_capp_id]);
}
}