Esempio n. 1
0
 /**
  * @param array $aDomainsIds
  *
  * @return bool
  */
 public function areDomainsEmpty($aDomainsIds)
 {
     $bIsEmpty = true;
     if ($this->oConnection->Execute($this->oCommandCreator->areDomainsEmpty($aDomainsIds))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $bIsEmpty = !(0 < (int) $oRow->users_count);
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $bIsEmpty;
 }