Class CApiGcontactsDbStorage
	
	Class CApiGcontactsDbStorage is used for work with global contacts in database storage.
	 
	
		- 
AApiManagerStorage
			
			
		
- 
			 CApiGcontactsStorage CApiGcontactsStorage
- 
			 CApiGcontactsDbStorage 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
						$oAccountAccount 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
						$oAccountAccount object.$iSortFieldSort field for sorting contact list.$iSortOrderSort order for sorting contact list.$iOffsetOffset value for obtaining a partial list.$iRequestLimitLimit value for obtaining a partial list.$sSearchSearch 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
						$oAccountAccount object.$mContactIdGlobal 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
						$iMailingListIDMailing 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
						$oAccountAccount 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
						$oAccountAccount object.$sEmailContact email.Returns
						CContact|boolean
					 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			updateContact( CContact $oContact )
				Updates contact data by contact object. 
				Updates contact data by contact object. Parameters
						$oContactContact 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 
					
				 
					
				 |  |