<?php

namespace Blazemedia\Affiliation\AdminUserInterface\Buttons;

use Blazemedia\Affiliation\AdminUserInterface\Settings\Capability;

/*
 *  Class AffiliatePrice( nuovo )
 *  
 *  Bottone e UI per la creazione degli shortcode dei "priceLink"
 */
class AffiliatePrice extends Button {

    function __construct() { 
        
        /** 
         * 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( 'affiliation_price', 'affiliation_price_action', 'dialog-AffiliatePrice.html' );
    }

    public function addFieldsToDialog() : array { return [

        [
            'name' => 'ApiRenderingManager',
            'value' => BLZ_API_RENDERING_MANAGER
        ]
    ]; }
}