Exemplo n.º 1
0
 /**
  * @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;
 }