示例#1
0
 /**
  * Enable/disable one or several WebMail Pro accounts. 
  * 
  * @param array $aAccountsIds List of accounts to be enabled/disabled.
  * @param bool $bIsEnabled true for enabling accounts, false for disabling them.
  * 
  * @return bool
  */
 public function enableAccounts($aAccountsIds, $bIsEnabled)
 {
     $bResult = $this->oConnection->Execute($this->oCommandCreator->enableAccountsQuery($aAccountsIds, $bIsEnabled));
     $this->throwDbExceptionIfExist();
     return $bResult;
 }