Added Voice Functionality
[KolmisoftMore] implemented getActiveCalls function [menu.php] added menu point for active voice calls [config.sample.php] added KOLMISOFT configuration constants [VoiceCallActive] implemented active voice calls view [VoiceCallHistoryController] fixed importCallsFromToday Time [tt-table] fixed pagination displays
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
<?php
|
||||
|
||||
//display errors
|
||||
//ini_set('display_errors', 1);
|
||||
//ini_set('display_startup_errors', 1);
|
||||
//error_reporting(E_ALL);
|
||||
|
||||
class VoiceCallHistoryController extends mfBaseController {
|
||||
private User $me;
|
||||
private string $VOICE_PORTAL_HOST = "vportal.xinon.at";
|
||||
private string $VOICE_PORTAL_API_KEY = "2f9mpw3oamALg7gSgtWUTCKNZ01fFRDh";
|
||||
private string $VOICE_PORTAL_USERNAME = "700342020";
|
||||
private string $VOICE_PORTAL_HOST = KOLMISOFT_API_HOST;
|
||||
private string $VOICE_PORTAL_API_KEY = KOLMISOFT_API_KEY;
|
||||
private string $VOICE_PORTAL_USERNAME = KOLMISOFT_API_USERNAME;
|
||||
|
||||
private KolmisoftMore $kolmisoftMore;
|
||||
|
||||
@@ -62,8 +57,8 @@ class VoiceCallHistoryController extends mfBaseController {
|
||||
}
|
||||
|
||||
private function importCallsFromToday(): array {
|
||||
$startDate = strtotime(date("Y-m-d 8:00:00"));
|
||||
$endDate = strtotime(date("Y-m-d 9:00:59"));
|
||||
$startDate = strtotime(date("Y-m-d 0:00:00"));
|
||||
$endDate = strtotime(date("Y-m-d 23:59:59"));
|
||||
|
||||
$callHistory = $this->kolmisoftMore->getVoiceCallHistory($startDate, $endDate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user