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'];
    }
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'];
    }
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' ] ; }
Loads a user from the database
@param integer $user_id
Loads a user from the database