/** * @param int $iIdAccount * @return array */ public function GetAccounts($iIdAccount) { $aAccounts = array(); if ($this->oConnection->Execute($this->oCommandCreator->GetAccounts((int) $iIdAccount))) { $oRow = null; while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $oAccount = new \CTwofactorauth(); $oAccount->InitByDbRow($oRow); $aAccounts[] = $oAccount; } } $this->throwDbExceptionIfExist(); return $aAccounts; }