Beispiel #1
0
 /**
  * @param string $email
  * @param string $login
  * @param bool $onlyDef
  * @return int
  */
 function SelectAccountsCountByLogin($email, $login, $onlyDef = false, $isAcct = -1)
 {
     $count = 0;
     $result = $onlyDef ? $this->_dbConnection->Execute($this->_commandCreator->SelectDefAccountsCountByLogin($email, $login, $isAcct)) : $this->_dbConnection->Execute($this->_commandCreator->SelectAccountsCountByLogin($email, $login));
     if ($result) {
         while (($row = $this->_dbConnection->GetNextRecord()) != false) {
             $count = $row->acct_count;
         }
     }
     return $count;
 }