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