예제 #1
0
파일: storage.php 프로젝트: Git-Host/email
 /**
  * Calculates total number of users registered in WebMail Pro.
  * 
  * @return int
  */
 public function getTotalUsersCount()
 {
     $iResult = 0;
     if ($this->oConnection->Execute($this->oCommandCreator->getTotalUsersCountQuery())) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $iResult = (int) $oRow->users_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $iResult;
 }