コード例 #1
0
ファイル: storage.php プロジェクト: pkdevboxy/webmail-lite
 /**
  * @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;
 }