Properties

$gateway

$gateway : 

Type

Methods

__construct()

__construct(  $gateway) 

Parameters

$gateway

addAddressBook()

addAddressBook(  $name,   $description = NULL) 

Create address book

Parameters

$name
$description

delAddressBook()

delAddressBook(  $idAddressBook) 

Delete address book by address book ID

Parameters

$idAddressBook

editAddressBook()

editAddressBook(  $idAddressBook,   $newName,   $newDescr = NULL) 

Edit address book by address book ID

Parameters

$idAddressBook
$newName
$newDescr

getAddressBook()

getAddressBook(  $idAddressBook) 

Get address book by address book ID

Parameters

$idAddressBook

getAllAddressBook()

getAllAddressBook(  $from = null,   $offset = null) 

Get all address books

Parameters

$from
$offset

addPhoneToAddressBook()

addPhoneToAddressBook(  $idAddressBook,   $phone,   $variables) 

Add phone to addressbook

Parameters

$idAddressBook
$phone
$variables

getPhoneFromAddressBookByIdPhone()

getPhoneFromAddressBookByIdPhone(  $idPhone,   $idAddressBook = null) 

Get phone from addressbook

Parameters

$idPhone
$idAddressBook

getPhoneById()

getPhoneById(  $idPhone) 

Get phone from addressbook by phon ID

Parameters

$idPhone

getPhoneByPhone()

getPhoneByPhone(  $phone) 

Get phone from addressbook by phone

Parameters

$phone

getAllPhones()

getAllPhones(  $from,   $offset) 

Get phone from addressbook by phone

Parameters

$from
$offset

getPhonesByAddressBook()

getPhonesByAddressBook(  $idAddressBook,   $from = null,   $offset = null) 

Get phone from addressbook by address book ID

Parameters

$idAddressBook
$from
$offset

getPhonesByAddressBookByPhone()

getPhonesByAddressBookByPhone(  $idAddressBook,   $phone,   $from = null,   $offset = null) 

Get phone from addressbook by address book ID and phone

Parameters

$idAddressBook
$phone
$from
$offset

delPhoneFromAddressBookById()

delPhoneFromAddressBookById(  $idPhone) 

Delete phone from addressbook by phone ID

Parameters

$idPhone

delPhonesFromAddressBookByAdressBookId()

delPhonesFromAddressBookByAdressBookId(  $idAddressBook) 

Delete all phones from addressbook by address book ID

Parameters

$idAddressBook

edidPhone()

edidPhone(  $idPhone,   $phone,   $variables) 

Edit phone addressbook by phone ID

Parameters

$idPhone
$phone
$variables

searchAddressBook()

searchAddressBook(  $searchFields,   $from,   $offset) 

Search addressbook Availible fields: name,phones,date.

Availible operations: like,=,>,>=,<,<=. Example for searchFields: $searchFields['name']=array('operation'=>'like', 'value'=>"test%");

Parameters

$searchFields
$from
$offset

searchPhones()

searchPhones(  $searchFields,   $from = null,   $offset = null) 

Search phone Availible fields: idAddressBook,phones,normalPhone, variables, status.

Availible operations: like,=,>,>=,<,<=. Example for searchFields: $searchFields['normalPhone']=array('operation'=>'like', 'value'=>"test%");

Parameters

$searchFields
$from
$offset