Ejemplo n.º 1
0
 /**
  * @param int $iUserId
  * @param string $sSearch
  * @param string $sFirstCharacter
  * @param int $iGroupId
  * @param int $iSharedTenantId = null
  * @return int
  */
 public function GetContactItemsCount($iUserId, $sSearch, $sFirstCharacter, $iGroupId, $iSharedTenantId = null)
 {
     $iResult = 0;
     if ($this->oConnection->Execute($this->oCommandCreator->GetContactItemsCount($iUserId, $sSearch, $sFirstCharacter, $iGroupId, $iSharedTenantId))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $iResult = (int) $oRow->cnt;
         }
         $this->oConnection->FreeResult();
     }
     return $iResult;
 }