/** * @param int $iUserId * @param string $sSearch * @param string $sFirstCharacter * @return int */ public function getGroupItemsCount($iUserId, $sSearch, $sFirstCharacter) { $iResult = 0; if ($this->oConnection->Execute($this->oCommandCreator->getGroupItemsCount($iUserId, $sSearch, $sFirstCharacter))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $iResult = (int) $oRow->cnt; } $this->oConnection->FreeResult(); } return $iResult; }