AfterLogic API Documentation
  • Package
  • Class

Packages

  • Calendar
    • Classes
    • Storages
  • Capability
  • Channels
    • Classes
    • Storages
  • Collaboration
  • Contacts
    • Helpers
    • Storages
  • Dav
  • Db
    • Classes
    • Enum
    • Storages
  • Domains
    • Classes
    • Storages
  • Fetchers
    • Classes
    • Storages
  • Filecache
    • Storages
  • Filestorage
    • Classes
    • Storages
  • GContacts
    • Storages
  • Helpdesk
    • Classes
    • Enum
    • Storages
  • Integrator
  • IOS
  • Logger
  • Mail
    • Classes
    • Enum
    • Storages
  • Mailsuite
    • Classes
    • Storages
  • Min
    • Storages
  • Sieve
    • Classes
    • Enum
  • Social
    • Classes
    • Storages
  • Subscription
    • Classes
  • Subscriptions
    • Storages
  • Tenants
    • Classes
    • Storages
  • Twofactorauth
    • Classes
    • Storages
  • Users
    • Classes
    • Enum
    • Storages
  • Voice
  • WebMail
    • Storages

Classes

  • CApiGcontactsCommandCreator
  • CApiGcontactsCommandCreatorMySQL
  • CApiGcontactsCommandCreatorPostgreSQL
  • CApiGcontactsDbStorage
  • CApiGcontactsLdapStorage
  • CApiGcontactsNodbStorage
  • CApiGcontactsStorage

Class CApiGcontactsDbStorage

Class CApiGcontactsDbStorage is used for work with global contacts in database storage.

AApiManagerStorage
Extended by CApiGcontactsStorage
Extended by CApiGcontactsDbStorage
Package: GContacts\Storages
Located at gcontacts/storages/db/storage.php

Methods summary

public
# __construct( CApiGlobalManager & $oManager )

Creates a new instance of the object.

Creates a new instance of the object.

Parameters

$oManager
$oManager Global manager object.

Overrides

CApiGcontactsStorage::__construct
public integer
# getContactItemsCount( CAccount $oAccount, string $sSearch )

Obtains count of all global contacts found by search-string for specified account.

Obtains count of all global contacts found by search-string for specified account.

Parameters

$oAccount
Account object.
$sSearch
= '' Search-string.

Returns

integer

Overrides

CApiGcontactsStorage::getContactItemsCount
public boolean|array
# getContactItems( CAccount $oAccount, integer $iSortField, integer $iSortOrder, integer $iOffset, integer $iRequestLimit, string $sSearch )

Obtains all global contacts by search-string for specified account.

Obtains all global contacts by search-string for specified account.

Parameters

$oAccount
Account object.
$iSortField
Sort field for sorting contact list.
$iSortOrder
Sort order for sorting contact list.
$iOffset
Offset value for obtaining a partial list.
$iRequestLimit
Limit value for obtaining a partial list.
$sSearch
Search string.

Returns

boolean|array

Overrides

CApiGcontactsStorage::getContactItems
public CContact|boolean
# getContactById( CAccount $oAccount, mixed $mContactId, boolean $bIgnoreHideInGab = false )

Obtains contact by identifier for specified account.

Obtains contact by identifier for specified account.

Parameters

$oAccount
Account object.
$mContactId
Global contact identifier.
$bIgnoreHideInGab
= false. If true all global contacts will be checked including marked as "hide in global address book".

Returns

CContact|boolean

Overrides

CApiGcontactsStorage::getContactById
public CContact|boolean
# getContactByMailingListId( mixed $iMailingListID )

Obtains contact by mailing list identifier.

Obtains contact by mailing list identifier.

Parameters

$iMailingListID
Mailing list identifier.

Returns

CContact|boolean

Overrides

CApiGcontactsStorage::getContactByMailingListId
public CContact|boolean
# getContactByTypeId( CAccount $oAccount, mixed $mContactTypeId, boolean $bIgnoreHideInGab = false )

Obtains contact by type identifier for specified account.

Obtains contact by type identifier for specified account.

Parameters

$oAccount
Account object.
$mContactTypeId
$mGlobalContactTypeId Global contact type identifier.
$bIgnoreHideInGab
= false. If true all global contacts will be checked including marked as "hide in global address book".

Returns

CContact|boolean
public CContact|boolean
# getContactByEmail( CAccount $oAccount, string $sEmail )

Obtains contact by email for specified account.

Obtains contact by email for specified account.

Parameters

$oAccount
Account object.
$sEmail
Contact email.

Returns

CContact|boolean

Overrides

CApiGcontactsStorage::getContactByEmail
public boolean
# updateContact( CContact $oContact )

Updates contact data by contact object.

Updates contact data by contact object.

Parameters

$oContact
Contact object.

Returns

boolean
public boolean
# syncMissingGlobalContacts( )

Looks for contacts in the address book belonging to the user or the mailing list, and if not found, adds them to the address book.

Looks for contacts in the address book belonging to the user or the mailing list, and if not found, adds them to the address book.

Returns

boolean

Properties summary

protected CApiContactsMainManager $oApiContactsManager
#
protected CDbStorage $oConnection
#
protected CApiGcontactsCommandCreator $oCommandCreator
#
AfterLogic API Documentation API documentation generated by ApiGen