51 lines
865 B
PHP
51 lines
865 B
PHP
<?php
|
|
|
|
|
|
class KolektorNotifications {
|
|
|
|
|
|
function __construct(){
|
|
global $site_url;
|
|
global $lang;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
// Loop cez vse response in posljemo notificatione glede na statuse
|
|
public function executeCronJob(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
private function sendNotification($response_id){
|
|
|
|
$response = new KolektorResponse($response_id);
|
|
|
|
// Status 0 - "prozeno" - preklopimo na status 1 "opozorilo 1"
|
|
if($response->getStatus() == 0){
|
|
|
|
}
|
|
// Status 1 - "opozorilo 1" - preklopimo na status 2 "opozorilo 3"
|
|
elseif($response->getStatus() == 1){
|
|
|
|
}
|
|
// Status 2 "opozorilo 3" - preklopimo na status 3 "neodgovorjeno"
|
|
elseif($response->getStatus() == 2){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
// Posljemo mail
|
|
|
|
|
|
// Spremenimo status
|
|
}
|
|
}
|
|
|
|
?>
|