示例#1
0
 /**
  * @param	Account $account
  * @param	bool	$isUserLimit = false
  * @return	bool
  */
 function InsertUserData(&$account)
 {
     if (!$this->_connector->Execute($this->_commandCreator->InsertNewUser())) {
         return false;
     }
     $id = $this->_connector->GetLastInsertId();
     if ($id > 0) {
         $account->IdUser = $id;
     } else {
         return false;
     }
     if (!$this->_connector->Execute($this->_commandCreator->InsertSettings($account))) {
         $this->DeleteUserData($account->IdUser);
         return false;
     }
     return true;
 }