<?php

namespace Blazemedia\Affiliation\AdminUserInterface\Buttons;

/*
 *  Class AffiliateTable( nuovo )
 *  
 *  Bottone e UI per la creazione degli shortcode delle tabelle
 */
class AffiliateTable extends Button {

    function __construct( $name = 'affiliation_table', $action = 'affiliation_table_action', $dialog ='dialog-AffiliateTable.html' ) { 
        
        /** 
         * Set the name of the plugin 
         * >> affiliation_link.js
         * 
         * and the name of the ajax endpoint to call into plugin
         * >> affiliation_link_action
         */
        parent::__construct( $name, $action, $dialog );
    }

    public function addFieldsToDialog() : array { return [

        [
            'name' => 'FormatProvider',
            'value' => BLZ_FORMAT_PROVIDER
        ], 

    ]; }

}