Pwt_Widget

Class to show a payment button in a sidebar like a widget

version | 1.0
since | 1.0

### Methods

## Pwt_Widget()

    Pwt_Widget()

Constructor of Pwt_Widget widget.

## form()

    form(Array $instance)

Overrided method to configure the button.

### Parameters

#### $instance

`Array`

## get_shortcode()

    get_shortcode(int $id) : Array

Method to find and return one payment button.

global | Object $wpdb

### Parameters

#### $id

`int`

### Returns

`Array`array('0' => Object)

## get_shortcodes()

    get_shortcodes() : Array

Method to select all the available payment buttons

global | Object $wpdb

### Returns

`Array`Return the available buttons in an array of objects

## update()

    update(\type $new_instance, \type $old_instance) : \type

### Parameters

#### $new_instance

`\type`

#### $old_instance

`\type`

### Returns

`\type`

## widget

    widget(Array $args, Array $instance)

Overrided method to print the button

### Parameters

#### $args

`Array`

#### $instance

`Array`