/**
  * @return int
  */
 function SelectLastIdMsg()
 {
     $idMsg = null;
     if ($this->_dbConnection->Execute($this->_commandCreator->SelectLastIdMsg($this->Account->Id))) {
         while ($row = $this->_dbConnection->GetNextRecord()) {
             $idMsg = $row->nid_msg;
         }
     }
     return $idMsg == null ? 0 : $idMsg;
 }
Exemple #2
0
 /**
  * @return int
  */
 function SelectLastIdMsg()
 {
     $idMsg = null;
     if ($this->_dbConnection->Execute($this->_commandCreator->SelectLastIdMsg($this->Account->Id))) {
         $row = $this->_dbConnection->GetNextRecord();
         if ($row) {
             $idMsg = $row->nid_msg;
         }
         $this->_dbConnection->FreeResult();
     }
     return $idMsg == null ? 0 : $idMsg + rand(1, 5);
 }