Class CApiGcontactsDbStorage
Class CApiGcontactsDbStorage is used for work with global contacts in database storage.
-
AApiManagerStorage
-
CApiGcontactsStorage
-
CApiGcontactsDbStorage
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
|
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
|
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
|
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
|
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
|
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
|
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
|
|