/** * @param Account $account * @param int $userId * @return bool */ function SelectSetings(&$account, $userId) { if (!$this->_dbConnection->Execute($this->_commandCreator->SelectSetings($userId))) { return false; } while ($row = $this->_dbConnection->GetNextRecord()) { $account->IdUser = $row->id_user; $account->HideContacts = $row->hide_contacts; $account->MailsPerPage = $row->msgs_per_page; $account->Delimiter = $row->delimiter; $account->WhiteListing = $row->white_listing; $account->XSpam = $row->x_spam; $account->LastLogin = $row->last_login; $account->LoginsCount = $row->logins_count; $account->DefaultSkin = $row->def_skin; $account->DefaultLanguage = $row->def_lang; $account->DefaultIncCharset = ConvertUtils::GetCodePageName($row->def_charset_inc); $account->DefaultOutCharset = ConvertUtils::GetCodePageName($row->def_charset_out); $account->DefaultTimeZone = $row->def_timezone; $account->DefaultDateFormat = $row->def_date_fmt; $account->HideFolders = $row->hide_folders; $account->MailboxLimit = $row->mailbox_limit; $account->MailboxSize = $row->mailbox_size; $account->AllowChangeSettings = $row->allow_change_settings; $account->AllowDhtmlEditor = $row->allow_dhtml_editor; $account->AllowDirectMode = $row->allow_direct_mode; $account->DbCharset = ConvertUtils::GetCodePageName($row->db_charset); $account->HorizResizer = $row->horiz_resizer; $account->VertResizer = $row->vert_resizer; $account->Mark = $row->mark; $account->Reply = $row->reply; $account->ContactsPerPage = $row->contacts_per_page; $account->ViewMode = $row->view_mode; } return true; }