Beispiel #1
0
 /**
  * @param int $iUserId
  * @param string $sSearch
  * @param string $sFirstCharacter
  * @param int $iGroupId
  * @param int $iSharedTenantId = null
  * @param bool $bAll = false
  * @return int
  */
 public function getContactItemsCount($iUserId, $sSearch, $sFirstCharacter, $iGroupId, $iSharedTenantId = null, $bAll = false)
 {
     $iResult = 0;
     if ($this->oConnection->Execute($this->oCommandCreator->getContactItemsCount($iUserId, $sSearch, $sFirstCharacter, $iGroupId, $iSharedTenantId, $bAll))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $iResult = (int) $oRow->cnt;
         }
         $this->oConnection->FreeResult();
     }
     return $iResult;
 }