/** * @return bool */ function UpdateMailboxSize() { $mailBoxSize = 0; if ($this->_dbConnection->Execute($this->_commandCreator->CountMailboxSize($this->Account->Id))) { while (false !== ($row = $this->_dbConnection->GetNextRecord())) { $mailBoxSize = $row->mailbox_size; } } return $this->_dbConnection->Execute($this->_commandCreator->UpdateMailboxSize($mailBoxSize, $this->Account->Id)); }