send notifications manually

This commit is contained in:
Ricsi
2019-03-02 18:35:14 +00:00
parent 0bc4dfeb04
commit a1c4c27fcb
6 changed files with 250 additions and 103 deletions

View File

@@ -1,73 +0,0 @@
<?php
/**
* SHUTTLE
*/
class camp_shuttle_type
{
private $cst_id;
private $cst_name;
/**
* Gets the value of cst_id.
*
* @return mixed
*/
public function get_cst_id()
{
return $this->cst_id;
}
/**
* Sets the value of cst_id.
*
* @param mixed $cst_id the cst id
*
* @return self
*/
private function set_cst_id($cst_id)
{
$this->cst_id = $cst_id;
return $this;
}
/**
* Gets the value of cst_name.
*
* @return mixed
*/
public function get_cst_name()
{
return $this->cst_name;
}
/**
* Sets the value of cst_name.
*
* @param mixed $cst_name the cst name
*
* @return self
*/
private function set_cst_name($cst_name)
{
$this->cst_name = $cst_name;
return $this;
}
public function set_cst_data_by_id($_cst_id) {
global $sql;
$cst_assoc_array = $sql->assoc_array("select * from camp_shuttle_type where cst_id = " . $_cst_id);
$cst_array = $cst_assoc_array[0];
//alapadatok
foreach ($cst_array as $field => $value) {
$function_name = "set_" . $field;
$this->$function_name($value);
}
}
}
?>