Documentation

Telephony_Controller
in package

AbstractYes

Abstract Telephony.

Tags
subpackage

Telephony

version
7.x
copyright

© 2005-2025, https://www.hostcms.ru

Table of Contents

Properties

$instance  : mixed
The singleton instances.
$_oSite  : Site_Model
Site object
$_oTelephony  : Telephony_Model
Telephony object

Methods

factory()  : mixed
Create and return an object of telephony
getAudio()  : null|string
Get audio record filepath
getCallbackUrl()  : string
Get callback url
getSettingsList()  : array<string|int, mixed>
Get driver settings list
instance()  : object
Register an existing instance as a singleton.
setSite()  : self
Set site
setTelephony()  : self
Set telephony
_addAudio()  : self
Add audio file to crm note
_createLead()  : void
Create lead from call
_createNotification()  : self
Create notification for subscribers
_getDriverName()  : srting
Get full driver name
_getLeadIds()  : array<string|int, mixed>
Get lead ids by phone
_getSiteuserIds()  : array<string|int, mixed>
Get siteuser ids by phone

Properties

$instance

The singleton instances.

public static mixed $instance = array()

Methods

factory()

Create and return an object of telephony

public static factory(mixed $driverName) : mixed
Parameters
$driverName : mixed

getAudio()

Get audio record filepath

public abstract getAudio(string $client_id, string $record_uuid) : null|string
Parameters
$client_id : string
$record_uuid : string
Return values
null|string

getCallbackUrl()

Get callback url

public abstract getCallbackUrl() : string
Return values
string

getSettingsList()

Get driver settings list

public abstract getSettingsList() : array<string|int, mixed>
Return values
array<string|int, mixed>

setSite()

Set site

public setSite(object $oSite) : self
Parameters
$oSite : object

Site Model

Return values
self

setTelephony()

Set telephony

public setTelephony(object $oTelephony) : self
Parameters
$oTelephony : object

Telephony_Model

Return values
self

_createLead()

Create lead from call

protected _createLead(array<string|int, mixed> $aData) : void
Parameters
$aData : array<string|int, mixed>

_createNotification()

Create notification for subscribers

protected _createNotification([int $type = 1 ][, string $phone = NULL ][, string|null $status = NULL ][, string $entity_type = '' ]) : self
Parameters
$type : int = 1
$phone : string = NULL
$status : string|null = NULL
$entity_type : string = ''
Return values
self

_getDriverName()

Get full driver name

protected static _getDriverName(string $driver) : srting
Parameters
$driver : string

driver name

Return values
srting

_getLeadIds()

Get lead ids by phone

protected _getLeadIds(string $phone) : array<string|int, mixed>
Parameters
$phone : string
Return values
array<string|int, mixed>

_getSiteuserIds()

Get siteuser ids by phone

protected _getSiteuserIds(string $phone) : array<string|int, mixed>
Parameters
$phone : string
Return values
array<string|int, mixed>

        
On this page

Search results