コード例 #1
0
ファイル: class_dbstorage.php プロジェクト: JDevelopers/Mail
 /**
  * @param string $email
  * @param string $login
  * @param bool $onlyDef
  * @return Array
  */
 function &SelectAccountDataByLogin($email, $login, $onlyDef = false)
 {
     $resArray = null;
     $result = $onlyDef ? $this->_dbConnection->Execute($this->_commandCreator->SelectDefAccountDataByLogin($email, $login)) : $this->_dbConnection->Execute($this->_commandCreator->SelectAccountDataByLogin($email, $login));
     if ($result) {
         $row = $this->_dbConnection->GetNextRecord();
         if (is_object($row)) {
             $resArray = array($row->id_acct, $row->mail_inc_pass, $row->def_acct, $row->id_user, $row->deleted);
             $this->_dbConnection->FreeResult();
         }
     }
     return $resArray;
 }