original_string: protected function setUserCheckout($user_id)
      {
          $this->data_user = array();
  
          if (!is_numeric($user_id)) {
              $this->outputHttpStatus(403);
          }
  
          $this->data_user = $this->user->get($user_id);
  
          if (empty($this->data_user['status'])) {
              $this->outputHttpStatus(404);
          }
  
          $this->order_user_id = $user_id;
          $this->order_store_id = $this->data_user['store_id'];
      }
code: protected function setUserCheckout($user_id)
      {
          $this->data_user = array();
  
          if (!is_numeric($user_id)) {
              $this->outputHttpStatus(403);
          }
  
          $this->data_user = $this->user->get($user_id);
  
          if (empty($this->data_user['status'])) {
              $this->outputHttpStatus(404);
          }
  
          $this->order_user_id = $user_id;
          $this->order_store_id = $this->data_user['store_id'];
      }
code_tokens: protected function setUserCheckout ( $ user_id ) { $ this -> data_user = array ( ) ; if ( ! is_numeric ( $ user_id ) ) { $ this -> outputHttpStatus ( 403 ) ; } $ this -> data_user = $ this -> user -> get ( $ user_id ) ; if ( empty ( $ this -> data_user [ 'status' ] ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> order_user_id = $ user_id ; $ this -> order_store_id = $ this -> data_user [ 'store_id' ] ; }
docstring: Loads a user from the database
  @param integer $user_id
docstring_tokens: Loads a user from the database